Section 1
//chainMc_17 (yamame0_fla.chainMc_17)
package yamame0_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class chainMc_17 extends MovieClip {
public var timeCount:int;
public var rootObj:MovieClip;
public var chain_txt:TextField;
public function chainMc_17(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
timeCount = 0;
this.addEventListener(Event.ENTER_FRAME, xEnterChain);
}
public function xEnterChain(_arg1:Event):void{
timeCount = (timeCount + rootObj.ratePlus);
if ((((timeCount > 100)) && ((this.visible == true)))){
this.visible = false;
rootObj.maxChain = 0;
};
if (rootObj.gameOverFlag == true){
this.chain_txt.text = (("MAX " + rootObj.hantozen(rootObj.mostMaxChain.toString())) + "Chain");
this.visible = true;
this.removeEventListener(Event.ENTER_FRAME, xEnterChain);
};
}
}
}//package yamame0_fla
Section 2
//kisumeMc_14 (yamame0_fla.kisumeMc_14)
package yamame0_fla {
import flash.display.*;
public dynamic class kisumeMc_14 extends MovieClip {
public function kisumeMc_14(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package yamame0_fla
Section 3
//MainTimeline (yamame0_fla.MainTimeline)
package yamame0_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public const PHP_RANKING = "php812448/ranking.php";
public const FRAME_RATE = 60;
public const KISUME_MOVE_MAX = 240;
public const YAMAME_MOVE_MAX = 150;
public const KISUME_MOVE_MIN = 8;
public const YAMAME_MOVE_MIN = 20;
public const XML_RANKING;
public var startTimer:Timer;
public var explosionFlag;
public var rankingName5_txt:TextField;
public var moveValue;
public var wall_mc:MovieClip;
public var rankingNo7_txt:TextField;
public var invincibleFlag;
public var fallSpeedDownTime;
public var enemy2Ins_array:Array;
public var fallSpeedX;
public var fallSpeedY;
public var opVolume:int;
public var mostMaxChain:int;
public var rankingScore6_txt:TextField;
public var yamame_mc:MovieClip;
public var comboObj:Object;
public var gameOverFlag;
public var gameOver_mc;
public var rankingName4_txt:TextField;
public var info:LoaderInfo;
public var rankingNo6_txt:TextField;
public var enemy6Ins_array:Array;
public var keysDown:Array;
public var fr;
public var fallSpeedDownFlag;
public var fps;
public var rankingScore5_txt:TextField;
public var ranking_array:Array;
public var shot_mc:MovieClip;
public var rankingName3_txt:TextField;
public var time_count;
public var enemyShot4Ins_array:Array;
public var clickMask_mc:clickMaskMc;
public var gameStart_btn:SimpleButton;
public var rankingNo5_txt:TextField;
public var readyCount:int;
public var kisumeHitSize;
public var breakReimuCount:int;
public var rankingBack_btn:SimpleButton;
public var kisume_mc:MovieClip;
public var viewHiscoreFlag;
public var enemy3Ins_array:Array;
public var bgmTr;
public var rankingScore4_txt:TextField;
public var gameOverBgm_sound:Sound;
public var shotFlag;
public var option_mc:MovieClip;
public var rankingName2_txt:TextField;
public var rankingNo4_txt:TextField;
public var ready_mc:ReadyMc;
public var enemyShot1Ins_array:Array;
public var sndTr;
public var loadBar_mc:MovieClip;
public var enemy7Ins_array:Array;
public var rankingScore3_txt:TextField;
public var titleHiscore_txt:TextField;
public var ranking10thScore:int;
public var seList:Dictionary;
public var fps_txt:TextField;
public var rankingName1_txt:TextField;
public var rankingName9_txt:TextField;
public var rankingNo3_txt:TextField;
public var shotCount:int;
public var so:SharedObject;
public var rankingScore2_txt:TextField;
public var hiscore_mc;
public var enemy4Ins_array:Array;
public var rankingUp_btn:SimpleButton;
public var score:int;
public var ratePlus;
public var cursorPosition:int;
public var rankingName8_txt:TextField;
public var rankingNo2_txt:TextField;
public var loadPercent_txt:TextField;
public var time;
public var ranking_btn:SimpleButton;
public var rankingScore1_txt:TextField;
public var enemyShot2Ins_array:Array;
public var rankingScore9_txt:TextField;
public var kisumeBigTime;
public var enemy8Ins_array:Array;
public var life:int;
public var gameBgm_sound:Sound;
public var breakReimuFlag;
public var enemy1Ins_array:Array;
public var rankingName7_txt:TextField;
public var rankingNo1_txt:TextField;
public var old_timer;
public var cursor_mc:MovieClip;
public var rankingNo9_txt:TextField;
public var enemyTimer2:Timer;
public var enemyTimer1:Timer;
public var score_txt:TextField;
public var opFps:int;
public var rankingScore10_txt:TextField;
public var bgmCh;
public var lifeBar_mc:MovieClip;
public var enemyNo;
public var rankingScore8_txt:TextField;
public var rankingName10_txt:TextField;
public var damageFlag;
public var rankingXmlLoader:URLLoader;
public var option_btn:SimpleButton;
public var invincibleTime;
public var kisumeBigFlag;
public var rankingDown_btn:SimpleButton;
public var enemy5Ins_array:Array;
public var slowCount:int;
public var rankingName6_txt:TextField;
public var rankingNo10_txt:TextField;
public var enemyArray:Array;
public var rankingNo8_txt:TextField;
public var maxChain:int;
public var chain_mc:MovieClip;
public var rankingPage;
public var grayMask_mc:GrayMaskMC;
public var rankingScore7_txt:TextField;
public var enemyShot3Ins_array:Array;
public function MainTimeline(){
XML_RANKING = ("xml351654/ranking.xml?" + new Date().getTime());
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 6, frame7);
}
public function kisumeBig():void{
kisume_mc.width = 80;
kisumeHitSize = 40;
kisume_mc.alpha = 1;
kisumeBigFlag = true;
kisumeBigTime = getTimer();
}
public function xKeyDown(_arg1:KeyboardEvent):void{
keysDown[_arg1.keyCode] = true;
}
public function gameFontInit():void{
chain_mc.chain_txt.embedFonts = true;
score_txt.embedFonts = true;
}
public function xClickRankingBack(_arg1:MouseEvent):void{
rankingToTitle();
}
public function enemyPattern2_11(_arg1:int):void{
enemyTimer2.stop();
}
public function xEnterReady(_arg1:Event):void{
var _local2:*;
_local2 = (readyCount % 20);
if (_local2 < 10){
ready_mc.visible = false;
} else {
ready_mc.visible = true;
};
readyCount = (readyCount + ratePlus);
}
public function xEnterYamameFall(_arg1):void{
if (yamame_mc.y < 170){
yamame_mc.y = (yamame_mc.y + (1.5 * ratePlus));
} else {
yamame_mc.removeEventListener(Event.ENTER_FRAME, xEnterYamameFall);
wall_mc.removeEventListener(Event.ENTER_FRAME, xEnterWall);
enemyTimer1.stop();
enemyTimer2.stop();
gameOverFlag = true;
if (so.data.hiScore < score){
so.data.hiScore = score;
};
grayMask_mc.visible = true;
gameOver_mc.x = 128;
gameOver_mc.y = 96;
addChildAt(gameOver_mc, (getChildIndex(grayMask_mc) + 1));
bgmCh.stop();
bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
bgmCh = gameOverBgm_sound.play(0, 1, bgmTr);
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameOverBgmComplete);
stage.addEventListener(KeyboardEvent.KEY_DOWN, xGameOverKeyDown);
};
}
public function fallSpeedDown():void{
fallSpeedX = 0;
fallSpeedY = 0;
fallSpeedDownFlag = true;
fallSpeedDownTime = getTimer();
}
public function rankingFontInit():void{
var _local1:*;
_local1 = 0;
while (_local1 < 10) {
this[(("rankingNo" + (_local1 + 1)) + "_txt")].embedFonts = true;
this[(("rankingName" + (_local1 + 1)) + "_txt")].embedFonts = true;
this[(("rankingScore" + (_local1 + 1)) + "_txt")].embedFonts = true;
_local1++;
};
}
public function enemyPattern2_10(_arg1:int):void{
}
function frame1(){
stop();
contextInit();
stage.stageFocusRect = false;
clickMask_mc.visible = false;
opFps = 60;
opVolume = 30;
cursorPosition = 0;
so = SharedObject.getLocal("yamapeko");
soInit();
loadFontInit();
enemyNo = 0;
enemy1Ins_array = [];
enemy2Ins_array = [];
enemy3Ins_array = [];
enemy4Ins_array = [];
enemy5Ins_array = [];
enemy6Ins_array = [];
enemy7Ins_array = [];
enemy8Ins_array = [];
enemyShot1Ins_array = [];
enemyShot2Ins_array = [];
enemyShot3Ins_array = [];
enemyShot4Ins_array = [];
seList = new Dictionary();
seList[damage01] = new damage01();
seList[damage02] = new damage02();
seList[enemy01] = new enemy01();
seList[item01] = new item01();
seList[shot01] = new enemy05();
seList[spread01] = new spread01();
seList[item02] = new item02();
seList[item03] = new item03();
seList[item04] = new item04();
seList[bossDamage01] = new enemy01();
seList[bossBreak01] = new bossBreak01();
sndTr = new SoundTransform();
sndTr.volume = 1;
info = root.loaderInfo;
stage.addEventListener(Event.ENTER_FRAME, xLoadEnter);
}
function frame3(){
stop();
stage.frameRate = opFps;
ratePlus = (60 / opFps);
moveValue = (2 * ratePlus);
shotFlag = false;
shotCount = 0;
explosionFlag = false;
invincibleFlag = false;
invincibleTime = 0;
kisumeBigFlag = false;
kisumeBigTime = 0;
damageFlag = false;
keysDown = [];
life = 5;
score = 0;
comboObj = new Object();
maxChain = 0;
mostMaxChain = 0;
gameOverFlag = false;
breakReimuFlag = false;
breakReimuCount = 0;
kisumeHitSize = 10;
fallSpeedX = (0.1 * ratePlus);
fallSpeedY = (0.8 * ratePlus);
fallSpeedDownFlag = false;
fallSpeedDownTime = false;
viewHiscoreFlag = false;
enemyArray = [];
slowCount = 0;
if (opFps == 60){
shot_mc = new shotMc();
yamame_mc = new yamameMc();
} else {
if (opFps == 30){
shot_mc = new shot30Mc();
yamame_mc = new yamame30Mc();
};
};
shot_mc.x = -50;
yamame_mc.x = 12.5;
yamame_mc.y = 80;
addChildAt(shot_mc, (getChildIndex(grayMask_mc) - 1));
addChildAt(yamame_mc, (getChildIndex(shot_mc) - 1));
gameOver_mc = new gameOverMc();
hiscore_mc = new hiScoreMc();
gameFontInit();
fr = opFps;
time = 1000;
time_count = 0;
old_timer = getTimer();
fps = ((fr + "/") + fr);
gameBgm_sound = new gameBgm();
gameOverBgm_sound = new gameOverBgm();
bgmTr = new SoundTransform();
bgmCh = new SoundChannel();
bgmTr.volume = (opVolume * 0.01);
bgmCh = gameBgm_sound.play(1, 1, bgmTr);
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
sndTr.volume = (Math.floor((opVolume / 3)) / 10);
readyCount = 0;
ready_mc.addEventListener(Event.ENTER_FRAME, xEnterReady);
enemyTimer1 = new Timer(2000);
enemyTimer2 = new Timer(3000);
startTimer = new Timer(1800, 1);
startTimer.addEventListener(TimerEvent.TIMER, gameStart);
startTimer.start();
}
public function xEnterShot(_arg1):void{
shot_mc.x = (shot_mc.x + (3 * ratePlus));
if (shot_mc.x > 0x0100){
shot_mc.removeEventListener(Event.ENTER_FRAME, xEnterShot);
shotFlag = false;
};
}
function frame2(){
stop();
ranking_array = [];
ranking10thScore = 0;
gameStart_btn = new GAMESTART_BTN();
gameStart_btn.x = 128;
gameStart_btn.y = 120.5;
addChild(gameStart_btn);
ranking_btn = new RANKING_BTN();
ranking_btn.x = 128;
ranking_btn.y = 137;
addChild(ranking_btn);
option_btn = new OPTION_BTN();
option_btn.x = 128;
option_btn.y = 153.5;
addChild(option_btn);
option_mc = new optionMc();
option_mc.x = 128;
option_mc.y = 130;
option_mc.visible = false;
addChild(option_mc);
option_mc.fps_btn.enabled = false;
option_mc.volume_btn.enabled = false;
cursor_mc = new cursorMc();
cursor_mc.x = 75;
cursor_mc.y = 120.5;
cursor_mc.visible = true;
addChild(cursor_mc);
moveCursor(cursorPosition);
rankingXmlLoader = new URLLoader();
rankingXmlLoader.addEventListener(Event.COMPLETE, xCompleteRanking);
rankingXmlLoader.load(new URLRequest(XML_RANKING));
titleHiscore_txt.text = hantozen(so.data.hiScore);
fpsCheck();
volumeCheck();
titleFontInit();
gameStart_btn.addEventListener(MouseEvent.CLICK, xClickGameStart);
gameStart_btn.addEventListener(MouseEvent.MOUSE_OVER, xOverGameStart);
ranking_btn.addEventListener(MouseEvent.CLICK, xClickRanking);
ranking_btn.addEventListener(MouseEvent.MOUSE_OVER, xOverRanking);
option_btn.addEventListener(MouseEvent.CLICK, xClickOption);
option_btn.addEventListener(MouseEvent.MOUSE_OVER, xOverOption);
option_mc.fpsLeft_btn.addEventListener(MouseEvent.CLICK, xClickFpsLeft);
option_mc.fpsRight_btn.addEventListener(MouseEvent.CLICK, xClickFpsRight);
option_mc.volLeft_btn.addEventListener(MouseEvent.CLICK, xClickVolLeft);
option_mc.volRight_btn.addEventListener(MouseEvent.CLICK, xClickVolRight);
option_mc.optionBack_btn.addEventListener(MouseEvent.CLICK, xClickOptionBack);
stage.addEventListener(KeyboardEvent.KEY_DOWN, xTitleKeyDown);
}
function frame7(){
stop();
rankingPage = 0;
rankingDisplayInit();
rankingFontInit();
rankingBack_btn.upState = rankingBack_btn.overState;
stage.addEventListener(KeyboardEvent.KEY_DOWN, xRankingKeyDown);
rankingBack_btn.addEventListener(MouseEvent.CLICK, xClickRankingBack);
rankingUp_btn.addEventListener(MouseEvent.CLICK, xClickRankingUp);
rankingDown_btn.addEventListener(MouseEvent.CLICK, xClickRankingDown);
}
public function titleFontInit():void{
titleHiscore_txt.embedFonts = true;
option_mc.optionFps_txt.embedFonts = true;
option_mc.optionVolume_txt.embedFonts = true;
}
public function xClickOption(_arg1:MouseEvent):void{
displayOption();
}
public function playSe(_arg1){
seList[_arg1].play(0, 1, sndTr);
}
public function hantozen(_arg1:String):String{
var _local2:String;
var _local3:Number;
var _local4:Number;
_local2 = "";
_local4 = 0;
while (_local4 < _arg1.length) {
_local3 = ((((_arg1.charCodeAt(_local4) >= 48)) && ((_arg1.charCodeAt(_local4) <= 57)))) ? 65248 : 0;
_local2 = (_local2 + String.fromCharCode((_arg1.charCodeAt(_local4) + _local3)));
_local4++;
};
return (_local2);
}
public function xOverOption(_arg1:MouseEvent):void{
cursorPosition = 2;
moveCursor(cursorPosition);
}
public function loadFontInit():void{
loadPercent_txt.embedFonts = true;
}
public function xClickVolRight(_arg1:MouseEvent):void{
volumeChange(10);
}
public function xOverRanking(_arg1:MouseEvent):void{
cursorPosition = 1;
moveCursor(cursorPosition);
}
public function xCompleteRanking(_arg1:Event):void{
var _local2:XML;
var _local3:XMLList;
_local2 = new XML(rankingXmlLoader.data);
_local3 = _local2.ranking;
for each (_local2 in _local3) {
ranking_array.push({name:_local2.name, score:_local2.score});
};
ranking_array.sortOn("score", (Array.DESCENDING | Array.NUMERIC));
if (ranking_array[49] != null){
ranking10thScore = ranking_array[49].score;
} else {
ranking10thScore = 0;
};
rankingXmlLoader.removeEventListener(Event.COMPLETE, xCompleteRanking);
rankingXmlLoader = null;
}
public function xRankingKeyDown(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == 90)) || ((_arg1.keyCode == Keyboard.ENTER)))){
rankingToTitle();
} else {
if (_arg1.keyCode == Keyboard.DOWN){
if (rankingPage < 40){
rankingPage++;
rankingDisplayInit();
};
} else {
if (_arg1.keyCode == Keyboard.UP){
if (rankingPage > 0){
rankingPage--;
rankingDisplayInit();
};
};
};
};
}
public function xGameOverKeyDown(_arg1:KeyboardEvent):void{
if (viewHiscoreFlag == false){
if ((((_arg1.keyCode == 90)) || ((_arg1.keyCode == Keyboard.ENTER)))){
if ((((ranking10thScore < score)) && ((slowCount < 30)))){
hiscore_mc.visible = true;
hiscore_mc.hiscoreInput_txt.maxChars = 12;
hiscore_mc.hiscoreInput_txt.restrict = "a-zA-Z0-9";
hiscore_mc.hiscoreInput_txt.text = so.data.userName;
hiscore_mc.x = 128;
hiscore_mc.y = 97.5;
addChildAt(hiscore_mc, (getChildIndex(gameOver_mc) + 1));
viewHiscoreFlag = true;
hiscore_mc.hiscoreEnter_btn.addEventListener(MouseEvent.CLICK, xClickHiscoreEnter);
} else {
stage.removeEventListener(KeyboardEvent.KEY_DOWN, xGameOverKeyDown);
gameOverToTitle();
};
};
} else {
if ((((viewHiscoreFlag == true)) && (!((stage.focus == hiscore_mc.hiscoreInput_txt))))){
stage.focus = hiscore_mc.hiscoreInput_txt;
} else {
if (viewHiscoreFlag == true){
if (_arg1.keyCode == Keyboard.ENTER){
registHiscore();
};
};
};
};
}
public function xClickVolLeft(_arg1:MouseEvent):void{
volumeChange(-10);
}
public function lifePointCheck(_arg1):void{
if (lifeBar_mc.width != 0){
if (lifeBar_mc.width <= _arg1){
lifeBar_mc.width = 75;
} else {
if ((lifeBar_mc.width - _arg1) >= 75){
lifeBar_mc.width = 75;
} else {
lifeBar_mc.width = (lifeBar_mc.width - _arg1);
};
};
};
if (lifeBar_mc.width <= -120){
toGameOver();
};
}
public function titleToGame():void{
removeTitleAllEvent();
gotoAndStop("game");
}
public function xClickGameStart(_arg1):void{
titleToGame();
}
public function soInit():void{
if (so.size == 0){
so.data.userName = "";
so.data.hiScore = 0;
so.data.volume = 30;
so.data.fps = 60;
} else {
if (so.data.fps != null){
opFps = so.data.fps;
};
if (so.data.volume != null){
opVolume = so.data.volume;
};
};
}
public function scoreCheck(_arg1:int):void{
score = (score + _arg1);
score_txt.text = hantozen(score.toString());
}
public function fpsCheck():void{
option_mc.optionFps_txt.text = hantozen(opFps.toString());
if (opFps == 60){
option_mc.fpsLeft_btn.visible = true;
option_mc.fpsRight_btn.visible = false;
} else {
option_mc.fpsLeft_btn.visible = false;
option_mc.fpsRight_btn.visible = true;
};
}
public function createInstance():void{
var _local1:*;
var _local2:MovieClip;
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:MovieClip;
var _local6:MovieClip;
var _local7:MovieClip;
var _local8:MovieClip;
var _local9:MovieClip;
var _local10:MovieClip;
var _local11:MovieClip;
var _local12:MovieClip;
var _local13:MovieClip;
_local1 = 0;
while (_local1 < 10) {
_local4 = new enemy1Mc();
_local4.visible = false;
_local4.name = ("enemy" + enemyNo++);
enemy1Ins_array.push(_local4);
_local1++;
};
_local1 = 0;
while (_local1 < 10) {
_local5 = new enemy2Mc();
_local5.visible = false;
_local5.name = ("enemy" + enemyNo++);
enemy2Ins_array.push(_local5);
_local1++;
};
_local1 = 0;
while (_local1 < 10) {
_local6 = new enemy3Mc();
_local6.visible = false;
_local6.name = ("enemy" + enemyNo++);
enemy3Ins_array.push(_local6);
_local1++;
};
_local1 = 0;
while (_local1 < 10) {
_local7 = new enemy4Mc();
_local7.visible = false;
_local7.name = ("enemy" + enemyNo++);
enemy4Ins_array.push(_local7);
_local1++;
};
_local1 = 0;
while (_local1 < 10) {
_local8 = new enemy5Mc();
_local8.visible = false;
_local8.name = ("enemy" + enemyNo++);
enemy5Ins_array.push(_local8);
_local1++;
};
_local1 = 0;
while (_local1 < 10) {
_local9 = new enemy6Mc();
_local9.visible = false;
_local9.name = ("enemy" + enemyNo++);
enemy6Ins_array.push(_local9);
_local1++;
};
_local2 = new enemy7Mc();
_local2.visible = false;
_local2.name = ("enemy" + enemyNo++);
enemy7Ins_array.push(_local2);
_local3 = new enemy8Mc();
_local3.visible = false;
_local3.name = ("enemy" + enemyNo++);
enemy8Ins_array.push(_local3);
_local1 = 0;
while (_local1 < 20) {
_local10 = new enemyShot1Mc();
_local10.visible = false;
_local10.name = ("enemy" + enemyNo++);
enemyShot1Ins_array.push(_local10);
_local1++;
};
_local1 = 0;
while (_local1 < 20) {
_local11 = new enemyShot2Mc();
_local11.visible = false;
_local11.name = ("enemy" + enemyNo++);
enemyShot2Ins_array.push(_local11);
_local1++;
};
_local1 = 0;
while (_local1 < 10) {
_local12 = new enemyShot3Mc();
_local12.visible = false;
_local12.name = ("enemy" + enemyNo++);
enemyShot3Ins_array.push(_local12);
_local1++;
};
_local1 = 0;
while (_local1 < 10) {
_local13 = new enemyShot4Mc();
_local13.visible = false;
_local13.name = ("enemy" + enemyNo++);
enemyShot4Ins_array.push(_local13);
_local1++;
};
}
public function unDisplayOption():void{
option_mc.visible = false;
cursorPosition = 2;
moveCursor(cursorPosition);
}
public function titleToRanking():void{
removeTitleAllEvent();
gotoAndStop("ranking");
}
public function removeTitleAllEvent():void{
gameStart_btn.visible = false;
ranking_btn.visible = false;
removeChild(option_btn);
gameStart_btn.removeEventListener(MouseEvent.CLICK, xClickGameStart);
ranking_btn.removeEventListener(MouseEvent.CLICK, xClickRanking);
option_btn.removeEventListener(MouseEvent.CLICK, xClickOption);
gameStart_btn.removeEventListener(MouseEvent.MOUSE_OVER, xOverGameStart);
ranking_btn.removeEventListener(MouseEvent.MOUSE_OVER, xOverRanking);
option_btn.removeEventListener(MouseEvent.MOUSE_OVER, xOverOption);
option_mc.fpsLeft_btn.removeEventListener(MouseEvent.CLICK, xClickFpsLeft);
option_mc.fpsRight_btn.removeEventListener(MouseEvent.CLICK, xClickFpsRight);
option_mc.volLeft_btn.removeEventListener(MouseEvent.CLICK, xClickVolLeft);
option_mc.volRight_btn.removeEventListener(MouseEvent.CLICK, xClickVolRight);
option_mc.optionBack_btn.removeEventListener(MouseEvent.CLICK, xClickOptionBack);
removeChild(option_mc);
option_mc = null;
removeChild(cursor_mc);
cursor_mc = null;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, xTitleKeyDown);
}
public function hantozenA(_arg1:String):String{
var _local2:String;
var _local3:Number;
var _local4:Number;
_local2 = "";
_local4 = 0;
while (_local4 < _arg1.length) {
_local3 = ((((_arg1.charCodeAt(_local4) >= 48)) && ((_arg1.charCodeAt(_local4) <= 122)))) ? 65248 : 0;
_local2 = (_local2 + String.fromCharCode((_arg1.charCodeAt(_local4) + _local3)));
_local4++;
};
return (_local2);
}
public function gameOverToTitle():void{
bgmCh.stop();
stage.removeEventListener(KeyboardEvent.KEY_DOWN, xGameOverKeyDown);
removeChild(shot_mc);
removeChild(yamame_mc);
removeChild(gameOver_mc);
shot_mc = null;
yamame_mc = null;
gameOver_mc = null;
hiscore_mc = null;
gotoAndPlay("title");
}
public function registHiscore():void{
var url:URLRequest;
var variables:URLVariables;
var loader:URLLoader;
url = new URLRequest(PHP_RANKING);
variables = new URLVariables();
variables.name = hiscore_mc.hiscoreInput_txt.text;
variables.score = score;
url.data = variables.toString();
url.method = URLRequestMethod.POST;
loader = new URLLoader();
try {
loader.load(url);
} catch(e:Error) {
};
url = null;
loader = null;
so.data.userName = hiscore_mc.hiscoreInput_txt.text;
hiscore_mc.hiscoreEnter_btn.removeEventListener(MouseEvent.CLICK, xClickHiscoreEnter);
hiscore_mc.visible = false;
removeChild(hiscore_mc);
stage.focus = stage;
score = 0;
viewHiscoreFlag = false;
}
public function fpsChange(_arg1:int):void{
cursorPosition = 3;
moveCursor(cursorPosition);
opFps = _arg1;
so.data.fps = opFps;
fpsCheck();
}
public function volumeCheck():void{
option_mc.optionVolume_txt.text = hantozen(opVolume.toString());
if (opVolume == 0){
option_mc.volLeft_btn.visible = false;
option_mc.volRight_btn.visible = true;
} else {
if (opVolume == 100){
option_mc.volLeft_btn.visible = true;
option_mc.volRight_btn.visible = false;
} else {
option_mc.volLeft_btn.visible = true;
option_mc.volRight_btn.visible = true;
};
};
}
public function xClickRanking(_arg1:MouseEvent):void{
titleToRanking();
}
public function gameOverBgmComplete(_arg1:Event):void{
bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameOverBgmComplete);
bgmCh = null;
bgmCh = gameOverBgm_sound.play(1, 1, bgmTr);
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameOverBgmComplete);
}
public function xClickFpsLeft(_arg1:MouseEvent):void{
fpsChange(30);
}
public function xClickClickMask(_arg1:MouseEvent):void{
clickMask_mc.clickBar_mc = null;
clickMask_mc.removeEventListener(MouseEvent.CLICK, xClickClickMask);
clickMask_mc = null;
gotoAndStop("title");
}
public function moveCursor(_arg1:int):void{
gameStart_btn.upState = gameStart_btn.downState;
ranking_btn.upState = ranking_btn.downState;
option_btn.upState = option_btn.downState;
option_mc.fps_btn.upState = option_mc.fps_btn.downState;
option_mc.volume_btn.upState = option_mc.volume_btn.downState;
option_mc.optionBack_btn.upState = option_mc.optionBack_btn.downState;
if (_arg1 == 0){
gameStart_btn.upState = gameStart_btn.overState;
cursor_mc.x = 75;
cursor_mc.y = 120.5;
} else {
if (_arg1 == 1){
ranking_btn.upState = ranking_btn.overState;
cursor_mc.x = 75;
cursor_mc.y = 137;
} else {
if (_arg1 == 2){
option_btn.upState = option_btn.overState;
cursor_mc.x = 75;
cursor_mc.y = 153.5;
} else {
if (_arg1 == 3){
option_mc.fps_btn.upState = option_mc.fps_btn.overState;
cursor_mc.x = 70;
cursor_mc.y = 120.5;
} else {
if (_arg1 == 4){
option_mc.volume_btn.upState = option_mc.volume_btn.overState;
cursor_mc.x = 70;
cursor_mc.y = 137.5;
} else {
if (_arg1 == 5){
option_mc.optionBack_btn.upState = option_mc.optionBack_btn.overState;
cursor_mc.x = 90;
cursor_mc.y = 156;
};
};
};
};
};
};
}
public function xEnterYamame(_arg1):void{
var _local2:*;
var _local3:*;
if (damageFlag == false){
if (((keysDown[Keyboard.UP]) && (keysDown[Keyboard.RIGHT]))){
if (kisume_mc.x < KISUME_MOVE_MAX){
kisume_mc.x = (kisume_mc.x + moveValue);
};
if (yamame_mc.y > YAMAME_MOVE_MIN){
yamame_mc.y = (yamame_mc.y - moveValue);
};
yamame_mc.gotoAndPlay("up");
kisume_mc.gotoAndPlay("right");
} else {
if (((keysDown[Keyboard.UP]) && (keysDown[Keyboard.LEFT]))){
if (kisume_mc.x > KISUME_MOVE_MIN){
kisume_mc.x = (kisume_mc.x - moveValue);
};
if (yamame_mc.y > YAMAME_MOVE_MIN){
yamame_mc.y = (yamame_mc.y - moveValue);
};
yamame_mc.gotoAndPlay("up");
kisume_mc.gotoAndPlay("left");
} else {
if (((keysDown[Keyboard.DOWN]) && (keysDown[Keyboard.RIGHT]))){
if (kisume_mc.x < KISUME_MOVE_MAX){
kisume_mc.x = (kisume_mc.x + moveValue);
};
if (yamame_mc.y < YAMAME_MOVE_MAX){
yamame_mc.y = (yamame_mc.y + moveValue);
};
yamame_mc.gotoAndPlay("down");
kisume_mc.gotoAndPlay("right");
} else {
if (((keysDown[Keyboard.DOWN]) && (keysDown[Keyboard.LEFT]))){
if (kisume_mc.x > KISUME_MOVE_MIN){
kisume_mc.x = (kisume_mc.x - moveValue);
};
if (yamame_mc.y < YAMAME_MOVE_MAX){
yamame_mc.y = (yamame_mc.y + moveValue);
};
yamame_mc.gotoAndPlay("down");
kisume_mc.gotoAndPlay("left");
} else {
if (keysDown[Keyboard.UP]){
if (yamame_mc.y > YAMAME_MOVE_MIN){
yamame_mc.y = (yamame_mc.y - moveValue);
};
yamame_mc.gotoAndPlay("up");
} else {
if (keysDown[Keyboard.RIGHT]){
if (kisume_mc.x < KISUME_MOVE_MAX){
kisume_mc.x = (kisume_mc.x + moveValue);
};
kisume_mc.gotoAndPlay("right");
} else {
if (keysDown[Keyboard.DOWN]){
if (yamame_mc.y < YAMAME_MOVE_MAX){
yamame_mc.y = (yamame_mc.y + moveValue);
};
yamame_mc.gotoAndPlay("down");
} else {
if (keysDown[Keyboard.LEFT]){
if (kisume_mc.x > KISUME_MOVE_MIN){
kisume_mc.x = (kisume_mc.x - moveValue);
};
kisume_mc.gotoAndPlay("left");
};
};
};
};
};
};
};
};
if (keysDown[90]){
if (shotFlag == false){
playSe(shot01);
shotFlag = true;
shotCount = (shotCount + 1);
comboObj[shotCount] = 0;
if (shotCount > 10){
_local2 = delete comboObj[(shotCount - 10)];
};
shot_mc.gotoAndStop("normal");
shot_mc.x = (yamame_mc.x + 16);
shot_mc.y = (yamame_mc.y - 2);
shot_mc.visible = true;
shot_mc.addEventListener(Event.ENTER_FRAME, xEnterShot);
yamame_mc.gotoAndPlay("shot");
};
};
};
if (invincibleFlag == true){
if (invincibleTime < (getTimer() - 3000)){
invincibleFlag = false;
yamame_mc.alpha = 1;
};
};
if (damageFlag == true){
if (invincibleTime < (getTimer() - 500)){
damageFlag = false;
};
};
if (kisumeBigFlag == true){
if (kisumeBigTime < (getTimer() - 10000)){
kisumeBigFlag = false;
kisume_mc.alpha = 1;
kisume_mc.width = 20;
kisumeHitSize = 10;
} else {
if (kisumeBigTime < (getTimer() - 8000)){
kisume_mc.alpha = 0.5;
};
};
};
if (fallSpeedDownFlag == true){
if (fallSpeedDownTime < (getTimer() - 5000)){
fallSpeedDownFlag = false;
fallSpeedX = (0.1 * ratePlus);
fallSpeedY = (0.8 * ratePlus);
};
};
time_count = (time_count + 1);
if ((getTimer() - old_timer) >= time){
_local3 = Math.floor(((time_count * 1000) / (getTimer() - old_timer)));
fps = ((_local3 + "/") + fr);
old_timer = getTimer();
time_count = 0;
fps_txt.text = fps;
if (_local3 < (opFps - 20)){
slowCount++;
};
};
}
public function chainCheck(_arg1:int):void{
if (maxChain < comboObj[_arg1]){
maxChain = comboObj[_arg1];
chain_mc.chain_txt.text = (hantozen(comboObj[_arg1]) + "Chain!");
chain_mc.visible = true;
chain_mc.timeCount = 0;
if (mostMaxChain < maxChain){
mostMaxChain = maxChain;
};
};
}
public function xClickFpsRight(_arg1:MouseEvent):void{
fpsChange(60);
}
public function gameBgmComplete(_arg1:Event):void{
bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
bgmCh = null;
bgmCh = gameBgm_sound.play(3276, 1, bgmTr);
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
}
public function xTitleKeyDown(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.UP){
if (cursorPosition == 0){
cursorPosition = 2;
} else {
if (cursorPosition == 1){
cursorPosition = 0;
} else {
if (cursorPosition == 2){
cursorPosition = 1;
} else {
if (cursorPosition == 3){
cursorPosition = 5;
} else {
if (cursorPosition == 4){
cursorPosition = 3;
} else {
if (cursorPosition == 5){
cursorPosition = 4;
};
};
};
};
};
};
moveCursor(cursorPosition);
} else {
if (_arg1.keyCode == Keyboard.DOWN){
if (cursorPosition == 0){
cursorPosition = 1;
} else {
if (cursorPosition == 1){
cursorPosition = 2;
} else {
if (cursorPosition == 2){
cursorPosition = 0;
} else {
if (cursorPosition == 3){
cursorPosition = 4;
} else {
if (cursorPosition == 4){
cursorPosition = 5;
} else {
if (cursorPosition == 5){
cursorPosition = 3;
};
};
};
};
};
};
moveCursor(cursorPosition);
} else {
if ((((_arg1.keyCode == 90)) || ((_arg1.keyCode == Keyboard.ENTER)))){
if (cursorPosition == 0){
titleToGame();
} else {
if (cursorPosition == 1){
titleToRanking();
} else {
if (cursorPosition == 2){
displayOption();
} else {
if (cursorPosition == 5){
unDisplayOption();
};
};
};
};
} else {
if (_arg1.keyCode == Keyboard.LEFT){
if (cursorPosition == 3){
fpsChange(30);
} else {
if (cursorPosition == 4){
if (opVolume != 0){
volumeChange(-10);
};
};
};
} else {
if (_arg1.keyCode == Keyboard.RIGHT){
if (cursorPosition == 3){
fpsChange(60);
} else {
if (cursorPosition == 4){
if (opVolume != 100){
volumeChange(10);
};
};
};
};
};
};
};
};
}
public function rankingDisplayInit():void{
var _local1:*;
var _local2:*;
_local1 = 0;
while (_local1 < 10) {
_local2 = (_local1 + rankingPage);
this[(("rankingNo" + (_local1 + 1)) + "_txt")].text = (hantozenA((_local2 + 1)) + ":");
if (ranking_array[_local2] != null){
this[(("rankingName" + (_local1 + 1)) + "_txt")].text = hantozenA(ranking_array[_local2].name);
this[(("rankingScore" + (_local1 + 1)) + "_txt")].text = hantozen(ranking_array[_local2].score);
} else {
this[(("rankingName" + (_local1 + 1)) + "_txt")].text = "----------";
this[(("rankingScore" + (_local1 + 1)) + "_txt")].text = "0";
};
_local1++;
};
if (rankingPage == 0){
rankingUp_btn.visible = false;
} else {
if (rankingPage == 40){
rankingDown_btn.visible = false;
} else {
rankingUp_btn.visible = true;
rankingDown_btn.visible = true;
};
};
}
public function xClickOptionBack(_arg1:MouseEvent):void{
unDisplayOption();
}
public function xEnterWall(_arg1):void{
wall_mc.x = (wall_mc.x - (1 * ratePlus));
if (wall_mc.x < -256){
wall_mc.x = 0;
};
}
public function xClickHiscoreEnter(_arg1:MouseEvent):void{
registHiscore();
}
public function popEnemy1():void{
var _local1:MovieClip;
var _local2:*;
if (enemy1Ins_array.length == 0){
_local1 = new enemy1Mc();
_local1.visible = false;
_local1.gotoAndPlay("reset");
addChildAt(_local1, (getChildIndex(wall_mc) + 1));
_local1.name = ("enemy" + enemyNo++);
} else {
_local2 = enemy1Ins_array.shift();
_local2.gotoAndPlay("reset");
addChildAt(_local2, (getChildIndex(wall_mc) + 1));
};
}
public function popEnemy2():void{
var _local1:MovieClip;
var _local2:*;
if (enemy2Ins_array.length == 0){
_local1 = new enemy2Mc();
_local1.visible = false;
_local1.gotoAndPlay("reset");
addChildAt(_local1, (getChildIndex(wall_mc) + 1));
_local1.name = ("enemy" + enemyNo++);
} else {
_local2 = enemy2Ins_array.shift();
_local2.gotoAndPlay("reset");
addChildAt(_local2, (getChildIndex(wall_mc) + 1));
};
}
public function popEnemy4():void{
var _local1:MovieClip;
var _local2:*;
if (enemy4Ins_array.length == 0){
_local1 = new enemy4Mc();
_local1.visible = false;
_local1.gotoAndPlay("reset");
addChildAt(_local1, (getChildIndex(wall_mc) + 1));
_local1.name = ("enemy" + enemyNo++);
} else {
_local2 = enemy4Ins_array.shift();
_local2.gotoAndPlay("reset");
addChildAt(_local2, (getChildIndex(wall_mc) + 1));
};
}
public function contextInit():void{
var _local1:*;
var _local2:*;
_local1 = new ContextMenu();
_local1.hideBuiltInItems();
_local2 = new Sprite();
stage.addChildAt(_local2, 0);
_local2.graphics.beginFill(0xFF0000, 0);
_local2.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
_local2.graphics.endFill();
_local2.contextMenu = _local1;
}
public function popEnemy7():void{
var _local1:MovieClip;
var _local2:*;
var _local3:MovieClip;
var _local4:*;
if (Math.floor((Math.random() * 64)) != 0){
if (enemy7Ins_array.length == 0){
_local1 = new enemy7Mc();
_local1.visible = false;
_local1.gotoAndPlay("reset");
addChildAt(_local1, (getChildIndex(wall_mc) + 1));
_local1.name = ("enemy" + enemyNo++);
} else {
_local2 = enemy7Ins_array.shift();
_local2.gotoAndPlay("reset");
addChildAt(_local2, (getChildIndex(wall_mc) + 1));
};
} else {
if (enemy8Ins_array.length != 0){
_local3 = new enemy8Mc();
_local3.visible = false;
_local3.gotoAndPlay("reset");
addChildAt(_local3, (getChildIndex(wall_mc) + 1));
_local3.name = ("enemy" + enemyNo++);
} else {
_local4 = enemy8Ins_array.shift();
_local4.gotoAndPlay("reset");
addChildAt(_local4, (getChildIndex(wall_mc) + 1));
};
};
}
public function popEnemy5():void{
var _local1:MovieClip;
var _local2:*;
if (enemy5Ins_array.length == 0){
_local1 = new enemy5Mc();
_local1.visible = false;
_local1.gotoAndPlay("reset");
addChildAt(_local1, (getChildIndex(wall_mc) + 1));
_local1.name = ("enemy" + enemyNo++);
} else {
_local2 = enemy5Ins_array.shift();
_local2.gotoAndPlay("reset");
addChildAt(_local2, (getChildIndex(wall_mc) + 1));
};
}
public function popEnemy6():void{
var _local1:MovieClip;
var _local2:*;
if (enemy6Ins_array.length == 0){
_local1 = new enemy6Mc();
_local1.visible = false;
_local1.gotoAndPlay("reset");
addChildAt(_local1, (getChildIndex(wall_mc) + 1));
_local1.name = ("enemy" + enemyNo++);
} else {
_local2 = enemy6Ins_array.shift();
_local2.gotoAndPlay("reset");
addChildAt(_local2, (getChildIndex(wall_mc) + 1));
};
}
public function xClickRankingUp(_arg1:MouseEvent):void{
if (rankingPage > 0){
rankingPage--;
rankingDisplayInit();
};
}
public function volumeChange(_arg1:int){
cursorPosition = 4;
moveCursor(cursorPosition);
opVolume = (opVolume + _arg1);
so.data.volume = opVolume;
volumeCheck();
}
public function xShuffleArray(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = _arg1.length;
while (_local2--) {
_local3 = Math.floor((Math.random() * (_local2 + 1)));
_local4 = _arg1[_local2];
_arg1[_local2] = _arg1[_local3];
_arg1[_local3] = _local4;
};
}
public function enemyPattern2_1(_arg1:int):void{
var _local2:int;
popEnemy1();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy4();
_local2++;
};
}
public function enemyPattern2_2(_arg1:int):void{
var _local2:int;
popEnemy2();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy4();
_local2++;
};
}
public function enemyPattern2_4(_arg1:int):void{
var _local2:int;
popEnemy1();
popEnemy2();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy4();
_local2++;
};
}
public function enemyPattern2_5(_arg1:int):void{
var _local2:int;
popEnemy1();
popEnemy2();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy4();
_local2++;
};
}
public function enemyPattern2_6(_arg1:int):void{
var _local2:int;
popEnemy3();
popEnemy5();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy4();
_local2++;
};
}
public function enemyPattern2_7(_arg1:int):void{
var _local2:int;
popEnemy3();
popEnemy5();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy4();
_local2++;
};
}
public function xOverGameStart(_arg1:MouseEvent):void{
cursorPosition = 0;
moveCursor(cursorPosition);
}
public function enemyPattern2_3(_arg1:int):void{
var _local2:int;
popEnemy2();
popEnemy4();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy4();
_local2++;
};
}
public function rankingToTitle():void{
stage.removeEventListener(KeyboardEvent.KEY_DOWN, xRankingKeyDown);
rankingBack_btn.removeEventListener(MouseEvent.CLICK, xClickRankingBack);
rankingUp_btn.removeEventListener(MouseEvent.CLICK, xClickRankingUp);
rankingDown_btn.removeEventListener(MouseEvent.CLICK, xClickRankingDown);
cursorPosition = 1;
gotoAndPlay("title");
}
public function popEnemy3():void{
var _local1:MovieClip;
var _local2:*;
if (enemy3Ins_array.length == 0){
_local1 = new enemy3Mc();
_local1.visible = false;
_local1.gotoAndPlay("reset");
addChildAt(_local1, (getChildIndex(wall_mc) + 1));
_local1.name = ("enemy" + enemyNo++);
} else {
_local2 = enemy3Ins_array.shift();
_local2.gotoAndPlay("reset");
addChildAt(_local2, (getChildIndex(wall_mc) + 1));
};
}
public function enemyPattern2_8(_arg1:int):void{
var _local2:int;
popEnemy2();
popEnemy5();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy4();
_local2++;
};
}
public function enemyPattern2_9(_arg1:int):void{
var _local2:int;
popEnemy6();
popEnemy3();
popEnemy4();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy4();
_local2++;
};
}
public function gameStart(_arg1:TimerEvent):void{
ready_mc.visible = false;
ready_mc.removeEventListener(Event.ENTER_FRAME, xEnterReady);
ready_mc = null;
grayMask_mc.visible = false;
startTimer = null;
enemyTimer1.addEventListener(TimerEvent.TIMER, xEnemyTimer1);
enemyTimer2.addEventListener(TimerEvent.TIMER, xEnemyTimer2);
stage.addEventListener(KeyboardEvent.KEY_DOWN, xKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, xKeyUp);
yamame_mc.addEventListener(Event.ENTER_FRAME, xEnterYamame);
wall_mc.addEventListener(Event.ENTER_FRAME, xEnterWall);
enemyTimer1.start();
enemyTimer2.start();
}
public function toGameOver():void{
stage.removeEventListener(KeyboardEvent.KEY_DOWN, xKeyDown);
stage.removeEventListener(KeyboardEvent.KEY_UP, xKeyUp);
yamame_mc.removeEventListener(Event.ENTER_FRAME, xEnterYamame);
yamame_mc.gotoAndStop("dead");
yamame_mc.alpha = 1;
yamame_mc.addEventListener(Event.ENTER_FRAME, xEnterYamameFall);
}
public function xEnemyTimer1(_arg1:TimerEvent):void{
var _local2:*;
var _local3:*;
_local2 = (enemyTimer1.currentCount % 65);
_local3 = Math.floor((enemyTimer1.currentCount / 65));
if (_local2 == 0){
};
if (_local2 < 6){
enemyPattern1_1(_local3);
} else {
if (_local2 < 12){
enemyPattern1_2(_local3);
} else {
if (_local2 < 18){
enemyPattern1_3(_local3);
} else {
if (_local2 < 24){
enemyPattern1_4(_local3);
} else {
if (_local2 < 30){
enemyPattern1_5(_local3);
} else {
if (_local2 < 36){
enemyPattern1_6(_local3);
} else {
if (_local2 < 42){
enemyPattern1_7(_local3);
} else {
if (_local2 < 48){
enemyPattern1_8(_local3);
} else {
if (_local2 < 54){
enemyPattern1_9(_local3);
} else {
if (_local2 < 64){
enemyPattern1_10(_local3);
} else {
if (_local2 == 64){
enemyPattern1_11(_local3);
};
};
};
};
};
};
};
};
};
};
};
}
public function xEnemyTimer2(_arg1:TimerEvent):void{
var _local2:*;
var _local3:*;
_local2 = (enemyTimer2.currentCount % 65);
_local3 = Math.floor((enemyTimer2.currentCount / 65));
if (_local2 == 0){
};
if (enemyTimer2.delay == 3000){
enemyTimer2.delay = 2000;
};
if (_local2 < 6){
enemyPattern2_1(_local3);
} else {
if (_local2 < 12){
enemyPattern2_2(_local3);
} else {
if (_local2 < 18){
enemyPattern2_3(_local3);
} else {
if (_local2 < 24){
enemyPattern2_4(_local3);
} else {
if (_local2 < 30){
enemyPattern2_5(_local3);
} else {
if (_local2 < 36){
enemyPattern2_6(_local3);
} else {
if (_local2 < 42){
enemyPattern2_7(_local3);
} else {
if (_local2 < 48){
enemyPattern2_8(_local3);
} else {
if (_local2 < 54){
enemyPattern2_9(_local3);
} else {
if (_local2 < 64){
enemyPattern2_10(_local3);
} else {
if (_local2 == 64){
enemyPattern2_11(_local3);
};
};
};
};
};
};
};
};
};
};
};
}
public function enemyPattern1_1(_arg1:int):void{
var _local2:int;
popEnemy1();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy5();
_local2++;
};
}
public function enemyPattern1_2(_arg1:int):void{
var _local2:int;
popEnemy1();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy5();
_local2++;
};
}
public function enemyPattern1_4(_arg1:int):void{
var _local2:int;
popEnemy3();
popEnemy4();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy5();
_local2++;
};
}
public function enemyPattern1_5(_arg1:int):void{
var _local2:int;
popEnemy1();
popEnemy5();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy6();
_local2++;
};
}
public function enemyPattern1_6(_arg1:int):void{
var _local2:int;
popEnemy1();
popEnemy5();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy6();
_local2++;
};
}
public function enemyPattern1_7(_arg1:int):void{
var _local2:int;
popEnemy5();
popEnemy5();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy6();
_local2++;
};
}
public function enemyPattern1_8(_arg1:int):void{
var _local2:int;
popEnemy1();
popEnemy6();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy6();
_local2++;
};
}
public function enemyPattern1_9(_arg1:int):void{
var _local2:int;
popEnemy5();
popEnemy6();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy6();
_local2++;
};
}
public function enemyPattern1_3(_arg1:int):void{
var _local2:int;
popEnemy3();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy5();
_local2++;
};
}
public function xKeyUp(_arg1:KeyboardEvent):void{
if ((((((_arg1.keyCode == 90)) && ((shotFlag == true)))) && ((explosionFlag == false)))){
playSe(spread01);
shot_mc.gotoAndPlay("explosion");
shot_mc.removeEventListener(Event.ENTER_FRAME, xEnterShot);
};
yamame_mc.gotoAndStop("normal");
kisume_mc.gotoAndStop("normal");
keysDown[_arg1.keyCode] = false;
}
public function enemyPattern1_10(_arg1:int):void{
var _local2:int;
popEnemy5();
popEnemy6();
_local2 = 0;
while (_local2 < _arg1) {
popEnemy6();
_local2++;
};
}
public function enemyPattern1_11(_arg1:int):void{
popEnemy7();
enemyTimer1.stop();
}
public function displayOption():void{
cursorPosition = 3;
option_mc.visible = true;
moveCursor(cursorPosition);
}
public function xClickRankingDown(_arg1:MouseEvent):void{
if (rankingPage < 40){
rankingPage++;
rankingDisplayInit();
};
}
public function xLoadEnter(_arg1:Event):void{
var _local2:*;
_local2 = Math.floor(((info.bytesLoaded / info.bytesTotal) * 100));
loadPercent_txt.text = hantozen(_local2.toString());
loadBar_mc.scaleX = (_local2 / 100);
if (info.bytesLoaded == info.bytesTotal){
createInstance();
stage.removeEventListener(Event.ENTER_FRAME, xLoadEnter);
clickMask_mc.visible = true;
clickMask_mc.addEventListener(MouseEvent.CLICK, xClickClickMask);
};
}
}
}//package yamame0_fla
Section 4
//Timeline_34 (yamame0_fla.Timeline_34)
package yamame0_fla {
import flash.display.*;
public dynamic class Timeline_34 extends MovieClip {
public function Timeline_34(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
gotoAndStop("normal");
}
function frame1(){
stop();
}
}
}//package yamame0_fla
Section 5
//Timeline_36 (yamame0_fla.Timeline_36)
package yamame0_fla {
import flash.display.*;
public dynamic class Timeline_36 extends MovieClip {
public function Timeline_36(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
gotoAndStop("normal");
}
function frame1(){
stop();
}
}
}//package yamame0_fla
Section 6
//bossBreak01 (bossBreak01)
package {
import flash.media.*;
public dynamic class bossBreak01 extends Sound {
}
}//package
Section 7
//bossDamage01 (bossDamage01)
package {
import flash.media.*;
public dynamic class bossDamage01 extends Sound {
}
}//package
Section 8
//clickMaskMc (clickMaskMc)
package {
import flash.display.*;
public dynamic class clickMaskMc extends MovieClip {
public var clickBar_mc:MovieClip;
}
}//package
Section 9
//cursorMc (cursorMc)
package {
import flash.display.*;
public dynamic class cursorMc extends MovieClip {
}
}//package
Section 10
//damage01 (damage01)
package {
import flash.media.*;
public dynamic class damage01 extends Sound {
}
}//package
Section 11
//damage02 (damage02)
package {
import flash.media.*;
public dynamic class damage02 extends Sound {
}
}//package
Section 12
//enemy01 (enemy01)
package {
import flash.media.*;
public dynamic class enemy01 extends Sound {
}
}//package
Section 13
//enemy02 (enemy02)
package {
import flash.media.*;
public dynamic class enemy02 extends Sound {
}
}//package
Section 14
//enemy05 (enemy05)
package {
import flash.media.*;
public dynamic class enemy05 extends Sound {
}
}//package
Section 15
//enemy06 (enemy06)
package {
import flash.media.*;
public dynamic class enemy06 extends Sound {
}
}//package
Section 16
//enemy07 (enemy07)
package {
import flash.media.*;
public dynamic class enemy07 extends Sound {
}
}//package
Section 17
//enemy1Mc (enemy1Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemy1Mc extends MovieClip {
public const SCORE_BASE = 100;
public var shotNo:int;
public var fallFlag;
public var moveX;
public var rootObj:MovieClip;
public var aIndex;
public function enemy1Mc(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 23, frame24);
}
public function comboCheck(_arg1, _arg2, _arg3){
var _local4:MovieClip;
if (fallFlag == false){
if (rootObj != null){
if (_arg1 != null){
if (rootObj.getChildByName(_arg1) != null){
_local4 = (rootObj.getChildByName(_arg1) as MovieClip);
if (((((((((_local4.x - 5) < (this.x + 5))) && (((_local4.x + 5) > (this.x - 5))))) && (((_local4.y - 5) < (this.y + 5))))) && (((_local4.y + 5) > (this.y - 5))))){
shotNo = _local4.shotNo;
if (rootObj.comboObj[shotNo] != null){
var _local5 = rootObj.comboObj;
var _local6 = shotNo;
var _local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
rootObj.scoreCheck((SCORE_BASE * rootObj.comboObj[shotNo]));
};
this.fallFlag = true;
rootObj.playSe(enemy01);
rootObj.chainCheck(shotNo);
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
gotoAndStop("fall");
};
};
};
};
};
}
public function insRecycleNormal():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
this.visible = false;
rootObj.enemy1Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
function frame3(){
stop();
rootObj = (this.root as MovieClip);
fallFlag = false;
shotNo = 0;
moveX = (1.5 * rootObj.ratePlus);
this.x = (Math.floor((Math.random() * 20)) + 0x0100);
this.y = (Math.floor((Math.random() * 130)) + 10);
this.visible = true;
this.addEventListener(Event.ENTER_FRAME, xEnterEnemy);
}
function frame1(){
stop();
}
function frame24(){
stop();
aIndex = -1;
rootObj.enemyArray.push(this.name);
this.addEventListener(Event.ENTER_FRAME, xEnterFall);
}
public function xEnterEnemy(_arg1):void{
this.x = (this.x - moveX);
if (rootObj != null){
if (this.x < 0){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
rootObj.enemy1Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
};
};
if (rootObj != null){
if (rootObj.explosionFlag == true){
if (((((Math.pow((rootObj.shot_mc.x - this.x), 2) + Math.pow((rootObj.shot_mc.y - this.y), 2)) <= Math.pow((5 + 24), 2))) && ((rootObj.explosionFlag == true)))){
shotNo = rootObj.shotCount;
if (rootObj.comboObj[shotNo] == 0){
rootObj.comboObj[shotNo] = (rootObj.comboObj[shotNo] + 1);
} else {
rootObj.comboObj[shotNo] = (rootObj.comboObj[shotNo] + 1);
rootObj.scoreCheck((SCORE_BASE * rootObj.comboObj[shotNo]));
};
this.fallFlag = true;
rootObj.playSe(enemy01);
rootObj.chainCheck(shotNo);
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
gotoAndStop("fall");
};
};
};
if (rootObj != null){
rootObj.enemyArray.forEach(comboCheck);
};
if (this.x < 50){
if (rootObj != null){
damageCheck();
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleNormal();
};
};
}
function frame2(){
gotoAndPlay("normal");
}
public function damageCheck():void{
if (rootObj != null){
if (rootObj.invincibleFlag == false){
if (((((Math.pow((rootObj.yamame_mc.x - this.x), 2) + Math.pow((rootObj.yamame_mc.y - this.y), 2)) <= 100)) && ((rootObj.invincibleFlag == false)))){
rootObj.playSe(damage02);
rootObj.damageFlag = true;
rootObj.yamame_mc.gotoAndPlay("damage");
rootObj.yamame_mc.alpha = 0.5;
rootObj.invincibleFlag = true;
rootObj.invincibleTime = getTimer();
rootObj.lifePointCheck(15);
};
};
};
}
public function xEnterFall(_arg1:Event):void{
this.y = (this.y + rootObj.fallSpeedY);
this.x = (this.x - rootObj.fallSpeedX);
if (rootObj != null){
if ((((this.y > 176)) || ((this.x < 0)))){
rootObj.playSe(damage01);
rootObj.lifePointCheck(3);
aIndex = rootObj.enemyArray.indexOf(this.name);
if (aIndex != null){
if (aIndex != -1){
rootObj.enemyArray.splice(aIndex, 1);
};
};
insRecycleFall();
};
};
if (rootObj != null){
if (this.y > 140){
if (((((((((rootObj.kisume_mc.x - rootObj.kisumeHitSize) < (this.x + 5))) && (((rootObj.kisume_mc.x + rootObj.kisumeHitSize) > (this.x - 5))))) && (((rootObj.kisume_mc.y - 10) < (this.y + 5))))) && (((rootObj.kisume_mc.y + 10) > (this.y - 5))))){
rootObj.playSe(item01);
rootObj.scoreCheck(100);
rootObj.lifePointCheck(-0.5);
aIndex = rootObj.enemyArray.indexOf(this.name);
if (aIndex != null){
if (aIndex != -1){
rootObj.enemyArray.splice(aIndex, 1);
};
};
insRecycleFall();
};
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleFall();
};
};
}
public function insRecycleFall():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterFall);
this.visible = false;
rootObj.enemy1Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
}
}//package
Section 18
//enemy2Mc (enemy2Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemy2Mc extends MovieClip {
public const SCORE_BASE = 100;
public var aIndex;
public var yVector;
public var randomV;
public var shotNo:int;
public var fallFlag;
public var moveX;
public var aIndexItem;
public var rootObj:MovieClip;
public var yMove;
public function enemy2Mc(){
addFrameScript(0, frame1, 2, frame3, 3, frame4, 4, frame5);
}
public function comboCheck(_arg1, _arg2, _arg3){
var _local4:MovieClip;
if (rootObj != null){
if (_arg1 != null){
if (rootObj.getChildByName(_arg1) != null){
_local4 = (rootObj.getChildByName(_arg1) as MovieClip);
if (((((((((_local4.x - 5) < (this.x + 5))) && (((_local4.x + 5) > (this.x - 5))))) && (((_local4.y - 5) < (this.y + 5))))) && (((_local4.y + 5) > (this.y - 5))))){
shotNo = _local4.shotNo;
if (rootObj.comboObj[shotNo] != null){
rootObj.comboObj[shotNo] = (rootObj.comboObj[shotNo] + 1);
rootObj.scoreCheck((SCORE_BASE * rootObj.comboObj[shotNo]));
};
this.fallFlag = true;
rootObj.playSe(enemy01);
rootObj.chainCheck(shotNo);
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
if (Math.floor((Math.random() * 5)) == 0){
gotoAndStop("item");
} else {
gotoAndStop("fall");
};
};
};
};
};
}
public function insRecycleNormal():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
this.visible = false;
rootObj.enemy2Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
function frame3(){
stop();
rootObj = (this.root as MovieClip);
fallFlag = false;
shotNo = 0;
this.x = (Math.floor((Math.random() * 20)) + 0x0100);
this.y = (Math.floor((Math.random() * 130)) + 10);
moveX = (0.8 * rootObj.ratePlus);
yMove = (1 * rootObj.ratePlus);
yVector = true;
randomV = Math.floor((Math.random() * 2));
if (randomV == 0){
yVector = true;
} else {
yVector = false;
};
this.visible = true;
this.addEventListener(Event.ENTER_FRAME, xEnterEnemy);
}
function frame1(){
stop();
}
function frame4(){
stop();
aIndex = -1;
rootObj.enemyArray.push(this.name);
this.addEventListener(Event.ENTER_FRAME, xEnterFall);
}
function frame5(){
stop();
aIndexItem = -1;
rootObj.enemyArray.push(this.name);
this.addEventListener(Event.ENTER_FRAME, xEnterItem);
}
public function xEnterEnemy(_arg1):void{
this.x = (this.x - moveX);
if (yVector == true){
this.y = (this.y + yMove);
} else {
this.y = (this.y - yMove);
};
if (this.y < 10){
yVector = true;
} else {
if (this.y > 130){
yVector = false;
};
};
if (this.y < 13){
yMove = (0.1 * rootObj.ratePlus);
} else {
if (this.y < 20){
yMove = (0.5 * rootObj.ratePlus);
} else {
if (this.y < 30){
yMove = (1 * rootObj.ratePlus);
} else {
if (this.y > 127){
yMove = (0.1 * rootObj.ratePlus);
} else {
if (this.y > 120){
yMove = (0.5 * rootObj.ratePlus);
} else {
if (this.y > 110){
yMove = (1 * rootObj.ratePlus);
};
};
};
};
};
};
if (rootObj != null){
if (this.x < 0){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
rootObj.enemy2Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
};
};
if (rootObj != null){
if (rootObj.explosionFlag == true){
if (((((Math.pow((rootObj.shot_mc.x - this.x), 2) + Math.pow((rootObj.shot_mc.y - this.y), 2)) <= Math.pow((5 + 24), 2))) && ((rootObj.explosionFlag == true)))){
shotNo = rootObj.shotCount;
if (rootObj.comboObj[shotNo] == 0){
rootObj.comboObj[shotNo] = (rootObj.comboObj[shotNo] + 1);
} else {
rootObj.comboObj[shotNo] = (rootObj.comboObj[shotNo] + 1);
rootObj.scoreCheck((SCORE_BASE * rootObj.comboObj[shotNo]));
};
this.fallFlag = true;
rootObj.playSe(enemy01);
rootObj.chainCheck(shotNo);
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
gotoAndStop("fall");
};
};
};
if (rootObj != null){
rootObj.enemyArray.forEach(comboCheck);
};
if (this.x < 50){
if (rootObj != null){
damageCheck();
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleNormal();
};
};
}
public function insRecycleItem():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterItem);
this.visible = false;
rootObj.enemy2Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
public function xEnterItem(_arg1:Event):void{
this.y = (this.y + rootObj.fallSpeedY);
this.x = (this.x - rootObj.fallSpeedX);
if (rootObj != null){
if ((((this.y > 176)) || ((this.x < 0)))){
rootObj.playSe(damage01);
rootObj.lifePointCheck(3);
aIndexItem = rootObj.enemyArray.indexOf(this.name);
if (aIndexItem != null){
if (aIndexItem != -1){
rootObj.enemyArray.splice(aIndexItem, 1);
};
};
insRecycleItem();
};
};
if (rootObj != null){
if (this.y > 140){
if (((((((((rootObj.kisume_mc.x - rootObj.kisumeHitSize) < (this.x + 5))) && (((rootObj.kisume_mc.x + rootObj.kisumeHitSize) > (this.x - 5))))) && (((rootObj.kisume_mc.y - 10) < (this.y + 5))))) && (((rootObj.kisume_mc.y + 10) > (this.y - 5))))){
rootObj.playSe(item04);
rootObj.scoreCheck(100);
rootObj.lifePointCheck(-0.5);
rootObj.fallSpeedDown();
aIndexItem = rootObj.enemyArray.indexOf(this.name);
if (aIndexItem != null){
if (aIndexItem != -1){
rootObj.enemyArray.splice(aIndexItem, 1);
};
};
insRecycleItem();
};
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleItem();
};
};
}
public function damageCheck():void{
if (rootObj != null){
if (rootObj.invincibleFlag == false){
if (((((Math.pow((rootObj.yamame_mc.x - this.x), 2) + Math.pow((rootObj.yamame_mc.y - this.y), 2)) <= 100)) && ((rootObj.invincibleFlag == false)))){
rootObj.playSe(damage02);
rootObj.damageFlag = true;
rootObj.yamame_mc.gotoAndPlay("damage");
rootObj.yamame_mc.alpha = 0.5;
rootObj.invincibleFlag = true;
rootObj.invincibleTime = getTimer();
rootObj.lifePointCheck(15);
};
};
};
}
public function xEnterFall(_arg1:Event):void{
this.y = (this.y + rootObj.fallSpeedY);
this.x = (this.x - rootObj.fallSpeedX);
if (rootObj != null){
if ((((this.y > 176)) || ((this.x < 0)))){
rootObj.playSe(damage01);
rootObj.lifePointCheck(3);
aIndex = rootObj.enemyArray.indexOf(this.name);
if (aIndex != null){
if (aIndex != -1){
rootObj.enemyArray.splice(aIndex, 1);
};
};
insRecycleFall();
};
};
if (rootObj != null){
if (this.y > 140){
if (((((((((rootObj.kisume_mc.x - rootObj.kisumeHitSize) < (this.x + 5))) && (((rootObj.kisume_mc.x + rootObj.kisumeHitSize) > (this.x - 5))))) && (((rootObj.kisume_mc.y - 10) < (this.y + 5))))) && (((rootObj.kisume_mc.y + 10) > (this.y - 5))))){
rootObj.playSe(item01);
rootObj.scoreCheck(100);
rootObj.lifePointCheck(-0.5);
aIndex = rootObj.enemyArray.indexOf(this.name);
if (aIndex != null){
if (aIndex != -1){
rootObj.enemyArray.splice(aIndex, 1);
};
};
insRecycleFall();
};
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleFall();
};
};
}
public function insRecycleFall():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterFall);
this.visible = false;
rootObj.enemy2Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
}
}//package
Section 19
//enemy3Mc (enemy3Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemy3Mc extends MovieClip {
public const SCORE_BASE = 100;
public var shotNo:int;
public var fallFlag;
public var moveY;
public var yamameY;
public var yamameX;
public var rootObj:MovieClip;
public var moveX;
public var beginX;
public var beginY;
public var aIndexItem;
public var aIndex;
public function enemy3Mc(){
addFrameScript(0, frame1, 2, frame3, 3, frame4, 4, frame5);
}
public function comboCheck(_arg1, _arg2, _arg3){
var _local4:MovieClip;
if (rootObj != null){
if (_arg1 != null){
if (rootObj.getChildByName(_arg1) != null){
_local4 = (rootObj.getChildByName(_arg1) as MovieClip);
if (((((((((_local4.x - 5) < (this.x + 5))) && (((_local4.x + 5) > (this.x - 5))))) && (((_local4.y - 5) < (this.y + 5))))) && (((_local4.y + 5) > (this.y - 5))))){
shotNo = _local4.shotNo;
if (rootObj.comboObj[shotNo] != null){
rootObj.comboObj[shotNo] = (rootObj.comboObj[shotNo] + 1);
rootObj.scoreCheck((SCORE_BASE * rootObj.comboObj[shotNo]));
};
this.fallFlag = true;
rootObj.playSe(enemy01);
rootObj.chainCheck(shotNo);
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
if (Math.floor((Math.random() * 5)) == 0){
gotoAndStop("item");
} else {
gotoAndStop("fall");
};
};
};
};
};
}
public function insRecycleNormal():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
this.visible = false;
rootObj.enemy3Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
function frame3(){
stop();
rootObj = (this.root as MovieClip);
this.x = 0x0100;
this.y = (Math.floor((Math.random() * 130)) + 10);
beginX = this.x;
beginY = this.y;
yamameX = rootObj.yamame_mc.x;
yamameY = rootObj.yamame_mc.y;
moveX = (((beginX - yamameX) / 243.5) * rootObj.ratePlus);
moveY = (((beginY - yamameY) / 243.5) * rootObj.ratePlus);
this.visible = true;
fallFlag = false;
shotNo = 0;
this.addEventListener(Event.ENTER_FRAME, xEnterEnemy);
}
function frame1(){
stop();
}
function frame4(){
stop();
aIndex = -1;
rootObj.enemyArray.push(this.name);
this.addEventListener(Event.ENTER_FRAME, xEnterFall);
}
public function xEnterEnemy(_arg1):void{
this.x = (this.x - (moveX * 1.5));
this.y = (this.y - (moveY * 1.5));
if (rootObj != null){
if (this.x < 0){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
rootObj.enemy3Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
};
};
if (rootObj != null){
if (rootObj.explosionFlag == true){
if (((((Math.pow((rootObj.shot_mc.x - this.x), 2) + Math.pow((rootObj.shot_mc.y - this.y), 2)) <= Math.pow((5 + 24), 2))) && ((rootObj.explosionFlag == true)))){
shotNo = rootObj.shotCount;
if (rootObj.comboObj[shotNo] == 0){
rootObj.comboObj[shotNo] = (rootObj.comboObj[shotNo] + 1);
} else {
rootObj.comboObj[shotNo] = (rootObj.comboObj[shotNo] + 1);
rootObj.scoreCheck((SCORE_BASE * rootObj.comboObj[shotNo]));
};
this.fallFlag = true;
rootObj.playSe(enemy01);
rootObj.chainCheck(shotNo);
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
if (Math.floor((Math.random() * 5)) == 0){
gotoAndStop("item");
} else {
gotoAndStop("fall");
};
};
};
};
if (rootObj != null){
rootObj.enemyArray.forEach(comboCheck);
};
if (this.x < 50){
if (rootObj != null){
damageCheck();
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleNormal();
};
};
}
public function insRecycleItem():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterItem);
this.visible = false;
rootObj.enemy3Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
function frame5(){
stop();
aIndexItem = -1;
rootObj.enemyArray.push(this.name);
this.addEventListener(Event.ENTER_FRAME, xEnterItem);
}
public function xEnterItem(_arg1:Event):void{
this.y = (this.y + rootObj.fallSpeedY);
this.x = (this.x - rootObj.fallSpeedX);
if (rootObj != null){
if ((((this.y > 176)) || ((this.x < 0)))){
rootObj.playSe(damage01);
rootObj.lifePointCheck(3);
aIndexItem = rootObj.enemyArray.indexOf(this.name);
if (aIndexItem != null){
if (aIndexItem != -1){
rootObj.enemyArray.splice(aIndexItem, 1);
};
};
insRecycleItem();
};
};
if (rootObj != null){
if (this.y > 140){
if (((((((((rootObj.kisume_mc.x - rootObj.kisumeHitSize) < (this.x + 5))) && (((rootObj.kisume_mc.x + rootObj.kisumeHitSize) > (this.x - 5))))) && (((rootObj.kisume_mc.y - 10) < (this.y + 5))))) && (((rootObj.kisume_mc.y + 10) > (this.y - 5))))){
rootObj.playSe(item02);
rootObj.scoreCheck(100);
rootObj.lifePointCheck(-0.5);
rootObj.kisumeBig();
aIndexItem = rootObj.enemyArray.indexOf(this.name);
if (aIndexItem != null){
if (aIndexItem != -1){
rootObj.enemyArray.splice(aIndexItem, 1);
};
};
insRecycleItem();
};
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleItem();
};
};
}
public function damageCheck():void{
if (rootObj != null){
if (rootObj.invincibleFlag == false){
if (((((Math.pow((rootObj.yamame_mc.x - this.x), 2) + Math.pow((rootObj.yamame_mc.y - this.y), 2)) <= 100)) && ((rootObj.invincibleFlag == false)))){
rootObj.playSe(damage02);
rootObj.damageFlag = true;
rootObj.yamame_mc.gotoAndPlay("damage");
rootObj.yamame_mc.alpha = 0.5;
rootObj.invincibleFlag = true;
rootObj.invincibleTime = getTimer();
rootObj.lifePointCheck(15);
};
};
};
}
public function xEnterFall(_arg1:Event):void{
this.y = (this.y + rootObj.fallSpeedY);
this.x = (this.x - rootObj.fallSpeedX);
if (rootObj != null){
if ((((this.y > 176)) || ((this.x < 0)))){
rootObj.playSe(damage01);
rootObj.lifePointCheck(3);
aIndex = rootObj.enemyArray.indexOf(this.name);
if (aIndex != null){
if (aIndex != -1){
rootObj.enemyArray.splice(aIndex, 1);
};
};
insRecycleFall();
};
};
if (rootObj != null){
if (this.y > 140){
if (((((((((rootObj.kisume_mc.x - rootObj.kisumeHitSize) < (this.x + 5))) && (((rootObj.kisume_mc.x + rootObj.kisumeHitSize) > (this.x - 5))))) && (((rootObj.kisume_mc.y - 10) < (this.y + 5))))) && (((rootObj.kisume_mc.y + 10) > (this.y - 5))))){
rootObj.playSe(item01);
rootObj.scoreCheck(100);
rootObj.lifePointCheck(-0.5);
aIndex = rootObj.enemyArray.indexOf(this.name);
if (aIndex != null){
if (aIndex != -1){
rootObj.enemyArray.splice(aIndex, 1);
};
};
insRecycleFall();
};
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleFall();
};
};
}
public function insRecycleFall():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterFall);
this.visible = false;
rootObj.enemy3Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
}
}//package
Section 20
//enemy4Mc (enemy4Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemy4Mc extends MovieClip {
public const SCORE_BASE = 100;
public var shotNo:int;
public var fallFlag;
public var moveX;
public var rootObj:MovieClip;
public function enemy4Mc(){
addFrameScript(0, frame1, 2, frame3, 3, frame4);
}
public function insRecycleNormal():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
this.visible = false;
rootObj.enemy4Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
function frame3(){
stop();
rootObj = (this.root as MovieClip);
fallFlag = false;
shotNo = 0;
moveX = (1.5 * rootObj.ratePlus);
this.x = (Math.floor((Math.random() * 40)) + 0x0100);
this.y = (Math.floor((Math.random() * 130)) + 10);
this.visible = true;
this.addEventListener(Event.ENTER_FRAME, xEnterEnemy);
}
function frame1(){
stop();
}
function frame4(){
stop();
}
public function xEnterEnemy(_arg1):void{
this.x = (this.x - moveX);
if (rootObj != null){
if (this.x < 0){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
rootObj.enemy4Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
};
};
if (this.x < 50){
if (rootObj != null){
damageCheck();
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleNormal();
};
};
}
public function damageCheck():void{
if (rootObj != null){
if (rootObj.invincibleFlag == false){
if (((((Math.pow((rootObj.yamame_mc.x - this.x), 2) + Math.pow((rootObj.yamame_mc.y - this.y), 2)) <= 225)) && ((rootObj.invincibleFlag == false)))){
rootObj.playSe(damage02);
rootObj.damageFlag = true;
rootObj.yamame_mc.gotoAndPlay("damage");
rootObj.yamame_mc.alpha = 0.5;
rootObj.invincibleFlag = true;
rootObj.invincibleTime = getTimer();
rootObj.lifePointCheck(15);
};
};
};
}
}
}//package
Section 21
//enemy5Mc (enemy5Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemy5Mc extends MovieClip {
public const SCORE_BASE = 100;
public var timer:Timer;
public var shotNo:int;
public var fallFlag;
public var stopX;
public var moveY;
public var yamameY;
public var shotEndFlag;
public var yamameX;
public var rootObj:MovieClip;
public var moveX;
public var beginX;
public var beginY;
public var aIndex;
public function enemy5Mc(){
addFrameScript(0, frame1, 2, frame3, 3, frame4);
}
public function insRecycleNormal():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
this.visible = false;
rootObj.enemy5Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
public function comboCheck(_arg1, _arg2, _arg3){
var _local4:MovieClip;
if (rootObj != null){
if (_arg1 != null){
if (rootObj.getChildByName(_arg1) != null){
_local4 = (rootObj.getChildByName(_arg1) as MovieClip);
if (((((((((_local4.x - 5) < (this.x + 5))) && (((_local4.x + 5) > (this.x - 5))))) && (((_local4.y - 5) < (this.y + 5))))) && (((_local4.y + 5) > (this.y - 5))))){
shotNo = _local4.shotNo;
if (rootObj.comboObj[shotNo] != null){
rootObj.comboObj[shotNo] = (rootObj.comboObj[shotNo] + 1);
rootObj.scoreCheck((SCORE_BASE * rootObj.comboObj[shotNo]));
};
this.fallFlag = true;
rootObj.playSe(enemy01);
rootObj.chainCheck(shotNo);
this.timer.stop();
timer.removeEventListener(TimerEvent.TIMER, xTimer);
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
gotoAndStop("fall");
};
};
};
};
}
public function xTimerComp(_arg1:TimerEvent):void{
moveX = 1.5;
}
function frame3(){
stop();
rootObj = (this.root as MovieClip);
this.x = (Math.floor((Math.random() * 10)) + 0x0100);
this.y = (Math.floor((Math.random() * 130)) + 10);
stopX = (Math.floor((Math.random() * 30)) + 170);
fallFlag = false;
shotNo = 0;
beginX = this.x;
beginY = this.y;
yamameX = rootObj.yamame_mc.x;
yamameY = rootObj.yamame_mc.y;
moveX = (((beginX - yamameX) / 243.5) * rootObj.ratePlus);
moveY = (((beginY - yamameY) / 243.5) * rootObj.ratePlus);
timer = new Timer(500, 5);
shotEndFlag = false;
this.visible = true;
this.addEventListener(Event.ENTER_FRAME, xEnterEnemy);
}
function frame1(){
stop();
}
function frame4(){
stop();
aIndex = -1;
rootObj.enemyArray.push(this.name);
this.addEventListener(Event.ENTER_FRAME, xEnterFall);
}
public function xEnterEnemy(_arg1):void{
this.x = (this.x - (moveX * 1.5));
this.y = (this.y - (moveY * 1.5));
if (rootObj != null){
if ((((this.x < stopX)) && ((shotEndFlag == false)))){
moveX = 0;
moveY = 0;
if (timer.hasEventListener(TimerEvent.TIMER) == false){
timer.addEventListener(TimerEvent.TIMER, xTimer);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, xTimerComp);
timer.start();
shotEndFlag = true;
};
};
};
if (rootObj != null){
if (this.x < 0){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
rootObj.enemy5Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
};
};
if (rootObj != null){
if (rootObj.explosionFlag == true){
if (((((Math.pow((rootObj.shot_mc.x - this.x), 2) + Math.pow((rootObj.shot_mc.y - this.y), 2)) <= Math.pow((5 + 24), 2))) && ((rootObj.explosionFlag == true)))){
shotNo = rootObj.shotCount;
if (rootObj.comboObj[shotNo] == 0){
rootObj.comboObj[shotNo] = (rootObj.comboObj[shotNo] + 1);
} else {
rootObj.comboObj[shotNo] = (rootObj.comboObj[shotNo] + 1);
rootObj.scoreCheck((SCORE_BASE * rootObj.comboObj[shotNo]));
};
this.fallFlag = true;
rootObj.playSe(enemy01);
rootObj.chainCheck(shotNo);
this.timer.stop();
timer.removeEventListener(TimerEvent.TIMER, xTimer);
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
gotoAndStop("fall");
};
};
};
if (rootObj != null){
rootObj.enemyArray.forEach(comboCheck);
};
if (this.x < 50){
if (rootObj != null){
damageCheck();
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
this.timer.stop();
timer.removeEventListener(TimerEvent.TIMER, xTimer);
insRecycleNormal();
};
};
}
public function xTimer(_arg1:TimerEvent):void{
var _local2:MovieClip;
var _local3:*;
if (rootObj.enemyShot1Ins_array.length == 0){
_local2 = new enemyShot1Mc();
_local2.x = (this.x - 5);
_local2.y = this.y;
_local2.gotoAndPlay("reset");
rootObj.addChildAt(_local2, (rootObj.getChildIndex(rootObj.wall_mc) + 1));
} else {
_local3 = rootObj.enemyShot1Ins_array.shift();
_local3.x = (this.x - 5);
_local3.y = this.y;
_local3.gotoAndPlay("reset");
rootObj.addChildAt(_local3, (rootObj.getChildIndex(rootObj.wall_mc) + 1));
};
}
public function damageCheck():void{
if (rootObj != null){
if (rootObj.invincibleFlag == false){
if (((((Math.pow((rootObj.yamame_mc.x - this.x), 2) + Math.pow((rootObj.yamame_mc.y - this.y), 2)) <= 100)) && ((rootObj.invincibleFlag == false)))){
rootObj.playSe(damage02);
rootObj.damageFlag = true;
rootObj.yamame_mc.gotoAndPlay("damage");
rootObj.yamame_mc.alpha = 0.5;
rootObj.invincibleFlag = true;
rootObj.invincibleTime = getTimer();
rootObj.lifePointCheck(15);
};
};
};
}
public function xEnterFall(_arg1:Event):void{
this.y = (this.y + rootObj.fallSpeedY);
this.x = (this.x - rootObj.fallSpeedX);
if (rootObj != null){
if ((((this.y > 176)) || ((this.x < 0)))){
rootObj.playSe(damage01);
rootObj.lifePointCheck(3);
aIndex = rootObj.enemyArray.indexOf(this.name);
if (aIndex != null){
if (aIndex != -1){
rootObj.enemyArray.splice(aIndex, 1);
};
};
insRecycleFall();
};
};
if (rootObj != null){
if (this.y > 140){
if (((((((((rootObj.kisume_mc.x - rootObj.kisumeHitSize) < (this.x + 5))) && (((rootObj.kisume_mc.x + rootObj.kisumeHitSize) > (this.x - 5))))) && (((rootObj.kisume_mc.y - 10) < (this.y + 5))))) && (((rootObj.kisume_mc.y + 10) > (this.y - 5))))){
rootObj.scoreCheck(100);
rootObj.playSe(item01);
rootObj.lifePointCheck(-0.5);
aIndex = rootObj.enemyArray.indexOf(this.name);
if (aIndex != null){
if (aIndex != -1){
rootObj.enemyArray.splice(aIndex, 1);
};
};
insRecycleFall();
};
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleFall();
};
};
}
public function insRecycleFall():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterFall);
this.visible = false;
rootObj.enemy5Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
}
}//package
Section 22
//enemy6Mc (enemy6Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemy6Mc extends MovieClip {
public const SCORE_BASE = 100;
public var timer:Timer;
public var shotNo:int;
public var fallFlag;
public var moveX;
public var shotEndFlag;
public var aIndexItem;
public var rootObj:MovieClip;
public var aIndex;
public function enemy6Mc(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 22, frame23, 23, frame24);
}
public function insRecycleNormal():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
this.visible = false;
rootObj.enemy6Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
public function comboCheck(_arg1, _arg2, _arg3){
var _local4:MovieClip;
if (rootObj != null){
if (_arg1 != null){
if (rootObj.getChildByName(_arg1) != null){
_local4 = (rootObj.getChildByName(_arg1) as MovieClip);
if (((((((((_local4.x - 5) < (this.x + 5))) && (((_local4.x + 5) > (this.x - 5))))) && (((_local4.y - 5) < (this.y + 5))))) && (((_local4.y + 5) > (this.y - 5))))){
shotNo = _local4.shotNo;
if (rootObj.comboObj[shotNo] != null){
rootObj.comboObj[shotNo] = (rootObj.comboObj[shotNo] + 1);
rootObj.scoreCheck((SCORE_BASE * rootObj.comboObj[shotNo]));
};
this.fallFlag = true;
rootObj.playSe(enemy01);
rootObj.chainCheck(shotNo);
this.timer.stop();
timer.removeEventListener(TimerEvent.TIMER, xTimer);
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
if (Math.floor((Math.random() * 5)) == 0){
gotoAndStop("item");
} else {
gotoAndStop("fall");
};
};
};
};
};
}
function frame3(){
stop();
rootObj = (this.root as MovieClip);
this.x = 0x0100;
this.y = (Math.floor((Math.random() * 130)) + 10);
this.visible = true;
timer = new Timer(300, 4);
timer.addEventListener(TimerEvent.TIMER, xTimer);
timer.start();
moveX = (1.5 * rootObj.ratePlus);
shotEndFlag = false;
fallFlag = false;
shotNo = 0;
this.addEventListener(Event.ENTER_FRAME, xEnterEnemy);
}
function frame1(){
stop();
}
function frame23(){
stop();
aIndex = -1;
rootObj.enemyArray.push(this.name);
this.addEventListener(Event.ENTER_FRAME, xEnterFall);
}
function frame24(){
stop();
aIndexItem = -1;
rootObj.enemyArray.push(this.name);
this.addEventListener(Event.ENTER_FRAME, xEnterItem);
}
public function xEnterEnemy(_arg1):void{
this.x = (this.x - moveX);
if (rootObj != null){
if (this.x < 0){
this.visible = false;
this.timer.stop();
timer.removeEventListener(TimerEvent.TIMER, xTimer);
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
rootObj.enemy6Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
};
};
if (rootObj != null){
if (rootObj.explosionFlag == true){
if (((((Math.pow((rootObj.shot_mc.x - this.x), 2) + Math.pow((rootObj.shot_mc.y - this.y), 2)) <= Math.pow((5 + 24), 2))) && ((rootObj.explosionFlag == true)))){
shotNo = rootObj.shotCount;
if (rootObj.comboObj[shotNo] == 0){
rootObj.comboObj[shotNo] = (rootObj.comboObj[shotNo] + 1);
} else {
rootObj.comboObj[shotNo] = (rootObj.comboObj[shotNo] + 1);
rootObj.scoreCheck((SCORE_BASE * rootObj.comboObj[shotNo]));
};
this.fallFlag = true;
rootObj.playSe(enemy01);
rootObj.chainCheck(shotNo);
this.timer.stop();
timer.removeEventListener(TimerEvent.TIMER, xTimer);
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
gotoAndStop("fall");
};
};
};
if (rootObj != null){
rootObj.enemyArray.forEach(comboCheck);
};
if (this.x < 50){
if (rootObj != null){
damageCheck();
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
this.timer.stop();
timer.removeEventListener(TimerEvent.TIMER, xTimer);
insRecycleNormal();
};
};
}
public function insRecycleItem():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterItem);
this.visible = false;
rootObj.enemy6Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
public function xEnterItem(_arg1:Event):void{
this.y = (this.y + rootObj.fallSpeedY);
this.x = (this.x - rootObj.fallSpeedX);
if (rootObj != null){
if ((((this.y > 176)) || ((this.x < 0)))){
rootObj.playSe(damage01);
rootObj.lifePointCheck(3);
aIndexItem = rootObj.enemyArray.indexOf(this.name);
if (aIndexItem != null){
if (aIndexItem != -1){
rootObj.enemyArray.splice(aIndexItem, 1);
};
};
insRecycleItem();
};
};
if (rootObj != null){
if (this.y > 140){
if (((((((((rootObj.kisume_mc.x - rootObj.kisumeHitSize) < (this.x + 5))) && (((rootObj.kisume_mc.x + rootObj.kisumeHitSize) > (this.x - 5))))) && (((rootObj.kisume_mc.y - 10) < (this.y + 5))))) && (((rootObj.kisume_mc.y + 10) > (this.y - 5))))){
rootObj.playSe(item03);
rootObj.scoreCheck(100);
rootObj.lifePointCheck(-5);
aIndexItem = rootObj.enemyArray.indexOf(this.name);
if (aIndexItem != null){
if (aIndexItem != -1){
rootObj.enemyArray.splice(aIndexItem, 1);
};
};
insRecycleItem();
};
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleItem();
};
};
}
public function xTimer(_arg1:TimerEvent):void{
var _local2:MovieClip;
var _local3:*;
if (rootObj.enemyShot2Ins_array.length == 0){
_local2 = new enemyShot2Mc();
_local2.x = (this.x - 5);
_local2.y = this.y;
_local2.gotoAndPlay("reset");
rootObj.addChildAt(_local2, (rootObj.getChildIndex(rootObj.wall_mc) + 1));
} else {
_local3 = rootObj.enemyShot2Ins_array.shift();
_local3.x = (this.x - 5);
_local3.y = this.y;
_local3.gotoAndPlay("reset");
rootObj.addChildAt(_local3, (rootObj.getChildIndex(rootObj.wall_mc) + 1));
};
}
function frame2(){
gotoAndPlay("normal");
}
public function damageCheck():void{
if (rootObj != null){
if (rootObj.invincibleFlag == false){
if (((((Math.pow((rootObj.yamame_mc.x - this.x), 2) + Math.pow((rootObj.yamame_mc.y - this.y), 2)) <= 100)) && ((rootObj.invincibleFlag == false)))){
rootObj.playSe(damage02);
rootObj.damageFlag = true;
rootObj.yamame_mc.gotoAndPlay("damage");
rootObj.yamame_mc.alpha = 0.5;
rootObj.invincibleFlag = true;
rootObj.invincibleTime = getTimer();
rootObj.lifePointCheck(15);
};
};
};
}
public function xEnterFall(_arg1:Event):void{
this.y = (this.y + rootObj.fallSpeedY);
this.x = (this.x - rootObj.fallSpeedX);
if (rootObj != null){
if ((((this.y > 176)) || ((this.x < 0)))){
rootObj.playSe(damage01);
rootObj.lifePointCheck(3);
aIndex = rootObj.enemyArray.indexOf(this.name);
if (aIndex != null){
if (aIndex != -1){
rootObj.enemyArray.splice(aIndex, 1);
};
};
insRecycleFall();
};
};
if (rootObj != null){
if (this.y > 140){
if (((((((((rootObj.kisume_mc.x - rootObj.kisumeHitSize) < (this.x + 5))) && (((rootObj.kisume_mc.x + rootObj.kisumeHitSize) > (this.x - 5))))) && (((rootObj.kisume_mc.y - 10) < (this.y + 5))))) && (((rootObj.kisume_mc.y + 10) > (this.y - 5))))){
rootObj.playSe(item01);
rootObj.scoreCheck(100);
rootObj.lifePointCheck(-0.5);
aIndex = rootObj.enemyArray.indexOf(this.name);
if (aIndex != null){
if (aIndex != -1){
rootObj.enemyArray.splice(aIndex, 1);
};
};
insRecycleFall();
};
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleFall();
};
};
}
public function insRecycleFall():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterFall);
this.visible = false;
rootObj.enemy6Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
}
}//package
Section 23
//enemy7Mc (enemy7Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemy7Mc extends MovieClip {
public const SCORE_BASE = 100;
public var moveY_array:Array;
public var shotInterval1:Timer;
public var shotInterval2:Timer;
public var shot2No;
public var shotNo:int;
public var reimuInvincibleFlag;
public var shotEndFlag;
public var shot1No;
public var moveX;
public var moveY;
public var rootObj:MovieClip;
public var reimu_mc:MovieClip;
public var moveX_array:Array;
public var beginX;
public var beginY;
public var reimuLife:int;
public var aIndex;
public var movePettern:int;
public var shotTimer1:Timer;
public var shotTimer2:Timer;
public var shot1Max:int;
public var fallFlag;
public var yamameX;
public var yamameY;
public var moveCount:int;
public var shot2Max:int;
public var firstMoveX;
public var reimuInvincibleTime;
public var moveTimer:Timer;
public function enemy7Mc(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 22, frame23);
}
public function insRecycleNormal():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
this.visible = false;
rootObj.enemy7Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
public function xTimeShot1(_arg1:TimerEvent):void{
var _local2:MovieClip;
var _local3:*;
if (shot1No < shot1Max){
this.reimu_mc.gotoAndPlay("shot");
if (rootObj.enemyShot3Ins_array.length == 0){
_local2 = new enemyShot3Mc();
_local2.x = (this.x - 15);
_local2.y = this.y;
_local2.gotoAndPlay("reset");
rootObj.addChildAt(_local2, (rootObj.getChildIndex(rootObj.wall_mc) + 1));
} else {
_local3 = rootObj.enemyShot3Ins_array.shift();
_local3.x = (this.x - 15);
_local3.y = this.y;
_local3.gotoAndPlay("reset");
rootObj.addChildAt(_local3, (rootObj.getChildIndex(rootObj.wall_mc) + 1));
};
} else {
shotTimer1.stop();
};
shot1No++;
}
public function xTimeShot2(_arg1:TimerEvent):void{
var _local2:MovieClip;
var _local3:*;
if (shot2No < shot2Max){
this.reimu_mc.gotoAndPlay("shot");
if (rootObj.enemyShot4Ins_array.length == 0){
_local2 = new enemyShot4Mc();
_local2.x = (this.x - 5);
_local2.y = this.y;
_local2.gotoAndPlay("reset");
rootObj.addChildAt(_local2, (rootObj.getChildIndex(rootObj.wall_mc) + 1));
} else {
_local3 = rootObj.enemyShot4Ins_array.shift();
_local3.x = (this.x - 5);
_local3.y = this.y;
_local3.gotoAndPlay("reset");
rootObj.addChildAt(_local3, (rootObj.getChildIndex(rootObj.wall_mc) + 1));
};
} else {
shotTimer2.stop();
};
shot2No++;
}
public function xEnterEnemy(_arg1):void{
this.x = (this.x - firstMoveX);
if (rootObj != null){
if ((((this.x < 180)) && ((shotEndFlag == false)))){
firstMoveX = 0;
if (moveTimer.running == false){
moveTimer.start();
shotInterval1.start();
shotInterval2.start();
reimuInvincibleFlag = false;
};
};
};
if (reimuInvincibleFlag == false){
if (rootObj != null){
if (rootObj.explosionFlag == true){
if (((((Math.pow((rootObj.shot_mc.x - this.x), 2) + Math.pow((rootObj.shot_mc.y - this.y), 2)) <= Math.pow((5 + 24), 2))) && ((rootObj.explosionFlag == true)))){
shotNo = rootObj.shotCount;
reimuLife = (reimuLife - 1);
reimuInvincibleFlag = true;
reimuInvincibleTime = getTimer();
this.alpha = 0.5;
rootObj.playSe(bossDamage01);
if (reimuLife <= 0){
this.alpha = 1;
rootObj.breakReimuCount++;
rootObj.breakReimuFlag = true;
reimuInvincibleFlag = false;
this.fallFlag = true;
rootObj.enemyTimer1.start();
rootObj.enemyTimer2.delay = 3000;
rootObj.enemyTimer2.start();
rootObj.playSe(bossBreak01);
rootObj.chainCheck(shotNo);
rootObj.scoreCheck((rootObj.breakReimuCount * 10000));
removeTimers();
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
gotoAndStop("fall");
};
};
};
};
};
if (reimuInvincibleFlag == true){
if (reimuInvincibleTime < (getTimer() - 3000)){
reimuInvincibleFlag = false;
this.alpha = 1;
};
};
if (this.x < 50){
if (rootObj != null){
damageCheck();
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
removeTimers();
insRecycleNormal();
};
};
}
function frame2(){
gotoAndPlay("normal");
}
function frame3(){
stop();
rootObj = (this.root as MovieClip);
this.x = 0x0100;
this.y = 90;
this.visible = true;
this.alpha = 1;
beginX = this.x;
beginY = this.y;
yamameX = rootObj.yamame_mc.x;
yamameY = rootObj.yamame_mc.y;
reimuLife = (3 + rootObj.breakReimuCount);
shot1Max = (2 + rootObj.breakReimuCount);
shot2Max = (3 + rootObj.breakReimuCount);
rootObj.breakReimuFlag = false;
reimuInvincibleFlag = true;
reimuInvincibleTime = 0;
firstMoveX = (1 * rootObj.ratePlus);
moveCount = 0;
movePettern = 0;
moveX_array = [0, 0.9, -0.9, 0.7, -0.7];
moveY_array = [0, 0.9, -0.9, 0.7, -0.7];
rootObj.xShuffleArray(moveX_array);
rootObj.xShuffleArray(moveY_array);
shot1No = 0;
shot2No = 0;
moveX = (((beginX - yamameX) / 243.5) * rootObj.ratePlus);
moveY = (((beginY - yamameY) / 243.5) * rootObj.ratePlus);
shotEndFlag = false;
moveTimer = new Timer(800);
shotInterval1 = new Timer(3000);
shotInterval2 = new Timer(1300);
shotTimer1 = new Timer(300);
shotTimer2 = new Timer(100);
moveTimer.addEventListener(TimerEvent.TIMER, xTimeMove);
shotInterval1.addEventListener(TimerEvent.TIMER, xShotInterval1);
shotInterval2.addEventListener(TimerEvent.TIMER, xShotInterval2);
shotTimer1.addEventListener(TimerEvent.TIMER, xTimeShot1);
shotTimer2.addEventListener(TimerEvent.TIMER, xTimeShot2);
fallFlag = false;
shotNo = 0;
this.addEventListener(Event.ENTER_FRAME, xEnterEnemy);
}
function frame23(){
stop();
aIndex = -1;
rootObj.enemyArray.push(this.name);
this.addEventListener(Event.ENTER_FRAME, xEnterFall);
}
function frame1(){
stop();
}
public function xShotInterval1(_arg1:TimerEvent):void{
shot1No = 0;
shotTimer1.start();
}
public function xShotInterval2(_arg1:TimerEvent):void{
shot2No = 0;
shotTimer2.start();
}
public function xTimeMove(_arg1:TimerEvent):void{
moveX = moveX_array[movePettern];
moveY = moveY_array[movePettern];
movePettern++;
if (movePettern == moveX_array.length){
movePettern = 0;
rootObj.xShuffleArray(moveX_array);
rootObj.xShuffleArray(moveY_array);
};
moveCount = 0;
this.addEventListener(Event.ENTER_FRAME, xEnterMove);
}
public function damageCheck():void{
if (rootObj != null){
if (rootObj.invincibleFlag == false){
if (((((Math.pow((rootObj.yamame_mc.x - this.x), 2) + Math.pow((rootObj.yamame_mc.y - this.y), 2)) <= 100)) && ((rootObj.invincibleFlag == false)))){
rootObj.playSe(damage02);
rootObj.damageFlag = true;
rootObj.yamame_mc.gotoAndPlay("damage");
rootObj.yamame_mc.alpha = 0.5;
rootObj.invincibleFlag = true;
rootObj.invincibleTime = getTimer();
rootObj.lifePointCheck(15);
};
};
};
}
public function xEnterFall(_arg1:Event):void{
this.y = (this.y + rootObj.fallSpeedY);
this.x = (this.x - rootObj.fallSpeedX);
if (rootObj != null){
if ((((this.y > 176)) || ((this.x < 0)))){
rootObj.playSe(damage01);
rootObj.lifePointCheck(3);
aIndex = rootObj.enemyArray.indexOf(this.name);
if (aIndex != null){
if (aIndex != -1){
rootObj.enemyArray.splice(aIndex, 1);
};
};
insRecycleFall();
};
};
if (rootObj != null){
if (this.y > 140){
if (((((((((rootObj.kisume_mc.x - rootObj.kisumeHitSize) < (this.x + 5))) && (((rootObj.kisume_mc.x + rootObj.kisumeHitSize) > (this.x - 5))))) && (((rootObj.kisume_mc.y - 10) < (this.y + 5))))) && (((rootObj.kisume_mc.y + 10) > (this.y - 5))))){
rootObj.playSe(item03);
rootObj.lifePointCheck(-15);
aIndex = rootObj.enemyArray.indexOf(this.name);
if (aIndex != null){
if (aIndex != -1){
rootObj.enemyArray.splice(aIndex, 1);
};
};
insRecycleFall();
};
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleFall();
};
};
}
public function xEnterMove(_arg1:Event):void{
if (moveCount < 30){
if (rootObj != null){
this.x = (this.x - ((moveX * 1.5) * rootObj.ratePlus));
this.y = (this.y - ((moveY * 1.5) * rootObj.ratePlus));
} else {
this.removeEventListener(Event.ENTER_FRAME, xEnterMove);
};
} else {
moveX = 0;
moveY = 0;
this.removeEventListener(Event.ENTER_FRAME, xEnterMove);
};
if (rootObj != null){
moveCount = (moveCount + rootObj.ratePlus);
};
}
public function removeTimers():void{
this.shotInterval1.stop();
shotInterval1.removeEventListener(TimerEvent.TIMER, xShotInterval1);
this.shotInterval2.stop();
shotInterval2.removeEventListener(TimerEvent.TIMER, xShotInterval2);
this.shotTimer1.stop();
shotTimer1.removeEventListener(TimerEvent.TIMER, xTimeShot1);
this.shotTimer2.stop();
shotTimer2.removeEventListener(TimerEvent.TIMER, xTimeShot2);
this.removeEventListener(Event.ENTER_FRAME, xEnterMove);
this.moveTimer.stop();
moveTimer.removeEventListener(TimerEvent.TIMER, xTimeMove);
}
public function insRecycleFall():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterFall);
this.visible = false;
rootObj.enemy7Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
}
}//package
Section 24
//enemy8Mc (enemy8Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemy8Mc extends MovieClip {
public const SCORE_BASE = 100;
public var moveY_array:Array;
public var shotInterval1:Timer;
public var shotInterval2:Timer;
public var shot2No;
public var shotNo:int;
public var reimuInvincibleFlag;
public var shotEndFlag;
public var shot1No;
public var moveX;
public var moveY;
public var rootObj:MovieClip;
public var reimu_mc:MovieClip;
public var moveX_array:Array;
public var beginX;
public var beginY;
public var reimuLife:int;
public var aIndex;
public var movePettern:int;
public var shotTimer1:Timer;
public var shotTimer2:Timer;
public var shot1Max:int;
public var fallFlag;
public var yamameX;
public var yamameY;
public var moveCount:int;
public var shot2Max:int;
public var firstMoveX;
public var reimuInvincibleTime;
public var moveTimer:Timer;
public function enemy8Mc(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 22, frame23);
}
public function insRecycleNormal():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
this.visible = false;
rootObj.enemy8Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
public function xTimeShot1(_arg1:TimerEvent):void{
var _local2:MovieClip;
var _local3:*;
if (shot1No < shot1Max){
this.reimu_mc.gotoAndPlay("shot");
if (rootObj.enemyShot3Ins_array.length == 0){
_local2 = new enemyShot3Mc();
_local2.x = (this.x - 15);
_local2.y = this.y;
_local2.gotoAndPlay("reset");
rootObj.addChildAt(_local2, (rootObj.getChildIndex(rootObj.wall_mc) + 1));
} else {
_local3 = rootObj.enemyShot3Ins_array.shift();
_local3.x = (this.x - 15);
_local3.y = this.y;
_local3.gotoAndPlay("reset");
rootObj.addChildAt(_local3, (rootObj.getChildIndex(rootObj.wall_mc) + 1));
};
} else {
shotTimer1.stop();
};
shot1No++;
}
public function xTimeShot2(_arg1:TimerEvent):void{
var _local2:MovieClip;
var _local3:*;
if (shot2No < shot2Max){
this.reimu_mc.gotoAndPlay("shot");
if (rootObj.enemyShot4Ins_array.length == 0){
_local2 = new enemyShot4Mc();
_local2.x = (this.x - 5);
_local2.y = this.y;
_local2.gotoAndPlay("reset");
rootObj.addChildAt(_local2, (rootObj.getChildIndex(rootObj.wall_mc) + 1));
} else {
_local3 = rootObj.enemyShot4Ins_array.shift();
_local3.x = (this.x - 5);
_local3.y = this.y;
_local3.gotoAndPlay("reset");
rootObj.addChildAt(_local3, (rootObj.getChildIndex(rootObj.wall_mc) + 1));
};
} else {
shotTimer2.stop();
};
shot2No++;
}
public function xEnterEnemy(_arg1):void{
this.x = (this.x - firstMoveX);
if (rootObj != null){
if ((((this.x < 180)) && ((shotEndFlag == false)))){
firstMoveX = 0;
if (moveTimer.running == false){
moveTimer.start();
shotInterval1.start();
shotInterval2.start();
reimuInvincibleFlag = false;
};
};
};
if (reimuInvincibleFlag == false){
if (rootObj != null){
if (rootObj.explosionFlag == true){
if (((((Math.pow((rootObj.shot_mc.x - this.x), 2) + Math.pow((rootObj.shot_mc.y - this.y), 2)) <= Math.pow((5 + 24), 2))) && ((rootObj.explosionFlag == true)))){
shotNo = rootObj.shotCount;
reimuLife = (reimuLife - 1);
reimuInvincibleFlag = true;
reimuInvincibleTime = getTimer();
this.alpha = 0.5;
rootObj.playSe(bossDamage01);
if (reimuLife <= 0){
this.alpha = 1;
rootObj.breakReimuCount++;
rootObj.breakReimuFlag = true;
reimuInvincibleFlag = false;
this.fallFlag = true;
rootObj.enemyTimer1.start();
rootObj.enemyTimer2.delay = 3000;
rootObj.enemyTimer2.start();
rootObj.playSe(bossBreak01);
rootObj.chainCheck(shotNo);
rootObj.scoreCheck((rootObj.breakReimuCount * 10000));
removeTimers();
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
gotoAndStop("fall");
};
};
};
};
};
if (reimuInvincibleFlag == true){
if (reimuInvincibleTime < (getTimer() - 3000)){
reimuInvincibleFlag = false;
this.alpha = 1;
};
};
if (this.x < 50){
if (rootObj != null){
damageCheck();
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
removeTimers();
insRecycleNormal();
};
};
}
function frame2(){
gotoAndPlay("normal");
}
function frame3(){
stop();
rootObj = (this.root as MovieClip);
this.x = 0x0100;
this.y = 90;
this.visible = true;
this.alpha = 1;
beginX = this.x;
beginY = this.y;
yamameX = rootObj.yamame_mc.x;
yamameY = rootObj.yamame_mc.y;
reimuLife = (3 + rootObj.breakReimuCount);
shot1Max = (2 + rootObj.breakReimuCount);
shot2Max = (3 + rootObj.breakReimuCount);
rootObj.breakReimuFlag = false;
reimuInvincibleFlag = true;
reimuInvincibleTime = 0;
firstMoveX = (1 * rootObj.ratePlus);
moveCount = 0;
movePettern = 0;
moveX_array = [0, 0.9, -0.9, 0.7, -0.7];
moveY_array = [0, 0.9, -0.9, 0.7, -0.7];
rootObj.xShuffleArray(moveX_array);
rootObj.xShuffleArray(moveY_array);
shot1No = 0;
shot2No = 0;
moveX = (((beginX - yamameX) / 243.5) * rootObj.ratePlus);
moveY = (((beginY - yamameY) / 243.5) * rootObj.ratePlus);
shotEndFlag = false;
moveTimer = new Timer(800);
shotInterval1 = new Timer(3000);
shotInterval2 = new Timer(1300);
shotTimer1 = new Timer(300);
shotTimer2 = new Timer(100);
moveTimer.addEventListener(TimerEvent.TIMER, xTimeMove);
shotInterval1.addEventListener(TimerEvent.TIMER, xShotInterval1);
shotInterval2.addEventListener(TimerEvent.TIMER, xShotInterval2);
shotTimer1.addEventListener(TimerEvent.TIMER, xTimeShot1);
shotTimer2.addEventListener(TimerEvent.TIMER, xTimeShot2);
fallFlag = false;
shotNo = 0;
this.addEventListener(Event.ENTER_FRAME, xEnterEnemy);
}
function frame23(){
stop();
aIndex = -1;
rootObj.enemyArray.push(this.name);
this.addEventListener(Event.ENTER_FRAME, xEnterFall);
}
function frame1(){
stop();
}
public function xShotInterval1(_arg1:TimerEvent):void{
shot1No = 0;
shotTimer1.start();
}
public function xShotInterval2(_arg1:TimerEvent):void{
shot2No = 0;
shotTimer2.start();
}
public function xTimeMove(_arg1:TimerEvent):void{
moveX = moveX_array[movePettern];
moveY = moveY_array[movePettern];
movePettern++;
if (movePettern == moveX_array.length){
movePettern = 0;
rootObj.xShuffleArray(moveX_array);
rootObj.xShuffleArray(moveY_array);
};
moveCount = 0;
this.addEventListener(Event.ENTER_FRAME, xEnterMove);
}
public function damageCheck():void{
if (rootObj != null){
if (rootObj.invincibleFlag == false){
if (((((Math.pow((rootObj.yamame_mc.x - this.x), 2) + Math.pow((rootObj.yamame_mc.y - this.y), 2)) <= 100)) && ((rootObj.invincibleFlag == false)))){
rootObj.playSe(damage02);
rootObj.damageFlag = true;
rootObj.yamame_mc.gotoAndPlay("damage");
rootObj.yamame_mc.alpha = 0.5;
rootObj.invincibleFlag = true;
rootObj.invincibleTime = getTimer();
rootObj.lifePointCheck(15);
};
};
};
}
public function xEnterFall(_arg1:Event):void{
this.y = (this.y + rootObj.fallSpeedY);
this.x = (this.x - rootObj.fallSpeedX);
if (rootObj != null){
if ((((this.y > 176)) || ((this.x < 0)))){
rootObj.playSe(damage01);
rootObj.lifePointCheck(3);
aIndex = rootObj.enemyArray.indexOf(this.name);
if (aIndex != null){
if (aIndex != -1){
rootObj.enemyArray.splice(aIndex, 1);
};
};
insRecycleFall();
};
};
if (rootObj != null){
if (this.y > 140){
if (((((((((rootObj.kisume_mc.x - rootObj.kisumeHitSize) < (this.x + 5))) && (((rootObj.kisume_mc.x + rootObj.kisumeHitSize) > (this.x - 5))))) && (((rootObj.kisume_mc.y - 10) < (this.y + 5))))) && (((rootObj.kisume_mc.y + 10) > (this.y - 5))))){
rootObj.playSe(item03);
rootObj.lifePointCheck(-30);
aIndex = rootObj.enemyArray.indexOf(this.name);
if (aIndex != null){
if (aIndex != -1){
rootObj.enemyArray.splice(aIndex, 1);
};
};
insRecycleFall();
};
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleFall();
};
};
}
public function xEnterMove(_arg1:Event):void{
if (moveCount < 30){
if (rootObj != null){
this.x = (this.x - ((moveX * 1.5) * rootObj.ratePlus));
this.y = (this.y - ((moveY * 1.5) * rootObj.ratePlus));
} else {
this.removeEventListener(Event.ENTER_FRAME, xEnterMove);
};
} else {
moveX = 0;
moveY = 0;
this.removeEventListener(Event.ENTER_FRAME, xEnterMove);
};
if (rootObj != null){
moveCount = (moveCount + rootObj.ratePlus);
};
}
public function removeTimers():void{
this.shotInterval1.stop();
shotInterval1.removeEventListener(TimerEvent.TIMER, xShotInterval1);
this.shotInterval2.stop();
shotInterval2.removeEventListener(TimerEvent.TIMER, xShotInterval2);
this.shotTimer1.stop();
shotTimer1.removeEventListener(TimerEvent.TIMER, xTimeShot1);
this.shotTimer2.stop();
shotTimer2.removeEventListener(TimerEvent.TIMER, xTimeShot2);
this.removeEventListener(Event.ENTER_FRAME, xEnterMove);
this.moveTimer.stop();
moveTimer.removeEventListener(TimerEvent.TIMER, xTimeMove);
}
public function insRecycleFall():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterFall);
this.visible = false;
rootObj.enemy8Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
}
}//package
Section 25
//enemyShot1Mc (enemyShot1Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemyShot1Mc extends MovieClip {
public const SCORE_BASE = 50;
public var shotNo:int;
public var fallFlag;
public var moveX;
public var rootObj:MovieClip;
public function enemyShot1Mc(){
addFrameScript(0, frame1, 2, frame3);
}
public function insRecycleNormal():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
this.visible = false;
rootObj.enemyShot1Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
function frame3(){
stop();
rootObj = (this.root as MovieClip);
fallFlag = false;
shotNo = 0;
moveX = (1.5 * rootObj.ratePlus);
this.visible = true;
this.addEventListener(Event.ENTER_FRAME, xEnterEnemy);
}
function frame1(){
stop();
}
public function xEnterEnemy(_arg1):void{
this.x = (this.x - moveX);
if (rootObj != null){
if (this.x < 0){
insRecycleNormal();
};
};
if (this.x < 50){
if (rootObj != null){
damageCheck();
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleNormal();
};
};
}
public function damageCheck():void{
if (rootObj != null){
if (rootObj.invincibleFlag == false){
if (((((Math.pow((rootObj.yamame_mc.x - this.x), 2) + Math.pow((rootObj.yamame_mc.y - this.y), 2)) <= Math.pow((5 + 2), 2))) && ((rootObj.invincibleFlag == false)))){
rootObj.playSe(damage02);
rootObj.damageFlag = true;
rootObj.yamame_mc.gotoAndPlay("damage");
rootObj.yamame_mc.alpha = 0.5;
rootObj.invincibleFlag = true;
rootObj.invincibleTime = getTimer();
rootObj.lifePointCheck(15);
};
};
};
}
}
}//package
Section 26
//enemyShot2Mc (enemyShot2Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemyShot2Mc extends MovieClip {
public const SCORE_BASE = 50;
public var shotNo:int;
public var fallFlag;
public var moveY;
public var yamameY;
public var yamameX;
public var rootObj:MovieClip;
public var moveX;
public var beginX;
public var beginY;
public function enemyShot2Mc(){
addFrameScript(0, frame1, 2, frame3);
}
public function insRecycleNormal():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
this.visible = false;
rootObj.enemyShot2Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
function frame3(){
stop();
rootObj = (this.root as MovieClip);
beginX = this.x;
beginY = this.y;
yamameX = rootObj.yamame_mc.x;
yamameY = rootObj.yamame_mc.y;
moveX = (((beginX - yamameX) / 243.5) * rootObj.ratePlus);
moveY = (((beginY - yamameY) / 243.5) * rootObj.ratePlus);
this.visible = true;
fallFlag = false;
shotNo = 0;
this.addEventListener(Event.ENTER_FRAME, xEnterEnemy);
}
function frame1(){
stop();
}
public function xEnterEnemy(_arg1):void{
this.x = (this.x - (moveX * 2));
this.y = (this.y - (moveY * 2));
if (rootObj != null){
if (this.x < 0){
insRecycleNormal();
};
};
if (this.x < 50){
if (rootObj != null){
damageCheck();
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleNormal();
};
};
}
public function damageCheck():void{
if (rootObj != null){
if (rootObj.invincibleFlag == false){
if (((((Math.pow((rootObj.yamame_mc.x - this.x), 2) + Math.pow((rootObj.yamame_mc.y - this.y), 2)) <= Math.pow((5 + 2), 2))) && ((rootObj.invincibleFlag == false)))){
rootObj.playSe(damage02);
rootObj.damageFlag = true;
rootObj.yamame_mc.gotoAndPlay("damage");
rootObj.yamame_mc.alpha = 0.5;
rootObj.invincibleFlag = true;
rootObj.invincibleTime = getTimer();
rootObj.lifePointCheck(15);
};
};
};
}
}
}//package
Section 27
//enemyShot3Mc (enemyShot3Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemyShot3Mc extends MovieClip {
public const SCORE_BASE = 50;
public var yVector;
public var shotNo:int;
public var reflectCount:int;
public var fallFlag;
public var moveY;
public var yamameY;
public var yamameX;
public var rootObj:MovieClip;
public var moveX;
public var beginX;
public var beginY;
public var xVector;
public function enemyShot3Mc(){
addFrameScript(0, frame1, 2, frame3);
}
public function insRecycleNormal():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
this.visible = false;
rootObj.enemyShot3Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
function frame3(){
stop();
rootObj = (this.root as MovieClip);
beginX = this.x;
beginY = this.y;
yamameX = rootObj.yamame_mc.x;
yamameY = rootObj.yamame_mc.y;
xVector = 1;
yVector = 1;
moveX = (Math.floor(((Math.random() * 4) + 6)) * 0.1);
moveY = (1 - moveX);
reflectCount = 0;
this.visible = true;
fallFlag = false;
shotNo = 0;
this.addEventListener(Event.ENTER_FRAME, xEnterEnemy);
}
function frame1(){
stop();
}
public function xEnterEnemy(_arg1):void{
this.x = (this.x - (((moveX * 3) * xVector) * rootObj.ratePlus));
this.y = (this.y - (((moveY * 3) * yVector) * rootObj.ratePlus));
if (rootObj != null){
if ((((this.x < 16)) || ((this.x > 240)))){
xVector = (xVector * -1);
reflectCount++;
if (reflectCount > 5){
insRecycleNormal();
};
};
};
if (rootObj != null){
if ((((this.y < 16)) || ((this.y > 160)))){
yVector = (yVector * -1);
reflectCount++;
if (reflectCount > 5){
insRecycleNormal();
};
};
};
if (rootObj != null){
if (rootObj.breakReimuFlag == true){
insRecycleNormal();
};
};
if (this.x < 50){
if (rootObj != null){
damageCheck();
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleNormal();
};
};
}
public function damageCheck():void{
if (rootObj != null){
if (rootObj.invincibleFlag == false){
if (((((Math.pow((rootObj.yamame_mc.x - this.x), 2) + Math.pow((rootObj.yamame_mc.y - this.y), 2)) <= Math.pow((5 + 6), 2))) && ((rootObj.invincibleFlag == false)))){
rootObj.playSe(damage02);
rootObj.damageFlag = true;
rootObj.yamame_mc.gotoAndPlay("damage");
rootObj.yamame_mc.alpha = 0.5;
rootObj.invincibleFlag = true;
rootObj.invincibleTime = getTimer();
rootObj.lifePointCheck(15);
};
};
};
}
}
}//package
Section 28
//enemyShot4Mc (enemyShot4Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemyShot4Mc extends MovieClip {
public const SCORE_BASE = 50;
public var moveY;
public var yamameY;
public var yamameX;
public var rootObj:MovieClip;
public var moveX;
public var beginX;
public var beginY;
public function enemyShot4Mc(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function insRecycleNormal():void{
this.removeEventListener(Event.ENTER_FRAME, xEnterEnemy);
this.visible = false;
rootObj.enemyShot4Ins_array.push(this);
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("make");
}
function frame3(){
stop();
rootObj = (this.root as MovieClip);
beginX = this.x;
beginY = this.y;
yamameX = rootObj.yamame_mc.x;
yamameY = rootObj.yamame_mc.y;
moveX = (((beginX - yamameX) / beginX) * rootObj.ratePlus);
moveY = (((beginY - yamameY) / beginX) * rootObj.ratePlus);
this.visible = true;
this.addEventListener(Event.ENTER_FRAME, xEnterEnemy);
}
function frame1(){
stop();
}
public function xEnterEnemy(_arg1):void{
this.x = (this.x - (moveX * 3));
this.y = (this.y - (moveY * 3));
if (rootObj != null){
if (this.x < 0){
insRecycleNormal();
};
};
if (this.x < 50){
if (rootObj != null){
damageCheck();
};
};
if (rootObj != null){
if (rootObj.breakReimuFlag == true){
insRecycleNormal();
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycleNormal();
};
};
}
function frame2(){
}
public function damageCheck():void{
if (rootObj != null){
if (rootObj.invincibleFlag == false){
if (((((Math.pow((rootObj.yamame_mc.x - this.x), 2) + Math.pow((rootObj.yamame_mc.y - this.y), 2)) <= Math.pow((5 + 2), 2))) && ((rootObj.invincibleFlag == false)))){
rootObj.playSe(damage02);
rootObj.damageFlag = true;
rootObj.yamame_mc.gotoAndPlay("damage");
rootObj.yamame_mc.alpha = 0.5;
rootObj.invincibleFlag = true;
rootObj.invincibleTime = getTimer();
rootObj.lifePointCheck(15);
};
};
};
}
}
}//package
Section 29
//gameBgm (gameBgm)
package {
import flash.media.*;
public dynamic class gameBgm extends Sound {
}
}//package
Section 30
//gameOverBgm (gameOverBgm)
package {
import flash.media.*;
public dynamic class gameOverBgm extends Sound {
}
}//package
Section 31
//gameOverMc (gameOverMc)
package {
import flash.display.*;
public dynamic class gameOverMc extends MovieClip {
}
}//package
Section 32
//GAMESTART_BTN (GAMESTART_BTN)
package {
import flash.display.*;
public dynamic class GAMESTART_BTN extends SimpleButton {
}
}//package
Section 33
//GrayMaskMC (GrayMaskMC)
package {
import flash.display.*;
public dynamic class GrayMaskMC extends MovieClip {
}
}//package
Section 34
//hiScoreMc (hiScoreMc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class hiScoreMc extends MovieClip {
public var hiscoreEnter_btn:SimpleButton;
public var hiscoreInput_txt:TextField;
}
}//package
Section 35
//item01 (item01)
package {
import flash.media.*;
public dynamic class item01 extends Sound {
}
}//package
Section 36
//item02 (item02)
package {
import flash.media.*;
public dynamic class item02 extends Sound {
}
}//package
Section 37
//item03 (item03)
package {
import flash.media.*;
public dynamic class item03 extends Sound {
}
}//package
Section 38
//item04 (item04)
package {
import flash.media.*;
public dynamic class item04 extends Sound {
}
}//package
Section 39
//OPTION_BTN (OPTION_BTN)
package {
import flash.display.*;
public dynamic class OPTION_BTN extends SimpleButton {
}
}//package
Section 40
//optionMc (optionMc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class optionMc extends MovieClip {
public var fps_btn:SimpleButton;
public var volLeft_btn:SimpleButton;
public var fpsLeft_btn:SimpleButton;
public var volRight_btn:SimpleButton;
public var optionVolume_txt:TextField;
public var optionBack_btn:SimpleButton;
public var volume_btn:SimpleButton;
public var fpsRight_btn:SimpleButton;
public var optionFps_txt:TextField;
}
}//package
Section 41
//RANKING_BTN (RANKING_BTN)
package {
import flash.display.*;
public dynamic class RANKING_BTN extends SimpleButton {
}
}//package
Section 42
//ReadyMc (ReadyMc)
package {
import flash.display.*;
public dynamic class ReadyMc extends MovieClip {
}
}//package
Section 43
//shot01 (shot01)
package {
import flash.media.*;
public dynamic class shot01 extends Sound {
}
}//package
Section 44
//shot30Mc (shot30Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class shot30Mc extends MovieClip {
public var rootObj:MovieClip;
public function shot30Mc(){
addFrameScript(0, frame1, 1, frame2, 23, frame24);
}
function frame1(){
stop();
}
function frame24(){
stop();
this.visible = false;
rootObj.shotFlag = false;
rootObj.explosionFlag = false;
}
function frame2(){
rootObj = (this.root as MovieClip);
rootObj.explosionFlag = true;
}
}
}//package
Section 45
//shotMc (shotMc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class shotMc extends MovieClip {
public var rootObj:MovieClip;
public function shotMc(){
addFrameScript(0, frame1, 1, frame2, 40, frame41);
}
function frame1(){
stop();
}
function frame2(){
rootObj = (this.root as MovieClip);
rootObj.explosionFlag = true;
}
function frame41(){
stop();
this.visible = false;
rootObj.shotFlag = false;
rootObj.explosionFlag = false;
}
}
}//package
Section 46
//spread01 (spread01)
package {
import flash.media.*;
public dynamic class spread01 extends Sound {
}
}//package
Section 47
//spread02 (spread02)
package {
import flash.media.*;
public dynamic class spread02 extends Sound {
}
}//package
Section 48
//spread03 (spread03)
package {
import flash.media.*;
public dynamic class spread03 extends Sound {
}
}//package
Section 49
//yamame30Mc (yamame30Mc)
package {
import flash.display.*;
public dynamic class yamame30Mc extends MovieClip {
public function yamame30Mc(){
addFrameScript(0, frame1, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 21, frame22, 22, frame23);
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame5(){
gotoAndStop("normal");
}
function frame8(){
stop();
}
}
}//package
Section 50
//yamameMc (yamameMc)
package {
import flash.display.*;
public dynamic class yamameMc extends MovieClip {
public function yamameMc(){
addFrameScript(0, frame1, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 36, frame37, 37, frame38);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame9(){
stop();
}
function frame8(){
gotoAndStop("normal");
}
function frame37(){
stop();
}
function frame38(){
stop();
}
function frame11(){
stop();
}
}
}//package