Section 1
//BACK_MC_20 (hanrei_fla.BACK_MC_20)
package hanrei_fla {
import flash.display.*;
public dynamic class BACK_MC_20 extends MovieClip {
public var yabure_mc:MovieClip;
}
}//package hanrei_fla
Section 2
//break_MC_29 (hanrei_fla.break_MC_29)
package hanrei_fla {
import flash.display.*;
public dynamic class break_MC_29 extends MovieClip {
public var mybest_mc:MovieClip;
public var breakT_mc:MovieClip;
public function break_MC_29(){
addFrameScript(0, frame1, 46, frame47);
}
function frame1(){
stop();
}
function frame47(){
stop();
}
}
}//package hanrei_fla
Section 3
//BREAKTEST_MC_30 (hanrei_fla.BREAKTEST_MC_30)
package hanrei_fla {
import flash.display.*;
import flash.text.*;
public dynamic class BREAKTEST_MC_30 extends MovieClip {
public var break_txt:TextField;
}
}//package hanrei_fla
Section 4
//JUST_MC_32 (hanrei_fla.JUST_MC_32)
package hanrei_fla {
import flash.display.*;
public dynamic class JUST_MC_32 extends MovieClip {
public function JUST_MC_32(){
addFrameScript(0, frame1, 111, frame112);
}
function frame1(){
stop();
}
function frame112(){
stop();
}
}
}//package hanrei_fla
Section 5
//MainTimeline (hanrei_fla.MainTimeline)
package hanrei_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
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 = "php079101/ranking.php";
public var rankingLastScore;
public var objDeleteFlag:Boolean;
public var seList:Dictionary;
public var hiScore:int;
public var secretUsed_array:Array;
public var redFontFilter:GlowFilter;
public var wallAffix:int;
public var yellowFontFilter:GlowFilter;
public var ranking_mc:MovieClip;
public var hiScoreUpdate:Boolean;
public var sc;
public var objCount:int;
public var so:SharedObject;
public var speed;
public var overFlag:int;
public var wallMc_array:Array;
public var dummyWall_mc:MovieClip;
public var volumeOver_mc:MovieClip;
public var backCount:int;
public var i;
public var timer_txt:TextField;
public var missFlag:Boolean;
public var start_mc:MovieClip;
public var overCount:int;
public var secretView_txt:TextField;
public var info:LoaderInfo;
public var loadPercent_txt:TextField;
public var logo_mc:MovieClip;
public var gageVector:int;
public var beforeX:Number;
public var hanreiType:int;
public var clearMask_mc:MovieClip;
public var volumeUp_mc:MovieClip;
public var blackMask_mc:MovieClip;
public var hanrei_mc:MovieClip;
public var youmu_mc:MovieClip;
public var timeDead;
public var time;
public var break_mc:MovieClip;
public var fp;
public var kyori:int;
public var fr;
public var title_mc:MovieClip;
public var guruguruTime:int;
public var fps;
public var hanreiFlag:Boolean;
public var userName:String;
public var result_mc:MovieClip;
public var hard;
public var ranking_array:Array;
public var volume:int;
public var hard_txt:TextField;
public var bgmLoopTime_array:Array;
public var time_count;
public var moveStatus:int;
public var old_timer;
public var maxSpeed;
public var bgmCh;
public var breakCount:int;
public var opFps;
public var overLeft_mc:MovieClip;
public var breakCount167:int;
public var fallStatus;
public var bgmTr;
public var guruguruFlag:Boolean;
public var secView_array:Array;
public var throwFlag:Boolean;
public var rankingXmlLoader:URLLoader;
public var ms0:int;
public var throwWait:Boolean;
public var bgmList:Dictionary;
public var breakCount297:int;
public var fadeStatus:int;
public var breakCount13:int;
public var wall_array:Array;
public var breakCount27:int;
public var cursorX:Number;
public var fadeBgmCount;
public var just_mc:MovieClip;
public var sndTr;
public var cursorY:Number;
public var playBgmNo:int;
public var XML_RANKING;
public var breakCount49:int;
public var rankingPage;
public var back_mc:MovieClip;
public var titleHiscore_txt:TextField;
public var counter;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 83, frame84, 84, frame85, 85, frame86);
}
public function xKeyDown(_arg1:KeyboardEvent):void{
if (moveStatus == 2){
if (_arg1.keyCode == Keyboard.SPACE){
blackMask_mc.alpha = 1;
blackMask_mc.visible = true;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, xKeyDown);
removeEventListener(Event.ENTER_FRAME, xEnterMain);
addEventListener(Event.ENTER_FRAME, xEnterDeleteObjRetry);
};
};
}
public function addRankingEventAll():void{
ranking_mc.back_btn.addEventListener(MouseEvent.CLICK, xClickRankingBack);
ranking_mc.rankingUp_btn.addEventListener(MouseEvent.CLICK, xClickRankingUp);
ranking_mc.rankingDown_btn.addEventListener(MouseEvent.CLICK, xClickRankingDown);
}
public function xEnterRankFade(_arg1:Event):void{
result_mc.rankIn_mc.alpha = (result_mc.rankIn_mc.alpha - 0.05);
result_mc.noRankIn_mc.alpha = (result_mc.noRankIn_mc.alpha + 0.05);
if (result_mc.rankIn_mc.alpha <= 0){
result_mc.rankIn_mc.alpha = 0;
result_mc.rankIn_mc.visible = false;
result_mc.noRankIn_mc.alpha = 1;
removeEventListener(Event.ENTER_FRAME, xEnterRankFade);
};
}
public function errorHandler(_arg1:IOErrorEvent):void{
}
public function xClickResultTitle(_arg1:MouseEvent):void{
playSe(cursor1);
result_mc.visible = false;
objDeleteFlag = true;
removeReultEvent();
addEventListener(Event.ENTER_FRAME, xEnterDeleteObjTitle);
}
public function xClickRanking(_arg1:MouseEvent):void{
playSe(cursor1);
removeTitleEventAll();
addEventListener(Event.ENTER_FRAME, xEnterFadeTitleToRanking);
ranking_mc.visible = true;
}
public function xClickRankingBack(_arg1:MouseEvent):void{
playSe(cursor1);
removeRankingEventAll();
addEventListener(Event.ENTER_FRAME, xEnterFadeRankingToTitle);
}
public function xEnterDeleteObjRetry(_arg1:Event):void{
blackMask_mc.alpha = (blackMask_mc.alpha + 0.05);
result_mc.alpha = (result_mc.alpha - 0.05);
if (blackMask_mc.alpha >= 1){
objDeleteFlag = true;
blackMask_mc.alpha = 1;
result_mc.visible = false;
result_mc.alpha = 0;
if (objCount <= 0){
stopBgm();
removeEventListener(Event.ENTER_FRAME, xEnterDeleteObjRetry);
gotoAndStop("reset");
};
};
}
public function xEnterFadeOutTitleToGame(_arg1:Event):void{
blackMask_mc.alpha = (blackMask_mc.alpha + 0.05);
if (blackMask_mc.alpha >= 1){
blackMask_mc.alpha = 1;
removeEventListener(Event.ENTER_FRAME, xEnterFadeOutTitleToGame);
gotoAndStop("reset");
};
}
function frame1(){
stop();
wallMc_array = [];
createWall();
userName = "";
hiScore = 0;
volume = 2;
secView_array = [];
contextInit();
so = SharedObject.getLocal("hanrei");
soInit();
bgmList = new Dictionary();
playBgmNo = 0;
bgmTr = new SoundTransform();
bgmCh = new SoundChannel();
bgmTr.volume = (volume * 0.1);
bgmCh.soundTransform = bgmTr;
bgmList[0] = new bgm1();
bgmList[1] = new bgm2();
bgmLoopTime_array = [];
bgmLoopTime_array[0] = 0;
bgmLoopTime_array[1] = 3000;
seList = new Dictionary();
seList[hit1] = new hit1();
seList[hit2] = new hit2();
seList[cursor2] = new cursor1();
seList[cursor1] = new cursor2();
seList[cursor3] = new cursor3();
seList[break1] = new break1();
seList[swing1] = new swing1();
seList[swing2] = new swing2();
seList[throw1] = new throw1();
sndTr = new SoundTransform();
sndTr.volume = (volume * 0.05);
info = root.loaderInfo;
stage.addEventListener(Event.ENTER_FRAME, xLoadEnter);
}
public function summonWall():void{
var _local1:MovieClip;
_local1 = wallMc_array.pop();
objCount++;
_local1.y = 30;
_local1.x = -50;
_local1.endure = (wallAffix * 2);
addChildAt(_local1, (getChildIndex(dummyWall_mc) - 1));
_local1.gotoAndStop("normal");
}
public function xClickResultRetry(_arg1:MouseEvent):void{
playSe(cursor1);
blackMask_mc.visible = true;
removeReultEvent();
addEventListener(Event.ENTER_FRAME, xEnterDeleteObjRetry);
}
public function xEnterFadeRankingToTitle(_arg1:Event):void{
ranking_mc.alpha = (ranking_mc.alpha - 0.05);
title_mc.alpha = (title_mc.alpha + 0.05);
logo_mc.titleText_mc.alpha = (logo_mc.titleText_mc.alpha + 0.05);
if (ranking_mc.alpha <= 0){
ranking_mc.alpha = 0;
ranking_mc.visible = false;
title_mc.alpha = 1;
logo_mc.titleText_mc.alpha = 1;
removeEventListener(Event.ENTER_FRAME, xEnterFadeRankingToTitle);
addTitleEventAll();
};
}
function frame2(){
titleHiscore_txt.text = (hiScore.toString() + "枚");
title_mc.volume_btn.upState = volumeUp_mc.text_txt;
title_mc.volume_btn.overState = volumeOver_mc.text_txt;
title_mc.volume_btn.downState = volumeUp_mc.text_txt;
setVolumeBtn();
secretView_txt.text = "";
sc = 1;
while (sc <= 13) {
if (secView_array[sc] == 1){
secretView_txt.appendText("☆");
} else {
secretView_txt.appendText("●");
};
sc++;
};
}
public function addGameEvent():void{
clearMask_mc.addEventListener(MouseEvent.CLICK, xClickStage);
clearMask_mc.addEventListener(MouseEvent.MOUSE_DOWN, xDownThrow);
clearMask_mc.addEventListener(MouseEvent.MOUSE_UP, xUPThrow);
clearMask_mc.addEventListener(MouseEvent.MOUSE_OUT, xOutThrow);
stage.addEventListener(KeyboardEvent.KEY_DOWN, xKeyDown);
}
public function xEnterFadeInTitleToGame(_arg1:Event):void{
if (fadeStatus == 0){
blackMask_mc.alpha = (blackMask_mc.alpha - 0.05);
if (blackMask_mc.alpha <= 0.5){
blackMask_mc.alpha = 0.5;
fadeStatus = 1;
};
} else {
if (fadeStatus == 1){
start_mc.alpha = (start_mc.alpha + 0.05);
start_mc.x = (start_mc.x + ((110 - start_mc.x) * 0.1));
if (start_mc.x <= 114){
playBgmLoop(0);
start_mc.x = 114;
fadeStatus = 2;
};
} else {
if (fadeStatus == 2){
counter++;
if (counter >= 30){
counter = 0;
fadeStatus = 3;
};
} else {
if (fadeStatus == 3){
start_mc.alpha = (start_mc.alpha - 0.05);
start_mc.x = (start_mc.x + ((10 - start_mc.x) * 0.1));
if (start_mc.x <= 14){
start_mc.x = 14;
start_mc.visible = false;
fadeStatus = 4;
};
} else {
if (fadeStatus == 4){
blackMask_mc.alpha = (blackMask_mc.alpha - 0.05);
if (blackMask_mc.alpha <= 0){
blackMask_mc.alpha = 0;
blackMask_mc.visible = false;
ms0 = getTimer();
removeEventListener(Event.ENTER_FRAME, xEnterFadeInTitleToGame);
addEventListener(Event.ENTER_FRAME, xEnterMain);
addGameEvent();
};
};
};
};
};
};
}
public function playSe(_arg1){
seList[_arg1].play(0, 1, sndTr);
}
public function setVolumeBtn():void{
var _local1:String;
bgmTr.volume = (volume * 0.1);
sndTr.volume = (volume * 0.05);
_local1 = "Volume : ";
if (volume == 0){
volumeUp_mc.text_txt.text = (_local1 + "MUTE");
volumeOver_mc.text_txt.text = (_local1 + "MUTE");
} else {
if (volume == 1){
volumeUp_mc.text_txt.text = (_local1 + "★");
volumeOver_mc.text_txt.text = (_local1 + "★");
} else {
if (volume == 2){
volumeUp_mc.text_txt.text = (_local1 + "★★");
volumeOver_mc.text_txt.text = (_local1 + "★★");
} else {
if (volume == 3){
volumeUp_mc.text_txt.text = (_local1 + "★★★");
volumeOver_mc.text_txt.text = (_local1 + "★★★");
} else {
if (volume == 4){
volumeUp_mc.text_txt.text = (_local1 + "★★★★");
volumeOver_mc.text_txt.text = (_local1 + "★★★★");
} else {
if (volume == 5){
volumeUp_mc.text_txt.text = (_local1 + "★★★★★");
volumeOver_mc.text_txt.text = (_local1 + "★★★★★");
};
};
};
};
};
};
}
public function xEnterFadeTitleToRanking(_arg1:Event):void{
ranking_mc.alpha = (ranking_mc.alpha + 0.05);
title_mc.alpha = (title_mc.alpha - 0.05);
logo_mc.titleText_mc.alpha = (logo_mc.titleText_mc.alpha - 0.05);
if (ranking_mc.alpha >= 1){
ranking_mc.alpha = 1;
title_mc.alpha = 0;
logo_mc.titleText_mc.alpha = 0;
removeEventListener(Event.ENTER_FRAME, xEnterFadeTitleToRanking);
addRankingEventAll();
};
}
public function gameBgmComplete(_arg1:Event):void{
bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
bgmCh = null;
bgmCh = bgmList[playBgmNo].play(bgmLoopTime_array[playBgmNo], 1, bgmTr);
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
}
public function xOutThrow(_arg1:MouseEvent):void{
throwFunc(30);
if (clearMask_mc.mouseX <= 0){
overLeft_mc.gotoAndPlay("play");
};
}
public function createWall():void{
var _local1:*;
_local1 = 0;
while (_local1 < 20) {
wallMc_array.push(new WALL_MC());
_local1++;
};
}
public function rankingDisplayInit():void{
var _local1:*;
var _local2:*;
_local1 = 0;
while (_local1 < 10) {
_local2 = (_local1 + rankingPage);
ranking_mc[("rank" + _local1)].rankingNo_txt.text = ((_local2 + 1) + "位:");
if (ranking_array[_local2] != null){
ranking_mc[("rank" + _local1)].rankingName_txt.text = ranking_array[_local2].name;
ranking_mc[("rank" + _local1)].rankingScore_txt.text = (ranking_array[_local2].score + "枚");
} else {
ranking_mc[("rank" + _local1)].rankingName_txt.text = "--------";
ranking_mc[("rank" + _local1)].rankingScore_txt.text = "0枚";
};
_local1++;
};
if (rankingPage == 0){
ranking_mc.rankingUp_btn.visible = false;
} else {
if (rankingPage == 90){
ranking_mc.rankingDown_btn.visible = false;
} else {
ranking_mc.rankingUp_btn.visible = true;
ranking_mc.rankingDown_btn.visible = true;
};
};
}
public function xClickStage(_arg1:MouseEvent):void{
if (throwFlag == false){
youmu_mc.gotoAndPlay("swing");
};
}
public function throwFunc(_arg1:int):void{
if (_arg1 <= 30){
_arg1 = 30;
};
if (guruguruFlag == true){
removeGameEvent();
hanrei_mc.visible = true;
throwFlag = true;
guruguruFlag = false;
youmu_mc.gotoAndPlay("throw");
speed = _arg1;
if (fp <= 0){
fp = 5;
};
speed = (speed * (fp / 60));
speed = speed.toFixed(1);
if (Number(timer_txt.text) == 0.1){
playSe(cursor3);
just_mc.gotoAndPlay("just");
speed = (speed * 1.2);
};
if (speed <= 30){
speed = 30;
missFlag = true;
};
} else {
if ((((guruguruFlag == false)) && ((throwFlag == false)))){
throwWait = false;
counter = 0;
};
};
}
public function xClickNoSend(_arg1:MouseEvent):void{
playSe(cursor1);
removeSendEvent();
result_mc.rankIn_mc.alpha = 1;
result_mc.noRankIn_mc.alpha = 0;
result_mc.rankIn_mc.visible = true;
result_mc.noRankIn_mc.visible = true;
result_mc.rankIn_mc.scoreName_txt.visible = false;
addEventListener(Event.ENTER_FRAME, xEnterRankFade);
}
public function xEnterMain(_arg1:Event):void{
var _local2:Number;
var _local3:*;
var _local4:Number;
var _local5:Number;
var _local6:Number;
beforeX = cursorX;
cursorX = clearMask_mc.mouseX;
cursorY = clearMask_mc.mouseY;
break_mc.breakT_mc.break_txt.text = (breakCount.toString() + " !");
time_count = (time_count + 1);
if ((getTimer() - old_timer) >= time){
fp = Math.floor(((time_count * 1000) / (getTimer() - old_timer)));
fps = ((fp + "/") + fr);
old_timer = getTimer();
time_count = 0;
};
if (throwFlag == false){
_local3 = 10;
_local4 = ((getTimer() - ms0) / 10);
_local5 = (_local3 - Math.floor(((_local4 / 100) % 60)));
_local6 = ((_local3 * 100) - Math.floor((_local4 % (_local3 * 100))));
_local6 = (Math.round((_local6 * 0.1)) / 10);
timer_txt.text = _local6.toFixed(1);
if (_local6 <= 3){
timer_txt.filters = [redFontFilter];
};
if ((((_local6 <= 0)) || ((_local5 <= 0)))){
timeDead = 1;
timer_txt.text = "0.0";
guruguruFlag = true;
throwFunc(30);
};
};
if ((((timeDead == 1)) && ((throwFlag == false)))){
guruguruFlag = true;
throwFunc(30);
};
if ((((throwWait == true)) && ((throwFlag == false)))){
counter++;
if (counter >= guruguruTime){
guruguruFlag = true;
youmu_mc.gotoAndPlay("guru");
throwWait = false;
};
};
_local2 = 0;
if (speed >= maxSpeed){
_local2 = maxSpeed;
} else {
_local2 = speed;
};
if (throwFlag == true){
if (moveStatus == 0){
hanrei_mc.x = (hanrei_mc.x - 30);
if (hanrei_mc.x <= -500){
hanrei_mc.gotoAndStop(("normal" + hanreiType));
hanrei_mc.x = -500;
moveStatus = 1;
};
} else {
if (moveStatus == 1){
youmu_mc.x = (youmu_mc.x + (_local2 * 0.3));
hanrei_mc.x = (hanrei_mc.x + (_local2 * 0.3));
back_mc.x = (back_mc.x + (_local2 * 0.3));
if (hanrei_mc.x >= 80){
hanrei_mc.x = 80;
moveStatus = 2;
stopBgm();
playBgmLoop(1);
};
} else {
if (moveStatus == 2){
if (speed > 0){
kyori = (kyori + (_local2 * 0.5));
back_mc.x = (back_mc.x + (_local2 * 0.2));
if (back_mc.x >= -350){
secretSet();
back_mc.x = (back_mc.x - 700);
};
if (wall_array[wallAffix] <= kyori){
summonWall();
wallAffix++;
};
//unresolved jump
};
} else {
if (moveStatus == 3){
if (fallStatus == 0){
hanrei_mc.x = (hanrei_mc.x + (15 * 0.1));
hanrei_mc.y = (hanrei_mc.y + ((hanrei_mc.y - 50) * 0.2));
if (hanrei_mc.y >= 109){
hanrei_mc.y = 109;
hanrei_mc.gotoAndStop(("fall" + hanreiType));
fallStatus = 1;
moveStatus = 4;
result_mc.noRankIn_mc.score_txt.text = breakCount.toString();
result_mc.visible = true;
if (breakCount > hiScore){
result_mc.noRankIn_mc.mybest_mc.visible = true;
so.data.hiScore = (hiScore = breakCount);
so.data.hiScore = breakCount;
hiScoreUpdate = true;
};
if ((((breakCount >= rankingLastScore)) && (hiScoreUpdate))){
result_mc.rankIn_mc.visible = true;
result_mc.noRankIn_mc.visible = false;
result_mc.rankIn_mc.scoreName_txt.text = userName;
result_mc.rankIn_mc.send_btn.addEventListener(MouseEvent.CLICK, xClickSend);
result_mc.rankIn_mc.noSend_btn.addEventListener(MouseEvent.CLICK, xClickNoSend);
} else {
result_mc.rankIn_mc.visible = false;
result_mc.noRankIn_mc.visible = true;
};
};
};
} else {
if (moveStatus == 4){
result_mc.y = (result_mc.y + ((55 - result_mc.y) * 0.1));
result_mc.alpha = (result_mc.alpha + 0.05);
fadeBgmCount++;
if ((fadeBgmCount % 2) == 0){
bgmTr.volume = (bgmTr.volume - (volume * 0.005));
bgmCh.soundTransform = bgmTr;
if (bgmTr.volume <= (volume * 0.02)){
bgmTr.volume = (volume * 0.02);
bgmCh.soundTransform = bgmTr;
};
};
if ((((result_mc.y >= 50)) && ((result_mc.alpha >= 1)))){
result_mc.y = 50;
result_mc.alpha = 1;
addResultEvent();
removeEventListener(Event.ENTER_FRAME, xEnterMain);
moveStatus = 5;
};
} else {
if (moveStatus == 5){
};
};
};
};
};
};
};
}
public function xCompleteRanking(_arg1:Event):void{
var _local2:XML;
var _local3:XMLList;
var _local4:Array;
var _local5:Array;
var _local6:*;
_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));
_local4 = [];
_local5 = [];
_local4 = ranking_array;
ranking_array = [];
_local6 = 0;
while ((((ranking_array.length < 100)) && ((_local6 < _local4.length)))) {
if (_local5.indexOf(_local4[_local6].name.toString()) == -1){
ranking_array.push(_local4[_local6]);
_local5.push(_local4[_local6].name.toString());
};
_local6++;
};
_local4 = null;
_local5 = null;
if (ranking_array[99] != null){
rankingLastScore = ranking_array[99].score;
} else {
rankingLastScore = 0;
};
rankingDisplayInit();
rankingXmlLoader.removeEventListener(Event.COMPLETE, xCompleteRanking);
rankingXmlLoader.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler);
rankingXmlLoader = null;
addTitleEventAll();
}
function frame84(){
stop();
XML_RANKING = ("xml421563/ranking.xml?" + new Date().getTime());
ranking_array = [];
rankingLastScore = 0;
rankingPage = 0;
ranking_mc.visible = false;
ranking_mc.alpha = 0;
ranking_mc.rankingUp_btn.visible = true;
ranking_mc.rankingDown_btn.visible = true;
blackMask_mc.visible = false;
blackMask_mc.alpha = 0;
rankingXmlLoader = new URLLoader();
rankingXmlLoader.addEventListener(Event.COMPLETE, xCompleteRanking);
rankingXmlLoader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
rankingXmlLoader.load(new URLRequest(XML_RANKING));
}
public function xClickVolume(_arg1:MouseEvent):void{
volume++;
if (volume == 6){
volume = 0;
};
so.data.volume = volume;
setVolumeBtn();
}
public function addResultEvent():void{
result_mc.noRankIn_mc.retry_btn.addEventListener(MouseEvent.CLICK, xClickResultRetry);
result_mc.noRankIn_mc.title_btn.addEventListener(MouseEvent.CLICK, xClickResultTitle);
}
public function playBgm(_arg1){
playBgmNo = _arg1;
bgmCh = bgmList[_arg1].play(1, 1, bgmTr);
}
function frame85(){
stop();
gotoAndStop("game");
}
function frame86(){
stop();
redFontFilter = new GlowFilter();
redFontFilter.blurX = 2;
redFontFilter.blurY = 2;
redFontFilter.strength = 10;
redFontFilter.color = 0x990000;
yellowFontFilter = new GlowFilter();
yellowFontFilter.blurX = 3;
yellowFontFilter.blurY = 3;
yellowFontFilter.strength = 0xFF;
yellowFontFilter.color = 0;
secretUsed_array = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
timeDead = 0;
hanrei_mc.visible = false;
result_mc.visible = false;
start_mc.visible = true;
result_mc.rankIn_mc.visible = false;
result_mc.noRankIn_mc.visible = false;
break_mc.mybest_mc.visible = false;
result_mc.noRankIn_mc.mybest_mc.visible = false;
throwFlag = false;
guruguruFlag = false;
hanreiFlag = false;
throwWait = false;
hiScoreUpdate = false;
fadeBgmCount = 0;
guruguruTime = 15;
missFlag = false;
overFlag = 0;
overCount = 0;
objCount = 0;
speed = 0;
maxSpeed = 80;
hard = 0;
hanreiType = 0;
counter = 0;
fallStatus = 0;
cursorY = 0;
cursorX = 0;
beforeX = 0;
fadeStatus = 0;
moveStatus = 0;
gageVector = 1;
objDeleteFlag = false;
backCount = 0;
kyori = 0;
breakCount = 0;
breakCount167 = 0;
breakCount49 = 0;
breakCount297 = 0;
breakCount13 = 0;
breakCount27 = 0;
wall_array = [];
wallAffix = 0;
i = 1;
while (i < 1500) {
wall_array.push((i * 200));
i++;
};
ms0 = getTimer();
opFps = 60;
fr = opFps;
fp = 0;
time = 1000;
time_count = 0;
old_timer = getTimer();
fps = ((fr + "/") + fr);
bgmTr.volume = (volume * 0.1);
sndTr.volume = (volume * 0.05);
addEventListener(Event.ENTER_FRAME, xEnterFadeInTitleToGame);
}
public function removeTitleEventAll():void{
title_mc.gamestart_btn.removeEventListener(MouseEvent.CLICK, xClickGameStart);
title_mc.ranking_btn.removeEventListener(MouseEvent.CLICK, xClickRanking);
title_mc.volume_btn.removeEventListener(MouseEvent.CLICK, xClickVolume);
}
public function reset():void{
guruguruFlag = false;
throwFlag = false;
breakCount = 0;
breakCount167 = 0;
breakCount49 = 0;
breakCount297 = 0;
breakCount13 = 0;
breakCount27 = 0;
moveStatus = 0;
youmu_mc.x = 52;
kyori = 0;
wallAffix = 0;
hanrei_mc.visible = false;
hanrei_mc.x = 0;
hanrei_mc.y = 54;
}
public function removeReultEvent():void{
result_mc.noRankIn_mc.retry_btn.removeEventListener(MouseEvent.CLICK, xClickResultRetry);
result_mc.noRankIn_mc.title_btn.removeEventListener(MouseEvent.CLICK, xClickResultTitle);
}
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 breakWall():void{
breakCount++;
breakCount167 = (breakCount167 + 167);
breakCount49 = (breakCount49 + 49);
breakCount297 = (breakCount297 + 297);
breakCount13 = (breakCount13 + 13);
breakCount27 = (breakCount27 + 27);
if (breakCount > hiScore){
break_mc.mybest_mc.visible = true;
};
break_mc.gotoAndPlay("play");
}
public function stopBgm(){
bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
bgmCh.stop();
bgmCh = null;
playBgmNo = -1;
}
public function xClickRankingUp(_arg1:MouseEvent):void{
playSe(cursor1);
rankingPage = (rankingPage - 10);
rankingDisplayInit();
}
public function xClickGameStart(_arg1:MouseEvent):void{
playSe(cursor1);
removeTitleEventAll();
blackMask_mc.visible = true;
addEventListener(Event.ENTER_FRAME, xEnterFadeOutTitleToGame);
}
public function secretSet():void{
var _local1:int;
var _local2:int;
backCount++;
if ((backCount % 2) == 0){
_local1 = Math.floor((Math.random() * 14000));
_local2 = 0;
if (_local1 == 0){
_local2 = 1;
} else {
if (_local1 <= 5){
_local2 = 2;
} else {
if (_local1 <= 10){
_local2 = 3;
} else {
if (_local1 <= 30){
_local2 = 4;
} else {
if (_local1 <= 60){
_local2 = 5;
} else {
if (_local1 <= 100){
_local2 = 6;
} else {
if (_local1 <= 150){
_local2 = 7;
} else {
if (_local1 <= 210){
_local2 = 8;
} else {
if (_local1 <= 280){
_local2 = 9;
} else {
if (_local1 <= 360){
_local2 = 10;
} else {
if (_local1 <= 450){
_local2 = 11;
} else {
if (_local1 <= 550){
_local2 = 12;
} else {
if (_local1 <= 750){
_local2 = 13;
} else {
_local2 = 0;
};
};
};
};
};
};
};
};
};
};
};
};
};
secView_array[_local2] = 1;
so.data.secret[_local2] = 1;
if (secretUsed_array[_local2] == 0){
back_mc.yabure_mc.gotoAndStop(("yabure" + _local2));
secretUsed_array[_local2] = 1;
} else {
back_mc.yabure_mc.gotoAndStop("yabure0");
};
} else {
back_mc.yabure_mc.gotoAndStop("yabure0");
};
}
public function soInit():void{
if (so.size == 0){
so.data.userName = "";
so.data.hiScore = 0;
so.data.volume = 3;
so.data.secret = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
} else {
if (so.data.userName != null){
userName = so.data.userName;
};
if (so.data.hiScore != null){
hiScore = so.data.hiScore;
};
if (so.data.volume != null){
volume = so.data.volume;
};
if (so.data.secret != null){
secView_array = so.data.secret;
};
};
}
public function xClickSend(_arg1:MouseEvent):void{
playSe(cursor1);
removeSendEvent();
registHiscore(result_mc.rankIn_mc.scoreName_txt.text, breakCount);
userName = result_mc.rankIn_mc.scoreName_txt.text;
so.data.userName = userName;
result_mc.rankIn_mc.alpha = 1;
result_mc.noRankIn_mc.alpha = 0;
result_mc.rankIn_mc.visible = true;
result_mc.noRankIn_mc.visible = true;
result_mc.rankIn_mc.scoreName_txt.visible = false;
addEventListener(Event.ENTER_FRAME, xEnterRankFade);
}
public function xUPThrow(_arg1:MouseEvent):void{
throwFunc((((beforeX - clearMask_mc.mouseX) * 2) + 30));
}
public function removeGameEvent():void{
clearMask_mc.removeEventListener(MouseEvent.CLICK, xClickStage);
clearMask_mc.removeEventListener(MouseEvent.MOUSE_DOWN, xDownThrow);
clearMask_mc.removeEventListener(MouseEvent.MOUSE_UP, xUPThrow);
clearMask_mc.removeEventListener(MouseEvent.MOUSE_OUT, xOutThrow);
}
public function xDownThrow(_arg1:MouseEvent):void{
counter = 0;
throwWait = true;
reset();
}
public function playBgmLoop(_arg1){
playBgmNo = _arg1;
bgmCh = bgmList[_arg1].play(1, 1, bgmTr);
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
}
public function xEnterDeleteObjTitle(_arg1:Event):void{
if (objCount <= 0){
stopBgm();
removeEventListener(Event.ENTER_FRAME, xEnterDeleteObjTitle);
gotoAndPlay("title");
};
}
public function removeRankingEventAll():void{
ranking_mc.back_btn.removeEventListener(MouseEvent.CLICK, xClickRankingBack);
ranking_mc.rankingUp_btn.removeEventListener(MouseEvent.CLICK, xClickRankingUp);
ranking_mc.rankingDown_btn.removeEventListener(MouseEvent.CLICK, xClickRankingDown);
}
public function registHiscore(_arg1:String, _arg2:int):void{
var url:URLRequest;
var variables:URLVariables;
var loader:URLLoader;
var nameStr = _arg1;
var scoreInt = _arg2;
if (((((((((((scoreInt * 167) == breakCount167)) && (((scoreInt * 49) == breakCount49)))) && (((scoreInt * 297) == breakCount297)))) && (((scoreInt * 13) == breakCount13)))) && (((scoreInt * 27) == breakCount27)))){
url = new URLRequest(PHP_RANKING);
variables = new URLVariables();
variables.name = nameStr;
variables.score = scoreInt;
url.data = variables.toString();
url.method = URLRequestMethod.POST;
loader = new URLLoader();
try {
loader.load(url);
} catch(e:Error) {
};
url = null;
loader = null;
//unresolved jump
};
}
public function removeSendEvent():void{
result_mc.rankIn_mc.send_btn.removeEventListener(MouseEvent.CLICK, xClickSend);
result_mc.rankIn_mc.noSend_btn.removeEventListener(MouseEvent.CLICK, xClickNoSend);
}
public function xClickRankingDown(_arg1:MouseEvent):void{
playSe(cursor1);
rankingPage = (rankingPage + 10);
rankingDisplayInit();
}
public function xClickYoumu(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://3-me.net/");
navigateToURL(_local2);
}
public function xLoadEnter(_arg1:Event):void{
var _local2:*;
_local2 = Math.floor(((info.bytesLoaded / info.bytesTotal) * 100));
loadPercent_txt.text = _local2;
if (info.bytesLoaded == info.bytesTotal){
stage.removeEventListener(Event.ENTER_FRAME, xLoadEnter);
gotoAndPlay("title");
};
}
public function addTitleEventAll():void{
title_mc.gamestart_btn.addEventListener(MouseEvent.CLICK, xClickGameStart);
title_mc.ranking_btn.addEventListener(MouseEvent.CLICK, xClickRanking);
title_mc.volume_btn.addEventListener(MouseEvent.CLICK, xClickVolume);
}
}
}//package hanrei_fla
Section 6
//noRankIn_40 (hanrei_fla.noRankIn_40)
package hanrei_fla {
import flash.display.*;
import flash.text.*;
public dynamic class noRankIn_40 extends MovieClip {
public var title_btn:SimpleButton;
public var score_txt:TextField;
public var retry_btn:SimpleButton;
public var mybest_mc:MovieClip;
}
}//package hanrei_fla
Section 7
//OVERLEFT_MC_34 (hanrei_fla.OVERLEFT_MC_34)
package hanrei_fla {
import flash.display.*;
public dynamic class OVERLEFT_MC_34 extends MovieClip {
public function OVERLEFT_MC_34(){
addFrameScript(0, frame1, 125, frame126);
}
function frame1(){
stop();
}
function frame126(){
stop();
}
}
}//package hanrei_fla
Section 8
//RANKIN_MC_45 (hanrei_fla.RANKIN_MC_45)
package hanrei_fla {
import flash.display.*;
import flash.text.*;
public dynamic class RANKIN_MC_45 extends MovieClip {
public var noSend_btn:SimpleButton;
public var send_btn:SimpleButton;
public var scoreName_txt:TextField;
}
}//package hanrei_fla
Section 9
//RANKING_MC_14 (hanrei_fla.RANKING_MC_14)
package hanrei_fla {
import flash.display.*;
public dynamic class RANKING_MC_14 extends MovieClip {
public var back_btn:SimpleButton;
public var rank0:MovieClip;
public var rank3:MovieClip;
public var rank6:MovieClip;
public var rank5:MovieClip;
public var rankingUp_btn:SimpleButton;
public var rank4:MovieClip;
public var rank7:MovieClip;
public var rank1:MovieClip;
public var rank2:MovieClip;
public var rankingDown_btn:SimpleButton;
public var rank9:MovieClip;
public var rank8:MovieClip;
}
}//package hanrei_fla
Section 10
//RANKNAMES_15 (hanrei_fla.RANKNAMES_15)
package hanrei_fla {
import flash.display.*;
import flash.text.*;
public dynamic class RANKNAMES_15 extends MovieClip {
public var rankingName_txt:TextField;
public var rankingScore_txt:TextField;
public var rankingNo_txt:TextField;
}
}//package hanrei_fla
Section 11
//RESULTWINDOW_39 (hanrei_fla.RESULTWINDOW_39)
package hanrei_fla {
import flash.display.*;
public dynamic class RESULTWINDOW_39 extends MovieClip {
public var rankIn_mc:MovieClip;
public var noRankIn_mc:MovieClip;
}
}//package hanrei_fla
Section 12
//Timeline_21 (hanrei_fla.Timeline_21)
package hanrei_fla {
import flash.display.*;
public dynamic class Timeline_21 extends MovieClip {
public function Timeline_21(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14);
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame13(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
function frame11(){
stop();
}
}
}//package hanrei_fla
Section 13
//Timeline_25 (hanrei_fla.Timeline_25)
package hanrei_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_25 extends MovieClip {
public var chargePoint:int;
public var rootObj:MovieClip;
public function Timeline_25(){
addFrameScript(0, frame1, 8, frame9, 15, frame16, 22, frame23, 29, frame30, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 63, frame64, 64, frame65, 71, frame72);
}
function frame65(){
rootObj.playSe(throw1);
}
function frame72(){
stop();
}
function frame64(){
gotoAndPlay("guru");
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
chargePoint = 15;
}
function frame23(){
chargePoint = 8;
}
function frame9(){
if (chargePoint == 28){
rootObj.playSe(hit2);
} else {
rootObj.playSe(hit1);
};
rootObj.playSe(hit1);
rootObj.hard = (rootObj.hard + chargePoint);
chargePoint = 2;
rootObj.hard_txt.text = rootObj.hard.toString();
if (rootObj.hard >= 350){
rootObj.hanreiType = 4;
} else {
if (rootObj.hard >= 300){
rootObj.hanreiType = 3;
} else {
if (rootObj.hard >= 250){
rootObj.hanreiType = 2;
} else {
if (rootObj.hard >= 150){
rootObj.hanreiType = 1;
};
};
};
};
}
function frame30(){
chargePoint = 10;
}
function frame37(){
chargePoint = 12;
}
function frame16(){
chargePoint = 6;
}
function frame38(){
chargePoint = 14;
}
function frame39(){
chargePoint = 16;
}
function frame40(){
chargePoint = 18;
}
function frame43(){
stop();
chargePoint = 19;
}
function frame44(){
rootObj.playSe(swing1);
}
function frame41(){
chargePoint = 20;
}
function frame42(){
chargePoint = 28;
}
}
}//package hanrei_fla
Section 14
//Timeline_27 (hanrei_fla.Timeline_27)
package hanrei_fla {
import flash.display.*;
public dynamic class Timeline_27 extends MovieClip {
public function Timeline_27(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15);
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame13(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
function frame15(){
stop();
}
function frame11(){
stop();
}
}
}//package hanrei_fla
Section 15
//Timeline_3 (hanrei_fla.Timeline_3)
package hanrei_fla {
import flash.display.*;
public dynamic class Timeline_3 extends MovieClip {
public var titleText_mc:MovieClip;
}
}//package hanrei_fla
Section 16
//Timeline_5 (hanrei_fla.Timeline_5)
package hanrei_fla {
import flash.display.*;
public dynamic class Timeline_5 extends MovieClip {
public var gamestart_btn:SimpleButton;
public var volume_btn:SimpleButton;
public var ranking_btn:SimpleButton;
public function Timeline_5(){
addFrameScript(58, frame59);
}
function frame59(){
stop();
}
}
}//package hanrei_fla
Section 17
//Timeline_52 (hanrei_fla.Timeline_52)
package hanrei_fla {
import flash.display.*;
public dynamic class Timeline_52 extends MovieClip {
public function Timeline_52(){
addFrameScript(0, frame1, 17, frame18);
}
function frame18(){
stop();
}
function frame1(){
stop();
}
}
}//package hanrei_fla
Section 18
//VOLUMEDOWN_13 (hanrei_fla.VOLUMEDOWN_13)
package hanrei_fla {
import flash.display.*;
import flash.text.*;
public dynamic class VOLUMEDOWN_13 extends MovieClip {
public var text_txt:TextField;
}
}//package hanrei_fla
Section 19
//VOLUMEUP_12 (hanrei_fla.VOLUMEUP_12)
package hanrei_fla {
import flash.display.*;
import flash.text.*;
public dynamic class VOLUMEUP_12 extends MovieClip {
public var text_txt:TextField;
}
}//package hanrei_fla
Section 20
//bgm1 (bgm1)
package {
import flash.media.*;
public dynamic class bgm1 extends Sound {
}
}//package
Section 21
//bgm2 (bgm2)
package {
import flash.media.*;
public dynamic class bgm2 extends Sound {
}
}//package
Section 22
//break1 (break1)
package {
import flash.media.*;
public dynamic class break1 extends Sound {
}
}//package
Section 23
//cursor1 (cursor1)
package {
import flash.media.*;
public dynamic class cursor1 extends Sound {
}
}//package
Section 24
//cursor2 (cursor2)
package {
import flash.media.*;
public dynamic class cursor2 extends Sound {
}
}//package
Section 25
//cursor3 (cursor3)
package {
import flash.media.*;
public dynamic class cursor3 extends Sound {
}
}//package
Section 26
//hit1 (hit1)
package {
import flash.media.*;
public dynamic class hit1 extends Sound {
}
}//package
Section 27
//hit2 (hit2)
package {
import flash.media.*;
public dynamic class hit2 extends Sound {
}
}//package
Section 28
//swing1 (swing1)
package {
import flash.media.*;
public dynamic class swing1 extends Sound {
}
}//package
Section 29
//swing2 (swing2)
package {
import flash.media.*;
public dynamic class swing2 extends Sound {
}
}//package
Section 30
//throw1 (throw1)
package {
import flash.media.*;
public dynamic class throw1 extends Sound {
}
}//package
Section 31
//WALL_MC (WALL_MC)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class WALL_MC extends MovieClip {
public var moveStatus:int;
public var wall_mc:MovieClip;
public var endure;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function WALL_MC(){
addFrameScript(0, frame1, 1, frame2);
}
public function xEnterWallMove(_arg1:Event):void{
var _local2:Number;
_local2 = 0;
if (rootObj.speed >= rootObj.maxSpeed){
_local2 = (rootObj.maxSpeed * 0.3);
} else {
_local2 = (rootObj.speed * 0.3);
};
if (moveStatus == 0){
this.x = (this.x + _local2);
if (this.x >= 70){
if ((((rootObj.speed > 15)) && ((rootObj.missFlag == false)))){
if (rootObj.hard > endure){
if (rootObj.speed > 50){
rootObj.speed = (rootObj.speed - 0.5);
} else {
rootObj.speed = (rootObj.speed - 1);
};
} else {
if (rootObj.speed > 50){
rootObj.speed = (rootObj.speed - 2);
} else {
rootObj.speed = (rootObj.speed - 3);
};
};
rootObj.playSe(break1);
if (_local2 >= 6){
wall_mc.gotoAndPlay("break2");
} else {
wall_mc.gotoAndPlay("break");
};
rootObj.breakWall();
moveStatus = 1;
} else {
rootObj.playSe(hit1);
rootObj.speed = 0;
rootObj.moveStatus = 3;
moveStatus = 2;
rootObj.hanrei_mc.gotoAndStop(("gekitotu" + rootObj.hanreiType));
};
};
} else {
if (moveStatus == 1){
if (_local2 >= 20){
this.x = (this.x + 20);
} else {
this.x = (this.x + _local2);
};
if ((((this.x >= 400)) || ((rootObj.speed <= 0)))){
deleteFlag = true;
};
} else {
if (moveStatus == 2){
if (rootObj.objDeleteFlag == true){
deleteFlag = true;
};
};
};
};
if (rootObj.objDeleteFlag == true){
deleteFlag = true;
};
if (deleteFlag){
insRecycle();
};
}
function frame1(){
stop();
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
this.addEventListener(Event.ENTER_FRAME, xEnterWallMove);
moveStatus = 0;
deleteFlag = false;
}
public function insRecycle():void{
if (rootObj != null){
this.removeEventListener(Event.ENTER_FRAME, xEnterWallMove);
rootObj.wallMc_array.push(this);
rootObj.objCount--;
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("reset");
};
}
}
}//package