Section 1
//bar_root_18 (noizor2_511118_pb_fla.bar_root_18)
package noizor2_511118_pb_fla {
import flash.display.*;
public dynamic class bar_root_18 extends MovieClip {
public var barmask:MovieClip;
}
}//package noizor2_511118_pb_fla
Section 2
//BG_2 (noizor2_511118_pb_fla.BG_2)
package noizor2_511118_pb_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 noizor2_511118_pb_fla
Section 3
//LOGOEND_43 (noizor2_511118_pb_fla.LOGOEND_43)
package noizor2_511118_pb_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 noizor2_511118_pb_fla
Section 4
//LOGOPRELOAD_0_23 (noizor2_511118_pb_fla.LOGOPRELOAD_0_23)
package noizor2_511118_pb_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
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 noizor2_511118_pb_fla
Section 5
//LOGOPRELOAD_1_27 (noizor2_511118_pb_fla.LOGOPRELOAD_1_27)
package noizor2_511118_pb_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
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 noizor2_511118_pb_fla
Section 6
//LOGOPRELOAD_2_30 (noizor2_511118_pb_fla.LOGOPRELOAD_2_30)
package noizor2_511118_pb_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
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 noizor2_511118_pb_fla
Section 7
//LOGOPRELOAD_3_32 (noizor2_511118_pb_fla.LOGOPRELOAD_3_32)
package noizor2_511118_pb_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
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 noizor2_511118_pb_fla
Section 8
//LOGOPRELOAD_4_34 (noizor2_511118_pb_fla.LOGOPRELOAD_4_34)
package noizor2_511118_pb_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
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 noizor2_511118_pb_fla
Section 9
//LOGOPRELOAD_5_36 (noizor2_511118_pb_fla.LOGOPRELOAD_5_36)
package noizor2_511118_pb_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
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 noizor2_511118_pb_fla
Section 10
//LOGOPRELOAD_6_38 (noizor2_511118_pb_fla.LOGOPRELOAD_6_38)
package noizor2_511118_pb_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
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 noizor2_511118_pb_fla
Section 11
//LOGOPRELOAD_7_40 (noizor2_511118_pb_fla.LOGOPRELOAD_7_40)
package noizor2_511118_pb_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
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 noizor2_511118_pb_fla
Section 12
//MainTimeline (noizor2_511118_pb_fla.MainTimeline)
package noizor2_511118_pb_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var back2menu;
public var submit;
public var upgrade:MovieClip;
public var b_start:SimpleButton;
public var submitClick;
public var so;
public var b_highscores:SimpleButton;
public var b_mfz_logo:SimpleButton;
public var bmoregames:SimpleButton;
public var bnext:SimpleButton;
public var scene;
public var b_nz1:SimpleButton;
public var score;
public var b_back:SimpleButton;
public var hightScore;
public var b_mfz:SimpleButton;
public var playfn2;
public var bmenu:SimpleButton;
public var now;
public var playMoreGameTitle;
public var scoreText:TextField;
public var EPOCH_TIME;
public var playername:TextField;
public var bsubmit:SimpleButton;
public var playfn;
public var b_more_game:SimpleButton;
public var moregameClick;
public var playgame:SimpleButton;
public var b_skipRelease;
public var b_preload:SimpleButton;
public var tutor;
public var b_preloadRelease;
public var b_skip:SimpleButton;
public var b_skipendingRelease;
public var menuClick;
public var conti:TextField;
public var con;
public var b_skip_ending:SimpleButton;
public var confn;
public var b_proceed:SimpleButton;
public var b_continue:SimpleButton;
public var game:MovieClip;
public var gonz1;
public function MainTimeline(){
addFrameScript(0, frame1, 9, frame10, 24, frame25, 150, frame151, 385, frame386, 426, frame427, 429, frame430, 430, frame431, 432, frame433, 436, frame437, 441, frame442, 446, frame447, 451, frame452, 486, frame487, 492, frame493, 493, frame494, 494, frame495, 1018, frame1019);
}
function frame151(){
gotoAndStop(1, "title");
}
public function onSkip(_arg1){
var _local2:*;
_local2 = _arg1.keyCode;
if (_local2 == 75){
tutor.gotoAndPlay("skip");
};
}
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 frame10(){
}
public function bnextclick(_arg1){
play();
}
function frame25(){
b_skipRelease = function (){
gotoAndPlay("skip_opening");
};
b_skip.addEventListener("mouseUp", b_skipRelease);
}
function frame1(){
now = new Date();
EPOCH_TIME = now.getTime();
stage.quality = "high";
b_preloadRelease = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
b_preload.addEventListener("mouseUp", b_preloadRelease);
stop();
}
public function loadVariablesNum(_arg1:String){
var _local2:*;
var _local3:*;
_local2 = new URLRequest(_arg1);
_local3 = new URLLoader();
_local3.load(_local2);
}
function frame431(){
stop();
back2menu = function (){
gotoAndStop(1, "title");
};
b_back.addEventListener("click", back2menu);
playfn2 = function (){
var _local1:*;
scene.play();
_local1 = SharedObject.getLocal("continue");
_local1.data.dplayer = new Object();
_local1.data.con = 5;
_local1.data.saved = false;
_local1.flush();
_local1.close();
};
b_proceed.addEventListener("click", playfn2);
}
function frame427(){
stage.quality = "high";
scene = this;
score = 0;
con = false;
so = SharedObject.getLocal("continue");
conti.text = "--";
if (so.data.con != null){
conti.text = so.data.con.toString();
};
playfn = function (){
scene.play();
};
b_start.addEventListener("click", playfn);
confn = function (){
if (((!((so.data.con == null))) && ((so.data.saved == true)))){
if (so.data.con > 0){
con = true;
so.data.con--;
scene.gotoAndPlay(1, "game");
so.close();
} else {
so.data.con = null;
};
};
};
b_continue.addEventListener("click", confn);
playMoreGameTitle = function (_arg1):void{
getURL("http://www.mofunzone.com/", "_blank");
};
b_more_game.addEventListener("click", playMoreGameTitle);
b_mfz.addEventListener("click", playMoreGameTitle);
hightScore = function (_arg1):void{
getURL("http://www.mofunzone.com/game_scores/noidzor_2/highscores.shtml", "_blank");
};
gonz1 = function (_arg1):void{
getURL("http://www.mofunzone.com/online_games/noidzor.shtml", "_blank");
};
b_mfz_logo.addEventListener("click", playMoreGameTitle);
b_highscores.addEventListener("click", hightScore);
b_nz1.addEventListener("click", gonz1);
stop();
stop();
}
function frame437(){
stop();
}
function frame430(){
so = SharedObject.getLocal("continue");
trace(so.data.con);
if (so.data.con == null){
gotoAndPlay(6);
} else {
if (so.data.con <= 0){
gotoAndPlay(6);
};
};
so.close();
}
function frame442(){
stop();
}
function frame433(){
tutor = this;
bnext.addEventListener("click", bnextclick);
this.addEventListener("enterFrame", keyfull);
this.addEventListener("keyDown", onSkip);
}
function frame447(){
stop();
}
function frame452(){
gotoAndPlay("skip");
}
public function keyfull(_arg1){
stage.focus = this;
}
function frame1019(){
SoundMixer.stopAll();
gotoAndStop(1, "submit");
}
function frame487(){
this.removeEventListener("keyDown", onSkip);
bnext.removeEventListener("click", bnextclick);
this.removeEventListener("enterFrame", keyfull);
}
function frame493(){
stop();
}
function frame494(){
stage.quality = "high";
SoundMixer.stopAll();
scoreText.text = score;
stage.focus = playername;
submit = this;
menuClick = function (_arg1){
MovieClip(submit).gotoAndStop(1, "title");
};
bmenu.addEventListener("click", menuClick);
submitClick = function (_arg1):void{
getURL("http://www.mofunzone.com/online_games/noidzor_2.shtml", "_blank");
MovieClip(submit).gotoAndStop(1, "title");
};
bsubmit.addEventListener("click", submitClick);
moregameClick = function (_arg1):void{
getURL("http://www.mofunzone.com/", "_blank");
MovieClip(submit).gotoAndStop(1, "title");
};
bmoregames.addEventListener("click", moregameClick);
}
function frame495(){
stage.quality = "high";
b_skipendingRelease = function (){
gotoAndPlay("skip_ending");
};
b_skip_ending.addEventListener("mouseUp", b_skipendingRelease);
play();
}
function frame386(){
gotoAndPlay("skip2");
}
}
}//package noizor2_511118_pb_fla
Section 13
//mgfx_boss_explode_59 (noizor2_511118_pb_fla.mgfx_boss_explode_59)
package noizor2_511118_pb_fla {
import flash.display.*;
public dynamic class mgfx_boss_explode_59 extends MovieClip {
public function mgfx_boss_explode_59(){
addFrameScript(89, frame90);
}
function frame90(){
stop();
}
}
}//package noizor2_511118_pb_fla
Section 14
//mgui_boss_hp_gage_178 (noizor2_511118_pb_fla.mgui_boss_hp_gage_178)
package noizor2_511118_pb_fla {
import flash.display.*;
public dynamic class mgui_boss_hp_gage_178 extends MovieClip {
public function mgui_boss_hp_gage_178(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package noizor2_511118_pb_fla
Section 15
//mgui_hp_gage_177 (noizor2_511118_pb_fla.mgui_hp_gage_177)
package noizor2_511118_pb_fla {
import flash.display.*;
public dynamic class mgui_hp_gage_177 extends MovieClip {
public function mgui_hp_gage_177(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package noizor2_511118_pb_fla
Section 16
//mgui_ic_01_destruction_181 (noizor2_511118_pb_fla.mgui_ic_01_destruction_181)
package noizor2_511118_pb_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mgui_ic_01_destruction_181 extends MovieClip {
public var lv:TextField;
}
}//package noizor2_511118_pb_fla
Section 17
//mgui_ic_02_destruction_revoke_182 (noizor2_511118_pb_fla.mgui_ic_02_destruction_revoke_182)
package noizor2_511118_pb_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mgui_ic_02_destruction_revoke_182 extends MovieClip {
public var lv:TextField;
}
}//package noizor2_511118_pb_fla
Section 18
//mgui_ic_03_shadow_183 (noizor2_511118_pb_fla.mgui_ic_03_shadow_183)
package noizor2_511118_pb_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mgui_ic_03_shadow_183 extends MovieClip {
public var lv:TextField;
}
}//package noizor2_511118_pb_fla
Section 19
//mgui_ic_04_wipe_184 (noizor2_511118_pb_fla.mgui_ic_04_wipe_184)
package noizor2_511118_pb_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mgui_ic_04_wipe_184 extends MovieClip {
public var lv:TextField;
}
}//package noizor2_511118_pb_fla
Section 20
//mgui_ic_05_pierce_185 (noizor2_511118_pb_fla.mgui_ic_05_pierce_185)
package noizor2_511118_pb_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mgui_ic_05_pierce_185 extends MovieClip {
public var lv:TextField;
}
}//package noizor2_511118_pb_fla
Section 21
//mgui_ic_06_immortal_186 (noizor2_511118_pb_fla.mgui_ic_06_immortal_186)
package noizor2_511118_pb_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mgui_ic_06_immortal_186 extends MovieClip {
public var lv:TextField;
}
}//package noizor2_511118_pb_fla
Section 22
//mgui_mp_gage_175 (noizor2_511118_pb_fla.mgui_mp_gage_175)
package noizor2_511118_pb_fla {
import flash.display.*;
public dynamic class mgui_mp_gage_175 extends MovieClip {
public function mgui_mp_gage_175(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package noizor2_511118_pb_fla
Section 23
//mgui_window_upgrade_187 (noizor2_511118_pb_fla.mgui_window_upgrade_187)
package noizor2_511118_pb_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mgui_window_upgrade_187 extends MovieClip {
public var a2:SimpleButton;
public var game;
public var st7:TextField;
public var st8:TextField;
public var st9:TextField;
public var atv0:TextField;
public var atv1:TextField;
public var s0:SimpleButton;
public var s1:SimpleButton;
public var s3:SimpleButton;
public var s4:SimpleButton;
public var s5:SimpleButton;
public var s6:SimpleButton;
public var s7:SimpleButton;
public var s8:SimpleButton;
public var s2:SimpleButton;
public var s9:SimpleButton;
public var ap:TextField;
public var ai;
public var st11:TextField;
public var b_more_game_shop:SimpleButton;
public var expskill;
public var sp:TextField;
public var at2:TextField;
public var at3:TextField;
public var st10:TextField;
public var i;
public var at1:TextField;
public var gamerunfnEx;
public var at0:TextField;
public var skill;
public var ugrade;
public var stv0:TextField;
public var stv2:TextField;
public var stv4:TextField;
public var stv6:TextField;
public var stv8:TextField;
public var stv9:TextField;
public var stv3:TextField;
public var stv5:TextField;
public var stv7:TextField;
public var stv1:TextField;
public var attributeID;
public var exbut:TextField;
public var infskill;
public var stv10:TextField;
public var stv11:TextField;
public var attributeDetial;
public var attributeName;
public var attributemax;
public var gamerun:SimpleButton;
public var thisdlg;
public var etf;
public var goback:SimpleButton;
public var playMoreGameShop;
public var s10:SimpleButton;
public var s11:SimpleButton;
public var gamerunfn;
public var a0:SimpleButton;
public var a1:SimpleButton;
public var st2:TextField;
public var st3:TextField;
public var st4:TextField;
public var st5:TextField;
public var st0:TextField;
public var st1:TextField;
public var a3:SimpleButton;
public var st6:TextField;
public var atv2:TextField;
public var atv3:TextField;
public function mgui_window_upgrade_187(){
addFrameScript(0, frame1, 4, frame5, 9, frame10, 14, frame15, 19, frame20);
}
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 frame5(){
goback.addEventListener("click", gamerunfnEx);
stop();
}
function frame1(){
stage.quality = "high";
ugrade = this;
game = MovieClip(parent).game;
game.setLoop(game.playGame);
game.setLoop(game.pauseGame);
expskill = new Array();
expskill[0] = "Destruction ";
expskill[1] = "Destruction Revoke ";
expskill[2] = "Shadows ";
expskill[3] = "Wipe ";
expskill[4] = "Pierce ";
expskill[5] = "Immortal ";
expskill[6] = "Splash ";
expskill[7] = "Recovery ";
expskill[8] = "Critical ";
expskill[9] = "Dodge ";
expskill[10] = "Berserk ";
expskill[11] = "Orbs Mastery ";
infskill = new Array();
infskill[0] = " Send the orb upward and cause massive blast damage.";
infskill[1] = " Call the orb back to you with Destruction power.";
infskill[2] = " Cast temporary shadow orbs.";
infskill[3] = " Attract and convert enemy bullets on the screen to your side.";
infskill[4] = " Cast magical beam that will pierce through multiple enemies.";
infskill[5] = " Become immortal for a short period of time.";
infskill[6] = " Gives you a chance to cause a small burst when your main orb hits any enemy.";
infskill[7] = " Improves health and mana recovery rate.";
infskill[8] = " Gives you a chance to cause critical damage when your main orb hits any enemy.";
infskill[9] = " Gives you a chance to dodge any attacks, stack with Berserk.";
infskill[10] = " Gives you a chance to increase overall damage when you are hit, stack with Dodge.";
infskill[11] = " Create permanent orbs.";
attributemax = 40;
i = 0;
while (i < 12) {
this[("ds" + i)] = new Object();
this[("ds" + i)].ind = i;
this[("ds" + i)].click = function (_arg1){
skill = _arg1.target.parent[("d" + _arg1.target.name)].ind;
if (game.skill[skill].lv < game.skill[skill].table.length){
if (game.dplayer.sp > 0){
game.skill[skill].lv++;
game.dplayer.sp--;
};
};
};
this[("s" + i)].addEventListener("click", this[("ds" + i)].click);
i++;
};
i = 0;
while (i < 4) {
this[("da" + i)] = new Object();
this[("da" + i)].ind = i;
this[("da" + i)].click = function (_arg1){
ai = _arg1.target.parent[("d" + _arg1.target.name)].ind;
var _local2 = game.dplayer;
var _local3 = attributeID[ai];
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
game.dplayer.ap--;
};
this[("a" + i)].addEventListener("click", this[("da" + i)].click);
i++;
};
attributeID = new Array("str", "spi", "wis", "luk");
attributeName = new Array("Strength ", "Spirit ", "Wisdom ", "Luck ");
attributeDetial = new Array(" Increase max health and health recovery rate.", " Increase skills attack power.", " Increase max mana and mana recovery rate.", " Positively affects attack power, recovery and defense by random.");
etf = function (){
var _local1:*;
ap.text = game.dplayer.ap;
sp.text = game.dplayer.sp;
i = 0;
while (i < 4) {
ugrade[("a" + i)].visible = false;
if (game.dplayer.ap > 0){
if (game.dplayer[attributeID[i]] < attributemax){
ugrade[("a" + i)].visible = true;
};
};
ugrade[("at" + i)].text = attributeName[i];
ugrade[("atv" + i)].text = game.dplayer[attributeID[i]];
if (ugrade[("a" + i)].hitTestPoint(mouseX, mouseY)){
exbut.text = ((attributeName[i] + ":") + attributeDetial[i]);
};
i++;
};
i = 0;
while (i < 12) {
ugrade[("s" + i)].visible = false;
if (game.dplayer.sp > 0){
if (game.skill[i].lv < (game.skill[i].table.length - 1)){
ugrade[("s" + i)].visible = true;
};
};
ugrade[("st" + i)].text = expskill[i];
ugrade[("stv" + i)].text = game.skill[i].lv;
if (ugrade[("s" + i)].hitTestPoint(mouseX, mouseY)){
exbut.text = (((((((expskill[i] + " : ") + infskill[i]) + "\n Level :") + game.skill[i].lv) + "/") + (game.skill[i].table.length - 1)) + "\n Current : [");
for (_local1 in game.skill[i].table[game.skill[i].lv]) {
exbut.appendText((((" " + _local1) + ": ") + game.skill[i].table[game.skill[i].lv][_local1]));
};
exbut.appendText("] \n Next : [");
if ((game.skill[i].table.length - 1) > game.skill[i].lv){
for (_local1 in game.skill[i].table[(game.skill[i].lv + 1)]) {
exbut.appendText((((" " + _local1) + ": ") + game.skill[i].table[(game.skill[i].lv + 1)][_local1]));
};
};
exbut.appendText("]");
};
i++;
};
};
gamerunfn = function (_arg1){
stage.quality = "low";
game.setLoop(game.playGame);
game.levelUp();
ugrade.removeEventListener(Event.ENTER_FRAME, etf);
ugrade.visible = false;
};
gamerun.addEventListener("click", gamerunfn);
addEventListener(Event.ENTER_FRAME, etf);
stop();
playMoreGameShop = function (_arg1):void{
getURL("http://www.mofunzone.com/", "_blank");
};
b_more_game_shop.addEventListener("click", playMoreGameShop);
thisdlg = this;
gamerunfnEx = function (_arg1){
thisdlg.gotoAndStop(1);
stage.quality = "low";
};
}
function frame10(){
goback.addEventListener("click", gamerunfnEx);
stop();
}
function frame20(){
goback.addEventListener("click", gamerunfnEx);
stop();
}
function frame15(){
goback.addEventListener("click", gamerunfnEx);
stop();
}
}
}//package noizor2_511118_pb_fla
Section 24
//mhealgage_92 (noizor2_511118_pb_fla.mhealgage_92)
package noizor2_511118_pb_fla {
import flash.display.*;
public dynamic class mhealgage_92 extends MovieClip {
public function mhealgage_92(){
addFrameScript(0, frame1, 100, frame101);
}
function frame1(){
this.stop();
}
function frame101(){
stop();
}
}
}//package noizor2_511118_pb_fla
Section 25
//mimage10_88 (noizor2_511118_pb_fla.mimage10_88)
package noizor2_511118_pb_fla {
import flash.display.*;
public dynamic class mimage10_88 extends MovieClip {
public var hit:MovieClip;
public var gun1:ball;
public var gun2:ball;
public var gun0:ball;
public function mimage10_88(){
addFrameScript(11, frame12, 29, frame30, 134, frame135);
}
function frame12(){
gotoAndPlay("walk");
}
function frame30(){
gotoAndPlay("walk");
}
function frame135(){
stop();
this.parent.visible = false;
}
}
}//package noizor2_511118_pb_fla
Section 26
//mimage15_124 (noizor2_511118_pb_fla.mimage15_124)
package noizor2_511118_pb_fla {
import flash.display.*;
public dynamic class mimage15_124 extends MovieClip {
public var hit:MovieClip;
public var gun1:ball;
public var gun2:ball;
public var gun0:ball;
public function mimage15_124(){
addFrameScript(10, frame11, 29, frame30, 134, frame135);
}
function frame30(){
gotoAndPlay("walk");
}
function frame11(){
gotoAndPlay("walk");
}
function frame135(){
this.parent.visible = false;
stop();
}
}
}//package noizor2_511118_pb_fla
Section 27
//mimage20_136 (noizor2_511118_pb_fla.mimage20_136)
package noizor2_511118_pb_fla {
import flash.display.*;
public dynamic class mimage20_136 extends MovieClip {
public var hit:MovieClip;
public var gun1:ball;
public var gun2:ball;
public var gun0:ball;
public function mimage20_136(){
addFrameScript(4, frame5, 14, frame15, 124, frame125);
}
function frame15(){
gotoAndPlay("walk");
}
function frame5(){
gotoAndPlay("walk");
}
function frame125(){
stop();
this.parent.visible = false;
}
}
}//package noizor2_511118_pb_fla
Section 28
//mimage25_148 (noizor2_511118_pb_fla.mimage25_148)
package noizor2_511118_pb_fla {
import flash.display.*;
public dynamic class mimage25_148 extends MovieClip {
public var hit:MovieClip;
public var gun1:ball;
public var gun2:ball;
public var gun0:ball;
public function mimage25_148(){
addFrameScript(9, frame10, 29, frame30, 134, frame135);
}
function frame10(){
gotoAndPlay("walk");
}
function frame30(){
gotoAndPlay("walk");
}
function frame135(){
stop();
this.parent.visible = false;
}
}
}//package noizor2_511118_pb_fla
Section 29
//mimage26_154 (noizor2_511118_pb_fla.mimage26_154)
package noizor2_511118_pb_fla {
import flash.display.*;
public dynamic class mimage26_154 extends MovieClip {
public var hit:MovieClip;
public var gun1:ball;
public var gun2:ball;
public var gun0:ball;
public function mimage26_154(){
addFrameScript(10, frame11, 29, frame30, 134, frame135);
}
function frame30(){
gotoAndPlay("walk");
}
function frame11(){
gotoAndPlay("walk");
}
function frame135(){
stop();
this.parent.visible = false;
}
}
}//package noizor2_511118_pb_fla
Section 30
//mimage5_50 (noizor2_511118_pb_fla.mimage5_50)
package noizor2_511118_pb_fla {
import flash.display.*;
public dynamic class mimage5_50 extends MovieClip {
public var hit:MovieClip;
public var gun1:ball;
public var gun2:ball;
public var gun0:ball;
public function mimage5_50(){
addFrameScript(4, frame5, 18, frame19, 124, frame125);
}
function frame19(){
gotoAndPlay("walk");
}
function frame5(){
gotoAndPlay("walk");
}
function frame125(){
stop();
this.parent.visible = false;
}
}
}//package noizor2_511118_pb_fla
Section 31
//mobj_game_172 (noizor2_511118_pb_fla.mobj_game_172)
package noizor2_511118_pb_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mobj_game_172 extends MovieClip {
public var ini_b08_frq;
public var b10_hp;
public var hp_gage:MovieClip;
public var checkBossHitEx;
public var ini_b11_frq;
public var bgsound:Sound;
public var lastkey;
public var immotal;
public var boss26_atkran;
public var bossdmgflash;
public var jump;
public var sho_hp_reco:TextField;
public var boss15_atkran;
public var ini_b08_hp;
public var b13_healpow;
public var ray;
public var sho_norm_max:TextField;
public var is1:MovieClip;
public var is2:MovieClip;
public var is3:MovieClip;
public var is4:MovieClip;
public var dplayer;
public var is0:MovieClip;
public var is5:MovieClip;
public var GHline;
public var ini_b13_healpow;
public var mp_gage:MovieClip;
public var boss20_atkspd;
public var ini_b07_dmg;
public var j;
public var boss5_atkran;
public var enemyKnockIm;
public var ini_b07_frq;
public var sho_mp_reco:TextField;
public var ini_b10_dmg;
public var p;
public var b11_hp;
public var abs;
public var boss10_dmg;
public var ber;
public var dy;
public var ini_b09_hp;
public var v;
public var boss10EnProcess;
public var dx;
public var initBoss;
public var r;
public var b_mfz:SimpleButton;
public var GHremove;
public var ei;
public var ini_b10_frq;
public var sce_bg:MovieClip;
public var b13_frq;
public var boss20_atkran2;
public var b09_dmg;
public var overcount;
public var i;
public var boss20AttTimer;
public var ini_b10_hp;
public var b12_dmg;
public var b12_hp;
public var boss_gage:MovieClip;
public var bfn;
public var b09_frq;
public var index;
public var gl:TextField;
public var NORMAL;
public var fps:TextField;
public var trace_tempnormal;
public var b12_frq;
public var sclass;
public var dmg;
public var implayer;
public var bullet;
public var ini_b16_suphp;
public var sho_mpmax:TextField;
public var ini_b11_hp;
public var b13_hp;
public var b08_dmg;
public var ix;
public var sho_skill_max:TextField;
public var sho_norm_min:TextField;
public var boss20_dmg;
public var b02_hp;
public var jx;
public var b08_frq;
public var tempblock;
public var blank:MovieClip;
public var hitcount;
public var boss10_atkspd;
public var b11_dmg;
public var ini_b16_dmg;
public var b11_frq;
public var bAttack;
public var ini_b12_hp;
public var templuck;
public var ini_b16_frq;
public var dashkey;
public var boss26_atkspd;
public var b03_hp;
public var b07_dmg;
public var playerDamage;
public var soundch;
public var blockdata;
public var main;
public var sound_index;
public var tempnormal;
public var boss15_atkspd;
public var b10_dmg;
public var boss5_atkspd;
public var dboss;
public var iblock;
public var b07_frq;
public var boss10EnKnock;
public var ini_b13_hp;
public var damageEffect;
public var b15_hp;
public var summon2process;
public var b10_frq;
public var heal;
public var BlockArray;
public var GHhoming;
public var GHupDown;
public var tracetype;
public var b04_hp;
public var panel:MovieClip;
public var ini_b02_hp;
public var dif_lv;
public var blockgroup;
public var boss15_dmg;
public var ini_b15_frq;
public var sbossdie;
public var sho_skill_min:TextField;
public var enemyKnock;
public var afterShock;
public var boss26_dmg;
public var SKILL;
public var gravity;
public var skill;
public var so;
public var ini_b03_hp;
public var key;
public var b05_hp;
public var jblock;
public var sd;
public var imcount;
public var b16_hp;
public var skillkey;
public var sg;
public var enemyKnockComposBoss;
public var boss15AttTimer;
public var score;
public var boss15_atkran2;
public var vibration;
public var shock;
public var ux;
public var uy;
public var boss5_dmg;
public var btype;
public var sho_hp:TextField;
public var boss25_dmg;
public var ini_b15_hp;
public var boss26AttTimer;
public var fogKnock;
public var checkBossHit;
public var b06_hp;
public var ini_b04_hp;
public var degree;
public var sys:TextField;
public var gamelevel;
public var boss26Create;
public var boss26_atkran2;
public var boss20_atkran;
public var player;
public var orb;
public var b16_dmg;
public var b16_frq;
public var enemyKnockNoWipe;
public var ini_b16_hp;
public var skillprocess;
public var ini_b05_hp;
public var b07_hp;
public var damagetype;
public var ini_b13_frq;
public var spab;
public var sho_mp:TextField;
public var pierce;
public var ini_b09_dmg;
public var sho_base_ball_att:TextField;
public var boss20EnProcess;
public var cmpHandler;
public var spiritKnock;
public var ini_b12_dmg;
public var boss;
public var damage;
public var b15_frq;
public var ini_b09_frq;
public var lastpress;
public var b08_hp;
public var before;
public var ini_b06_hp;
public var gamearea;
public var creatEffect;
public var boss25Create;
public var normalBall;
public var effectgroup;
public var boss10AttTimer;
public var world;
public var bossctr;
public var ini_b12_frq;
public var sho_hpmax:TextField;
public var boss10_atkran2;
public var dash;
public var normalang;
public var playerinworld;
public var soundtimer;
public var passcount;
public var boss5AttTimer;
public var b16_suphp;
public var framecount;
public var ini_b08_dmg;
public var ini_b07_hp;
public var boss10_atkran;
public var b09_hp;
public var ini_b11_dmg;
public var spirit;
public var game;
public var enemygroup;
public var enemyKnockEx;
public function mobj_game_172(){
addFrameScript(0, frame1);
}
public function createSpirit(_arg1){
var tg:*;
var lv = _arg1;
if (lv > 5){
spirit = new helper();
playerinworld = new Point(player.x, player.y);
playerinworld = world.globalToLocal(playerinworld);
spirit.x = playerinworld.x;
spirit.y = playerinworld.y;
spirit.process = spab;
tg = new helper();
tg.alpha = 0;
tg.process = function (){
if ((framecount % 50) == 0){
tg.x = ((playerinworld.x + (Math.random() * 400)) - 200);
tg.y = (playerinworld.y - ((Math.random() * 20) + 80));
};
};
setHomingMove(spirit, tg, 10, 15);
effectgroup.addChild(tg);
effectgroup.addChild(spirit);
};
}
public function createBlockGroup(){
blockgroup = new MovieClip();
blockgroup.x = 0;
blockgroup.y = 0;
world.addChild(blockgroup);
}
public function setLineMove(_arg1, _arg2, _arg3){
_arg1.speedx = _arg2;
_arg1.speedy = _arg3;
_arg1.mot = GHline;
}
public function getIndexAt(_arg1, _arg2){
if (BlockArray[(int(_arg1) + (int(_arg2) * 32))] == null){
return (null);
};
if (BlockArray[(int(_arg1) + (int(_arg2) * 32))].block == null){
return (null);
};
if (!BlockArray[(int(_arg1) + (int(_arg2) * 32))].block.visible){
return (null);
};
if (BlockArray[(int(_arg1) + (int(_arg2) * 32))].hp <= 0){
return (null);
};
return ((int(_arg1) + (int(_arg2) * 32)));
}
function frame1(){
gravity = 5;
before = 0;
jump = 0;
world = null;
enemygroup = null;
effectgroup = null;
blockgroup = null;
player = null;
implayer = null;
boss = null;
spirit = null;
playerinworld = null;
orb = null;
framecount = 0;
SKILL = 1;
NORMAL = 0;
imcount = 0;
passcount = 0;
overcount = 0;
shock = 0;
so = null;
bossdmgflash = 5;
checkBossHit = function (_arg1){
var _local2:*;
if (boss != null){
_local2 = new Point(_arg1.x, _arg1.y);
_local2 = world.localToGlobal(_local2);
if (boss.boss != null){
if (boss.boss.hit != null){
if (boss.boss.hit.hitTestPoint(_local2.x, _local2.y)){
return (true);
};
};
};
};
};
checkBossHitEx = function (_arg1){
if (boss != null){
if (boss.boss != null){
if (boss.boss.hit != null){
if (boss.boss.hit.hitTestObject(_arg1)){
return (true);
};
};
};
};
};
enemyKnockIm = function (){
if (!this.visible){
return;
};
if (this.y >= 480){
this.visible = false;
};
if (this.duration != null){
this.duration--;
if (this.duration <= 0){
setRemoveMove(this);
};
};
if (this.hitTestObject(player)){
if (skill[5].duration == null){
skill[5].duration = 0;
};
if (((((Math.random() * 100) < skill[10].table[skill[10].lv].success)) && ((skill[10].cool <= 0)))){
skill[10].cool = skill[10].table[skill[10].lv].cool;
skill[10].duration = skill[10].table[skill[10].lv].duration;
sd = new skillberserk();
sd.x = playerinworld.x;
sd.y = playerinworld.y;
world.addChild(sd);
};
if (((((Math.random() * 100) < skill[9].table[skill[9].lv].success)) && ((skill[9].cool <= 0)))){
skill[9].cool = skill[9].table[skill[9].lv].cool;
skill[9].duration = skill[9].table[skill[9].lv].duration;
sd = new playeravoid();
sd.x = playerinworld.x;
sd.y = (playerinworld.y - 20);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.alpha = (this.alpha - 0.005);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
world.addChild(sd);
} else {
if (skill[5].duration <= 0){
if (skill[9].duration > 0){
return;
};
skill[9].duration = 3;
sd = new playerdamage();
sd.dmg.text = int(this.dmg).toString();
sd.x = playerinworld.x;
sd.y = (playerinworld.y - 20);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.alpha = (this.alpha - 0.005);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
world.addChild(sd);
playerDamage(this);
};
};
};
};
enemyKnock = function (){
if (!this.visible){
return;
};
if (this.y >= 480){
this.visible = false;
};
if (this.duration != null){
this.duration--;
if (this.duration <= 0){
setRemoveMove(this);
};
};
if (((!((spirit == null))) && ((gamelevel > 15)))){
if (this.hitTestObject(spirit)){
this.scaleX = 0.5;
this.scaleY = 0.5;
setRemoveMove(this);
this.knock = null;
};
};
if (this.hitTestObject(player)){
if (skill[5].duration == null){
skill[5].duration = 0;
};
if (((((Math.random() * 100) < skill[10].table[skill[10].lv].success)) && ((skill[10].cool <= 0)))){
skill[10].cool = skill[10].table[skill[10].lv].cool;
skill[10].duration = skill[10].table[skill[10].lv].duration;
sd = new skillberserk();
sd.x = this.x;
sd.y = this.y;
world.addChild(sd);
};
if (((((Math.random() * 100) < skill[9].table[skill[9].lv].success)) && ((skill[9].cool <= 0)))){
skill[9].cool = skill[9].table[skill[9].lv].cool;
skill[9].duration = skill[9].table[skill[9].lv].duration;
sd = new playeravoid();
sd.x = this.x;
sd.y = (this.y - 20);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.alpha = (this.alpha - 0.005);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
world.addChild(sd);
} else {
if (skill[5].duration <= 0){
if (skill[9].duration > 0){
return;
};
skill[9].duration = 3;
this.scaleX = 0.5;
this.scaleY = 0.5;
setRemoveMove(this);
this.knock = null;
sd = new playerdamage();
sd.dmg.text = int(this.dmg).toString();
sd.x = this.x;
sd.y = (this.y - 20);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.alpha = (this.alpha - 0.005);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
world.addChild(sd);
playerDamage(this);
} else {
this.scaleX = 0.5;
this.scaleY = 0.5;
setRemoveMove(this);
this.knock = null;
};
};
};
};
enemyKnockNoWipe = function (){
if (!this.visible){
return;
};
if (this.y >= 480){
this.visible = false;
};
if (this.duration != null){
this.duration--;
if (this.duration <= 0){
setRemoveMove(this);
};
};
if (this.hitTestObject(player)){
if (skill[5].duration == null){
skill[5].duration = 0;
};
if (((((Math.random() * 100) < skill[10].table[skill[10].lv].success)) && ((skill[10].cool <= 0)))){
skill[10].cool = skill[10].table[skill[10].lv].cool;
skill[10].duration = skill[10].table[skill[10].lv].duration;
sd = new skillberserk();
sd.x = this.x;
sd.y = this.y;
world.addChild(sd);
};
if (((((Math.random() * 100) < skill[9].table[skill[9].lv].success)) && ((skill[9].cool <= 0)))){
skill[9].cool = skill[9].table[skill[9].lv].cool;
skill[9].duration = skill[9].table[skill[9].lv].duration;
sd = new playeravoid();
sd.x = this.x;
sd.y = (this.y - 20);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.alpha = (this.alpha - 0.005);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
world.addChild(sd);
} else {
if (skill[5].duration <= 0){
if (skill[9].duration > 0){
return;
};
skill[9].duration = 3;
this.scaleX = 0.5;
this.scaleY = 0.5;
setRemoveMove(this);
this.knock = null;
sd = new playerdamage();
sd.dmg.text = int(this.dmg).toString();
sd.x = this.x;
sd.y = (this.y - 20);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.alpha = (this.alpha - 0.005);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
world.addChild(sd);
playerDamage(this);
} else {
this.scaleX = 0.5;
this.scaleY = 0.5;
setRemoveMove(this);
this.knock = null;
};
};
};
};
enemyKnockEx = function (){
var dt:*;
if (!this.visible){
return;
};
if (this.y >= 480){
this.visible = false;
dt = new destroy();
dt.x = this.x;
dt.y = this.y;
effectgroup.addChild(dt);
};
if (this.duration != null){
this.duration--;
if (this.duration <= 0){
setRemoveMove(this);
};
};
if (this.hitTestObject(player)){
if (skill[5].duration == null){
skill[5].duration = 0;
};
if (((((Math.random() * 100) < skill[10].table[skill[10].lv].success)) && ((skill[10].cool <= 0)))){
skill[10].cool = skill[10].table[skill[10].lv].cool;
skill[10].duration = skill[10].table[skill[10].lv].duration;
sd = new skillberserk();
sd.x = this.x;
sd.y = this.y;
world.addChild(sd);
};
if (((((Math.random() * 100) < skill[9].table[skill[9].lv].success)) && ((skill[9].cool <= 0)))){
skill[9].cool = skill[9].table[skill[9].lv].cool;
skill[9].duration = skill[9].table[skill[9].lv].duration;
sd = new playeravoid();
sd.x = this.x;
sd.y = (this.y - 20);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.alpha = (this.alpha - 0.005);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
world.addChild(sd);
} else {
if (skill[5].duration <= 0){
if (skill[9].duration > 0){
return;
};
skill[9].duration = 3;
this.scaleX = 0.5;
this.scaleY = 0.5;
setRemoveMove(this);
this.knock = null;
dt = new destroy();
dt.x = this.x;
dt.y = this.y;
effectgroup.addChild(dt);
sd = new playerdamage();
sd.dmg.text = int(this.dmg).toString();
sd.x = this.x;
sd.y = (this.y - 20);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.alpha = (this.alpha - 0.005);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
world.addChild(sd);
playerDamage(this);
} else {
this.scaleX = 0.5;
this.scaleY = 0.5;
setRemoveMove(this);
this.knock = null;
};
};
};
};
enemyKnockComposBoss = function (_arg1){
var thisobj = _arg1;
if (((!(thisobj.visible)) || (thisobj.die))){
return;
};
if (((((thisobj.hitTestPoint(player.x, player.y, true)) || (thisobj.hitTestPoint(player.x, (player.y - 15), true)))) || (thisobj.hitTestPoint(player.x, (player.y + 15), true)))){
if (skill[5].duration == null){
skill[5].duration = 0;
};
if (((((Math.random() * 100) < skill[10].table[skill[10].lv].success)) && ((skill[10].cool <= 0)))){
skill[10].cool = skill[10].table[skill[10].lv].cool;
skill[10].duration = skill[10].table[skill[10].lv].duration;
sd = new skillberserk();
sd.x = playerinworld.x;
sd.y = playerinworld.y;
world.addChild(sd);
};
if (((((Math.random() * 100) < skill[9].table[skill[9].lv].success)) && ((skill[9].cool <= 0)))){
skill[9].cool = skill[9].table[skill[9].lv].cool;
skill[9].duration = skill[9].table[skill[9].lv].duration;
sd = new playeravoid();
sd.x = playerinworld.x;
sd.y = (playerinworld.y - 20);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.alpha = (this.alpha - 0.005);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
world.addChild(sd);
} else {
if (skill[5].duration <= 0){
if (skill[9].duration > 0){
return;
};
skill[9].duration = 3;
sd = new playerdamage();
sd.dmg.text = String(int(thisobj.dmg));
sd.x = playerinworld.x;
sd.y = (playerinworld.y - 20);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.alpha = (this.alpha - 0.005);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
world.addChild(sd);
playerDamage(thisobj);
};
};
};
};
spiritKnock = function (){
var index:*;
var ei:*;
var sbossdie:*;
if (!this.visible){
return;
};
if (this.y > 600){
this.visible = false;
this.knock = null;
};
if (this.y < -300){
this.visible = false;
this.knock = null;
};
if (this.duration != null){
this.duration--;
if (this.duration <= 0){
this.scaleX = 0.5;
this.scaleY = 0.5;
this.visible = false;
this.knock = null;
};
};
i = 0;
while (i < enemygroup.numChildren) {
ei = enemygroup.getChildAt(i);
if (ei.hitTestObject(this)){
if (!ei.die){
this.scaleX = 0.5;
this.scaleY = 0.5;
this.visible = false;
this.knock = null;
sd = new showwipedmg();
sd.dmg.text = String(int(this.dmg));
sd.x = this.x;
sd.y = (this.y - 20);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.alpha = (this.alpha - 0.005);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
world.addChild(sd);
ei.hp = (ei.hp - this.dmg);
if (ei.hp <= 0){
ei.gotoAndPlay("die");
ei.die = true;
};
};
};
i++;
};
if (checkBossHit(this)){
if (!boss.die){
this.scaleX = 0.5;
this.scaleY = 0.5;
this.visible = false;
this.knock = null;
sd = new showwipedmg();
sd.dmg.text = String(int(this.dmg));
sd.x = this.x;
sd.y = (this.y - 20);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.alpha = (this.alpha - 0.005);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
world.addChild(sd);
boss.hp = (boss.hp - this.dmg);
boss.showdmgcount = bossdmgflash;
boss.process = damageEffect;
if (boss.hp <= 0){
boss.stop();
boss.boss.gotoAndPlay("die");
boss.die = true;
sbossdie = new bossdie();
sbossdie.play(1, 1);
};
};
};
index = (int((this.x / 40)) + (int((this.y / 40)) * 32));
if (BlockArray[index] != null){
if (BlockArray[index].block != null){
if (BlockArray[index].block.visible){
this.scaleX = 0.5;
this.scaleY = 0.5;
this.visible = false;
this.knock = null;
sd = new showwipedmg();
sd.dmg.text = String(int(this.dmg));
sd.x = this.x;
sd.y = (this.y - 20);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.alpha = (this.alpha - 0.005);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
world.addChild(sd);
if (BlockArray[index].im == true){
return;
};
BlockArray[index].hp = (BlockArray[index].hp - this.dmg);
if (BlockArray[index].hp <= 0){
BlockArray[index].block.visible = false;
BlockArray[index].block = null;
BlockArray[index] = null;
} else {
BlockArray[index].block.vib = 40;
BlockArray[index].block.dir = "y";
BlockArray[index].block.process = vibration;
};
};
};
};
};
GHremove = function (){
if (!this.visible){
return;
};
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.alpha = (this.alpha - 0.005);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
GHupDown = function (){
this.y = (this.y + this.sy);
if (this.y > this.lowline){
this.sy = -(this.sy);
} else {
if (this.y < this.upline){
this.sy = -(this.sy);
};
};
};
GHline = function (){
if (!this.visible){
return;
};
this.x = (this.x + this.speedx);
this.y = (this.y + this.speedy);
};
GHhoming = function (){
if (!this.visible){
return;
};
this.lrot2 = this.lrot;
this.lrot = this.rotation;
this.waypoint = Math.atan(((this.x - this.targ.x) / (this.targ.y - this.y)));
if (this.targ.y > this.y){
this.waypoint = (this.waypoint + Math.PI);
};
if (this.waypoint < 0){
this.waypoint = (this.waypoint + (Math.PI * 2));
} else {
if (this.waypoint >= (Math.PI * 2)){
this.waypoint = (this.waypoint - (Math.PI * 2));
};
};
this.rota = (this.rotation * (Math.PI / 180));
if (this.rota < 0){
this.rota = (this.rota + (Math.PI * 2));
} else {
if (this.rota >= (Math.PI * 2)){
this.rota = (this.rota - (Math.PI * 2));
};
};
this.orota = (this.waypoint - this.rota);
if (this.orota < 0){
this.orota = (this.orota + (Math.PI * 2));
} else {
if (this.orota >= (Math.PI * 2)){
this.orota = (this.orota - (Math.PI * 2));
};
};
if ((((this.rota < ((this.waypoint - (this.turning / 2)) + this.turning))) && ((this.rota > (this.waypoint - (this.turning / 2)))))){
this.rota = this.waypoint;
} else {
if (this.orota <= Math.PI){
this.rota = (this.rota + this.turning);
} else {
this.rota = (this.rota - this.turning);
};
};
if (this.rotation == 0){
this.rotation++;
this.rota = (this.rotation * (Math.PI / 180));
};
this.rotation = ((this.rota * 180) / Math.PI);
this.xspeed = (this.velocity * Math.sin(this.rota));
this.yspeed = (this.velocity * Math.cos(this.rota));
this.x = (this.x + this.xspeed);
this.y = (this.y - this.yspeed);
if ((((((((this.rotation > 0)) && ((this.lrot < 0)))) && ((this.lrot2 > 0)))) || ((((((this.rotation < 0)) && ((this.lrot > 0)))) && ((this.lrot2 < 0)))))){
this.rotation = 0;
};
};
skill = new Array();
skillkey = new Array();
skillprocess = new Array();
skill[6] = new Object();
skill[6].lv = 0;
skill[6].cool = 0;
skill[6].dmgtype = SKILL;
skill[6].callSkill = function (){
if ((((skill[6].cool == 0)) && ((skill[6].lv > 0)))){
if (dplayer.mp >= skill[6].table[skill[6].lv].mp){
dplayer.mp = (dplayer.mp - skill[6].table[skill[6].lv].mp);
skill[6].Active();
};
};
};
skill[6].process = function (){
if (skill[6].cool > 0){
skill[6].cool--;
};
};
skill[6].Active = function (){
orb = world.getChildByName("mainball");
orb.orb = 6;
orb.gotoAndStop(2);
skill[6].cool = skill[6].table[skill[6].lv].cool;
};
skill[6].Damage = function (_arg1){
shock = (shock + 10);
damage = new msplash();
orb = world.getChildByName("mainball");
damage.x = orb.x;
damage.y = orb.y;
orb.orb = null;
orb.gotoAndStop(orb.normal);
world.addChild(damage);
index = (int((orb.x / 40)) + (int((orb.y / 40)) * 32));
iblock = getI(index);
jblock = getJ(index);
i = 0;
while (i < int((skill[0].table[skill[0].lv].area / 2))) {
j = 0;
while (j < int((skill[0].table[skill[0].lv].area / 2))) {
ix = i;
jx = j;
if (getIndexAt((iblock + ix), (jblock + jx)) != null){
hitblockEx(damagetype.skillEx(false, null, skill[0].table[skill[0].lv].amp), getIndexAt((iblock + ix), (jblock + jx)), "y");
};
if (getIndexAt((iblock - ix), (jblock - jx)) != null){
hitblockEx(damagetype.skillEx(false, null, skill[0].table[skill[0].lv].amp), getIndexAt((iblock - ix), (jblock - jx)), "y");
};
if (getIndexAt((iblock + ix), (jblock - jx)) != null){
hitblockEx(damagetype.skillEx(false, null, skill[0].table[skill[0].lv].amp), getIndexAt((iblock + ix), (jblock - jx)), "y");
};
if (getIndexAt((iblock - ix), (jblock + jx)) != null){
hitblockEx(damagetype.skillEx(false, null, skill[0].table[skill[0].lv].amp), getIndexAt((iblock - ix), (jblock + jx)), "y");
};
j++;
};
i++;
};
i = 0;
while (i < enemygroup.numChildren) {
ei = enemygroup.getChildAt(i);
if (ei != null){
dx = (damage.x - ei.x);
dy = (damage.y - ei.y);
abs = Math.sqrt(((dx * dx) + (dy * dy)));
if (abs < skill[6].table[skill[6].lv].range){
if (!ei.die){
dmg = damagetype.skillEx(true, ei, (skill[4].table[skill[4].lv].amp * 1), skill[4].table[skill[4].lv].att);
ei.hp = (ei.hp - dmg);
if (ei.hp <= 0){
ei.gotoAndPlay("die");
ei.die = true;
};
};
};
};
i++;
};
if (boss != null){
dx = (damage.x - boss.boss.x);
dy = (damage.y - boss.boss.y);
abs = Math.sqrt(((dx * dx) + (dy * dy)));
if (abs < skill[6].table[skill[6].lv].range){
if (!boss.die){
dmg = damagetype.skillEx(true, boss.boss, (skill[4].table[skill[4].lv].amp * 1), skill[4].table[skill[4].lv].att);
boss.hp = (boss.hp - dmg);
boss.showdmgcount = bossdmgflash;
boss.process = damageEffect;
if (boss.hp <= 0){
if (!boss.die){
boss.stop();
boss.boss.gotoAndPlay("die");
boss.die = true;
sbossdie = new bossdie();
sbossdie.play(1, 1);
};
};
};
};
};
return (damagetype.skillEx(true, _arg1, 1, skill[6].table[skill[6].lv].att));
};
skill[6].init = function (){
skill[6].lv = 0;
skill[6].cool = 0;
};
skillprocess.push(skill[6].process);
skill[6].table = new Array();
skill[6].table[0] = {amp:0.2, att:10, mp:0, cool:80, range:100, area:4, success:0};
skill[6].table[1] = {amp:0.2, att:10, mp:0, cool:80, range:100, area:4, success:15};
skill[6].table[2] = {amp:0.2, att:12, mp:0, cool:80, range:100, area:4, success:17};
skill[6].table[3] = {amp:0.2, att:14, mp:0, cool:80, range:100, area:4, success:19};
skill[6].table[4] = {amp:0.3, att:16, mp:0, cool:70, range:100, area:4, success:21};
skill[6].table[5] = {amp:0.3, att:18, mp:0, cool:70, range:100, area:4, success:23};
skill[6].table[6] = {amp:0.3, att:20, mp:0, cool:70, range:100, area:4, success:25};
skill[6].table[7] = {amp:0.4, att:22, mp:0, cool:60, range:100, area:4, success:27};
skill[6].table[8] = {amp:0.4, att:24, mp:0, cool:60, range:100, area:4, success:29};
skill[6].table[9] = {amp:0.4, att:26, mp:0, cool:60, range:100, area:4, success:31};
skill[6].table[10] = {amp:0.5, att:28, mp:0, cool:50, range:100, area:4, success:33};
skill[8] = new Object();
skill[8].lv = 0;
skill[8].table = new Array();
skill[8].table[0] = {amp:1, critical:0};
skill[8].table[1] = {amp:0.1, critical:24};
skill[8].table[2] = {amp:0.1, critical:28};
skill[8].table[3] = {amp:0.1, critical:32};
skill[8].table[4] = {amp:0.2, critical:36};
skill[8].table[5] = {amp:0.2, critical:40};
skill[8].table[6] = {amp:0.2, critical:44};
skill[8].table[7] = {amp:0.3, critical:48};
skill[8].table[8] = {amp:0.3, critical:52};
skill[8].table[9] = {amp:0.3, critical:56};
skill[8].table[10] = {amp:0.4, critical:60};
skill[7] = new Object();
skill[7].lv = 0;
skill[7].table = new Array();
skill[7].table[0] = {hp:0, mp:0};
skill[7].table[1] = {hp:0.001, mp:0.002};
skill[7].table[2] = {hp:0.001, mp:0.004};
skill[7].table[3] = {hp:0.002, mp:0.006};
skill[7].table[4] = {hp:0.002, mp:0.008};
skill[7].table[5] = {hp:0.003, mp:0.01};
skill[7].table[6] = {hp:0.003, mp:0.012};
skill[7].table[7] = {hp:0.004, mp:0.014};
skill[7].table[8] = {hp:0.004, mp:0.016};
skill[7].table[9] = {hp:0.005, mp:0.018};
skill[7].table[10] = {hp:0.005, mp:0.02};
skill[9] = new Object();
skill[9].lv = 0;
skill[9].duration = 0;
skill[9].cool = 0;
skill[9].process = function (){
if (skill[9].cool > 0){
skill[9].cool--;
};
if (skill[9].duration > 0){
if (player.alpha != 0){
player.alpha = 0;
} else {
player.alpha = 1;
};
if (skill[9].duration < 2){
player.alpha = 1;
};
skill[9].duration--;
};
};
skillprocess.push(skill[9].process);
skill[9].table = new Array();
skill[9].table[0] = {cool:0, duration:0, success:0};
skill[9].table[1] = {cool:250, duration:50, success:36};
skill[9].table[2] = {cool:250, duration:50, success:37};
skill[9].table[3] = {cool:250, duration:50, success:38};
skill[9].table[4] = {cool:225, duration:50, success:39};
skill[9].table[5] = {cool:225, duration:50, success:40};
skill[9].table[6] = {cool:225, duration:50, success:41};
skill[9].table[7] = {cool:200, duration:50, success:42};
skill[9].table[8] = {cool:200, duration:50, success:43};
skill[9].table[9] = {cool:200, duration:50, success:44};
skill[9].table[10] = {cool:175, duration:50, success:45};
skill[10] = new Object();
skill[10].lv = 0;
skill[10].duration = 0;
skill[10].cool = 0;
skill[10].process = function (){
if (skill[10].cool > 0){
skill[10].cool--;
};
if (skill[10].duration > 0){
skill[10].duration--;
if ((skill[10].duration % 5) == 0){
ber = new gfxberserk();
ber.x = playerinworld.x;
ber.y = playerinworld.y;
world.addChild(ber);
};
};
};
skillprocess.push(skill[10].process);
skill[10].table = new Array();
skill[10].table[0] = {attamp:1, cool:700, duration:0, success:0};
skill[10].table[1] = {attamp:1.3, cool:700, duration:275, success:20};
skill[10].table[2] = {attamp:1.3, cool:700, duration:300, success:22};
skill[10].table[3] = {attamp:1.3, cool:700, duration:325, success:24};
skill[10].table[4] = {attamp:1.4, cool:700, duration:350, success:24};
skill[10].table[5] = {attamp:1.4, cool:700, duration:375, success:26};
skill[10].table[6] = {attamp:1.4, cool:700, duration:400, success:28};
skill[10].table[7] = {attamp:1.5, cool:700, duration:425, success:28};
skill[10].table[8] = {attamp:1.5, cool:700, duration:450, success:30};
skill[10].table[9] = {attamp:1.5, cool:700, duration:475, success:32};
skill[10].table[10] = {attamp:1.6, cool:700, duration:500, success:32};
skill[11] = new Object();
skill[11].lv = 0;
skill[11].cool = 0;
skill[11].dmgtype = SKILL;
skill[11].Active = function (){
main = world.getChildByName("mainball");
i = 0;
while (i < skill[11].table[skill[11].lv].max) {
orb = createNormalBall(null, 4);
orb.x = main.x;
orb.y = main.y;
orb.orb = 11;
orb.speed = (orb.speed * skill[11].table[skill[11].lv].speedamp);
orb.speedx = (orb.speed * Math.cos(((((360 / skill[11].table[skill[11].lv].max) * i) * Math.PI) / 180)));
orb.speedy = (orb.speed * Math.sin(((((360 / skill[11].table[skill[11].lv].max) * i) * Math.PI) / 180)));
i++;
};
skill[11].cool = skill[11].table[skill[11].lv].cool;
};
skill[11].Damage = function (_arg1){
return (damagetype.skillEx(true, _arg1, skill[11].table[skill[11].lv].amp, skill[11].table[skill[11].lv].att));
};
skill[11].init = function (){
skill[11].cool = 0;
skill[11].Active();
};
skill[11].table = new Array();
skill[11].table[0] = {amp:0.1, att:10, max:0, speedamp:0.4};
skill[11].table[1] = {amp:0.1, att:10, max:1, speedamp:0.4};
skill[11].table[2] = {amp:0.1, att:10, max:1, speedamp:0.5};
skill[11].table[3] = {amp:0.2, att:10, max:1, speedamp:0.6};
skill[11].table[4] = {amp:0.2, att:11, max:2, speedamp:0.6};
skill[11].table[5] = {amp:0.3, att:11, max:2, speedamp:0.7};
skill[11].table[6] = {amp:0.3, att:11, max:2, speedamp:0.8};
skill[11].table[7] = {amp:0.4, att:12, max:3, speedamp:0.8};
skill[11].table[8] = {amp:0.4, att:12, max:3, speedamp:0.9};
skill[11].table[9] = {amp:0.5, att:12, max:3, speedamp:1};
skill[11].table[10] = {amp:0.5, att:13, max:4, speedamp:1};
skill[0] = new Object();
skill[0].lv = 1;
skill[0].cool = 0;
skill[0].dmgtype = SKILL;
skill[0].keyinput = function (_arg1){
if (_arg1.keyCode == 49){
if ((((skill[0].cool == 0)) && ((skill[0].lv > 0)))){
if (dplayer.mp >= skill[0].table[skill[0].lv].mp){
dplayer.mp = (dplayer.mp - skill[0].table[skill[0].lv].mp);
skill[0].Active();
};
};
};
};
skill[0].process = function (){
if (skill[0].cool > 0){
skill[0].cool--;
};
};
skill[0].Active = function (){
orb = world.getChildByName("mainball");
orb.speedx = 0;
orb.speedy = -(orb.speed);
orb.orb = 0;
orb.gotoAndStop(2);
skill[0].cool = skill[0].table[skill[0].lv].cool;
implayer.gotoAndPlay("cast");
};
skill[0].Damage = function (_arg1){
shock = (shock + 15);
damage = new damagezone();
orb = world.getChildByName("mainball");
damage.x = orb.x;
damage.y = orb.y;
orb.orb = null;
degree = (Math.random() * 360);
orb.speedx = (orb.speed * Math.cos(((degree * 180) / 360)));
orb.speedy = (orb.speed * Math.sin(((degree * 180) / 360)));
orb.gotoAndStop(orb.normal);
world.addChild(damage);
index = (int((orb.x / 40)) + (int((orb.y / 40)) * 32));
iblock = getI(index);
jblock = getJ(index);
i = 0;
while (i < int((skill[0].table[skill[0].lv].area / 2))) {
j = 0;
while (j < int((skill[0].table[skill[0].lv].area / 2))) {
ix = i;
jx = j;
if (getIndexAt((iblock + ix), (jblock + jx)) != null){
hitblockEx(damagetype.skillEx(false, null, skill[0].table[skill[0].lv].amp), getIndexAt((iblock + ix), (jblock + jx)), "y");
};
if (getIndexAt((iblock - ix), (jblock - jx)) != null){
hitblockEx(damagetype.skillEx(false, null, skill[0].table[skill[0].lv].amp), getIndexAt((iblock - ix), (jblock - jx)), "y");
};
if (getIndexAt((iblock + ix), (jblock - jx)) != null){
hitblockEx(damagetype.skillEx(false, null, skill[0].table[skill[0].lv].amp), getIndexAt((iblock + ix), (jblock - jx)), "y");
};
if (getIndexAt((iblock - ix), (jblock + jx)) != null){
hitblockEx(damagetype.skillEx(false, null, skill[0].table[skill[0].lv].amp), getIndexAt((iblock - ix), (jblock + jx)), "y");
};
j++;
};
i++;
};
i = 0;
while (i < enemygroup.numChildren) {
ei = enemygroup.getChildAt(i);
if (ei != null){
dx = (damage.x - ei.x);
dy = (damage.y - ei.y);
abs = Math.sqrt(((dx * dx) + (dy * dy)));
if (abs < skill[6].table[skill[6].lv].range){
if (!ei.die){
dmg = damagetype.skillEx(true, ei, (skill[4].table[skill[4].lv].amp * 1), skill[4].table[skill[4].lv].att);
ei.hp = (ei.hp - dmg);
if (ei.hp <= 0){
ei.gotoAndPlay("die");
ei.die = true;
};
};
};
};
i++;
};
if (boss != null){
dx = (damage.x - boss.boss.x);
dy = (damage.y - boss.boss.y);
abs = Math.sqrt(((dx * dx) + (dy * dy)));
if (abs < skill[6].table[skill[6].lv].range){
if (!boss.die){
dmg = damagetype.skillEx(true, boss.boss, (skill[4].table[skill[4].lv].amp * 1), skill[4].table[skill[4].lv].att);
boss.hp = (boss.hp - dmg);
boss.showdmgcount = 5;
boss.process = damageEffect;
if (boss.hp <= 0){
if (!boss.die){
boss.stop();
boss.boss.gotoAndPlay("die");
boss.die = true;
boss.die = true;
sbossdie = new bossdie();
sbossdie.play(1, 1);
};
};
};
};
};
return (damagetype.skillEx(true, _arg1, 1, skill[0].table[skill[0].lv].att));
};
skill[0].init = function (){
skill[0].lv = 1;
skill[0].cool = 0;
};
skillkey.push(skill[0].keyinput);
skillprocess.push(skill[0].process);
skill[0].table = new Array();
skill[0].table[0] = {amp:1.2, att:10, mp:90, cool:100, range:200, area:6};
skill[0].table[1] = {amp:1.2, att:15, mp:100, cool:100, range:100, area:6};
skill[0].table[2] = {amp:1.2, att:20, mp:110, cool:100, range:100, area:6};
skill[0].table[3] = {amp:1.2, att:30, mp:120, cool:100, range:100, area:6};
skill[0].table[4] = {amp:1.3, att:30, mp:165, cool:75, range:150, area:6};
skill[0].table[5] = {amp:1.3, att:35, mp:175, cool:75, range:150, area:6};
skill[0].table[6] = {amp:1.3, att:40, mp:185, cool:75, range:150, area:6};
skill[0].table[7] = {amp:1.4, att:40, mp:230, cool:50, range:200, area:6};
skill[0].table[8] = {amp:1.4, att:45, mp:240, cool:50, range:200, area:6};
skill[0].table[9] = {amp:1.4, att:50, mp:250, cool:50, range:200, area:6};
skill[0].table[10] = {amp:1.5, att:55, mp:295, cool:25, range:250, area:6};
skill[1] = new Object();
skill[1].lv = 1;
skill[1].cool = 0;
skill[1].dmgtype = SKILL;
skill[1].keyinput = function (_arg1){
if (_arg1.keyCode == 50){
if ((((skill[1].cool == 0)) && ((skill[1].lv > 0)))){
if (dplayer.mp >= skill[1].table[skill[1].lv].mp){
dplayer.mp = (dplayer.mp - skill[1].table[skill[1].lv].mp);
skill[1].Active();
};
};
};
};
skill[1].process = function (){
if (skill[1].cool > 0){
skill[1].cool--;
};
};
skill[1].Active = function (){
orb = world.getChildByName("mainball");
orb.speedx = 0;
orb.speedy = -(orb.speed);
orb.orb = 0;
dx = (playerinworld.x - orb.x);
dy = (playerinworld.y - orb.y);
abs = Math.sqrt(((dx * dx) + (dy * dy)));
ux = (dx / abs);
uy = (dy / abs);
orb.speedx = (ux * orb.speed);
orb.speedy = (uy * orb.speed);
orb.gotoAndStop(2);
skill[1].cool = skill[1].table[skill[1].lv].cool;
implayer.gotoAndPlay("cast");
};
skill[1].Damage = function (_arg1){
shock = (shock + 15);
damage = new damagezone();
orb = world.getChildByName("mainball");
damage.x = orb.x;
damage.y = orb.y;
orb.orb = null;
degree = (Math.random() * 360);
orb.speedx = (10 * Math.cos(((degree * 180) / 360)));
orb.speedy = (10 * Math.sin(((degree * 180) / 360)));
orb.gotoAndStop(orb.normal);
world.addChild(damage);
index = (int((orb.x / 40)) + (int((orb.y / 40)) * 32));
iblock = getI(index);
jblock = getJ(index);
i = 0;
while (i < int((skill[0].table[skill[0].lv].area / 2))) {
j = 0;
while (j < int((skill[0].table[skill[0].lv].area / 2))) {
ix = i;
jx = j;
if (getIndexAt((iblock + ix), (jblock + jx)) != null){
hitblockEx(damagetype.skillEx(false, null, skill[0].table[skill[0].lv].amp), getIndexAt((iblock + ix), (jblock + jx)), "y");
};
if (getIndexAt((iblock - ix), (jblock - jx)) != null){
hitblockEx(damagetype.skillEx(false, null, skill[0].table[skill[0].lv].amp), getIndexAt((iblock - ix), (jblock - jx)), "y");
};
if (getIndexAt((iblock + ix), (jblock - jx)) != null){
hitblockEx(damagetype.skillEx(false, null, skill[0].table[skill[0].lv].amp), getIndexAt((iblock + ix), (jblock - jx)), "y");
};
if (getIndexAt((iblock - ix), (jblock + jx)) != null){
hitblockEx(damagetype.skillEx(false, null, skill[0].table[skill[0].lv].amp), getIndexAt((iblock - ix), (jblock + jx)), "y");
};
j++;
};
i++;
};
i = 0;
while (i < enemygroup.numChildren) {
ei = enemygroup.getChildAt(i);
if (ei != null){
dx = (damage.x - ei.x);
dy = (damage.y - ei.y);
abs = Math.sqrt(((dx * dx) + (dy * dy)));
if (abs < skill[6].table[skill[6].lv].range){
if (!ei.die){
dmg = damagetype.skillEx(true, ei, (skill[4].table[skill[4].lv].amp * 1), skill[4].table[skill[4].lv].att);
ei.hp = (ei.hp - dmg);
if (ei.hp <= 0){
ei.gotoAndPlay("die");
ei.die = true;
};
};
};
};
i++;
};
if (boss != null){
dx = (damage.x - boss.boss.x);
dy = (damage.y - boss.boss.y);
abs = Math.sqrt(((dx * dx) + (dy * dy)));
if (abs < skill[6].table[skill[6].lv].range){
if (!boss.die){
dmg = damagetype.skillEx(true, boss.boss, (skill[4].table[skill[4].lv].amp * 1), skill[4].table[skill[4].lv].att);
boss.hp = (boss.hp - dmg);
boss.showdmgcount = bossdmgflash;
boss.process = damageEffect;
if (boss.hp <= 0){
if (!boss.die){
boss.stop();
boss.boss.gotoAndPlay("die");
boss.die = true;
};
};
};
};
};
return (damagetype.skillEx(true, _arg1, 1, skill[1].table[skill[1].lv].att));
};
skill[1].init = function (){
skill[1].lv = 1;
skill[1].cool = 0;
};
skillkey.push(skill[1].keyinput);
skillprocess.push(skill[1].process);
skill[1].table = new Array();
skill[1].table[0] = {amp:1.2, att:10, mp:90, cool:100, range:200, area:6};
skill[1].table[1] = {amp:1.2, att:15, mp:100, cool:100, range:100, area:6};
skill[1].table[2] = {amp:1.2, att:20, mp:110, cool:100, range:100, area:6};
skill[1].table[3] = {amp:1.2, att:30, mp:120, cool:100, range:100, area:6};
skill[1].table[4] = {amp:1.3, att:30, mp:165, cool:75, range:150, area:6};
skill[1].table[5] = {amp:1.3, att:35, mp:175, cool:75, range:150, area:6};
skill[1].table[6] = {amp:1.3, att:40, mp:185, cool:75, range:150, area:6};
skill[1].table[7] = {amp:1.4, att:40, mp:230, cool:50, range:200, area:6};
skill[1].table[8] = {amp:1.4, att:45, mp:240, cool:50, range:200, area:6};
skill[1].table[9] = {amp:1.4, att:50, mp:250, cool:50, range:200, area:6};
skill[1].table[10] = {amp:1.5, att:55, mp:295, cool:25, range:250, area:6};
skill[2] = new Object();
skill[2].lv = 1;
skill[2].cool = 0;
skill[2].dmgtype = SKILL;
skill[2].keyinput = function (_arg1){
if (_arg1.keyCode == 51){
if ((((skill[2].cool == 0)) && ((skill[2].lv > 0)))){
if (dplayer.mp >= skill[2].table[skill[2].lv].mp){
dplayer.mp = (dplayer.mp - skill[2].table[skill[2].lv].mp);
skill[2].Active();
};
};
};
};
skill[2].process = function (){
if (skill[2].cool > 0){
skill[2].cool--;
};
};
skill[2].Active = function (){
main = world.getChildByName("mainball");
i = 0;
while (i < skill[2].table[skill[2].lv].max) {
orb = createNormalBall(null, 3);
orb.x = main.x;
orb.y = main.y;
orb.orb = 2;
orb.speed = (orb.speed * skill[2].table[skill[2].lv].speedamp);
orb.speedx = (orb.speed * Math.cos((((((120 / skill[2].table[skill[2].lv].max) * i) + 210) * Math.PI) / 180)));
orb.speedy = (orb.speed * Math.sin((((((120 / skill[2].table[skill[2].lv].max) * i) + 210) * Math.PI) / 180)));
orb.duration = skill[2].table[skill[2].lv].duration;
i++;
};
skill[2].cool = skill[2].table[skill[2].lv].cool;
implayer.gotoAndPlay("cast");
};
skill[2].Damage = function (_arg1){
return (damagetype.skillEx(true, _arg1, skill[2].table[skill[2].lv].amp, skill[2].table[skill[2].lv].att));
};
skill[2].init = function (){
skill[2].lv = 1;
skill[2].cool = 0;
};
skillkey.push(skill[2].keyinput);
skillprocess.push(skill[2].process);
skill[2].table = new Array();
skill[2].table[0] = {amp:0.05, att:4, mp:100, cool:250, duration:200, max:1, speedamp:0.9};
skill[2].table[1] = {amp:0.05, att:4, mp:100, cool:300, duration:275, max:4, speedamp:0.9};
skill[2].table[2] = {amp:0.05, att:4, mp:100, cool:325, duration:300, max:4, speedamp:0.9};
skill[2].table[3] = {amp:0.05, att:4, mp:100, cool:350, duration:325, max:4, speedamp:0.9};
skill[2].table[4] = {amp:0.05, att:4, mp:130, cool:375, duration:350, max:6, speedamp:1};
skill[2].table[5] = {amp:0.05, att:4, mp:130, cool:400, duration:375, max:6, speedamp:1};
skill[2].table[6] = {amp:0.05, att:4, mp:130, cool:425, duration:400, max:6, speedamp:1};
skill[2].table[7] = {amp:0.05, att:4, mp:160, cool:450, duration:425, max:8, speedamp:1.1};
skill[2].table[8] = {amp:0.05, att:4, mp:160, cool:475, duration:450, max:8, speedamp:1.1};
skill[2].table[9] = {amp:0.05, att:4, mp:160, cool:500, duration:475, max:8, speedamp:1.1};
skill[2].table[10] = {amp:0.05, att:4, mp:190, cool:525, duration:500, max:10, speedamp:1.2};
skill[3] = new Object();
skill[3].lv = 0;
skill[3].cool = 0;
skill[3].dmgtype = SKILL;
skill[3].keyinput = function (_arg1){
if (_arg1.keyCode == 52){
if ((((skill[3].cool == 0)) && ((skill[3].lv > 0)))){
if (dplayer.mp >= skill[3].table[skill[3].lv].mp){
dplayer.mp = (dplayer.mp - skill[3].table[skill[3].lv].mp);
skill[3].Active();
};
};
};
};
skill[3].process = function (){
if (skill[3].cool > 0){
skill[3].cool--;
};
};
skill[3].Active = function (){
main = world.getChildByName("mainball");
i = 0;
while (i < world.numChildren) {
if (world.getChildAt(i).knock != null){
if (world.getChildAt(i).knock == enemyKnock){
world.getChildAt(i).knock = spiritKnock;
world.getChildAt(i).dmg = ((world.getChildAt(i).dmg * skill[3].table[skill[3].lv].amp) + skill[3].table[skill[3].lv].att);
world.getChildAt(i).duration = skill[3].table[skill[3].lv].duration;
setHomingMove(world.getChildAt(i), main, ((Math.random() * 5) + 10), 20);
};
};
i++;
};
skill[3].cool = skill[3].table[skill[3].lv].cool;
implayer.gotoAndPlay("cast");
};
skill[3].Damage = function (_arg1){
return (0);
};
skill[3].init = function (){
skill[3].lv = 0;
skill[3].cool = 0;
};
skillkey.push(skill[3].keyinput);
skillprocess.push(skill[3].process);
skill[3].table = new Array();
skill[3].table[0] = {amp:0.01, att:10, mp:200, cool:600, duration:25};
skill[3].table[1] = {amp:0.01, att:10, mp:200, cool:600, duration:25};
skill[3].table[2] = {amp:0.01, att:10, mp:210, cool:575, duration:50};
skill[3].table[3] = {amp:0.01, att:10, mp:220, cool:550, duration:75};
skill[3].table[4] = {amp:0.02, att:10, mp:230, cool:525, duration:100};
skill[3].table[5] = {amp:0.02, att:10, mp:240, cool:500, duration:125};
skill[3].table[6] = {amp:0.02, att:10, mp:250, cool:475, duration:150};
skill[3].table[7] = {amp:0.03, att:10, mp:260, cool:450, duration:175};
skill[3].table[8] = {amp:0.03, att:10, mp:270, cool:425, duration:200};
skill[3].table[9] = {amp:0.03, att:10, mp:280, cool:400, duration:225};
skill[3].table[10] = {amp:0.04, att:10, mp:290, cool:375, duration:250};
skill[4] = new Object();
skill[4].lv = 0;
skill[4].cool = 0;
skill[4].dmgtype = SKILL;
skill[4].keyinput = function (_arg1){
if (_arg1.keyCode == 53){
if ((((skill[4].cool == 0)) && ((skill[4].lv > 0)))){
if (dplayer.mp >= skill[4].table[skill[4].lv].mp){
dplayer.mp = (dplayer.mp - skill[4].table[skill[4].lv].mp);
skill[4].Active();
};
};
};
};
skill[4].process = function (){
if (skill[4].cool > 0){
skill[4].cool--;
};
};
skill[4].Active = function (){
hitcount = 0;
j = 11;
while (j >= 0) {
if (getIndexAt(int((playerinworld.x / 40)), j) != null){
dmg = damagetype.skillEx(true, BlockArray[getIndexAt(int((playerinworld.x / 40)), j)].block, ((skill[4].table[skill[4].lv].amp * (11 - hitcount)) / 11), skill[4].table[skill[4].lv].att);
hitblockEx(dmg, getIndexAt(int((playerinworld.x / 40)), j), "x");
hitcount++;
};
j--;
};
pierce = new skillpierce();
pierce.x = playerinworld.x;
pierce.y = playerinworld.y;
effectgroup.addChild(pierce);
skill[4].cool = skill[4].table[skill[4].lv].cool;
i = 0;
while (i < enemygroup.numChildren) {
ei = enemygroup.getChildAt(i);
if (ei.hitTestObject(pierce)){
if (!ei.die){
dmg = damagetype.skillEx(true, ei, (skill[4].table[skill[4].lv].amp * 1), skill[4].table[skill[4].lv].att);
ei.y = (ei.y - 5);
ei.x = (ei.x - (pierce.x - enemygroup.getChildAt(i).x));
ei.hp = (ei.hp - dmg);
if (ei.hp <= 0){
ei.gotoAndPlay("die");
ei.die = true;
};
};
};
i++;
};
if (checkBossHitEx(pierce)){
if (!boss.die){
dmg = damagetype.skillEx(true, boss.boss, (skill[4].table[skill[4].lv].amp * 1), skill[4].table[skill[4].lv].att);
boss.hp = (boss.hp - dmg);
boss.showdmgcount = bossdmgflash;
boss.process = damageEffect;
if (boss.hp <= 0){
if (!boss.die){
boss.stop();
boss.boss.gotoAndPlay("die");
boss.die = true;
};
};
};
};
implayer.gotoAndPlay("cast");
};
skill[4].Damage = function (_arg1){
return (0);
};
skill[4].init = function (){
skill[4].lv = 0;
skill[4].cool = 0;
};
skillkey.push(skill[4].keyinput);
skillprocess.push(skill[4].process);
skill[4].table = new Array();
skill[4].table[0] = {amp:0.01, att:10, mp:100, cool:50};
skill[4].table[1] = {amp:0.01, att:20, mp:100, cool:50};
skill[4].table[2] = {amp:0.02, att:24, mp:106, cool:50};
skill[4].table[3] = {amp:0.03, att:26, mp:112, cool:50};
skill[4].table[4] = {amp:0.04, att:28, mp:123, cool:44};
skill[4].table[5] = {amp:0.05, att:30, mp:129, cool:44};
skill[4].table[6] = {amp:0.06, att:32, mp:135, cool:44};
skill[4].table[7] = {amp:0.07, att:34, mp:146, cool:38};
skill[4].table[8] = {amp:0.08, att:36, mp:152, cool:38};
skill[4].table[9] = {amp:0.09, att:38, mp:158, cool:38};
skill[4].table[10] = {amp:0.1, att:40, mp:169, cool:32};
skill[5] = new Object();
skill[5].lv = 0;
skill[5].cool = 0;
skill[5].dmgtype = SKILL;
skill[5].keyinput = function (_arg1){
if (_arg1.keyCode == 54){
if ((((skill[5].cool == 0)) && ((skill[5].lv > 0)))){
if (dplayer.mp >= skill[5].table[skill[5].lv].mp){
dplayer.mp = (dplayer.mp - skill[5].table[skill[5].lv].mp);
skill[5].Active();
};
};
};
};
skill[5].process = function (){
if (skill[5].cool > 0){
skill[5].cool--;
};
if (skill[5].duration > 0){
if ((skill[5].duration % 3) == 0){
heal = new skillimmotal();
heal.x = playerinworld.x;
heal.y = playerinworld.y;
world.addChild(heal);
};
dplayer.mp = (dplayer.mp + (dplayer.MPRecovery() * skill[5].table[skill[5].lv].amp));
dplayer.hp = (dplayer.hp + (dplayer.HPRecovery() * skill[5].table[skill[5].lv].amp));
if (dplayer.mp > dplayer.MPMax()){
dplayer.mp = dplayer.MPMax();
};
if (dplayer.hp > dplayer.HPMax()){
dplayer.hp = dplayer.HPMax();
};
skill[5].duration--;
};
};
skill[5].Active = function (){
immotal = new immotalgfx();
immotal.x = playerinworld.x;
immotal.y = playerinworld.y;
world.addChild(immotal);
skill[5].duration = skill[5].table[skill[5].lv].duration;
skill[5].cool = skill[5].table[skill[5].lv].cool;
implayer.gotoAndPlay("cast");
};
skill[5].Damage = function (_arg1){
return (0);
};
skill[5].init = function (){
skill[5].lv = 0;
skill[5].cool = 0;
};
skillkey.push(skill[5].keyinput);
skillprocess.push(skill[5].process);
skill[5].table = new Array();
skill[5].table[0] = {amp:0.01, att:0, mp:220, cool:2000, duration:525};
skill[5].table[1] = {amp:0.01, att:0, mp:220, cool:2000, duration:525};
skill[5].table[2] = {amp:0.02, att:0, mp:240, cool:2000, duration:550};
skill[5].table[3] = {amp:0.03, att:0, mp:260, cool:2000, duration:575};
skill[5].table[4] = {amp:0.04, att:0, mp:280, cool:2000, duration:600};
skill[5].table[5] = {amp:0.05, att:0, mp:300, cool:2000, duration:625};
skill[5].table[6] = {amp:0.06, att:0, mp:320, cool:2000, duration:650};
skill[5].table[7] = {amp:0.07, att:0, mp:340, cool:2000, duration:675};
skill[5].table[8] = {amp:0.08, att:0, mp:360, cool:2000, duration:700};
skill[5].table[9] = {amp:0.09, att:0, mp:380, cool:2000, duration:725};
skill[5].table[10] = {amp:0.1, att:0, mp:400, cool:2000, duration:750};
if (MovieClip(parent).con){
so = SharedObject.getLocal("continue");
if (so.data.skill != null){
i = 0;
while (i < 12) {
skill[i].lv = so.data.skill[i].lv;
i++;
};
};
};
bossctr = new Array();
dboss = new Array();
dboss[5] = {hp:1000};
dboss[10] = {hp:2000};
dboss[15] = {hp:15000};
dboss[20] = {hp:20000};
dboss[25] = {hp:2000};
dboss[26] = {hp:24000};
damageEffect = function (){
boss.showdmgcount--;
boss.transform.colorTransform = new ColorTransform(1, 0, 0, 1, 150, 0, 0);
if (boss.showdmgcount == 0){
boss.transform.colorTransform = new ColorTransform();
boss.process = null;
};
};
initBoss = function (_arg1){
if ((((_arg1 == 25)) && (!((boss == null))))){
boss25Create(_arg1);
};
if ((((_arg1 == 26)) && (!((boss == null))))){
boss26Create(_arg1);
};
};
boss5AttTimer = function (){
return ((25 + int((Math.random() * 50))));
};
boss5_atkspd = boss5AttTimer();
boss5_atkran = 75;
boss5_dmg = 20;
bossctr[5] = function (){
if (boss5_atkspd > 0){
boss5_atkspd--;
};
this.dmg = boss15_dmg;
this.dmg = boss5_dmg;
if (this.die){
return;
};
if (boss.stopcount > 0){
boss.stopcount--;
if (boss.stopcount == 0){
boss.play();
};
};
if ((((boss5_atkspd <= 0)) && ((int((Math.random() * 100)) <= boss5_atkran)))){
boss.stopcount = 25;
boss.stop();
boss.boss.gotoAndPlay("attack");
boss5_atkspd = boss5AttTimer();
bullet = new powerfog();
r = int((Math.random() * 3));
p = new Point(boss.boss[("gun" + r)].x, boss.boss[("gun" + r)].y);
p = boss.boss.localToGlobal(p);
p = boss.globalToLocal(p);
bullet.x = p.x;
bullet.y = p.y;
bullet.dmg = boss5_dmg;
bullet.knock = fogKnock;
p.x = ((bullet.x + (Math.random() * 200)) - 100);
p.y = ((bullet.y - (Math.random() * 200)) - 100);
bullet.goto = p;
setHomingMove(bullet, p, ((Math.random() * 3) + 1), 3);
world.addChild(bullet);
};
enemyKnockComposBoss(this);
};
fogKnock = function (){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (this.y < this.goto.y){
_local1 = (playerinworld.x - this.x);
_local2 = (playerinworld.y - this.y);
_local3 = Math.sqrt(((_local1 * _local1) + (_local2 * _local2)));
_local4 = (_local1 / _local3);
_local5 = (_local2 / _local3);
setLineMove(this, (_local4 * 10), (_local5 * 10));
this.gotoAndPlay("active");
this.rotation = 180;
this.knock = enemyKnockEx;
};
};
boss10AttTimer = function (){
return ((50 + int((Math.random() * 75))));
};
boss10_atkspd = boss10AttTimer();
boss10_atkran = 75;
boss10_atkran2 = 55;
boss10_dmg = 10;
bossctr[10] = function (){
if (boss10_atkspd > 0){
boss10_atkspd--;
};
this.dmg = boss10_dmg;
if (this.die){
return;
};
if (boss.stopcount > 0){
boss.stopcount--;
if (boss.stopcount == 0){
boss.play();
};
};
if ((((boss10_atkspd <= 0)) && ((int((Math.random() * 100)) <= boss10_atkran)))){
boss.stopcount = 25;
boss.stop();
boss.boss.gotoAndPlay("attack");
boss10_atkspd = boss10AttTimer();
bullet = new boss10bullet();
r = 0;
p = new Point(boss.boss[("gun" + r)].x, boss.boss[("gun" + r)].y);
p = boss.boss.localToGlobal(p);
p = boss.globalToLocal(p);
bullet.x = p.x;
bullet.y = p.y;
bullet.dmg = 10;
bullet.knock = enemyKnock;
setLineMove(bullet, 0, 10);
world.addChild(bullet);
bullet = new boss10bullet();
r = 0;
p = new Point(boss.boss[("gun" + r)].x, boss.boss[("gun" + r)].y);
p = boss.boss.localToGlobal(p);
p = boss.globalToLocal(p);
bullet.x = p.x;
bullet.y = p.y;
bullet.dmg = 10;
bullet.knock = enemyKnock;
setLineMove(bullet, 3, 10);
world.addChild(bullet);
bullet = new boss10bullet();
r = 0;
p = new Point(boss.boss[("gun" + r)].x, boss.boss[("gun" + r)].y);
p = boss.boss.localToGlobal(p);
p = boss.globalToLocal(p);
bullet.x = p.x;
bullet.y = p.y;
bullet.dmg = 10;
bullet.knock = enemyKnock;
setLineMove(bullet, -3, 10);
world.addChild(bullet);
};
if (((((framecount % 100) == 0)) && ((int((Math.random() * 100)) <= boss10_atkran2)))){
bullet = new enemyboss10();
r = int((Math.random() * 3));
p = new Point(boss.boss[("gun" + r)].x, boss.boss[("gun" + r)].y);
p = boss.boss.localToGlobal(p);
p = boss.globalToLocal(p);
bullet.x = p.x;
bullet.y = p.y;
bullet.dmg = 10;
bullet.knock = boss10EnKnock;
p.x = ((bullet.x + (Math.random() * 200)) - 100);
p.y = (bullet.y - 200);
bullet.goto = p;
bullet.hp = 10;
bullet.framecount = int((Math.random() * 75));
bullet.process = boss10EnProcess;
setHomingMove(bullet, p, ((Math.random() * 20) + 1), 1);
enemygroup.addChild(bullet);
};
enemyKnockComposBoss(this);
};
boss10EnProcess = function (){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (this.die){
return;
};
this.framecount++;
if ((this.framecount % 100) == 0){
_local1 = (playerinworld.x - this.x);
_local2 = (playerinworld.y - this.y);
_local3 = Math.sqrt(((_local1 * _local1) + (_local2 * _local2)));
_local4 = (_local1 / _local3);
_local5 = (_local2 / _local3);
_local6 = new sbullet();
_local6.x = this.x;
_local6.y = this.y;
_local6.dmg = 10;
_local6.knock = enemyKnock;
setLineMove(_local6, (_local4 * 10), (_local5 * 10));
world.addChild(_local6);
};
};
boss10EnKnock = function (){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (this.y < this.goto.y){
_local1 = (playerinworld.x - this.x);
_local2 = (playerinworld.y - this.y);
_local3 = Math.sqrt(((_local1 * _local1) + (_local2 * _local2)));
_local4 = (_local1 / _local3);
_local5 = (_local2 / _local3);
setLineMove(this, (_local4 * 5), (_local5 * 5));
this.knock = enemyKnockEx;
};
};
boss15AttTimer = function (){
return ((25 + int((Math.random() * 50))));
};
boss15_atkspd = boss15AttTimer();
boss15_atkran = 75;
boss15_atkran2 = 75;
boss15_dmg = 20;
bossctr[15] = function (){
if (boss15_atkspd > 0){
boss15_atkspd--;
};
this.dmg = boss15_dmg;
if (this.die){
return;
};
if ((((boss15_atkspd <= 0)) && ((int((Math.random() * 100)) <= boss15_atkran)))){
boss.boss.gotoAndPlay("attack");
boss15_atkspd = boss15AttTimer();
i = 0;
while (i < 5) {
bullet = new boss15bullet();
r = 0;
p = new Point(boss.boss[("gun" + r)].x, boss.boss[("gun" + r)].y);
p = boss.boss.localToGlobal(p);
p = boss.globalToLocal(p);
bullet.x = p.x;
bullet.y = p.y;
bullet.dmg = boss15_dmg;
bullet.knock = enemyKnockNoWipe;
dx = (playerinworld.x - bullet.x);
dy = (playerinworld.y - bullet.y);
abs = Math.sqrt(((dx * dx) + (dy * dy)));
ux = (dx / abs);
uy = (dy / abs);
normalang = Math.atan2(uy, ux);
ux = Math.cos((normalang + (((i - 3) * Math.PI) / 16)));
uy = Math.sin((normalang + (((i - 3) * Math.PI) / 16)));
setLineMove(bullet, (ux * 10), (uy * 10));
world.addChild(bullet);
i++;
};
};
if (((((framecount % 50) == 0)) && ((int((Math.random() * 100)) <= boss15_atkran2)))){
i = 0;
while (i <= (32 * 12)) {
if (BlockArray[i] == null){
BlockArray[i] = new Object();
BlockArray[i].btype = 0;
BlockArray[i].im = false;
};
if ((((BlockArray[i].btype == 0)) || ((BlockArray[i].hp <= 0)))){
playerinworld = new Point(player.x, player.y);
playerinworld = world.globalToLocal(playerinworld);
if (((((int((i % 32)) * 40) > gamearea[gamelevel].l)) && (((int((i % 32)) * 40) < (gamearea[gamelevel].r - 40))))){
if (((((((playerinworld.x + 60) > (int((i % 32)) * 40))) && (((playerinworld.x - 100) < (int((i % 32)) * 40))))) && (((playerinworld.y - 160) < (int((i / 32)) * 40))))){
tempblock = new block();
BlockArray[i].btype = (int((Math.random() * 4)) + 1);
BlockArray[i].hpmax = block[(BlockArray[i].btype + 1)][gamelevel].hpmax;
BlockArray[i].hp = block[(BlockArray[i].btype + 1)][gamelevel].hpmax;
BlockArray[i].im = false;
tempblock.x = (int((i % 32)) * 40);
tempblock.y = (int((i / 32)) * 40);
tempblock.objecttype = 0;
tempblock.dmg.visible = false;
tempblock.gotoAndStop((BlockArray[i].btype + 1));
BlockArray[i].block = tempblock;
blockgroup.addChild(tempblock);
if (this.boss.hit.hitTestObject(tempblock)){
tempblock.visible = false;
BlockArray[i].hp = 0;
BlockArray[i].btype = 0;
} else {
if (player.hitTestObject(tempblock)){
tempblock.visible = false;
BlockArray[i].hp = 0;
BlockArray[i].btype = 0;
} else {
break;
};
};
};
};
};
i++;
};
};
enemyKnockComposBoss(this);
};
boss20AttTimer = function (){
return ((25 + int((Math.random() * 100))));
};
boss20_atkspd = boss20AttTimer();
boss20_atkran = 80;
boss20_atkran2 = 50;
boss20_dmg = 2;
bossctr[20] = function (){
if (boss20_atkspd > 0){
boss20_atkspd--;
};
this.dmg = boss20_dmg;
if (this.die){
return;
};
if (boss.stopcount > 0){
boss.stopcount--;
if (boss.stopcount == 0){
boss.play();
};
};
if ((((boss20_atkspd <= 0)) && ((int((Math.random() * 100)) <= boss20_atkran)))){
boss.stopcount = 25;
boss.stop();
boss.boss.gotoAndPlay("attack");
boss20_atkspd = boss20AttTimer();
r = 0;
bullet = new boss20laser();
p = new Point(boss.boss[("gun" + r)].x, boss.boss[("gun" + r)].y);
p = boss.boss.localToGlobal(p);
p = boss.globalToLocal(p);
bullet.x = (((p.x + Math.random()) + (Math.random() * 500)) - 250);
bullet.y = (p.y - 1600);
bullet.dmg = (boss20_dmg + 3);
bullet.knock = enemyKnockIm;
bullet.hp = 200000;
bullet.framecount = int((Math.random() * 150));
setLineMove(bullet, 0, 50);
world.addChild(bullet);
};
if (((((framecount % 75) == 0)) && ((int((Math.random() * 100)) <= boss20_atkran2)))){
r = 0;
bullet = new enemyboss20();
p = new Point(boss.boss[("gun" + r)].x, boss.boss[("gun" + r)].y);
p = boss.boss.localToGlobal(p);
p = boss.globalToLocal(p);
bullet.x = p.x;
bullet.y = p.y;
bullet.dmg = 10;
bullet.knock = enemyKnockEx;
p.x = ((bullet.x + (Math.random() * 200)) - 100);
p.y = (bullet.y - 200);
bullet.goto = p;
bullet.hp = 15;
bullet.framecount = int((Math.random() * 150));
bullet.process = boss20EnProcess;
setLineMove(bullet, 0, 3);
enemygroup.addChild(bullet);
bullet = new enemyboss20();
p = new Point(boss.boss[("gun" + r)].x, boss.boss[("gun" + r)].y);
p = boss.boss.localToGlobal(p);
p = boss.globalToLocal(p);
bullet.x = p.x;
bullet.y = p.y;
bullet.dmg = 10;
bullet.knock = enemyKnockEx;
p.x = ((bullet.x + (Math.random() * 200)) - 100);
p.y = (bullet.y - 200);
bullet.goto = p;
bullet.hp = 15;
bullet.framecount = int((Math.random() * 150));
bullet.process = boss20EnProcess;
setLineMove(bullet, -3, 3);
enemygroup.addChild(bullet);
bullet = new enemyboss20();
p = new Point(boss.boss[("gun" + r)].x, boss.boss[("gun" + r)].y);
p = boss.boss.localToGlobal(p);
p = boss.globalToLocal(p);
bullet.x = p.x;
bullet.y = p.y;
bullet.dmg = 10;
bullet.knock = enemyKnockEx;
p.x = ((bullet.x + (Math.random() * 200)) - 100);
p.y = (bullet.y - 200);
bullet.goto = p;
bullet.hp = 15;
bullet.framecount = int((Math.random() * 150));
bullet.process = boss20EnProcess;
setLineMove(bullet, 3, 3);
enemygroup.addChild(bullet);
};
enemyKnockComposBoss(this);
};
boss20EnProcess = function (){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (this.die){
return;
};
this.framecount++;
if ((this.framecount % 100) == 0){
_local1 = (playerinworld.x - this.x);
_local2 = (playerinworld.y - this.y);
_local3 = Math.sqrt(((_local1 * _local1) + (_local2 * _local2)));
_local4 = (_local1 / _local3);
_local5 = (_local2 / _local3);
_local6 = new boss20homing();
_local6.x = this.x;
_local6.y = this.y;
_local6.dmg = 5;
_local6.hp = 1;
_local6.knock = enemyKnock;
_local6.die = false;
p = new Point(playerinworld.x, (playerinworld.y + 20));
setHomingMove(_local6, p, 15, 7);
enemygroup.addChild(_local6);
};
};
boss25_dmg = 20;
bossctr[25] = function (){
this.dmg = boss25_dmg;
enemyKnockComposBoss(this);
};
boss25Create = function (_arg1){
var lv = _arg1;
if (boss.stopcount > 0){
boss.stopcount--;
if (boss.stopcount == 0){
boss.play();
};
};
if (((((framecount % 25) == 0)) && ((boss.stopcount == 0)))){
if ((Math.random() * 100) < 33){
boss.stopcount = (25 + int((Math.random() * 50)));
boss.stop();
};
};
i = 0;
while (i < 3) {
bullet = new boss25powerball();
r = i;
p = new Point(boss.boss[("gun" + r)].x, boss.boss[("gun" + r)].y);
p = boss.boss.localToGlobal(p);
p = boss.globalToLocal(p);
bullet.r = r;
bullet.x = p.x;
bullet.y = p.y;
bullet.dmg = 1;
bullet.knock = enemyKnockIm;
bullet.process = function (){
if (boss.die){
this.visible = false;
this.knock = null;
this.mot = null;
this.dmg = 0;
} else {
if (this.hitTestObject(boss.boss[("gun" + this.r)])){
this.sy = Math.abs(this.sy);
};
if (this.hitTestObject(player)){
this.sy = -(Math.abs(this.sy));
};
p = new Point(boss.boss[("gun" + this.r)].x, boss.boss[("gun" + this.r)].y);
p = boss.boss.localToGlobal(p);
p = boss.globalToLocal(p);
this.x = p.x;
};
};
setYBounceMove(bullet, ((i + 1) * 5), 10, 450);
boss[("ball" + i)] = enemygroup.addChild(bullet);
i++;
};
};
boss26AttTimer = function (){
return ((50 + int((Math.random() * 100))));
};
boss26_atkspd = boss26AttTimer();
boss26_atkran = 80;
boss26_atkran2 = 35;
boss26_dmg = 6;
bossctr[26] = function (){
if (boss26_atkspd > 0){
boss26_atkspd--;
};
if (!boss.die){
this.dmg = boss26_dmg;
if (boss.stopcount > 0){
boss.stopcount--;
if (boss.stopcount == 0){
boss.play();
};
};
if ((((boss26_atkspd <= 0)) && ((int((Math.random() * 100)) <= boss26_atkran)))){
boss.stopcount = 25;
boss.stop();
boss.boss.gotoAndPlay("attack");
boss26_atkspd = boss26AttTimer();
i = int((boss.boss.x / 40));
if (BlockArray[i] == null){
BlockArray[i] = new Object();
BlockArray[i].btype = 0;
BlockArray[i].im = false;
tempblock = new block();
btype = new Array(8, 10, 11);
BlockArray[i].btype = (btype[int((Math.random() * 3))] - 1);
BlockArray[i].hp = block[(BlockArray[i].btype + 1)][gamelevel].hpmax;
tempblock.x = (int((i % 32)) * 40);
tempblock.y = (int((i / 32)) * 40);
tempblock.objecttype = 0;
tempblock.extracontrol = bAttack[(BlockArray[i].btype + 1)];
tempblock.dmg.visible = false;
tempblock.gotoAndStop((BlockArray[i].btype + 1));
BlockArray[i].block = tempblock;
BlockArray[i].hpmax = block[(BlockArray[i].btype + 1)][gamelevel].hpmax;
BlockArray[i].hp = block[(BlockArray[i].btype + 1)][gamelevel].hpmax;
blockgroup.addChild(tempblock);
};
};
if (((((framecount % 175) == 0)) && ((int((Math.random() * 100)) <= boss26_atkran2)))){
boss.stopcount = 25;
boss.stop();
boss.boss.gotoAndPlay("attack");
i = 0;
while (i <= (32 * 12)) {
if ((i % 32) == int((boss.boss.x / 40))){
if (BlockArray[i] == null){
BlockArray[i] = new Object();
BlockArray[i].btype = 0;
};
if ((((BlockArray[i].btype == 0)) || ((BlockArray[i].hp <= 0)))){
tempblock = new block();
BlockArray[i].btype = (int((Math.random() * 4)) + 1);
BlockArray[i].hpmax = block[(BlockArray[i].btype + 1)][gamelevel].hpmax;
BlockArray[i].hp = block[(BlockArray[i].btype + 1)][gamelevel].hpmax;
BlockArray[i].im = false;
tempblock.x = (int((i % 32)) * 40);
tempblock.y = (int((i / 32)) * 40);
tempblock.objecttype = 0;
tempblock.dmg.visible = false;
tempblock.gotoAndStop((BlockArray[i].btype + 1));
BlockArray[i].block = tempblock;
blockgroup.addChild(tempblock);
if (this.boss.hit.hitTestObject(tempblock)){
} else {
if (player.hitTestObject(tempblock)){
tempblock.visible = false;
BlockArray[i].hp = 0;
BlockArray[i].btype = 0;
};
};
};
};
i++;
};
ray = new boss26ray();
ray.x = boss.boss.x;
ray.y = 240;
ray.knock = enemyKnockIm;
ray.dmg = 5;
enemygroup.addChild(ray);
};
enemyKnockComposBoss(this);
};
};
boss26Create = function (_arg1){
var lv = _arg1;
i = 0;
while (i < 3) {
bullet = new boss25powerball();
r = i;
p = new Point(boss.boss[("gun" + r)].x, boss.boss[("gun" + r)].y);
p = boss.boss.localToGlobal(p);
p = boss.globalToLocal(p);
bullet.r = r;
bullet.x = p.x;
bullet.y = p.y;
bullet.dmg = 5;
bullet.knock = enemyKnockIm;
bullet.process = function (){
if (boss.die){
this.visible = false;
this.knock = null;
this.mot = null;
this.dmg = 0;
} else {
if (this.hitTestObject(boss.boss[("gun" + this.r)])){
this.sy = Math.abs(this.sy);
};
if (this.hitTestObject(player)){
this.sy = -(Math.abs(this.sy));
};
p = new Point(boss.boss[("gun" + this.r)].x, boss.boss[("gun" + this.r)].y);
p = boss.boss.localToGlobal(p);
p = boss.globalToLocal(p);
this.x = p.x;
};
};
setYBounceMove(bullet, ((i + 1) * 5), 10, 450);
boss[("ball" + i)] = enemygroup.addChild(bullet);
i++;
};
};
spab = function (){
var bullet:*;
var hitcount:*;
var sbossdie:*;
if ((framecount % 20) == 0){
if (gamelevel > 5){
bullet = new spiritbullet();
bullet.x = this.x;
bullet.y = this.y;
bullet.dmg = ((60 * skill[3].table[skill[3].lv].amp) + skill[3].table[skill[3].lv].att);
bullet.knock = spiritKnock;
setLineMove(bullet, 0, -10);
world.addChild(bullet);
};
if ((((gamelevel > 10)) && ((int((Math.random() * 100)) <= 80)))){
bullet = new spiritbullet2();
bullet.x = this.x;
bullet.y = this.y;
bullet.dmg = ((30 * skill[3].table[skill[3].lv].amp) + skill[3].table[skill[3].lv].att);
bullet.knock = spiritKnock;
setLineMove(bullet, 3, -10);
world.addChild(bullet);
bullet = new spiritbullet2();
bullet.x = this.x;
bullet.y = this.y;
bullet.dmg = ((100 * skill[3].table[skill[3].lv].amp) + skill[3].table[skill[3].lv].att);
bullet.knock = spiritKnock;
setLineMove(bullet, -3, -10);
world.addChild(bullet);
};
if ((((int((Math.random() * 100)) < 50)) && ((gamelevel > 20)))){
bullet = new spiritlaser();
bullet.x = this.x;
bullet.y = this.y;
bullet.process = function (){
bullet.x = spirit.x;
bullet.y = spirit.y;
};
effectgroup.addChild(bullet);
hitcount = 0;
j = 11;
while (j >= 0) {
if (getIndexAt(int((bullet.x / 40)), j) != null){
dmg = (damagetype.skillEx(true, BlockArray[getIndexAt(int((bullet.x / 40)), j)].block, ((skill[4].table[skill[4].lv].amp * (11 - hitcount)) / 11), skill[4].table[skill[4].lv].att) / 2);
hitblockEx(dmg, getIndexAt(int((bullet.x / 40)), j), "x");
hitcount = (hitcount + 1);
};
j--;
};
i = 0;
while (i < enemygroup.numChildren) {
ei = enemygroup.getChildAt(i);
if (ei.hitTestObject(bullet)){
if (!ei.die){
dmg = damagetype.skillEx(true, ei, (skill[4].table[skill[4].lv].amp * 1), skill[4].table[skill[4].lv].att);
ei.y = (ei.y - 5);
ei.x = (ei.x - (bullet.x - enemygroup.getChildAt(i).x));
ei.hp = (ei.hp - dmg);
if (ei.hp <= 0){
ei.gotoAndPlay("die");
ei.die = true;
};
};
};
i++;
};
if (boss != null){
if (checkBossHitEx(bullet)){
if (!boss.die){
dmg = damagetype.skillEx(true, boss.boss, (skill[4].table[skill[4].lv].amp * 1), skill[4].table[skill[4].lv].att);
boss.hp = (boss.hp - dmg);
boss.showdmgcount = bossdmgflash;
boss.process = damageEffect;
if (boss.hp <= 0){
if (!boss.die){
boss.stop();
boss.boss.gotoAndPlay("die");
boss.die = true;
sbossdie = new bossdie();
sbossdie.play(1, 1);
};
};
};
};
};
};
};
};
dif_lv = new Array();
dif_lv[0] = {hp:1, hpadd:0, frq:1, dmg:1};
dif_lv[1] = {hp:0.8, hpadd:10, frq:1, dmg:1};
dif_lv[2] = {hp:1, hpadd:10, frq:1, dmg:1.1};
dif_lv[3] = {hp:1.4, hpadd:10, frq:1, dmg:1.2};
dif_lv[4] = {hp:1.6, hpadd:10, frq:1, dmg:1.3};
dif_lv[5] = {hp:1.8, hpadd:10, frq:1, dmg:1};
dif_lv[6] = {hp:1.8, hpadd:20, frq:1, dmg:1.5};
dif_lv[7] = {hp:2, hpadd:20, frq:1, dmg:1.6};
dif_lv[8] = {hp:2.2, hpadd:20, frq:1, dmg:1.7};
dif_lv[9] = {hp:2.4, hpadd:20, frq:1, dmg:1.8};
dif_lv[10] = {hp:2.6, hpadd:20, frq:1, dmg:1};
dif_lv[11] = {hp:2.6, hpadd:30, frq:1, dmg:2};
dif_lv[12] = {hp:2.8, hpadd:30, frq:1, dmg:2.1};
dif_lv[13] = {hp:3, hpadd:30, frq:1, dmg:2.2};
dif_lv[14] = {hp:3.2, hpadd:30, frq:1, dmg:2.3};
dif_lv[15] = {hp:3.4, hpadd:30, frq:1, dmg:1};
dif_lv[16] = {hp:3.4, hpadd:40, frq:1, dmg:2.5};
dif_lv[17] = {hp:3.6, hpadd:40, frq:1, dmg:2.6};
dif_lv[18] = {hp:3.8, hpadd:40, frq:1, dmg:2.7};
dif_lv[19] = {hp:4, hpadd:40, frq:1, dmg:2.8};
dif_lv[20] = {hp:4.2, hpadd:40, frq:1, dmg:1};
dif_lv[21] = {hp:4.2, hpadd:50, frq:1, dmg:3};
dif_lv[22] = {hp:4.4, hpadd:50, frq:1, dmg:3.1};
dif_lv[23] = {hp:4.6, hpadd:50, frq:1, dmg:3.2};
dif_lv[24] = {hp:4.8, hpadd:50, frq:1, dmg:3.3};
dif_lv[25] = {hp:5, hpadd:50, frq:1, dmg:1};
dif_lv[26] = {hp:0.5, hpadd:0, frq:1, dmg:1};
dif_lv[27] = {hp:0.5, hpadd:0, frq:1, dmg:1};
bAttack = new Array();
blockdata = new Array();
ini_b02_hp = 20;
ini_b03_hp = 30;
ini_b04_hp = 50;
ini_b05_hp = 80;
ini_b06_hp = 120;
block[2] = new Array();
i = 0;
while (i < 27) {
b02_hp = (ini_b02_hp * dif_lv[i].hp);
block[2][i] = {hpmax:b02_hp};
i++;
};
block[3] = new Array();
i = 0;
while (i < 27) {
b03_hp = (ini_b03_hp * dif_lv[i].hp);
block[3][i] = {hpmax:b03_hp};
i++;
};
block[4] = new Array();
i = 0;
while (i < 27) {
b04_hp = (ini_b04_hp * dif_lv[i].hp);
block[4][i] = {hpmax:b04_hp};
i++;
};
block[5] = new Array();
i = 0;
while (i < 27) {
b05_hp = (ini_b05_hp * dif_lv[i].hp);
block[5][i] = {hpmax:b05_hp};
i++;
};
block[6] = new Array();
i = 0;
while (i < 27) {
b06_hp = (ini_b06_hp * dif_lv[i].hp);
block[6][i] = {hpmax:b06_hp};
i++;
};
block[7] = new Array();
ini_b07_hp = 50;
ini_b07_dmg = 10;
ini_b07_frq = 100;
i = 0;
while (i < 27) {
b07_hp = ((ini_b07_hp + dif_lv[i].hpadd) * dif_lv[i].hp);
b07_dmg = (ini_b07_dmg * dif_lv[i].dmg);
b07_frq = int((ini_b07_frq * dif_lv[i].frq));
block[7][i] = {hpmax:b07_hp, dmg:b07_dmg, frq:b07_frq};
i++;
};
bAttack[7] = function (){
if (this.visible){
if (this.framecount == null){
this.framecount = int((Math.random() * 100));
};
if (this.framecount > 1000){
this.framecount = 0;
};
this.framecount++;
if ((this.framecount % block[7][gamelevel].frq) == 0){
bullet = new sbullet();
bullet.x = (this.x + 20);
bullet.y = (this.y + 20);
bullet.dmg = (block[7][gamelevel].dmg * dplayer.luckEffect());
bullet.knock = enemyKnock;
setLineMove(bullet, 0, 10);
world.addChild(bullet);
};
};
};
block[8] = new Array();
ini_b08_hp = 50;
ini_b08_dmg = 10;
ini_b08_frq = 80;
i = 0;
while (i < 27) {
b08_hp = ((ini_b08_hp + dif_lv[i].hpadd) * dif_lv[i].hp);
b08_dmg = (ini_b08_dmg * dif_lv[i].dmg);
b08_frq = int((ini_b08_frq * dif_lv[i].frq));
block[8][i] = {hpmax:b08_hp, dmg:b08_dmg, frq:b08_frq};
i++;
};
bAttack[8] = function (){
if (this.visible){
if (this.framecount == null){
this.framecount = int((Math.random() * 100));
};
if (this.framecount > 1000){
this.framecount = 0;
};
this.framecount++;
if ((this.framecount % block[8][gamelevel].frq) == 0){
normalang = (normalang = ((((Math.random() * 90) + 45) * Math.PI) / 180));
ux = Math.cos(normalang);
uy = Math.sin(normalang);
bullet = new sbullet();
bullet.x = (this.x + 20);
bullet.y = (this.y + 20);
bullet.dmg = (block[8][gamelevel].dmg * dplayer.luckEffect());
bullet.knock = enemyKnock;
setLineMove(bullet, (ux * 4), (uy * 4));
world.addChild(bullet);
};
};
};
block[9] = new Array();
ini_b09_hp = 60;
ini_b09_dmg = 10;
ini_b09_frq = 100;
i = 0;
while (i < 27) {
b09_hp = ((ini_b09_hp + dif_lv[i].hpadd) * dif_lv[i].hp);
b09_dmg = (ini_b09_dmg * dif_lv[i].dmg);
b09_frq = int((ini_b09_frq * dif_lv[i].frq));
block[9][i] = {hpmax:b09_hp, dmg:b09_dmg, frq:b09_frq};
i++;
};
bAttack[9] = function (){
if (this.visible){
if (this.framecount == null){
this.framecount = int((Math.random() * 100));
};
if (this.framecount > 1000){
this.framecount = 0;
};
this.framecount++;
if ((this.framecount % block[9][gamelevel].frq) == 0){
bullet = new sbullet();
bullet.x = (this.x + 20);
bullet.y = (this.y + 20);
bullet.dmg = (block[9][gamelevel].dmg * dplayer.luckEffect());
bullet.knock = enemyKnock;
setLineMove(bullet, 0, 10);
world.addChild(bullet);
bullet = new sbullet();
bullet.x = (this.x + 20);
bullet.y = (this.y + 20);
bullet.dmg = (block[9][gamelevel].dmg * dplayer.luckEffect());
bullet.knock = enemyKnock;
setLineMove(bullet, 5, 10);
world.addChild(bullet);
bullet = new sbullet();
bullet.x = (this.x + 20);
bullet.y = (this.y + 20);
bullet.dmg = (block[9][gamelevel].dmg * dplayer.luckEffect());
bullet.knock = enemyKnock;
setLineMove(bullet, -5, 10);
world.addChild(bullet);
};
};
};
block[10] = new Array();
ini_b10_hp = 60;
ini_b10_dmg = 10;
ini_b10_frq = 125;
i = 0;
while (i < 27) {
b10_hp = ((ini_b10_hp + dif_lv[i].hpadd) * dif_lv[i].hp);
b10_dmg = (ini_b10_dmg * dif_lv[i].dmg);
b10_frq = int((ini_b10_frq * dif_lv[i].frq));
block[10][i] = {hpmax:b10_hp, dmg:b10_dmg, frq:b10_frq};
i++;
};
bAttack[10] = function (){
if (this.visible){
if (this.framecount == null){
this.framecount = int((Math.random() * 100));
};
if (this.framecount > 1000){
this.framecount = 0;
};
this.framecount++;
if ((this.framecount % block[10][gamelevel].frq) == 0){
dx = ((playerinworld.x - this.x) - 20);
dy = ((playerinworld.y - this.y) - 20);
abs = Math.sqrt(((dx * dx) + (dy * dy)));
ux = (dx / abs);
uy = (dy / abs);
normalang = Math.atan2(uy, ux);
ux = Math.cos((normalang + ((-1 * Math.PI) / 16)));
uy = Math.sin((normalang + ((-1 * Math.PI) / 16)));
bullet = new sbullet();
bullet.x = (this.x + 20);
bullet.y = (this.y + 20);
bullet.dmg = (block[10][gamelevel].dmg * dplayer.luckEffect());
bullet.knock = enemyKnock;
setLineMove(bullet, (ux * 5), (uy * 5));
world.addChild(bullet);
ux = Math.cos((normalang + ((0 * Math.PI) / 16)));
uy = Math.sin((normalang + ((0 * Math.PI) / 16)));
bullet = new sbullet();
bullet.x = (this.x + 20);
bullet.y = (this.y + 20);
bullet.dmg = (block[10][gamelevel].dmg * dplayer.luckEffect());
bullet.knock = enemyKnock;
setLineMove(bullet, (ux * 5), (uy * 5));
world.addChild(bullet);
ux = Math.cos((normalang + ((1 * Math.PI) / 16)));
uy = Math.sin((normalang + ((1 * Math.PI) / 16)));
bullet = new sbullet();
bullet.x = (this.x + 20);
bullet.y = (this.y + 20);
bullet.dmg = (block[10][gamelevel].dmg * dplayer.luckEffect());
bullet.knock = enemyKnock;
setLineMove(bullet, (ux * 5), (uy * 5));
world.addChild(bullet);
};
};
};
block[11] = new Array();
ini_b11_hp = 60;
ini_b11_dmg = 10;
ini_b11_frq = 100;
i = 0;
while (i < 27) {
b11_hp = ((ini_b11_hp + dif_lv[i].hpadd) * dif_lv[i].hp);
b11_dmg = (ini_b11_dmg * dif_lv[i].dmg);
b11_frq = int((ini_b11_frq * dif_lv[i].frq));
block[11][i] = {hpmax:b11_hp, dmg:b11_dmg, frq:b11_frq};
i++;
};
bAttack[11] = function (){
if (this.visible){
if (this.framecount == null){
this.framecount = int((Math.random() * 100));
};
if (this.framecount > 1000){
this.framecount = 0;
};
this.framecount++;
if ((this.framecount % block[11][gamelevel].frq) == 0){
dx = ((playerinworld.x - this.x) - 20);
dy = ((playerinworld.y - this.y) - 20);
abs = Math.sqrt(((dx * dx) + (dy * dy)));
ux = (dx / abs);
uy = (dy / abs);
normalang = Math.atan2(uy, ux);
ux = Math.cos((normalang + ((0 * Math.PI) / 16)));
uy = Math.sin((normalang + ((0 * Math.PI) / 16)));
bullet = new sbullet();
bullet.x = (this.x + 20);
bullet.y = (this.y + 20);
bullet.dmg = (block[11][gamelevel].dmg * dplayer.luckEffect());
bullet.knock = enemyKnock;
setLineMove(bullet, (ux * 5), (uy * 5));
world.addChild(bullet);
};
};
};
block[12] = new Array();
ini_b12_hp = 60;
ini_b12_dmg = 5;
ini_b12_frq = 100;
i = 0;
while (i < 27) {
b12_hp = ((ini_b12_hp + dif_lv[i].hpadd) * dif_lv[i].hp);
b12_dmg = (ini_b12_dmg * dif_lv[i].dmg);
b12_frq = int((ini_b12_frq * dif_lv[i].frq));
block[12][i] = {hpmax:b12_hp, dmg:b12_dmg, frq:b12_frq};
i++;
};
bAttack[12] = function (){
if (this.visible){
if (this.framecount == null){
this.framecount = int((Math.random() * 100));
};
if (this.framecount > 1000){
this.framecount = 0;
};
this.framecount++;
if ((this.framecount % block[12][gamelevel].frq) == 0){
bullet = new blaser();
bullet.x = (this.x + 20);
bullet.y = (this.y + 20);
bullet.dmg = (block[12][gamelevel].dmg * dplayer.luckEffect());
bullet.knock = enemyKnockIm;
world.addChild(bullet);
};
};
};
block[13] = new Array();
ini_b13_hp = 150;
ini_b13_healpow = 0.07;
ini_b13_frq = 35;
i = 0;
while (i < 27) {
b13_hp = ((ini_b13_hp + dif_lv[i].hpadd) * dif_lv[i].hp);
b13_healpow = (ini_b13_healpow * dif_lv[i].dmg);
b13_frq = int((ini_b13_frq * dif_lv[i].frq));
block[13][i] = {hpmax:b13_hp, dmg:b13_healpow, frq:b13_frq};
i++;
};
bAttack[13] = function (){
if (this.visible){
if (this.framecount == null){
this.framecount = int((Math.random() * 100));
};
if (this.framecount > 1000){
this.framecount = 0;
};
this.framecount++;
if ((this.framecount % block[13][gamelevel].frq) == 0){
bullet = new healer();
bullet.x = this.x;
bullet.y = this.y;
effectgroup.addChild(bullet);
i = (this.x / 40);
j = (this.y / 40);
if (getIndexAt((i - 1), (j - 1)) != null){
index = getIndexAt((i - 1), (j - 1));
if (BlockArray[index].hp < BlockArray[index].hpmax){
BlockArray[index].hp = (BlockArray[index].hp + (BlockArray[index].hpmax * block[13][gamelevel].dmg));
};
sg = new showhealgage();
sg.x = BlockArray[index].block.x;
sg.y = BlockArray[index].block.y;
sg.gage.gotoAndStop(int(((BlockArray[index].hp * 100) / BlockArray[index].hpmax)));
effectgroup.addChild(sg);
};
if (getIndexAt(i, (j - 1)) != null){
index = getIndexAt(i, (j - 1));
if (BlockArray[index].hp < BlockArray[index].hpmax){
BlockArray[index].hp = (BlockArray[index].hp + (BlockArray[index].hpmax * block[13][gamelevel].dmg));
};
sg = new showhealgage();
sg.x = BlockArray[index].block.x;
sg.y = BlockArray[index].block.y;
sg.gage.gotoAndStop(int(((BlockArray[index].hp * 100) / BlockArray[index].hpmax)));
effectgroup.addChild(sg);
};
if (getIndexAt((i + 1), (j - 1)) != null){
index = getIndexAt((i + 1), (j - 1));
if (BlockArray[index].hp < BlockArray[index].hpmax){
BlockArray[index].hp = (BlockArray[index].hp + (BlockArray[index].hpmax * block[13][gamelevel].dmg));
};
sg = new showhealgage();
sg.x = BlockArray[index].block.x;
sg.y = BlockArray[index].block.y;
sg.gage.gotoAndStop(int(((BlockArray[index].hp * 100) / BlockArray[index].hpmax)));
effectgroup.addChild(sg);
};
if (getIndexAt((i - 1), j) != null){
index = getIndexAt((i - 1), j);
if (BlockArray[index].hp < BlockArray[index].hpmax){
BlockArray[index].hp = (BlockArray[index].hp + (BlockArray[index].hpmax * block[13][gamelevel].dmg));
};
sg = new showhealgage();
sg.x = BlockArray[index].block.x;
sg.y = BlockArray[index].block.y;
sg.gage.gotoAndStop(int(((BlockArray[index].hp * 100) / BlockArray[index].hpmax)));
effectgroup.addChild(sg);
};
if (getIndexAt((i + 1), j) != null){
index = getIndexAt((i + 1), j);
if (BlockArray[index].hp < BlockArray[index].hpmax){
BlockArray[index].hp = (BlockArray[index].hp + (BlockArray[index].hpmax * block[13][gamelevel].dmg));
};
sg = new showhealgage();
sg.x = BlockArray[index].block.x;
sg.y = BlockArray[index].block.y;
sg.gage.gotoAndStop(int(((BlockArray[index].hp * 100) / BlockArray[index].hpmax)));
effectgroup.addChild(sg);
};
if (getIndexAt((i - 1), (j + 1)) != null){
index = getIndexAt((i - 1), (j + 1));
if (BlockArray[index].hp < BlockArray[index].hpmax){
BlockArray[index].hp = (BlockArray[index].hp + (BlockArray[index].hpmax * block[13][gamelevel].dmg));
};
sg = new showhealgage();
sg.x = BlockArray[index].block.x;
sg.y = BlockArray[index].block.y;
sg.gage.gotoAndStop(int(((BlockArray[index].hp * 100) / BlockArray[index].hpmax)));
effectgroup.addChild(sg);
};
if (getIndexAt(i, (j + 1)) != null){
index = getIndexAt(i, (j + 1));
if (BlockArray[index].hp < BlockArray[index].hpmax){
BlockArray[index].hp = (BlockArray[index].hp + (BlockArray[index].hpmax * block[13][gamelevel].dmg));
};
sg = new showhealgage();
sg.x = BlockArray[index].block.x;
sg.y = BlockArray[index].block.y;
sg.gage.gotoAndStop(int(((BlockArray[index].hp * 100) / BlockArray[index].hpmax)));
effectgroup.addChild(sg);
};
if (getIndexAt((i + 1), (j + 1)) != null){
index = getIndexAt((i + 1), (j + 1));
if (BlockArray[index].hp < BlockArray[index].hpmax){
BlockArray[index].hp = (BlockArray[index].hp + (BlockArray[index].hpmax * block[13][gamelevel].dmg));
};
sg = new showhealgage();
sg.x = BlockArray[index].block.x;
sg.y = BlockArray[index].block.y;
sg.gage.gotoAndStop(int(((BlockArray[index].hp * 100) / BlockArray[index].hpmax)));
effectgroup.addChild(sg);
};
};
};
};
block[15] = new Array();
ini_b15_hp = 125;
ini_b15_frq = 100;
i = 0;
while (i < 27) {
b15_hp = ((ini_b15_hp + dif_lv[i].hpadd) * dif_lv[i].hp);
b15_frq = int((ini_b15_frq * dif_lv[i].frq));
block[15][i] = {hpmax:b15_hp, frq:b15_frq};
i++;
};
bAttack[15] = function (){
if (this.visible){
if (this.framecount == null){
this.framecount = int((Math.random() * 100));
};
if (this.framecount > 1000){
this.framecount = 0;
};
this.framecount++;
if ((this.framecount % block[15][gamelevel].frq) == 0){
bullet = new cnewblock();
bullet.x = this.x;
bullet.y = this.y;
effectgroup.addChild(bullet);
i = 0;
while (i <= (32 * 12)) {
if (BlockArray[i] == null){
BlockArray[i] = new Object();
BlockArray[i].btype = 0;
BlockArray[i].im = false;
};
if ((((BlockArray[i].btype == 0)) || ((BlockArray[i].hp <= 0)))){
if (((((((int((i % 32)) * 40) > gamearea[gamelevel].l)) && (((int((i % 32)) * 40) < (gamearea[gamelevel].r - 40))))) && (((int((i / 32)) * 40) < 300)))){
if (((((((((this.x + 60) > (int((i % 32)) * 40))) && (((this.x - 60) < (int((i % 32)) * 40))))) && (((this.y - 40) < (int((i / 32)) * 40))))) && (((this.y + 60) > (int((i / 32)) * 40))))){
tempblock = new block();
BlockArray[i].btype = (int((Math.random() * 4)) + 1);
BlockArray[i].hp = 20;
tempblock.x = (int((i % 32)) * 40);
tempblock.y = (int((i / 32)) * 40);
tempblock.objecttype = 0;
tempblock.dmg.visible = false;
tempblock.gotoAndStop((BlockArray[i].btype + 1));
BlockArray[i].block = tempblock;
BlockArray[i].hpmax = block[(BlockArray[i].btype + 1)][gamelevel].hpmax;
BlockArray[i].hp = block[(BlockArray[i].btype + 1)][gamelevel].hpmax;
blockgroup.addChild(tempblock);
break;
};
};
};
i++;
};
};
};
};
block[16] = new Array();
ini_b16_hp = 90;
ini_b16_dmg = 10;
ini_b16_frq = 150;
ini_b16_suphp = 20;
i = 0;
while (i < 27) {
b16_hp = ((ini_b16_hp + dif_lv[i].hpadd) * dif_lv[i].hp);
b16_dmg = (ini_b16_dmg * dif_lv[i].dmg);
b16_frq = int((ini_b16_frq * dif_lv[i].frq));
b16_suphp = (ini_b16_suphp * dif_lv[i].hp);
block[16][i] = {hpmax:b16_hp, dmg:b16_dmg, frq:b16_frq, subhp:b16_suphp};
i++;
};
bAttack[16] = function (){
if (this.visible){
if (this.framecount == null){
this.framecount = int((Math.random() * 100));
};
if (this.framecount > 1000){
this.framecount = 0;
};
this.framecount++;
if ((this.framecount % block[16][gamelevel].frq) == 0){
bullet = new summonenemy();
bullet.x = this.x;
bullet.y = this.y;
bullet.dmg = block[16][gamelevel].dmg;
bullet.process = summon2process;
bullet.knock = enemyKnockEx;
p = new Point();
p.x = ((bullet.x + (Math.random() * 1000)) - 500);
p.y = ((bullet.y - (Math.random() * 40)) - 20);
bullet.goto = p;
bullet.hp = block[16][gamelevel].subhp;
setHomingMove(bullet, p, ((Math.random() * 3) + 1), 30);
enemygroup.addChild(bullet);
};
};
};
summon2process = function (){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (this.y < this.goto.y){
_local1 = (playerinworld.x - this.x);
_local2 = (playerinworld.y - this.y);
_local3 = Math.sqrt(((_local1 * _local1) + (_local2 * _local2)));
_local4 = (_local1 / _local3);
_local5 = (_local2 / _local3);
setLineMove(this, (_local4 * 10), (_local5 * 10));
this.gotoAndPlay("active");
this.rotation = 180;
};
};
gamelevel = (1 - 1);
so = SharedObject.getLocal("continue");
if (((!((so.data.gamelevel == null))) && (MovieClip(parent).con))){
gamelevel = (so.data.gamelevel - 1);
};
so.close();
BlockArray = null;
gamearea = new Array();
gamearea[0] = {l:320, r:960};
gamearea[1] = {l:320, r:960};
gamearea[2] = {l:280, r:1000};
gamearea[3] = {l:280, r:1000};
gamearea[4] = {l:320, r:960};
gamearea[5] = {l:0, r:0x0500};
gamearea[6] = {l:280, r:1000};
gamearea[7] = {l:240, r:1040};
gamearea[8] = {l:320, r:960};
gamearea[9] = {l:200, r:1080};
gamearea[10] = {l:0, r:0x0500};
gamearea[11] = {l:280, r:1000};
gamearea[12] = {l:280, r:1000};
gamearea[13] = {l:200, r:1080};
gamearea[14] = {l:0, r:0x0500};
gamearea[15] = {l:320, r:960};
gamearea[16] = {l:280, r:1000};
gamearea[17] = {l:160, r:1120};
gamearea[18] = {l:160, r:1120};
gamearea[19] = {l:320, r:960};
gamearea[20] = {l:0, r:0x0500};
gamearea[21] = {l:240, r:1040};
gamearea[22] = {l:160, r:1120};
gamearea[23] = {l:280, r:1000};
gamearea[24] = {l:200, r:1080};
gamearea[25] = {l:0, r:0x0500};
gamearea[26] = {l:0, r:0x0500};
gamearea[27] = {l:0, r:0x0500};
score = 0;
dplayer = new Object();
dplayer.str = 5;
dplayer.spi = 5;
dplayer.wis = 5;
dplayer.luk = 5;
dplayer.hp = 0;
dplayer.mp = 0;
dplayer.b_cri_c = 5;
dplayer.b_cri_d = 1.2;
dplayer.movespd = 7;
dplayer.ap = 4;
dplayer.sp = 2;
so = SharedObject.getLocal("continue");
if (((!((so.data.dplayer == null))) && (MovieClip(parent).con))){
for (v in dplayer) {
dplayer[v] = so.data.dplayer[v];
};
};
so.close();
playerDamage = function (_arg1){
if (_arg1 != null){
creatEffect(playerinworld.x, playerinworld.y);
dplayer.hp = (dplayer.hp - _arg1.dmg);
if ((((dplayer.hp > 0)) && ((dplayer.hp > _arg1.dmg)))){
implayer.gotoAndPlay("hurt");
};
if ((((dplayer.hp <= 0)) && ((implayer.currentFrame <= 65)))){
implayer.gotoAndPlay("die");
implayer = blank;
};
};
};
dplayer.HPMax = function (){
return (((dplayer.str * 10) + 100));
};
dplayer.hp = dplayer.HPMax();
dplayer.MPMax = function (){
return (((dplayer.wis * 20) + 200));
};
dplayer.mp = dplayer.MPMax();
dplayer.HPRecovery = function (){
return (((((dplayer.HPMax() * (0.01 + skill[7].table[skill[7].lv].hp)) + (dplayer.str * 0.1)) + (Math.random() * (dplayer.luk * 0.1))) / 15));
};
dplayer.MPRecovery = function (){
return ((((dplayer.MPMax() * (0.02 + skill[7].table[skill[7].lv].mp)) + (dplayer.wis * 0.1)) + (Math.random() * (dplayer.luk * 0.3))));
};
dplayer.ballAttack = function (){
if (skill[10].duration > 0){
return ((int((((dplayer.str + dplayer.spi) + dplayer.wis) + ((Math.random() * dplayer.luk) * 0.7))) * skill[10].table[skill[10].lv].attamp));
};
return (int((((dplayer.str + dplayer.spi) + dplayer.wis) + ((Math.random() * dplayer.luk) * 0.7))));
};
dplayer.magicAttack = function (){
return (dplayer.spi);
};
dplayer.moveSpeed = function (){
return (dplayer.movespd);
};
dplayer.ballSpeed = function (){
return (12);
};
dplayer.criticalChance = function (){
return ((int((Math.random() * 100)) < (dplayer.b_cri_c + skill[8].table[skill[8].lv].critical)));
};
dplayer.criticalDamage = function (){
return ((dplayer.b_cri_d + skill[8].table[skill[8].lv].amp));
};
dplayer.luckEffect = function (){
templuck = (int((Math.random() * (dplayer.luk * 0.8))) * 0.01);
return ((1 - templuck));
};
damagetype = new Object();
damagetype.normal = function (){
return (int(((dplayer.ballAttack() + (Math.random() * dplayer.ballAttack())) * 0.5)));
};
damagetype.critical = function (){
return ((damagetype.normal() * dplayer.criticalDamage()));
};
damagetype.skill = function (){
tempnormal = ((dplayer.ballAttack() + (Math.random() * dplayer.ballAttack())) * 0.5);
return (int((tempnormal + dplayer.magicAttack())));
};
damagetype.skillcritical = function (){
return ((damagetype.skill() * dplayer.criticalDamage()));
};
tracetype = new Object();
tracetype.norm_min = function (){
return (int(((dplayer.ballAttack() + 0) * 0.5)));
};
tracetype.norm_max = function (){
return (int(((dplayer.ballAttack() + (dplayer.ballAttack() - 1)) * 0.5)));
};
tracetype.skill_min = function (){
trace_tempnormal = ((dplayer.ballAttack() + 0) * 0.5);
return (int((trace_tempnormal + dplayer.magicAttack())));
};
tracetype.skill_max = function (){
trace_tempnormal = ((dplayer.ballAttack() + (dplayer.ballAttack() - 1)) * 0.5);
return (int((trace_tempnormal + dplayer.magicAttack())));
};
damagetype.skillEx = function (_arg1, _arg2, _arg3, _arg4=0){
var ishow = _arg1;
var iball = _arg2;
var amp = _arg3;
var att = _arg4;
dmg = damagetype.skill();
if (((!(dplayer.criticalChance())) || (!((iball == world.getChildByName("mainball")))))){
dmg = ((damagetype.skill() * amp) + att);
if (ishow){
sd = new showdmg();
sd.dmg.text = String(int(dmg));
sd.x = ((iball.x + (Math.random() * 20)) - 10);
sd.y = ((iball.y + (Math.random() * 20)) - 10);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.dmg.alpha = (this.dmg.alpha - 0.05);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
effectgroup.addChild(sd);
};
score = (score + int(dmg));
return (dmg);
//unresolved jump
};
dmg = ((damagetype.skillcritical() * amp) + att);
if (ishow){
sd = new showcridmg();
sd.dmg.text = String(int(dmg));
sd.x = ((iball.x + (Math.random() * 20)) - 10);
sd.y = ((iball.y + (Math.random() * 20)) - 10);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.dmg.alpha = (this.dmg.alpha - 0.05);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
effectgroup.addChild(sd);
};
score = (score + int(dmg));
return (dmg);
};
damagetype.normalEx = function (_arg1, _arg2, _arg3){
var ishow = _arg1;
var iball = _arg2;
var amp = _arg3;
dmg = damagetype.normal();
if (((!(dplayer.criticalChance())) || (!((iball == world.getChildByName("mainball")))))){
dmg = (damagetype.normal() * amp);
if (ishow){
sd = new showdmg();
sd.dmg.text = String(int(dmg));
sd.x = ((iball.x + (Math.random() * 20)) - 10);
sd.y = ((iball.y + (Math.random() * 20)) - 10);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.dmg.alpha = (this.dmg.alpha - 0.05);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
effectgroup.addChild(sd);
};
score = (score + int(dmg));
return (dmg);
//unresolved jump
};
dmg = (damagetype.critical() * amp);
if (ishow){
sd = new showcridmg();
sd.dmg.text = String(int(dmg));
sd.x = ((iball.x + (Math.random() * 20)) - 10);
sd.y = ((iball.y + (Math.random() * 20)) - 10);
sd.life = 50;
sd.process = function (){
this.y = (this.y + (40 - this.life));
this.life = (this.life - 1);
this.dmg.alpha = (this.dmg.alpha - 0.05);
if (this.y > 480){
this.y = 480;
this.process = function (){
this.life = (this.life - 1);
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.visible = false;
};
};
};
};
effectgroup.addChild(sd);
};
score = (score + int(dmg));
return (dmg);
};
vibration = function (){
if (this.bx == null){
this.bx = this.x;
this.by = this.y;
};
this.vib = (this.vib - 1);
if (this.vib > 35){
this.dmg.visible = !(this.dmg.visible);
} else {
this.dmg.visible = false;
};
this[this.dir] = ((this[("b" + this.dir)] + ((Math.random() * this.vib) / 4)) - (this.vib / 8));
if (this.vib <= 0){
this.x = this.bx;
this.y = this.by;
this.process = null;
};
};
normalBall = function (){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
this.x = (this.x + this.speedx);
this.y = (this.y + this.speedy);
if (this.duration != null){
this.duration--;
if (this.duration <= 0){
this.process = null;
this.alpha = 0.2;
setRemoveMove(this);
};
};
if (this.x <= gamearea[gamelevel].l){
this.speedx = Math.abs(this.speedx);
} else {
if (this.x >= gamearea[gamelevel].r){
this.speedx = -(Math.abs(this.speedx));
};
};
if (this.y <= 0){
this.speedy = Math.abs(this.speedy);
} else {
if (this.y >= 420){
this.speedy = -(Math.abs(this.speedy));
};
};
if (this.hitTestObject(this.parent.parent.player)){
_local1 = (playerinworld.x - this.x);
_local2 = (playerinworld.y - this.y);
_local3 = Math.sqrt(((_local1 * _local1) + (_local2 * _local2)));
_local4 = (_local1 / _local3);
_local5 = (_local2 / _local3);
this.speedx = (-(this.speed) * _local4);
this.speedy = (-(this.speed) * _local5);
};
if (this.noeffect != null){
if (this.noeffect > 0){
this.noeffect--;
};
};
i = 0;
while (i < enemygroup.numChildren) {
if (((enemygroup.getChildAt(i).hitTestObject(this)) && (!((enemygroup.getChildAt(i).knock == enemyKnockIm))))){
_local6 = enemygroup.getChildAt(i);
if (!_local6.die){
this.dmg = null;
_local1 = (_local6.x - this.x);
_local2 = (_local6.y - this.y);
_local3 = Math.sqrt(((_local1 * _local1) + (_local2 * _local2)));
_local4 = (_local1 / _local3);
_local5 = (_local2 / _local3);
this.speedx = (-(this.speed) * _local4);
this.speedy = (-(this.speed) * _local5);
if ((((this.noeffect == 0)) || ((this.noeffect == null)))){
this.noeffect = 0;
if (this.orb != null){
this.dmg = skill[this.orb].Damage(this);
} else {
if ((Math.random() * 100) < skill[6].table[skill[6].lv].success){
if (skill[6].cool == 0){
skill[6].callSkill();
this.dmg = skill[6].Damage(this);
};
};
};
if (this.dmg == null){
this.dmg = damagetype.normalEx(true, this, 1);
};
_local6.hp = (_local6.hp - this.dmg);
if (_local6.hp <= 0){
_local6.gotoAndPlay("die");
_local6.die = true;
};
};
};
};
i++;
};
if (checkBossHit(this)){
if (!boss.die){
this.dmg = null;
_local1 = (boss.boss.x - this.x);
_local2 = (boss.boss.y - this.y);
_local3 = Math.sqrt(((_local1 * _local1) + (_local2 * _local2)));
_local4 = (_local1 / _local3);
_local5 = (_local2 / _local3);
if (this != main){
this.speedx = ((-(this.speed) * 2) * _local4);
this.speedy = ((-(this.speed) * 2) * _local5);
} else {
this.speedx = (-(this.speed) * _local4);
this.speedy = (-(this.speed) * _local5);
};
if ((((this.noeffect == 0)) || ((this.noeffect == null)))){
this.noeffect = 0;
if (this.orb != null){
this.dmg = skill[this.orb].Damage(this);
} else {
if ((Math.random() * 100) < skill[6].table[skill[6].lv].success){
if (skill[6].cool == 0){
skill[6].callSkill();
this.dmg = skill[6].Damage(this);
};
};
};
if (this.dmg == null){
this.dmg = damagetype.normalEx(true, this, 1);
};
boss.hp = (boss.hp - this.dmg);
boss.showdmgcount = bossdmgflash;
boss.process = damageEffect;
if (boss.hp <= 0){
if (!boss.die){
boss.stop();
boss.boss.gotoAndPlay("die");
boss.die = true;
boss.die = true;
_local7 = new bossdie();
_local7.play(1, 1);
};
};
};
};
};
if (this.speedy == 0){
this.speedy = this.speedx;
};
index = (int(((this.x - 12) / 40)) + (int((this.y / 40)) * 32));
if (BlockArray[index] != null){
if (BlockArray[index].block != null){
if (BlockArray[index].block.visible){
this.x = (BlockArray[index].block.x + 52);
hitblock(this, index, "y");
this.speedx = Math.abs(this.speedx);
};
};
};
index = (int(((this.x + 12) / 40)) + (int((this.y / 40)) * 32));
if (BlockArray[index] != null){
if (BlockArray[index].block != null){
if (BlockArray[index].block.visible){
this.x = (BlockArray[index].block.x - 12);
hitblock(this, index, "y");
this.speedx = -(Math.abs(this.speedx));
};
};
};
index = (int((this.x / 40)) + (int(((this.y + 12) / 40)) * 32));
if (BlockArray[index] != null){
if (BlockArray[index].block != null){
if (BlockArray[index].block.visible){
this.y = (BlockArray[index].block.y - 22);
hitblock(this, index, "x");
this.speedy = -(Math.abs(this.speedy));
};
};
};
index = (int((this.x / 40)) + (int(((this.y - 12) / 40)) * 32));
if (BlockArray[index] != null){
if (BlockArray[index].block != null){
if (BlockArray[index].block.visible){
this.y = (BlockArray[index].block.y + 62);
hitblock(this, index, "x");
this.speedy = Math.abs(this.speedy);
};
};
};
};
key = new Array();
lastkey = null;
dash = 0;
dashkey = 0;
lastpress = 0;
this.addEventListener("keyUp", onKeyUp);
this.addEventListener("keyDown", onKeyDown);
creatEffect = function (_arg1, _arg2){
};
afterShock = function (){
if (shock > 0){
root.x = ((Math.random() * shock) - (shock / 2));
root.y = ((Math.random() * shock) - (shock / 2));
shock--;
} else {
root.x = 0;
root.y = 0;
};
};
b_mfz.addEventListener("click", MovieClip(MovieClip(this).parent).playMoreGameTitle);
soundch = null;
soundtimer = getTimer();
sound_index = int((Math.random() * 3));
cmpHandler = function (){
var _local1:*;
sound_index++;
if (sound_index > 2){
sound_index = 0;
};
_local1 = (getDefinitionByName(("bgm" + sound_index)) as Class);
bgsound = new (_local1);
soundch = bgsound.play(1, 1);
soundtimer = getTimer();
};
sclass = (getDefinitionByName(("bgm" + sound_index)) as Class);
bgsound = new sclass();
cmpHandler();
game = this;
bfn = null;
setLoop(pauseGame);
}
public function setRemoveMove(_arg1){
_arg1.life = 43;
_arg1.mot = GHremove;
}
public function onKeyDown(_arg1){
var _local2:*;
var _local3:*;
_local2 = implayer;
if (dplayer.hp <= 0){
return;
};
if (_local2.currentFrame > 25){
return;
};
if (key[_arg1.keyCode] != null){
return;
};
if (((((lastpress + 220) > getTimer())) && ((dash == 0)))){
if ((((_arg1.keyCode == lastkey)) && (!(key[_arg1.keyCode])))){
if (_arg1.keyCode == 37){
_local2.gotoAndStop("stand");
dash = 5;
dashkey = 37;
skill[9].duration = 3;
delete key[_arg1.keyCode];
};
if (_arg1.keyCode == 39){
_local2.gotoAndStop("stand");
dash = 5;
dashkey = 39;
skill[9].duration = 3;
delete key[_arg1.keyCode];
};
} else {
dash = 0;
dashkey = 0;
delete key[_arg1.keyCode];
};
};
key[_arg1.keyCode] = true;
lastpress = getTimer();
lastkey = _arg1.keyCode;
_local3 = 0;
while (_local3 < skillkey.length) {
if (skillkey[_local3] != null){
var _local4 = skillkey;
_local4[_local3](_arg1);
};
_local3++;
};
if ((((_arg1.keyCode == 32)) && ((passcount == 0)))){
};
}
public function hitblock(_arg1, _arg2, _arg3){
var _local4:*;
var _local5:*;
_local4 = null;
if (_arg1 != null){
creatEffect(_arg1.x, _arg1.y);
if (_arg1.orb != null){
_local4 = skill[_arg1.orb].Damage(_arg1);
} else {
if ((Math.random() * 100) < skill[6].table[skill[6].lv].success){
if (skill[6].cool == 0){
skill[6].callSkill();
_local4 = skill[6].Damage(_arg1);
};
};
};
};
if (_local4 == null){
if (_arg1 != null){
_local4 = damagetype.normalEx(true, _arg1, 1);
} else {
_local4 = damagetype.normalEx(false, null, 1);
};
};
if (BlockArray[_arg2] != null){
if (((!((BlockArray[_arg2].block == null))) && (!(BlockArray[_arg2].im)))){
BlockArray[_arg2].hp = (BlockArray[_arg2].hp - _local4);
if (BlockArray[_arg2].hp <= 0){
_local5 = new enemydie();
_local5.x = BlockArray[_arg2].block.x;
_local5.y = BlockArray[_arg2].block.y;
effectgroup.addChild(_local5);
BlockArray[_arg2].block.visible = false;
BlockArray[_arg2].block = null;
BlockArray[_arg2] = null;
} else {
sg = new showhealgage();
sg.x = BlockArray[_arg2].block.x;
sg.y = BlockArray[_arg2].block.y;
sg.gage.gotoAndStop(int(((BlockArray[_arg2].hp / BlockArray[_arg2].hpmax) * 100)));
effectgroup.addChild(sg);
BlockArray[_arg2].block.vib = 40;
BlockArray[_arg2].block.dir = _arg3;
BlockArray[_arg2].block.process = this.vibration;
};
};
};
}
public function createEffectGroup(){
effectgroup = new MovieClip();
effectgroup.x = 0;
effectgroup.y = 0;
world.addChild(effectgroup);
}
public function playGame(_arg1){
var i:*;
var MPrecovertTemp:*;
var HPrecovertTemp:*;
var wi:*;
var ei:*;
var fi:*;
var bi:*;
var sc:*;
var ov:*;
var e = _arg1;
MovieClip(root).score = score;
stage.focus = this;
fps.text = ("fps : " + int((1000 / (getTimer() - before))));
before = getTimer();
playerinworld = new Point(player.x, player.y);
playerinworld = world.globalToLocal(playerinworld);
framecount++;
if (((soundtimer + bgsound.length) + 1500) < getTimer()){
cmpHandler();
};
if ((framecount % 25) == 0){
MPrecovertTemp = dplayer.MPRecovery();
HPrecovertTemp = dplayer.HPRecovery();
dplayer.mp = (dplayer.mp + MPrecovertTemp);
dplayer.hp = (dplayer.hp + HPrecovertTemp);
if (dplayer.mp > dplayer.MPMax()){
dplayer.mp = dplayer.MPMax();
};
if (dplayer.hp > dplayer.HPMax()){
dplayer.hp = dplayer.HPMax();
};
};
moveProcess();
i = 0;
while (i < world.numChildren) {
wi = world.getChildAt(i);
if (wi != null){
if (wi.process != null){
wi.process();
};
if (wi.knock != null){
wi.knock();
};
if (wi.mot != null){
wi.mot();
};
if (wi.extracontrol != null){
wi.extracontrol();
};
};
i = (i + 1);
};
i = 0;
while (i < enemygroup.numChildren) {
ei = enemygroup.getChildAt(i);
if (ei != null){
if (ei.process != null){
ei.process();
};
if (ei.knock != null){
ei.knock();
};
if (ei.mot != null){
ei.mot();
};
if (ei.extracontrol != null){
ei.extracontrol();
};
};
i = (i + 1);
};
i = 0;
while (i < effectgroup.numChildren) {
fi = effectgroup.getChildAt(i);
if (fi != null){
if (fi.process != null){
fi.process();
};
if (fi.mot != null){
fi.mot();
};
};
i = (i + 1);
};
i = 0;
while (i < blockgroup.numChildren) {
bi = blockgroup.getChildAt(i);
if (bi != null){
if (bi.process != null){
bi.process();
};
if (bi.extracontrol != null){
bi.extracontrol();
};
};
i = (i + 1);
};
i = (world.numChildren - 1);
while (i >= 0) {
if (world.getChildAt(i) != null){
if (world.getChildAt(i).visible == false){
delete ??getglobalscope
[world.removeChildAt(i)];
};
};
i = (i - 1);
};
i = (blockgroup.numChildren - 1);
while (i >= 0) {
if (blockgroup.getChildAt(i) != null){
if (blockgroup.getChildAt(i).visible == false){
delete ??getglobalscope
[blockgroup.removeChildAt(i)];
};
};
i = (i - 1);
};
i = (enemygroup.numChildren - 1);
while (i >= 0) {
if (enemygroup.getChildAt(i) != null){
if (enemygroup.getChildAt(i).visible == false){
delete ??getglobalscope
[enemygroup.removeChildAt(i)];
};
};
i = (i - 1);
};
i = (effectgroup.numChildren - 1);
while (i >= 0) {
if (effectgroup.getChildAt(i) != null){
if (effectgroup.getChildAt(i).visible == false){
delete ??getglobalscope
[effectgroup.removeChildAt(i)];
};
};
i = (i - 1);
};
i = 0;
while (i < skillprocess.length) {
if (skillprocess[i] != null){
var _local3 = skillprocess;
_local3[i]();
};
i = (i + 1);
};
if (boss != null){
if (boss.visible){
world.swapChildren(boss, world.getChildAt((world.numChildren - 3)));
};
boss_gage.gotoAndStop(int(((boss.hp * 100) / dboss[gamelevel].hp)));
boss_gage.alpha = 1;
} else {
boss_gage.alpha = 0;
};
world.swapChildren(enemygroup, world.getChildAt((world.numChildren - 2)));
world.swapChildren(effectgroup, world.getChildAt((world.numChildren - 1)));
sys.text = ((((((("world : " + world.numChildren) + " enemy: ") + enemygroup.numChildren) + " effect :") + effectgroup.numChildren) + " block :") + blockgroup.numChildren);
sho_hp.text = String(int(dplayer.hp));
sho_mp.text = String(int(dplayer.mp));
hp_gage.gotoAndStop((5 + int(((dplayer.hp / dplayer.HPMax()) * 100))));
mp_gage.gotoAndStop((5 + int(((dplayer.mp / dplayer.MPMax()) * 100))));
gl.text = ("Stage " + int(gamelevel));
if (((!(((gamelevel % 5) == 0))) && (!((gamelevel == 26))))){
} else {
if (boss.visible == false){
imcount = blockgroup.numChildren;
};
};
if (((((blockgroup.numChildren - imcount) <= 0)) && ((passcount == 0)))){
if (boss == null){
passcount = 80;
sc = new stageclear();
sc.name = "sclear";
sc.x = -(world.x);
sc.y = -(world.x);
sc.process = function (){
this.x = -(world.x);
this.y = -(world.y);
};
effectgroup.addChild(sc);
} else {
if (boss.hp <= 0){
passcount = 80;
sc = new stageclear();
sc.x = -(world.x);
sc.y = -(world.x);
sc.process = function (){
this.x = -(world.x);
this.y = -(world.y);
};
effectgroup.addChild(sc);
};
};
};
if (passcount == 1){
setLoop(pauseGame);
dplayer.ap = (dplayer.ap + 4);
dplayer.sp = (dplayer.sp + 2);
if (gamelevel >= 26){
setLoop(pauseGame);
game.removeChild(world);
SoundMixer.stopAll();
MovieClip(parent).gotoAndPlay(1, "ending");
} else {
MovieClip(parent).upgrade.visible = true;
if (((((gamelevel % 5) == 0)) && ((gamelevel < 24)))){
MovieClip(parent).upgrade.gotoAndStop(gamelevel);
} else {
MovieClip(parent).upgrade.addEventListener(Event.ENTER_FRAME, MovieClip(parent).upgrade.etf);
};
};
};
i = 0;
while (i < 6) {
if (skill[i].lv > 0){
game[("is" + i)].alpha = 1;
game[("is" + i)].gotoAndStop((5 + int((((skill[i].table[skill[i].lv].cool - skill[i].cool) * 100) / skill[i].table[skill[i].lv].cool))));
if (skill[i].table[skill[i].lv].mp > dplayer.mp){
game[("is" + i)].alpha = 0.25;
};
} else {
game[("is" + i)].alpha = 0;
};
i = (i + 1);
};
if (passcount > 1){
passcount--;
};
if ((((dplayer.hp < 0)) && ((overcount == 0)))){
dplayer.hp = 0;
overcount = 80;
ov = new stageover();
ov.name = "sover";
ov.x = -(world.x);
ov.y = -(world.x);
ov.process = function (){
this.x = -(world.x);
this.y = -(world.y);
};
effectgroup.addChild(ov);
};
if (overcount > 1){
overcount--;
};
if (overcount == 1){
setLoop(pauseGame);
so = SharedObject.getLocal("continue");
so.data.dplayer = new Object();
for (v in dplayer) {
so.data.dplayer[v] = dplayer[v];
};
so.data.dplayer.mp = dplayer.MPMax();
so.data.dplayer.hp = dplayer.HPMax();
so.data.gamelevel = gamelevel;
so.data.skill = new Array();
i = 0;
while (i < 12) {
so.data.skill[i] = new Object();
so.data.skill[i].lv = skill[i].lv;
i = (i + 1);
};
if (so.data.con == null){
so.data.con = 5;
};
so.data.saved = true;
so.flush();
so.close();
game.removeChild(world);
SoundMixer.stopAll();
MovieClip(parent).gotoAndStop(1, "submit");
};
afterShock();
}
public function levelUp(){
var i:*;
var map:*;
var j:*;
gamelevel++;
sce_bg.gotoAndStop(gamelevel);
imcount = 0;
passcount = 0;
i = 0;
map = new (getDefinitionByName(("map" + gamelevel)) as Class)(0, 0);
BlockArray = new Array();
i = 0;
while (i < (32 * 12)) {
if (map.getPixel((i % 32), int((i / 32))) != map.getPixel(0, 12)){
j = 1;
while (j < 16) {
if (map.getPixel((i % 32), int((i / 32))) == map.getPixel(j, 12)){
if (((((int((i % 32)) * 40) > gamearea[gamelevel].l)) && (((int((i % 32)) * 40) < (gamearea[gamelevel].r - 40))))){
BlockArray[i] = new Object();
BlockArray[i].btype = j;
if (j != 13){
BlockArray[i].hpmax = block[(BlockArray[i].btype + 1)][gamelevel].hpmax;
BlockArray[i].hp = block[(BlockArray[i].btype + 1)][gamelevel].hpmax;
BlockArray[i].im = false;
};
if (j == 13){
BlockArray[i].hpmax = 99999999;
BlockArray[i].hp = 9999999;
BlockArray[i].im = true;
imcount++;
};
};
};
j = (j + 1);
};
};
i = (i + 1);
};
if (player != null){
this.removeChild(player);
};
player = new cplayer();
player.x = 320;
player.y = 410;
player.speed = dplayer.moveSpeed();
this.addChild(player);
createWorld();
implayer = new cplayerim();
playerinworld = new Point(player.x, player.y);
playerinworld = world.globalToLocal(playerinworld);
implayer.x = playerinworld.x;
implayer.y = playerinworld.y;
implayer.process = function (){
this.x = playerinworld.x;
this.y = playerinworld.y;
this.alpha = player.alpha;
};
world.addChild(implayer);
createEnemyGroup();
createEffectGroup();
world.graphics.lineStyle(10, 0, 0.25);
world.graphics.drawRect((gamearea[gamelevel].l - 5), -10, ((gamearea[gamelevel].r - gamearea[gamelevel].l) + 5), 480);
createBoss(gamelevel);
createSpirit(gamelevel);
main = createNormalBall("mainball", 1);
skill[11].init();
}
public function moveProcess(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = null;
if (implayer.currentFrame > 25){
lastkey = null;
for (_local4 in key) {
delete key[_local4];
};
return;
};
if (((!((key[37] == null))) || (!((key[39] == null))))){
if (implayer.currentFrame < 15){
implayer.gotoAndPlay("walk");
};
};
_local2 = 1;
if (dash > 0){
dash--;
_local2 = 7;
} else {
dashkey = 0;
};
_local3 = 0;
while (_local3 < _local2) {
playerinworld = new Point(player.x, player.y);
playerinworld = world.globalToLocal(playerinworld);
if (dash > 0){
_local5 = new dasheffect();
_local5.x = playerinworld.x;
_local5.y = playerinworld.y;
effectgroup.addChild(_local5);
};
if (((!((key[39] == null))) || ((dashkey == 39)))){
_local1 = (int((((playerinworld.x + player.speed) + 20) / 40)) + (int((playerinworld.y / 40)) * 32));
if (BlockArray[_local1] != null){
if (BlockArray[_local1].block != null){
if (BlockArray[_local1].block.visible){
return;
};
};
};
_local1 = (int((((playerinworld.x + player.speed) + 20) / 40)) + (int(((playerinworld.y - 40) / 40)) * 32));
if (BlockArray[_local1] != null){
if (BlockArray[_local1].block != null){
if (BlockArray[_local1].block.visible){
return;
};
};
};
if (playerinworld.x >= gamearea[gamelevel].r){
return;
};
if (player.x < 320){
player.x = (player.x + player.speed);
} else {
if (world.x <= -640){
world.x = -640;
if (player.x < 640){
player.x = (player.x + player.speed);
};
} else {
world.x = (world.x - player.speed);
};
};
};
if (((!((key[37] == null))) || ((dashkey == 37)))){
_local1 = (int((((playerinworld.x - player.speed) - 20) / 40)) + (int((playerinworld.y / 40)) * 32));
if (BlockArray[_local1] != null){
if (BlockArray[_local1].block != null){
if (BlockArray[_local1].block.visible){
return;
};
};
};
_local1 = (int((((playerinworld.x - player.speed) - 20) / 40)) + (int(((playerinworld.y - 40) / 40)) * 32));
if (BlockArray[_local1] != null){
if (BlockArray[_local1].block != null){
if (BlockArray[_local1].block.visible){
return;
};
};
};
if (playerinworld.x <= gamearea[gamelevel].l){
return;
};
if (player.x > 320){
player.x = (player.x - player.speed);
} else {
if (world.x >= 0){
world.x = 0;
if (player.x > 0){
player.x = (player.x - player.speed);
};
} else {
world.x = (world.x + player.speed);
};
};
};
_local3++;
};
}
public function createNormalBall(_arg1, _arg2){
var _local3:*;
var _local4:*;
_local3 = new ball();
_local4 = (Math.random() * 360);
if (_arg1 != null){
_local3.name = _arg1;
};
_local3.x = 800;
_local3.y = 390;
_local3.normal = _arg2;
_local3.speed = dplayer.ballSpeed();
_local3.speedx = (_local3.speed * Math.cos(((_local4 * 180) / Math.PI)));
_local3.speedy = (_local3.speed * Math.sin(((_local4 * 180) / Math.PI)));
_local3.rad = 5;
_local3.objecttype = 1;
_local3.process = normalBall;
_local3.gotoAndStop(_arg2);
world.addChild(_local3);
return (_local3);
}
public function setHomingMove(_arg1, _arg2, _arg3, _arg4){
_arg1.velocity = _arg3;
_arg1.turning_speed = _arg4;
_arg1.targ = _arg2;
_arg1.xspeed = 0;
_arg1.yspeed = 0;
_arg1.turning = (_arg1.turning_speed * (Math.PI / 180));
_arg1.mot = GHhoming;
}
public function createEnemyGroup(){
enemygroup = new MovieClip();
enemygroup.x = 0;
enemygroup.y = 0;
world.addChild(enemygroup);
}
public function setYBounceMove(_arg1, _arg2, _arg3, _arg4){
_arg1.sy = _arg2;
_arg1.upline = _arg3;
_arg1.lowline = _arg4;
_arg1.mot = GHupDown;
}
public function setLoop(_arg1){
if (bfn != null){
removeEventListener(Event.ENTER_FRAME, bfn);
};
bfn = _arg1;
addEventListener(Event.ENTER_FRAME, _arg1);
}
public function createBoss(_arg1){
var lv = _arg1;
if (((!(((lv % 5) == 0))) && (!((lv == 26))))){
boss = null;
return;
};
playerinworld = new Point(player.x, player.y);
playerinworld = world.globalToLocal(playerinworld);
boss = new ((getDefinitionByName(("boss" + lv)) as Class));
if (boss == null){
return (null);
};
boss.x = 0;
boss.y = 0;
boss.boss.hit.alpha = 0;
boss.hp = dboss[lv].hp;
boss.die = false;
boss.showdmgcount = 0;
boss.activegun = 100;
boss.lv = lv;
boss.process = null;
boss.stopcount = 0;
boss.extracontrol = function (){
boss.activegun--;
if (boss.activegun == 1){
boss.extracontrol = bossctr[boss.lv];
};
};
world.addChild(boss);
initBoss(lv);
}
public function onKeyUp(_arg1){
var _local2:*;
_local2 = implayer;
if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 39)))){
_local2.gotoAndPlay("stand");
};
delete key[_arg1.keyCode];
}
public function pauseGame(_arg1){
}
public function hitblockEx(_arg1, _arg2, _arg3){
var _local4:*;
if (BlockArray[_arg2] != null){
if (((!((BlockArray[_arg2].block == null))) && (!(BlockArray[_arg2].im)))){
BlockArray[_arg2].hp = (BlockArray[_arg2].hp - _arg1);
if (BlockArray[_arg2].hp <= 0){
_local4 = new enemydie();
_local4.x = BlockArray[_arg2].block.x;
_local4.y = BlockArray[_arg2].block.y;
effectgroup.addChild(_local4);
BlockArray[_arg2].block.visible = false;
BlockArray[_arg2].block = null;
BlockArray[_arg2] = null;
} else {
sg = new showhealgage();
sg.x = BlockArray[_arg2].block.x;
sg.y = BlockArray[_arg2].block.y;
sg.gage.gotoAndStop(int(((BlockArray[_arg2].hp / BlockArray[_arg2].hpmax) * 100)));
effectgroup.addChild(sg);
BlockArray[_arg2].block.vib = 40;
BlockArray[_arg2].block.dir = _arg3;
BlockArray[_arg2].block.process = this.vibration;
};
};
};
}
public function getI(_arg1){
return ((_arg1 % 32));
}
public function getJ(_arg1){
return (int((_arg1 / 32)));
}
public function createWorld(){
var _local1:*;
var _local2:*;
if (world != null){
this.removeChild(world);
};
world = new MovieClip();
world.x = 0;
world.y = 0;
world.particalcount = 0;
this.addChildAt(world, 1);
createBlockGroup();
_local1 = 0;
_local1 = 0;
while (_local1 < (32 * 12)) {
if (BlockArray[_local1] != null){
if (BlockArray[_local1].btype != 0){
_local2 = new block();
_local2.x = (int((_local1 % 32)) * 40);
_local2.y = (int((_local1 / 32)) * 40);
_local2.objecttype = 0;
_local2.dmg.visible = false;
_local2.gotoAndStop((BlockArray[_local1].btype + 1));
if (bAttack[(BlockArray[_local1].btype + 1)] != null){
_local2.extracontrol = bAttack[(BlockArray[_local1].btype + 1)];
};
BlockArray[_local1].block = _local2;
blockgroup.addChild(_local2);
} else {
_local2 = new block();
_local2.x = (int((_local1 % 32)) * 40);
_local2.y = (int((_local1 / 32)) * 40);
_local2.objecttype = 0;
_local2.dmg.visible = false;
_local2.gotoAndStop((BlockArray[_local1].btype + 1));
if (bAttack[(BlockArray[_local1].btype + 1)] != null){
_local2.extracontrol = bAttack[(BlockArray[_local1].btype + 1)];
};
_local2.visible = false;
BlockArray[_local1].block = _local2;
blockgroup.addChild(_local2);
};
};
_local1++;
};
world.x = (-(int(((gamearea[gamelevel].l + gamearea[gamelevel].r) * 0.5))) + 320);
}
}
}//package noizor2_511118_pb_fla
Section 32
//msce_bg_173 (noizor2_511118_pb_fla.msce_bg_173)
package noizor2_511118_pb_fla {
import flash.display.*;
public dynamic class msce_bg_173 extends MovieClip {
public function msce_bg_173(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package noizor2_511118_pb_fla
Section 33
//THEPRELOADER_1 (noizor2_511118_pb_fla.THEPRELOADER_1)
package noizor2_511118_pb_fla {
import flash.events.*;
import flash.display.*;
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();
MovieClip(root).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 noizor2_511118_pb_fla
Section 34
//ball (ball)
package {
import flash.display.*;
public dynamic class ball extends MovieClip {
public function ball(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 35
//ball1 (ball1)
package {
import flash.display.*;
public dynamic class ball1 extends BitmapData {
public function ball1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 36
//bgm0 (bgm0)
package {
import flash.media.*;
public dynamic class bgm0 extends Sound {
}
}//package
Section 37
//bgm1 (bgm1)
package {
import flash.media.*;
public dynamic class bgm1 extends Sound {
}
}//package
Section 38
//bgm2 (bgm2)
package {
import flash.media.*;
public dynamic class bgm2 extends Sound {
}
}//package
Section 39
//blaser (blaser)
package {
import flash.display.*;
public dynamic class blaser extends MovieClip {
public function blaser(){
addFrameScript(34, frame35);
}
function frame35(){
visible = false;
stop();
}
}
}//package
Section 40
//block (block)
package {
import flash.display.*;
public dynamic class block extends MovieClip {
public var dmg:MovieClip;
}
}//package
Section 41
//boss10 (boss10)
package {
import flash.display.*;
public dynamic class boss10 extends MovieClip {
public var boss:MovieClip;
public function boss10(){
addFrameScript(69, frame70, 394, frame395, 664, frame665);
}
function frame70(){
gotoAndPlay(("p" + int((Math.random() * 2))));
}
function frame395(){
gotoAndPlay(("p" + int((Math.random() * 2))));
}
function frame665(){
gotoAndPlay(("p" + int((Math.random() * 2))));
}
}
}//package
Section 42
//boss10bullet (boss10bullet)
package {
import flash.display.*;
public dynamic class boss10bullet extends MovieClip {
}
}//package
Section 43
//boss15 (boss15)
package {
import flash.display.*;
public dynamic class boss15 extends MovieClip {
public var boss:MovieClip;
public function boss15(){
addFrameScript(69, frame70, 194, frame195, 244, frame245);
}
function frame70(){
gotoAndPlay(("p" + int((Math.random() * 2))));
}
function frame195(){
gotoAndPlay(("p" + int((Math.random() * 2))));
}
function frame245(){
gotoAndPlay(("p" + int((Math.random() * 2))));
}
}
}//package
Section 44
//boss15bullet (boss15bullet)
package {
import flash.display.*;
public dynamic class boss15bullet extends MovieClip {
}
}//package
Section 45
//boss20 (boss20)
package {
import flash.display.*;
public dynamic class boss20 extends MovieClip {
public var boss:MovieClip;
public function boss20(){
addFrameScript(69, frame70, 444, frame445, 764, frame765);
}
function frame70(){
gotoAndPlay(("p" + int((Math.random() * 2))));
}
function frame445(){
gotoAndPlay(("p" + int((Math.random() * 2))));
}
function frame765(){
gotoAndPlay(("p" + int((Math.random() * 2))));
}
}
}//package
Section 46
//boss20homing (boss20homing)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss20homing extends MovieClip {
public function boss20homing(){
addFrameScript(2, frame3, 4, frame5, 18, frame19);
}
function frame3(){
gotoAndPlay(1);
}
function frame19(){
visible = false;
stop();
}
function frame5(){
this.mot = null;
this.knock = null;
this.process = null;
}
}
}//package
Section 47
//boss20laser (boss20laser)
package {
import flash.display.*;
public dynamic class boss20laser extends MovieClip {
}
}//package
Section 48
//boss25 (boss25)
package {
import flash.display.*;
public dynamic class boss25 extends MovieClip {
public var boss:MovieClip;
public function boss25(){
addFrameScript(69, frame70, 459, frame460);
}
function frame70(){
gotoAndPlay("p0");
}
function frame460(){
gotoAndPlay("p0");
}
}
}//package
Section 49
//boss25powerball (boss25powerball)
package {
import flash.display.*;
public dynamic class boss25powerball extends MovieClip {
}
}//package
Section 50
//boss26 (boss26)
package {
import flash.display.*;
public dynamic class boss26 extends MovieClip {
public var boss:MovieClip;
public function boss26(){
addFrameScript(69, frame70, 444, frame445, 793, frame794);
}
function frame794(){
gotoAndPlay(("p" + int((Math.random() * 2))));
}
function frame70(){
gotoAndPlay(("p" + int((Math.random() * 2))));
}
function frame445(){
gotoAndPlay(("p" + int((Math.random() * 2))));
}
}
}//package
Section 51
//boss26ray (boss26ray)
package {
import flash.display.*;
public dynamic class boss26ray extends MovieClip {
public function boss26ray(){
addFrameScript(30, frame31);
}
function frame31(){
visible = false;
}
}
}//package
Section 52
//boss5 (boss5)
package {
import flash.display.*;
public dynamic class boss5 extends MovieClip {
public var boss:MovieClip;
public function boss5(){
addFrameScript(69, frame70, 364, frame365, 664, frame665);
}
function frame70(){
gotoAndPlay(("p" + int((Math.random() * 2))));
}
function frame365(){
gotoAndPlay(("p" + int((Math.random() * 2))));
}
function frame665(){
gotoAndPlay(("p" + int((Math.random() * 2))));
}
}
}//package
Section 53
//bossdie (bossdie)
package {
import flash.media.*;
public dynamic class bossdie extends Sound {
}
}//package
Section 54
//cnewblock (cnewblock)
package {
import flash.display.*;
public dynamic class cnewblock extends MovieClip {
public function cnewblock(){
addFrameScript(28, frame29);
}
function frame29(){
visible = false;
}
}
}//package
Section 55
//cplayer (cplayer)
package {
import flash.display.*;
public dynamic class cplayer extends MovieClip {
}
}//package
Section 56
//cplayerim (cplayerim)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class cplayerim extends MovieClip {
public function cplayerim(){
addFrameScript(0, frame1, 20, frame21, 26, frame27, 56, frame57, 119, frame120);
}
function frame1(){
stop();
}
function frame21(){
gotoAndPlay("walk");
}
function frame27(){
gotoAndStop("stand");
}
function frame120(){
stop();
this.process = null;
this.y = 1000;
this.alpha = 0;
}
function frame57(){
gotoAndStop("stand");
}
}
}//package
Section 57
//damagezone (damagezone)
package {
import flash.display.*;
public dynamic class damagezone extends MovieClip {
public function damagezone(){
addFrameScript(59, frame60);
}
function frame60(){
visible = false;
stop();
}
}
}//package
Section 58
//dasheffect (dasheffect)
package {
import flash.display.*;
public dynamic class dasheffect extends MovieClip {
public function dasheffect(){
addFrameScript(4, frame5);
}
function frame5(){
visible = false;
stop();
}
}
}//package
Section 59
//destroy (destroy)
package {
import flash.display.*;
public dynamic class destroy extends MovieClip {
public function destroy(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
visible = false;
}
}
}//package
Section 60
//enemyboss10 (enemyboss10)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class enemyboss10 extends MovieClip {
public function enemyboss10(){
addFrameScript(0, frame1, 1, frame2, 9, frame10);
}
function frame10(){
stop();
visible = false;
}
function frame1(){
stop();
}
function frame2(){
this.mot = null;
this.knock = null;
this.process = null;
}
}
}//package
Section 61
//enemyboss20 (enemyboss20)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class enemyboss20 extends MovieClip {
public function enemyboss20(){
addFrameScript(0, frame1, 2, frame3, 16, frame17);
}
function frame3(){
this.mot = null;
this.knock = null;
this.process = null;
}
function frame1(){
stop();
}
function frame17(){
visible = false;
stop();
}
}
}//package
Section 62
//enemydie (enemydie)
package {
import flash.display.*;
public dynamic class enemydie extends MovieClip {
public function enemydie(){
addFrameScript(60, frame61);
}
function frame61(){
visible = false;
stop();
}
}
}//package
Section 63
//gfxberserk (gfxberserk)
package {
import flash.display.*;
public dynamic class gfxberserk extends MovieClip {
public function gfxberserk(){
addFrameScript(25, frame26);
}
function frame26(){
visible = false;
}
}
}//package
Section 64
//healer (healer)
package {
import flash.display.*;
public dynamic class healer extends MovieClip {
public function healer(){
addFrameScript(28, frame29);
}
function frame29(){
visible = false;
}
}
}//package
Section 65
//helper (helper)
package {
import flash.display.*;
public dynamic class helper extends MovieClip {
}
}//package
Section 66
//immotalgfx (immotalgfx)
package {
import flash.display.*;
public dynamic class immotalgfx extends MovieClip {
public function immotalgfx(){
addFrameScript(9, frame10);
}
function frame10(){
visible = false;
}
}
}//package
Section 67
//map1 (map1)
package {
import flash.display.*;
public dynamic class map1 extends BitmapData {
public function map1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 68
//map10 (map10)
package {
import flash.display.*;
public dynamic class map10 extends BitmapData {
public function map10(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 69
//map11 (map11)
package {
import flash.display.*;
public dynamic class map11 extends BitmapData {
public function map11(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 70
//map12 (map12)
package {
import flash.display.*;
public dynamic class map12 extends BitmapData {
public function map12(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 71
//map13 (map13)
package {
import flash.display.*;
public dynamic class map13 extends BitmapData {
public function map13(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 72
//map14 (map14)
package {
import flash.display.*;
public dynamic class map14 extends BitmapData {
public function map14(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 73
//map15 (map15)
package {
import flash.display.*;
public dynamic class map15 extends BitmapData {
public function map15(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 74
//map16 (map16)
package {
import flash.display.*;
public dynamic class map16 extends BitmapData {
public function map16(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 75
//map17 (map17)
package {
import flash.display.*;
public dynamic class map17 extends BitmapData {
public function map17(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 76
//map18 (map18)
package {
import flash.display.*;
public dynamic class map18 extends BitmapData {
public function map18(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 77
//map19 (map19)
package {
import flash.display.*;
public dynamic class map19 extends BitmapData {
public function map19(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 78
//map2 (map2)
package {
import flash.display.*;
public dynamic class map2 extends BitmapData {
public function map2(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 79
//map20 (map20)
package {
import flash.display.*;
public dynamic class map20 extends BitmapData {
public function map20(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 80
//map21 (map21)
package {
import flash.display.*;
public dynamic class map21 extends BitmapData {
public function map21(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 81
//map22 (map22)
package {
import flash.display.*;
public dynamic class map22 extends BitmapData {
public function map22(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 82
//map23 (map23)
package {
import flash.display.*;
public dynamic class map23 extends BitmapData {
public function map23(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 83
//map24 (map24)
package {
import flash.display.*;
public dynamic class map24 extends BitmapData {
public function map24(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 84
//map25 (map25)
package {
import flash.display.*;
public dynamic class map25 extends BitmapData {
public function map25(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 85
//map26 (map26)
package {
import flash.display.*;
public dynamic class map26 extends BitmapData {
public function map26(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 86
//map3 (map3)
package {
import flash.display.*;
public dynamic class map3 extends BitmapData {
public function map3(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 87
//map4 (map4)
package {
import flash.display.*;
public dynamic class map4 extends BitmapData {
public function map4(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 88
//map5 (map5)
package {
import flash.display.*;
public dynamic class map5 extends BitmapData {
public function map5(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 89
//map6 (map6)
package {
import flash.display.*;
public dynamic class map6 extends BitmapData {
public function map6(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 90
//map7 (map7)
package {
import flash.display.*;
public dynamic class map7 extends BitmapData {
public function map7(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 91
//map8 (map8)
package {
import flash.display.*;
public dynamic class map8 extends BitmapData {
public function map8(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 92
//map9 (map9)
package {
import flash.display.*;
public dynamic class map9 extends BitmapData {
public function map9(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 93
//msplash (msplash)
package {
import flash.display.*;
public dynamic class msplash extends MovieClip {
public function msplash(){
addFrameScript(59, frame60);
}
function frame60(){
visible = false;
stop();
}
}
}//package
Section 94
//newhelper (newhelper)
package {
import flash.display.*;
public dynamic class newhelper extends MovieClip {
}
}//package
Section 95
//normalbullet (normalbullet)
package {
import flash.display.*;
public dynamic class normalbullet extends MovieClip {
}
}//package
Section 96
//normalparticle (normalparticle)
package {
import flash.display.*;
public dynamic class normalparticle extends MovieClip {
public function normalparticle(){
addFrameScript(69, frame70);
}
function frame70(){
visible = false;
stop();
}
}
}//package
Section 97
//playeravoid (playeravoid)
package {
import flash.display.*;
public dynamic class playeravoid extends MovieClip {
}
}//package
Section 98
//playerdamage (playerdamage)
package {
import flash.display.*;
import flash.text.*;
public dynamic class playerdamage extends MovieClip {
public var dmg:TextField;
public function playerdamage(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package
Section 99
//powerfog (powerfog)
package {
import flash.display.*;
public dynamic class powerfog extends MovieClip {
public function powerfog(){
addFrameScript(19, frame20, 30, frame31);
}
function frame20(){
gotoAndPlay(1);
}
function frame31(){
gotoAndPlay("active");
}
}
}//package
Section 100
//praticalsub (praticalsub)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class praticalsub extends MovieClip {
public function praticalsub(){
addFrameScript(0, frame1, 28, frame29, 58, frame59, 79, frame80, 95, frame96, 179, frame180);
}
function frame80(){
visible = false;
stop();
}
function frame180(){
visible = false;
stop();
}
function frame1(){
this.r = int((Math.random() * 10));
rotation = (Math.random() * 360);
if (this.r == 0){
gotoAndPlay(2);
};
if (this.r == 1){
gotoAndPlay(30);
};
if (this.r == 2){
gotoAndPlay(60);
};
if (this.r == 3){
gotoAndPlay(90);
};
if (this.r == 4){
gotoAndPlay(120);
};
if (this.r > 4){
visible = false;
stop();
};
}
function frame96(){
visible = false;
stop();
}
function frame29(){
visible = false;
stop();
}
function frame59(){
visible = false;
stop();
}
}
}//package
Section 101
//sbullet (sbullet)
package {
import flash.display.*;
public dynamic class sbullet extends MovieClip {
}
}//package
Section 102
//showcridmg (showcridmg)
package {
import flash.display.*;
import flash.text.*;
public dynamic class showcridmg extends MovieClip {
public var dmg:TextField;
public function showcridmg(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package
Section 103
//showdmg (showdmg)
package {
import flash.display.*;
import flash.text.*;
public dynamic class showdmg extends MovieClip {
public var dmg:TextField;
public function showdmg(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package
Section 104
//showhealgage (showhealgage)
package {
import flash.display.*;
public dynamic class showhealgage extends MovieClip {
public var gage:MovieClip;
public function showhealgage(){
addFrameScript(14, frame15);
}
function frame15(){
visible = false;
stop();
}
}
}//package
Section 105
//showhpr (showhpr)
package {
import flash.display.*;
import flash.text.*;
public dynamic class showhpr extends MovieClip {
public var dmg:TextField;
}
}//package
Section 106
//showmpr (showmpr)
package {
import flash.display.*;
import flash.text.*;
public dynamic class showmpr extends MovieClip {
public var dmg:TextField;
}
}//package
Section 107
//showwipedmg (showwipedmg)
package {
import flash.display.*;
import flash.text.*;
public dynamic class showwipedmg extends MovieClip {
public var dmg:TextField;
}
}//package
Section 108
//skillberserk (skillberserk)
package {
import flash.display.*;
public dynamic class skillberserk extends MovieClip {
public function skillberserk(){
addFrameScript(15, frame16);
}
function frame16(){
visible = false;
}
}
}//package
Section 109
//skillimmotal (skillimmotal)
package {
import flash.display.*;
public dynamic class skillimmotal extends MovieClip {
public function skillimmotal(){
addFrameScript(20, frame21);
}
function frame21(){
visible = false;
}
}
}//package
Section 110
//skillpierce (skillpierce)
package {
import flash.display.*;
public dynamic class skillpierce extends MovieClip {
public function skillpierce(){
addFrameScript(14, frame15);
}
function frame15(){
visible = false;
stop();
}
}
}//package
Section 111
//spirit (spirit)
package {
import flash.display.*;
public dynamic class spirit extends MovieClip {
}
}//package
Section 112
//spiritbullet (spiritbullet)
package {
import flash.display.*;
public dynamic class spiritbullet extends MovieClip {
}
}//package
Section 113
//spiritbullet2 (spiritbullet2)
package {
import flash.display.*;
public dynamic class spiritbullet2 extends MovieClip {
}
}//package
Section 114
//spiritlaser (spiritlaser)
package {
import flash.display.*;
public dynamic class spiritlaser extends MovieClip {
public function spiritlaser(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
visible = false;
}
}
}//package
Section 115
//stageclear (stageclear)
package {
import flash.display.*;
public dynamic class stageclear extends MovieClip {
public function stageclear(){
addFrameScript(0, frame1, 49, frame50);
}
function frame1(){
stage.quality = "high";
}
function frame50(){
stage.quality = "low";
stop();
}
}
}//package
Section 116
//stageover (stageover)
package {
import flash.display.*;
import flash.media.*;
public dynamic class stageover extends MovieClip {
public function stageover(){
addFrameScript(4, frame5, 74, frame75);
}
function frame75(){
stop();
}
function frame5(){
SoundMixer.stopAll();
stage.quality = "high";
}
}
}//package
Section 117
//summonenemy (summonenemy)
package {
import flash.display.*;
public dynamic class summonenemy extends MovieClip {
public function summonenemy(){
addFrameScript(2, frame3, 17, frame18);
}
function frame18(){
visible = false;
stop();
}
function frame3(){
gotoAndStop(1);
}
}
}//package