Section 1
//barsMC_37 (tenshi0_fla.barsMC_37)
package tenshi0_fla {
import flash.display.*;
public dynamic class barsMC_37 extends MovieClip {
public var yuka_mc:MovieClip;
}
}//package tenshi0_fla
Section 2
//loadScoreNameListMc_3 (tenshi0_fla.loadScoreNameListMc_3)
package tenshi0_fla {
import flash.display.*;
import flash.text.*;
public dynamic class loadScoreNameListMc_3 extends MovieClip {
public var loadScoreNameOk_btn:SimpleButton;
public var loadScoreName_txt:TextField;
}
}//package tenshi0_fla
Section 3
//loadScoreNameMc_2 (tenshi0_fla.loadScoreNameMc_2)
package tenshi0_fla {
import flash.display.*;
public dynamic class loadScoreNameMc_2 extends MovieClip {
public var loadScoreNameList_mc:MovieClip;
}
}//package tenshi0_fla
Section 4
//MainTimeline (tenshi0_fla.MainTimeline)
package tenshi0_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public const PHP_RANKING = "php918402/ranking.php";
public var titleOption_btn:SimpleButton;
public var backWalls5_mc:backWalls5;
public var bar3cIns_array:Array;
public var bar3Ins_array:Array;
public var objectAddPosition:Array;
public var wallIns_array:Array;
public var tenko_mc:MovieClip;
public var wallFlag:Array;
public var maxClimbPoint;
public var volumeOver_mc:MovieClip;
public var gameOverFlag;
public var sendHiscoreFlag:Boolean;
public var bar7Ins_array:Array;
public var req:URLRequest;
public var info:LoaderInfo;
public var clearMask_mc:MovieClip;
public var keysDown:Array;
public var wallAddPosition:Array;
public var moveTarget;
public var barCount;
public var bar0Ins_array:Array;
public var fr;
public var addBarTargetY;
public var loadScoreName_mc:MovieClip;
public var tenkoMoveX;
public var fps;
public var userName:String;
public var ranking_array:Array;
public var time_count;
public var gameOverBack_mc:MovieClip;
public var easing;
public var hardMode;
public var bar4Ins_array:Array;
public var objectInsFlag_array:Array;
public var titleRanking_btn:SimpleButton;
public var nextRemoveWallNo;
public var bgmTr;
public var gameOverIns_array:Array;
public var titleStart_btn:SimpleButton;
public var option_mc:MovieClip;
public var trueScore;
public var sendHiscoreUp_mc:MovieClip;
public var gameOverClick_mc:MovieClip;
public var bar8Ins_array:Array;
public var sndTr;
public var bar3aIns_array:Array;
public var titleHiscore_txt:TextField;
public var bar1Ins_array:Array;
public var rankingLastScore;
public var fadeWall_mc:MovieClip;
public var seList:Dictionary;
public var hiScore:Number;
public var fps_txt:TextField;
public var rename_mc:MovieClip;
public var wallRemovePosition:Array;
public var ranking_mc:rankingMc;
public var objectIns_array:Array;
public var so:SharedObject;
public var score_mc:MovieClip;
public var bar5Ins_array:Array;
public var sendScoreFlag;
public var score;
public var loadPercent_txt:TextField;
public var hardKeysDown:Array;
public var vy:Number;
public var volumeUp_mc:MovieClip;
public var time;
public var qualityOver_mc:MovieClip;
public var tenkoFallFlag;
public var gameOverBase_mc:gameOver1Mc;
public var backWalls2_mc:backWalls2;
public var bar3bIns_array:Array;
public var bar2Ins_array:Array;
public var gameBgm_sound:Sound;
public var volume:int;
public var clearMask2_mc:MovieClip;
public var sendHiscoreOver_mc:MovieClip;
public var old_timer;
public var musicFlag;
public var opFps;
public var bgmCh;
public var loadTenko_mc:MovieClip;
public var backWalls3_mc:MovieClip;
public var tenkoPosition_mc:MovieClip;
public var bars_mc:MovieClip;
public var scoreAlphaFlag;
public var rankingXmlLoader:URLLoader;
public var nextAddWallNo;
public var bar6Ins_array:Array;
public var slowCount:int;
public var resultScore_txt:TextField;
public var ufoCount;
public var backWalls_mc:MovieClip;
public var objectMovePoint:Array;
public var hakurei_mc:hakureiMc;
public var backWalls4_mc:MovieClip;
public var XML_RANKING;
public var rankingPage;
public var qualityUp_mc:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
public function xEnterRankingHeightShrink(_arg1):void{
vy = ((0 - ranking_mc.height) * easing);
ranking_mc.height = (ranking_mc.height + vy);
if (ranking_mc.height < 10){
ranking_mc.height = 5;
removeEventListener(Event.ENTER_FRAME, xEnterRankingHeightShrink);
addEventListener(Event.ENTER_FRAME, xEnterRankingWidthShrink);
};
}
public function xKeyDown(_arg1:KeyboardEvent):void{
keysDown[_arg1.keyCode] = true;
}
public function gameFontInit():void{
score_mc.score_txt.embedFonts = true;
}
public function xClickGameOverMask(_arg1:MouseEvent):void{
if (sendScoreFlag == true){
removeAllGameOverEvent();
gotoAndPlay("game");
};
}
public function xKeyHardDown(_arg1:KeyboardEvent):void{
hardKeysDown[_arg1.keyCode] = true;
}
public function xClickLoadScoreNameOk(_arg1:MouseEvent):void{
playSe(select01);
userName = loadScoreName_mc.loadScoreNameList_mc.loadScoreName_txt.text;
so.data.userName = loadScoreName_mc.loadScoreNameList_mc.loadScoreName_txt.text;
loadScoreName_mc.loadScoreNameList_mc.loadScoreNameOk_btn.removeEventListener(MouseEvent.CLICK, xClickLoadScoreNameOk);
loadScoreName_mc.loadScoreNameList_mc.visible = false;
addEventListener(Event.ENTER_FRAME, xEnterLoadScoreNameHeightShrink);
}
public function xClickOptionRename(_arg1:MouseEvent):void{
playSe(select01);
removeAllOptionEvent();
if (so.data.userName != null){
rename_mc.loadScoreNameList_mc.loadScoreName_txt.text = so.data.userName;
};
userName = rename_mc.loadScoreNameList_mc.loadScoreName_txt.text;
rename_mc.alpha = 1;
rename_mc.visible = true;
clearMask2_mc.visible = true;
addEventListener(Event.ENTER_FRAME, xEnterRenameWidthExtend);
}
public function xEnterLoadScoreNameHeightShrink(_arg1):void{
vy = ((0 - loadScoreName_mc.height) * easing);
loadScoreName_mc.height = (loadScoreName_mc.height + vy);
if (loadScoreName_mc.height < 10){
loadScoreName_mc.height = 5;
removeEventListener(Event.ENTER_FRAME, xEnterLoadScoreNameHeightShrink);
addEventListener(Event.ENTER_FRAME, xEnterLoadScoreNameWidthShrink);
};
}
function frame1(){
stop();
fadeWall_mc.visible = false;
fadeWall_mc.alpha = 0;
loadScoreName_mc.visible = false;
loadFontInit();
userName = "";
volume = 3;
sendHiscoreFlag = true;
hiScore = 0;
easing = 0.3;
vy = ((210 - loadScoreName_mc.width) * easing);
loadScoreName_mc.loadScoreNameList_mc.visible = false;
contextInit();
so = SharedObject.getLocal("tenko");
soInit();
bar0Ins_array = [];
bar1Ins_array = [];
bar2Ins_array = [];
bar3Ins_array = [];
bar3aIns_array = [];
bar3bIns_array = [];
bar3cIns_array = [];
bar4Ins_array = [];
bar5Ins_array = [];
bar6Ins_array = [];
bar7Ins_array = [];
bar8Ins_array = [];
wallIns_array = [];
objectIns_array = [];
gameOverIns_array = [];
makeBarInstance();
makeWallInstance();
makeObjectInstance();
makeGameOverInstance();
seList = new Dictionary();
seList[select01] = new select01();
seList[select02] = new select02();
seList[jump01] = new jump01();
seList[fall01] = new fall01();
sndTr = new SoundTransform();
sndTr.volume = 0.1;
info = root.loaderInfo;
stage.addEventListener(Event.ENTER_FRAME, xLoadEnter);
}
function frame3(){
stop();
gameFontInit();
scoreAlphaFlag = false;
ufoCount = 0;
addTenshi();
gameOverFlag = false;
moveTarget = (tenko_mc.y - 200);
addBarTargetY = 150;
barCount = 0;
maxClimbPoint = 400;
score = 0;
tenkoMoveX = 0;
tenkoFallFlag = true;
keysDown = [];
opFps = 60;
fr = opFps;
time = 1000;
time_count = 0;
old_timer = getTimer();
fps = ((fr + "/") + fr);
sndTr.volume = (volume * 0.04);
if (musicFlag == false){
gameBgm_sound = new gameBgm();
bgmTr = new SoundTransform();
bgmCh = new SoundChannel();
bgmTr.volume = (volume * 0.2);
bgmCh = gameBgm_sound.play(1, 1, bgmTr);
musicFlag = true;
};
if (bgmCh.hasEventListener(Event.SOUND_COMPLETE)){
} else {
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
};
slowCount = 0;
wallFlag = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
nextAddWallNo = 2;
wallAddPosition = [0, 0, 900, 1900, 2900, 3900, 4900, 5900, 6900, 7900, 8900, 9900, 10900, 11900, 12900];
nextRemoveWallNo = 1;
wallRemovePosition = [0, 1500, 2500, 3500, 4500, 5500, 6500, 7500, 8500, 9500, 10500, 11500, 12500, 13500, 14500];
objectInsFlag_array = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
objectAddPosition = [700, 710, 2550, 2660, 1400, 2900, 3400, 3750, 3750, 5200];
objectMovePoint = [1.8, 1.9, 1.8, 1.9, 0.8, 1.5, 3, 2.5, 1.5, 1.2];
backWalls_mc.addChild(wallIns_array[1]);
addObjectInit();
addStageInit();
stage.addEventListener(KeyboardEvent.KEY_DOWN, xKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, xKeyUp);
this.addEventListener(Event.ENTER_FRAME, xEnterMain);
}
public function removeAllOptionEvent():void{
option_mc.optionList_mc.volume_btn.removeEventListener(MouseEvent.CLICK, xClickOptionVolume);
option_mc.optionList_mc.sendHiscore_btn.removeEventListener(MouseEvent.CLICK, xClickOptionSendHiscore);
option_mc.optionList_mc.quality_btn.removeEventListener(MouseEvent.CLICK, xClickOptionQuality);
option_mc.optionList_mc.rename_btn.removeEventListener(MouseEvent.CLICK, xClickOptionRename);
option_mc.optionList_mc.optionClose_btn.removeEventListener(MouseEvent.CLICK, xClickOptionClose);
}
function frame2(){
stop();
rename_mc.visible = false;
titleFontInit();
clearMask_mc.visible = false;
clearMask2_mc.visible = false;
titleHiscore_txt.text = hiScore.toString();
option_mc.optionList_mc.volume_btn.upState = volumeUp_mc.volume_txt;
option_mc.optionList_mc.volume_btn.overState = volumeOver_mc.volume_txt;
option_mc.optionList_mc.volume_btn.downState = volumeUp_mc.volume_txt;
volumeTextInit();
option_mc.optionList_mc.quality_btn.upState = qualityUp_mc.quality_txt;
option_mc.optionList_mc.quality_btn.overState = qualityOver_mc.quality_txt;
option_mc.optionList_mc.quality_btn.downState = qualityUp_mc.quality_txt;
qualityTextInit();
option_mc.optionList_mc.sendHiscore_btn.upState = sendHiscoreUp_mc.str_txt;
option_mc.optionList_mc.sendHiscore_btn.overState = sendHiscoreOver_mc.str_txt;
option_mc.optionList_mc.sendHiscore_btn.downState = sendHiscoreUp_mc.str_txt;
sendHiscoreTextInit();
rename_mc.loadScoreNameList_mc.loadScoreName_txt.maxChars = 12;
rename_mc.loadScoreNameList_mc.loadScoreName_txt.restrict = "a-zA-Z0-9";
XML_RANKING = ("xml741871/ranking.xml?" + new Date().getTime());
ranking_array = [];
rankingLastScore = 0;
rankingPage = 0;
musicFlag = false;
hardKeysDown = [];
hardMode = false;
easing = 0.17;
vy = ((320 - ranking_mc.width) * easing);
rankingXmlLoader = new URLLoader();
rankingXmlLoader.addEventListener(Event.COMPLETE, xCompleteRanking);
req = new URLRequest(XML_RANKING);
req.requestHeaders = [new URLRequestHeader("DummyReferer", "http://3-me.net/")];
rankingXmlLoader.load(req);
ranking_mc.rankingList_mc.visible = false;
option_mc.optionList_mc.visible = false;
rename_mc.loadScoreNameList_mc.visible = false;
}
function frame5(){
stop();
sendScoreFlag = false;
gameOverClick_mc.visible = true;
resultScore_txt.embedFonts = true;
resultScore_txt.text = Math.floor((score * -1)).toString();
trueScore = Math.floor((score * -1));
if (trueScore < 2500){
gameOverBack_mc = gameOverIns_array[0];
addChildAt(gameOverBack_mc, (getChildIndex(gameOverBase_mc) + 1));
} else {
if (trueScore < 5000){
gameOverBack_mc = gameOverIns_array[1];
addChildAt(gameOverBack_mc, (getChildIndex(gameOverBase_mc) + 1));
} else {
if (trueScore < 10000){
gameOverBack_mc = gameOverIns_array[2];
addChildAt(gameOverBack_mc, (getChildIndex(gameOverBase_mc) + 1));
} else {
if (trueScore < 14000){
gameOverBack_mc = gameOverIns_array[3];
addChildAt(gameOverBack_mc, (getChildIndex(gameOverBase_mc) + 1));
} else {
if (trueScore < 18000){
gameOverBack_mc = gameOverIns_array[4];
addChildAt(gameOverBack_mc, (getChildIndex(gameOverBase_mc) + 1));
} else {
if (trueScore < 22000){
gameOverBack_mc = gameOverIns_array[5];
addChildAt(gameOverBack_mc, (getChildIndex(gameOverBase_mc) + 1));
} else {
if (trueScore < 25000){
gameOverBack_mc = gameOverIns_array[6];
addChildAt(gameOverBack_mc, (getChildIndex(gameOverBase_mc) + 1));
} else {
if (trueScore < 30000){
gameOverBack_mc = gameOverIns_array[7];
addChildAt(gameOverBack_mc, (getChildIndex(gameOverBase_mc) + 1));
} else {
if (trueScore < 40000){
gameOverBack_mc = gameOverIns_array[8];
addChildAt(gameOverBack_mc, (getChildIndex(gameOverBase_mc) + 1));
} else {
gameOverBack_mc = gameOverIns_array[9];
addChildAt(gameOverBack_mc, (getChildIndex(gameOverBase_mc) + 1));
};
};
};
};
};
};
};
};
};
if ((((((((Math.floor((score * -1)) > rankingLastScore)) && ((Math.floor((score * -1)) > hiScore)))) && ((sendHiscoreFlag == true)))) && ((slowCount < 15)))){
registHiscore();
hiScore = Math.floor((score * -1));
so.data.hiScore = hiScore;
} else {
if (Math.floor((score * -1)) > hiScore){
hiScore = Math.floor((score * -1));
so.data.hiScore = hiScore;
sendScoreFlag = true;
} else {
sendScoreFlag = true;
};
};
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
addEventListener(Event.ENTER_FRAME, xEnterFadeFromGame);
}
public function addObjectInit():void{
objectIns_array[0].y = -400;
backWalls4_mc.addChild(objectIns_array[0]);
objectIns_array[1].y = -400;
backWalls5_mc.addChild(objectIns_array[1]);
objectIns_array[2].y = -400;
backWalls4_mc.addChild(objectIns_array[2]);
objectIns_array[3].y = -400;
backWalls5_mc.addChild(objectIns_array[3]);
objectIns_array[4].y = -400;
backWalls4_mc.addChild(objectIns_array[4]);
objectIns_array[5].y = -400;
backWalls4_mc.addChild(objectIns_array[5]);
objectIns_array[6].y = -400;
backWalls4_mc.addChild(objectIns_array[6]);
objectIns_array[8].y = -400;
backWalls4_mc.addChild(objectIns_array[8]);
objectIns_array[7].y = -400;
backWalls4_mc.addChild(objectIns_array[7]);
objectIns_array[9].y = -400;
backWalls4_mc.addChild(objectIns_array[9]);
}
public function xClickOptionClose(_arg1:MouseEvent):void{
playSe(select02);
removeAllOptionEvent();
option_mc.optionList_mc.visible = false;
clearMask_mc.visible = false;
addEventListener(Event.ENTER_FRAME, xEnterOptionHeightShrink);
}
function frame4(){
stop();
gotoAndStop("game");
}
public function titleFontInit():void{
var _local1:*;
titleHiscore_txt.embedFonts = true;
_local1 = 0;
while (_local1 < 10) {
ranking_mc.rankingList_mc[(("rankingNo" + (_local1 + 1)) + "_txt")].embedFonts = true;
ranking_mc.rankingList_mc[(("rankingName" + (_local1 + 1)) + "_txt")].embedFonts = true;
ranking_mc.rankingList_mc[(("rankingScore" + (_local1 + 1)) + "_txt")].embedFonts = true;
_local1++;
};
volumeUp_mc.volume_txt.embedFonts = true;
volumeOver_mc.volume_txt.embedFonts = true;
qualityUp_mc.quality_txt.embedFonts = true;
qualityOver_mc.quality_txt.embedFonts = true;
sendHiscoreUp_mc.str_txt.embedFonts = true;
sendHiscoreOver_mc.str_txt.embedFonts = true;
rename_mc.loadScoreNameList_mc.loadScoreName_txt.embedFonts = true;
}
public function xEnterFadeToGameover(_arg1:Event):void{
fadeWall_mc.visible = true;
if (fadeWall_mc.alpha >= 1){
removeEventListener(Event.ENTER_FRAME, xEnterFadeToGameover);
gotoAndStop("gameOver");
} else {
fadeWall_mc.alpha = (fadeWall_mc.alpha + 0.1);
};
}
public function addAllTitleEvent():void{
titleStart_btn.addEventListener(MouseEvent.CLICK, xClickTitleStart);
titleRanking_btn.addEventListener(MouseEvent.CLICK, xClickRankingStart);
titleOption_btn.addEventListener(MouseEvent.CLICK, xClickOptionStart);
stage.addEventListener(KeyboardEvent.KEY_DOWN, xKeyHardDown);
stage.addEventListener(KeyboardEvent.KEY_UP, xKeyHardUp);
}
public function sendHiscoreTextInit():void{
if (sendHiscoreFlag == true){
sendHiscoreUp_mc.str_txt.text = "■ ハイスコア自動送信 : オン";
sendHiscoreOver_mc.str_txt.text = "■ ハイスコア自動送信 : オン";
} else {
sendHiscoreUp_mc.str_txt.text = "■ ハイスコア自動送信 : オフ";
sendHiscoreOver_mc.str_txt.text = "■ ハイスコア自動送信 : オフ";
};
}
public function xEnterOptionHeightShrink(_arg1):void{
vy = ((0 - option_mc.height) * easing);
option_mc.height = (option_mc.height + vy);
if (option_mc.height < 10){
option_mc.height = 5;
removeEventListener(Event.ENTER_FRAME, xEnterOptionHeightShrink);
addEventListener(Event.ENTER_FRAME, xEnterOptionWidthShrink);
};
}
public function playSe(_arg1){
seList[_arg1].play(0, 1, sndTr);
}
public function makeGameOverInstance():void{
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
_local1 = new gameOver1Mc();
_local2 = new gameOver2Mc();
_local3 = new gameOver3Mc();
_local4 = new gameOver4Mc();
_local5 = new gameOver5Mc();
_local6 = new gameOver6Mc();
_local7 = new gameOver7Mc();
_local8 = new gameOver8Mc();
_local9 = new gameOver9Mc();
_local10 = new gameOver10Mc();
gameOverIns_array.push(_local1);
gameOverIns_array.push(_local2);
gameOverIns_array.push(_local3);
gameOverIns_array.push(_local4);
gameOverIns_array.push(_local5);
gameOverIns_array.push(_local6);
gameOverIns_array.push(_local7);
gameOverIns_array.push(_local8);
gameOverIns_array.push(_local9);
gameOverIns_array.push(_local10);
}
public function xClickOptionQuality(_arg1:MouseEvent):void{
if (stage.quality == "LOW"){
stage.quality = "MEDIUM";
so.data.dispQuality = "MEDIUM";
} else {
if (stage.quality == "MEDIUM"){
stage.quality = "HIGH";
so.data.dispQuality = "HIGH";
} else {
if (stage.quality == "HIGH"){
stage.quality = "LOW";
so.data.dispQuality = "LOW";
};
};
};
playSe(select01);
qualityTextInit();
}
public function wallMove():void{
backWalls_mc.y = (backWalls_mc.y + 1);
if ((((wallFlag[nextAddWallNo] == 0)) && ((backWalls_mc.y > wallAddPosition[nextAddWallNo])))){
backWalls_mc.addChild(wallIns_array[nextAddWallNo]);
wallFlag[nextAddWallNo] = 1;
if (nextAddWallNo < 8){
nextAddWallNo++;
};
};
if ((((wallFlag[nextRemoveWallNo] == 1)) && ((backWalls_mc.y > wallRemovePosition[nextRemoveWallNo])))){
backWalls_mc.removeChild(wallIns_array[nextRemoveWallNo]);
wallFlag[nextRemoveWallNo] = 2;
if (nextRemoveWallNo < 7){
nextRemoveWallNo++;
};
};
if (backWalls_mc.y >= 8400){
backWalls_mc.y = 7400;
};
}
public function xClickTitleStart(_arg1:MouseEvent):void{
if (hardKeysDown[72] == true){
hardMode = true;
};
removeAllTitleEvent();
gotoAndStop("game");
}
public function loadFontInit():void{
loadPercent_txt.embedFonts = true;
loadScoreName_mc.loadScoreNameList_mc.loadScoreName_txt.embedFonts = true;
}
public function xEnterRenameWidthExtend(_arg1):void{
vy = ((220 - rename_mc.width) * easing);
rename_mc.width = (rename_mc.width + vy);
if (rename_mc.width > 200){
rename_mc.width = 200;
removeEventListener(Event.ENTER_FRAME, xEnterRenameWidthExtend);
addEventListener(Event.ENTER_FRAME, xEnterRenameHeightExtend);
};
}
public function volumeTextInit():void{
var _local1:*;
_local1 = "■ ボリューム : ";
if (volume == 0){
volumeUp_mc.volume_txt.text = (_local1 + "オフ");
volumeOver_mc.volume_txt.text = (_local1 + "オフ");
} else {
if (volume == 1){
volumeUp_mc.volume_txt.text = (_local1 + "★");
volumeOver_mc.volume_txt.text = (_local1 + "★");
} else {
if (volume == 2){
volumeUp_mc.volume_txt.text = (_local1 + "★★");
volumeOver_mc.volume_txt.text = (_local1 + "★★");
} else {
if (volume == 3){
volumeUp_mc.volume_txt.text = (_local1 + "★★★");
volumeOver_mc.volume_txt.text = (_local1 + "★★★");
} else {
if (volume == 4){
volumeUp_mc.volume_txt.text = (_local1 + "★★★★");
volumeOver_mc.volume_txt.text = (_local1 + "★★★★");
} else {
if (volume == 5){
volumeUp_mc.volume_txt.text = (_local1 + "★★★★★");
volumeOver_mc.volume_txt.text = (_local1 + "★★★★★");
};
};
};
};
};
};
}
public function xEnterRankingHeightExtend(_arg1):void{
vy = ((370 - ranking_mc.height) * easing);
ranking_mc.height = (ranking_mc.height + vy);
if (ranking_mc.height > 340){
ranking_mc.height = 340;
ranking_mc.rankingList_mc.visible = true;
removeEventListener(Event.ENTER_FRAME, xEnterRankingHeightExtend);
ranking_mc.rankingList_mc.rankingUp_btn.addEventListener(MouseEvent.CLICK, xClickRankingUp);
ranking_mc.rankingList_mc.rankingDown_btn.addEventListener(MouseEvent.CLICK, xClickRankingDown);
ranking_mc.rankingList_mc.rankingClose_btn.addEventListener(MouseEvent.CLICK, xClickRankingClose);
};
}
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[99] != null){
rankingLastScore = ranking_array[99].score;
} else {
rankingLastScore = 0;
};
rankingDisplayInit();
rankingXmlLoader.removeEventListener(Event.COMPLETE, xCompleteRanking);
rankingXmlLoader = null;
addAllTitleEvent();
}
public function xGameOverKeyDown(_arg1:KeyboardEvent):void{
if (sendScoreFlag == true){
if ((((_arg1.keyCode == Keyboard.SPACE)) || ((_arg1.keyCode == Keyboard.ENTER)))){
removeAllGameOverEvent();
gotoAndPlay("game");
} else {
if (_arg1.keyCode == Keyboard.SHIFT){
removeAllGameOverEvent();
bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
bgmCh.stop();
gotoAndPlay("title");
};
};
};
}
public function xEnterLoadScoreNameHeightExtend(_arg1):void{
vy = ((110 - loadScoreName_mc.height) * easing);
loadScoreName_mc.height = (loadScoreName_mc.height + vy);
if (loadScoreName_mc.height > 100){
loadScoreName_mc.height = 100;
loadScoreName_mc.loadScoreNameList_mc.visible = true;
removeEventListener(Event.ENTER_FRAME, xEnterLoadScoreNameHeightExtend);
loadScoreName_mc.loadScoreNameList_mc.loadScoreNameOk_btn.addEventListener(MouseEvent.CLICK, xClickLoadScoreNameOk);
loadScoreName_mc.loadScoreNameList_mc.loadScoreName_txt.setSelection(0, 0);
stage.focus = loadScoreName_mc.loadScoreNameList_mc.loadScoreName_txt;
};
}
public function removeAllTitleEvent():void{
titleStart_btn.removeEventListener(MouseEvent.CLICK, xClickTitleStart);
titleRanking_btn.removeEventListener(MouseEvent.CLICK, xClickRankingStart);
titleOption_btn.removeEventListener(MouseEvent.CLICK, xClickOptionStart);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, xKeyHardDown);
stage.removeEventListener(KeyboardEvent.KEY_UP, xKeyHardUp);
}
public function soInit():void{
if (so.size == 0){
so.data.userName = "";
so.data.sendHiscoreFlag = true;
so.data.hiScore = 0;
so.data.volume = 3;
} else {
if (so.data.userName != null){
userName = so.data.userName;
};
if (so.data.hiScore != null){
hiScore = so.data.hiScore;
};
if (so.data.sendHiscoreFlag != null){
sendHiscoreFlag = so.data.sendHiscoreFlag;
};
if (so.data.dispQuality != null){
stage.quality = so.data.dispQuality;
} else {
stage.quality = "HIGH";
so.data.dispQlality = "HIGH";
};
if (so.data.volume != null){
volume = so.data.volume;
};
};
}
public function makeWallInstance():void{
var _local1:*;
var _local2:Class;
_local1 = 1;
while (_local1 < 9) {
_local2 = (getDefinitionByName((("backWall" + _local1) + "Mc")) as Class);
wallIns_array[_local1] = new (_local2);
wallIns_array[_local1].x = 0;
wallIns_array[_local1].y = (-1000 * (_local1 - 1));
_local1++;
};
}
public function xEnterOptionHeightExtend(_arg1):void{
vy = ((200 - option_mc.height) * easing);
option_mc.height = (option_mc.height + vy);
if (option_mc.height > 180){
option_mc.height = 180;
option_mc.optionList_mc.visible = true;
removeEventListener(Event.ENTER_FRAME, xEnterOptionHeightExtend);
addAllOptionEvent();
};
}
public function addStageInit():void{
var _local1:*;
_local1 = 0;
while (_local1 < 15) {
addBar(0, addBarTargetY);
addBarTargetY = (addBarTargetY - 30);
_local1++;
};
}
public function addAllOptionEvent():void{
option_mc.optionList_mc.volume_btn.addEventListener(MouseEvent.CLICK, xClickOptionVolume);
option_mc.optionList_mc.sendHiscore_btn.addEventListener(MouseEvent.CLICK, xClickOptionSendHiscore);
option_mc.optionList_mc.quality_btn.addEventListener(MouseEvent.CLICK, xClickOptionQuality);
option_mc.optionList_mc.rename_btn.addEventListener(MouseEvent.CLICK, xClickOptionRename);
option_mc.optionList_mc.optionClose_btn.addEventListener(MouseEvent.CLICK, xClickOptionClose);
}
public function xClickRenameOk(_arg1:MouseEvent):void{
playSe(select01);
so.data.userName = rename_mc.loadScoreNameList_mc.loadScoreName_txt.text;
userName = rename_mc.loadScoreNameList_mc.loadScoreName_txt.text;
rename_mc.loadScoreNameList_mc.loadScoreNameOk_btn.removeEventListener(MouseEvent.CLICK, xClickRenameOk);
addAllOptionEvent();
rename_mc.loadScoreNameList_mc.visible = false;
addEventListener(Event.ENTER_FRAME, xEnterRenameHeightShrink);
}
public function xEnterRenameHeightShrink(_arg1):void{
vy = ((0 - rename_mc.height) * easing);
rename_mc.height = (rename_mc.height + vy);
if (rename_mc.height < 10){
rename_mc.height = 5;
removeEventListener(Event.ENTER_FRAME, xEnterRenameHeightShrink);
addEventListener(Event.ENTER_FRAME, xEnterRenameWidthShrink);
};
}
public function registHiscore():void{
var url:URLRequest;
var variables:URLVariables;
var loader:URLLoader;
url = new URLRequest(PHP_RANKING);
variables = new URLVariables();
variables.name = userName;
variables.score = Math.floor((score * -1));
url.data = variables.toString();
url.method = URLRequestMethod.POST;
loader = new URLLoader();
try {
loader.load(url);
} catch(e:Error) {
};
url = null;
loader = null;
sendScoreFlag = true;
}
public function xClickRankingStart(_arg1:MouseEvent):void{
playSe(select01);
removeAllTitleEvent();
ranking_mc.alpha = 1;
ranking_mc.visible = true;
addEventListener(Event.ENTER_FRAME, xEnterRankingWidthExtend);
}
public function qualityTextInit():void{
var _local1:*;
_local1 = "■ 画質 : ";
if (stage.quality == "LOW"){
qualityUp_mc.quality_txt.text = (_local1 + "低");
qualityOver_mc.quality_txt.text = (_local1 + "低");
} else {
if (stage.quality == "MEDIUM"){
qualityUp_mc.quality_txt.text = (_local1 + "中");
qualityOver_mc.quality_txt.text = (_local1 + "中");
} else {
if (stage.quality == "HIGH"){
qualityUp_mc.quality_txt.text = (_local1 + "高");
qualityOver_mc.quality_txt.text = (_local1 + "高");
};
};
};
}
public function addBarSetting():void{
if (barCount < 20){
if (addBarTargetY > -1000){
addBar(0, addBarTargetY);
addBarTargetY = (addBarTargetY - 40);
} else {
if (addBarTargetY > -3700){
addBar(1, addBarTargetY);
addBarTargetY = (addBarTargetY - 48);
} else {
if (addBarTargetY > -6000){
addBar(2, addBarTargetY);
addBarTargetY = (addBarTargetY - 60);
} else {
if (addBarTargetY > -7800){
addBar(2, addBarTargetY);
addBarTargetY = (addBarTargetY - 80);
} else {
if (addBarTargetY > -10000){
addBar(3, addBarTargetY);
addBarTargetY = (addBarTargetY - 90);
} else {
if (addBarTargetY > -11700){
addBar(3, addBarTargetY);
addBarTargetY = (addBarTargetY - 100);
} else {
if (addBarTargetY > -14000){
addBar(4, addBarTargetY);
addBarTargetY = (addBarTargetY - 75);
} else {
if (addBarTargetY > -16000){
addBar(4, addBarTargetY);
addBarTargetY = (addBarTargetY - 80);
} else {
if (addBarTargetY > -16100){
addBar(4, addBarTargetY);
addBarTargetY = (addBarTargetY - 80);
} else {
if (addBarTargetY > -20000){
addBar(5, addBarTargetY);
addBarTargetY = (addBarTargetY - 85);
} else {
if (addBarTargetY > -22000){
addBar(5, addBarTargetY);
addBarTargetY = (addBarTargetY - 90);
} else {
if (addBarTargetY > -24000){
addBar(6, addBarTargetY);
addBarTargetY = (addBarTargetY - 75);
} else {
if (addBarTargetY > -27000){
addBar(6, addBarTargetY);
addBarTargetY = (addBarTargetY - 80);
} else {
addBar(7, addBarTargetY);
addBarTargetY = (addBarTargetY - 80);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function xEnterLoadScoreNameWidthShrink(_arg1):void{
vy = ((0 - loadScoreName_mc.width) * easing);
loadScoreName_mc.width = (loadScoreName_mc.width + vy);
if (loadScoreName_mc.width < 10){
loadScoreName_mc.width = 5;
loadScoreName_mc.visible = false;
removeEventListener(Event.ENTER_FRAME, xEnterLoadScoreNameWidthShrink);
gotoAndStop("title");
};
}
public function xEnterOptionWidthShrink(_arg1):void{
vy = ((0 - option_mc.width) * easing);
option_mc.width = (option_mc.width + vy);
if (option_mc.width < 10){
removeEventListener(Event.ENTER_FRAME, xEnterOptionWidthShrink);
option_mc.width = 5;
option_mc.visible = false;
addAllTitleEvent();
};
}
public function moveObject():void{
var _local1:*;
_local1 = 0;
while (_local1 < 10) {
if ((((((backWalls_mc.y > objectAddPosition[_local1])) && (!((objectInsFlag_array[_local1] == 2))))) && ((objectIns_array[_local1].y < objectIns_array[_local1].height)))){
objectIns_array[_local1].y = (objectIns_array[_local1].y + objectMovePoint[_local1]);
} else {
if (((!((objectInsFlag_array[_local1] == 2))) && ((objectIns_array[_local1].y >= objectIns_array[_local1].height)))){
if ((((_local1 == 1)) || ((_local1 == 3)))){
backWalls5_mc.removeChild(objectIns_array[_local1]);
} else {
backWalls4_mc.removeChild(objectIns_array[_local1]);
};
objectInsFlag_array[_local1] = 2;
};
};
_local1++;
};
}
public function xKeyHardUp(_arg1:KeyboardEvent):void{
hardKeysDown[_arg1.keyCode] = false;
}
public function makeObjectInstance():void{
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
_local1 = new cloud1Mc();
_local2 = new cloud2Mc();
_local3 = new cloud3Mc();
_local4 = new cloud4Mc();
_local5 = new moonMc();
_local6 = new uraYamaMc();
_local7 = new uraJinjaMc();
_local8 = new rockMc();
_local9 = new bridgeMc();
_local10 = new sunMc();
objectIns_array.push(_local1);
objectIns_array.push(_local2);
objectIns_array.push(_local3);
objectIns_array.push(_local4);
objectIns_array.push(_local5);
objectIns_array.push(_local6);
objectIns_array.push(_local7);
objectIns_array.push(_local8);
objectIns_array.push(_local9);
objectIns_array.push(_local10);
}
public function bounds():void{
if (tenkoMoveX >= 0){
tenko_mc.tenkoMotion_mc.gotoAndStop("rightSit");
} else {
tenko_mc.tenkoMotion_mc.gotoAndStop("leftSit");
};
playSe(jump01);
tenkoFallFlag = false;
moveTarget = (tenko_mc.y - 120);
}
public function xEnterFadeFromGame(_arg1:Event):void{
if (fadeWall_mc.alpha <= 0){
removeEventListener(Event.ENTER_FRAME, xEnterFadeFromGame);
fadeWall_mc.alpha = 0;
fadeWall_mc.visible = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, xGameOverKeyDown);
gameOverClick_mc.addEventListener(MouseEvent.CLICK, xClickGameOverMask);
} else {
fadeWall_mc.alpha = (fadeWall_mc.alpha - 0.1);
};
}
public function xEnterRankingWidthShrink(_arg1):void{
vy = ((0 - ranking_mc.width) * easing);
ranking_mc.width = (ranking_mc.width + vy);
if (ranking_mc.width < 10){
ranking_mc.width = 5;
ranking_mc.visible = false;
removeEventListener(Event.ENTER_FRAME, xEnterRankingWidthShrink);
addAllTitleEvent();
};
}
public function wallMove2():void{
if (backWalls2_mc.y > 0){
backWalls2_mc.y = (backWalls2_mc.y + 1.5);
};
}
public function xClickOptionStart(_arg1:MouseEvent):void{
playSe(select01);
removeAllTitleEvent();
clearMask_mc.visible = true;
option_mc.alpha = 1;
option_mc.visible = true;
addEventListener(Event.ENTER_FRAME, xEnterOptionWidthExtend);
}
public function gameBgmComplete(_arg1:Event):void{
bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
bgmCh = null;
bgmCh = gameBgm_sound.play(12620, 1, bgmTr);
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
}
public function xEnterRenameHeightExtend(_arg1):void{
vy = ((120 - rename_mc.height) * easing);
rename_mc.height = (rename_mc.height + vy);
if (rename_mc.height > 100){
rename_mc.height = 100;
rename_mc.loadScoreNameList_mc.visible = true;
rename_mc.loadScoreNameList_mc.loadScoreName_txt.setSelection(rename_mc.loadScoreNameList_mc.loadScoreName_txt.length, rename_mc.loadScoreNameList_mc.loadScoreName_txt.length);
stage.focus = rename_mc.loadScoreNameList_mc.loadScoreName_txt;
removeEventListener(Event.ENTER_FRAME, xEnterRenameHeightExtend);
rename_mc.loadScoreNameList_mc.loadScoreNameOk_btn.addEventListener(MouseEvent.CLICK, xClickRenameOk);
};
}
public function wallMove3():void{
if (backWalls3_mc.y > 0){
backWalls3_mc.y = (backWalls3_mc.y + 3);
};
}
public function rankingDisplayInit():void{
var _local1:*;
var _local2:*;
_local1 = 0;
while (_local1 < 10) {
_local2 = (_local1 + rankingPage);
if (_local2 == 0){
ranking_mc.rankingList_mc[(("rankingNo" + (_local1 + 1)) + "_txt")].text = "有頂天:";
} else {
ranking_mc.rankingList_mc[(("rankingNo" + (_local1 + 1)) + "_txt")].text = ((_local2 + 1) + "位:");
};
if (ranking_array[_local2] != null){
ranking_mc.rankingList_mc[(("rankingName" + (_local1 + 1)) + "_txt")].text = ranking_array[_local2].name;
ranking_mc.rankingList_mc[(("rankingScore" + (_local1 + 1)) + "_txt")].text = (ranking_array[_local2].score + "km");
} else {
ranking_mc.rankingList_mc[(("rankingName" + (_local1 + 1)) + "_txt")].text = "----------";
ranking_mc.rankingList_mc[(("rankingScore" + (_local1 + 1)) + "_txt")].text = "0km";
};
_local1++;
};
if (rankingPage == 0){
ranking_mc.rankingList_mc.rankingUp_btn.visible = false;
} else {
if (rankingPage == 90){
ranking_mc.rankingList_mc.rankingDown_btn.visible = false;
} else {
ranking_mc.rankingList_mc.rankingUp_btn.visible = true;
ranking_mc.rankingList_mc.rankingDown_btn.visible = true;
};
};
}
public function removeAllGameOverEvent():void{
stage.removeEventListener(KeyboardEvent.KEY_DOWN, xGameOverKeyDown);
gameOverClick_mc.removeEventListener(MouseEvent.CLICK, xClickGameOverMask);
gameOverClick_mc.visible = false;
removeChild(gameOverBack_mc);
}
public function makeBarInstance():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;
_local1 = 0;
while (_local1 < 20) {
_local2 = new bar0Mc();
bar0Ins_array.push(_local2);
_local1++;
};
_local1 = 0;
while (_local1 < 20) {
_local3 = new bar1Mc();
bar1Ins_array.push(_local3);
_local1++;
};
_local1 = 0;
while (_local1 < 20) {
_local4 = new bar2Mc();
bar2Ins_array.push(_local4);
_local1++;
};
_local1 = 0;
while (_local1 < 20) {
_local5 = new bar3aMc();
bar3aIns_array.push(_local5);
_local1++;
};
_local1 = 0;
while (_local1 < 20) {
_local6 = new bar3bMc();
bar3bIns_array.push(_local6);
_local1++;
};
_local1 = 0;
while (_local1 < 20) {
_local7 = new bar3cMc();
bar3cIns_array.push(_local7);
_local1++;
};
_local1 = 0;
while (_local1 < 20) {
_local8 = new bar4Mc();
bar4Ins_array.push(_local8);
_local1++;
};
_local1 = 0;
while (_local1 < 20) {
_local9 = new bar5Mc();
bar5Ins_array.push(_local9);
_local1++;
};
_local1 = 0;
while (_local1 < 20) {
_local10 = new bar6Mc();
bar6Ins_array.push(_local10);
_local1++;
};
_local1 = 0;
while (_local1 < 20) {
_local11 = new bar7Mc();
bar7Ins_array.push(_local11);
_local1++;
};
_local1 = 0;
while (_local1 < 20) {
_local12 = new bar8Mc();
bar8Ins_array.push(_local12);
_local1++;
};
}
public function xEnterMain(_arg1):void{
var _local2:*;
tenko_mc.x = (tenko_mc.x + tenkoMoveX);
if (keysDown[Keyboard.LEFT]){
if (tenkoMoveX > 0){
tenkoMoveX = (tenkoMoveX - 1);
} else {
if (tenkoMoveX > -4){
tenkoMoveX = (tenkoMoveX - 0.5);
};
};
} else {
if (keysDown[Keyboard.RIGHT]){
if (tenkoMoveX < 0){
tenkoMoveX = (tenkoMoveX + 1);
} else {
if (tenkoMoveX < 4){
tenkoMoveX = (tenkoMoveX + 0.5);
};
};
};
};
if ((((((tenkoMoveX >= 0)) && ((tenkoFallFlag == true)))) && (((moveTarget - tenko_mc.y) > -7)))){
tenko_mc.tenkoMotion_mc.gotoAndStop("rightFloat1");
} else {
if ((((((tenkoMoveX >= 0)) && ((tenkoFallFlag == true)))) && (((moveTarget - tenko_mc.y) > -15)))){
tenko_mc.tenkoMotion_mc.gotoAndStop("rightFloat2");
} else {
if ((((((tenkoMoveX < 0)) && ((tenkoFallFlag == true)))) && (((moveTarget - tenko_mc.y) > -7)))){
tenko_mc.tenkoMotion_mc.gotoAndStop("leftFloat1");
} else {
if ((((((tenkoMoveX < 0)) && ((tenkoFallFlag == true)))) && (((moveTarget - tenko_mc.y) > -15)))){
tenko_mc.tenkoMotion_mc.gotoAndStop("leftFloat2");
} else {
if ((((tenkoMoveX >= 0)) && ((tenkoFallFlag == false)))){
tenko_mc.tenkoMotion_mc.gotoAndStop("rightUp");
} else {
if ((((tenkoMoveX >= 0)) && ((tenkoFallFlag == true)))){
tenko_mc.tenkoMotion_mc.gotoAndStop("rightDown");
} else {
if ((((tenkoMoveX < 0)) && ((tenkoFallFlag == false)))){
tenko_mc.tenkoMotion_mc.gotoAndStop("leftUp");
} else {
if ((((tenkoMoveX < 0)) && ((tenkoFallFlag == true)))){
tenko_mc.tenkoMotion_mc.gotoAndStop("leftDown");
};
};
};
};
};
};
};
};
if (tenko_mc.y < 150){
tenko_mc.y = (tenko_mc.y + 5);
moveTarget = (moveTarget + 5);
bars_mc.y = (bars_mc.y + 5);
maxClimbPoint = (maxClimbPoint + 5);
wallMove();
wallMove2();
wallMove3();
wallMoveHaku();
moveObject();
};
if (tenko_mc.x >= 300){
tenko_mc.x = 0;
} else {
if (tenko_mc.x <= 0){
tenko_mc.x = 300;
};
};
if ((((tenko_mc.hitTestObject(bars_mc.yuka_mc) == true)) && ((tenkoFallFlag == true)))){
bounds();
};
time_count = (time_count + 1);
if ((getTimer() - old_timer) >= time){
_local2 = Math.floor(((time_count * 1000) / (getTimer() - old_timer)));
fps = ((_local2 + "/") + fr);
old_timer = getTimer();
time_count = 0;
fps_txt.text = fps;
if (_local2 < (opFps - 20)){
slowCount++;
};
};
if (score < addBarTargetY){
addBarSetting();
};
if ((((tenko_mc.y > 410)) && ((gameOverFlag == false)))){
gameOverFlag = true;
gameOver();
};
}
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 xClickRankingUp(_arg1:MouseEvent):void{
playSe(select01);
rankingPage = (rankingPage - 10);
rankingDisplayInit();
}
public function xEnterLoadScoreNameWidthExtend(_arg1):void{
vy = ((210 - loadScoreName_mc.width) * easing);
loadScoreName_mc.width = (loadScoreName_mc.width + vy);
loadTenko_mc.alpha = (loadTenko_mc.alpha - 0.15);
if (loadScoreName_mc.width > 200){
loadScoreName_mc.width = 200;
removeEventListener(Event.ENTER_FRAME, xEnterLoadScoreNameWidthExtend);
addEventListener(Event.ENTER_FRAME, xEnterLoadScoreNameHeightExtend);
};
}
public function xEnterOptionWidthExtend(_arg1):void{
vy = ((300 - option_mc.width) * easing);
option_mc.width = (option_mc.width + vy);
if (option_mc.width > 280){
option_mc.width = 280;
removeEventListener(Event.ENTER_FRAME, xEnterOptionWidthExtend);
addEventListener(Event.ENTER_FRAME, xEnterOptionHeightExtend);
};
}
public function xClickRankingClose(_arg1):void{
playSe(select02);
ranking_mc.rankingList_mc.visible = false;
ranking_mc.rankingList_mc.rankingUp_btn.removeEventListener(MouseEvent.CLICK, xClickRankingUp);
ranking_mc.rankingList_mc.rankingDown_btn.removeEventListener(MouseEvent.CLICK, xClickRankingDown);
ranking_mc.rankingList_mc.rankingClose_btn.removeEventListener(MouseEvent.CLICK, xClickRankingClose);
addEventListener(Event.ENTER_FRAME, xEnterRankingHeightShrink);
}
public function xEnterWaitReset(_arg1:Event):void{
if (barCount == 0){
removeEventListener(Event.ENTER_FRAME, xEnterWaitReset);
addEventListener(Event.ENTER_FRAME, xEnterFadeToGameover);
};
}
public function addTenshi():void{
if (Math.floor((Math.random() * 0x0100)) == 0){
tenko_mc = new tenkoRedMc();
} else {
tenko_mc = new tenkoMc();
};
tenko_mc.width = 49.4;
tenko_mc.height = 66.3;
tenko_mc.x = 138.2;
tenko_mc.y = 360.9;
addChildAt(tenko_mc, (getChildIndex(tenkoPosition_mc) + 1));
}
public function wallMoveHaku():void{
if (hakurei_mc.y > 0){
hakurei_mc.y = (hakurei_mc.y + 2.7);
};
}
public function addBar(_arg1, _arg2):void{
var _local3:MovieClip;
var _local4:Point;
var _local5:Point;
var _local6:*;
if (_arg1 == 0){
if (bar0Ins_array.length == 0){
_local3 = new bar0Mc();
} else {
_local3 = bar0Ins_array.shift();
};
} else {
if (_arg1 == 1){
if (bar1Ins_array.length == 0){
_local3 = new bar1Mc();
} else {
_local3 = bar1Ins_array.shift();
};
} else {
if (_arg1 == 2){
if (bar2Ins_array.length == 0){
_local3 = new bar2Mc();
} else {
_local3 = bar2Ins_array.shift();
};
} else {
if (_arg1 == 3){
_local6 = Math.floor((Math.random() * 5));
if (ufoCount == 3){
_local6 = 2;
};
if (hardMode){
ufoCount = 0;
};
switch (_local6){
case 0:
if (bar3aIns_array.length == 0){
_local3 = new bar3aMc();
} else {
_local3 = bar3aIns_array.shift();
};
ufoCount++;
break;
case 1:
if (bar3bIns_array.length == 0){
_local3 = new bar3bMc();
} else {
_local3 = bar3bIns_array.shift();
};
ufoCount++;
break;
default:
if (bar3cIns_array.length == 0){
_local3 = new bar3cMc();
} else {
_local3 = bar3cIns_array.shift();
};
ufoCount = 0;
};
} else {
if (_arg1 == 4){
if (bar4Ins_array.length == 0){
_local3 = new bar4Mc();
} else {
_local3 = bar4Ins_array.shift();
};
} else {
if (_arg1 == 5){
if (bar5Ins_array.length == 0){
_local3 = new bar5Mc();
} else {
_local3 = bar5Ins_array.shift();
};
} else {
if (_arg1 == 6){
if (bar6Ins_array.length == 0){
_local3 = new bar6Mc();
} else {
_local3 = bar6Ins_array.shift();
};
} else {
if (_arg1 == 7){
switch (Math.floor((Math.random() * 6))){
case 0:
if (bar8Ins_array.length == 0){
_local3 = new bar8Mc();
} else {
_local3 = bar8Ins_array.shift();
};
break;
default:
if (bar7Ins_array.length == 0){
_local3 = new bar7Mc();
} else {
_local3 = bar7Ins_array.shift();
};
};
};
};
};
};
};
};
};
};
_local4 = new Point((Math.floor((Math.random() * 236)) + 32), _arg2);
_local5 = bars_mc.globalToLocal(_local4);
_local3.x = _local5.x;
_local3.y = _arg2;
_local3.visible = true;
_local3.gotoAndStop("normal");
bars_mc.addChild(_local3);
barCount++;
}
public function xClickOptionSendHiscore(_arg1:MouseEvent):void{
playSe(select01);
if (sendHiscoreFlag == true){
sendHiscoreFlag = false;
} else {
sendHiscoreFlag = true;
};
so.data.sendHiscoreFlag = sendHiscoreFlag;
sendHiscoreTextInit();
}
public function xKeyUp(_arg1:KeyboardEvent):void{
keysDown[_arg1.keyCode] = false;
}
public function xEnterRankingWidthExtend(_arg1):void{
vy = ((320 - ranking_mc.width) * easing);
ranking_mc.width = (ranking_mc.width + vy);
if (ranking_mc.width > 300){
ranking_mc.width = 300;
removeEventListener(Event.ENTER_FRAME, xEnterRankingWidthExtend);
addEventListener(Event.ENTER_FRAME, xEnterRankingHeightExtend);
};
}
public function gameOver():void{
playSe(fall01);
removeChild(tenko_mc);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, xKeyDown);
stage.removeEventListener(KeyboardEvent.KEY_UP, xKeyUp);
this.removeEventListener(Event.ENTER_FRAME, xEnterMain);
bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
addEventListener(Event.ENTER_FRAME, xEnterWaitReset);
}
public function xClickRankingDown(_arg1:MouseEvent):void{
playSe(select01);
rankingPage = (rankingPage + 10);
rankingDisplayInit();
}
public function xEnterRenameWidthShrink(_arg1):void{
vy = ((0 - rename_mc.width) * easing);
rename_mc.width = (rename_mc.width + vy);
if (rename_mc.width < 10){
removeEventListener(Event.ENTER_FRAME, xEnterRenameWidthShrink);
rename_mc.width = 5;
rename_mc.visible = false;
clearMask2_mc.visible = false;
};
}
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);
if (so.data.userName == ""){
loadScoreName_mc.loadScoreNameList_mc.loadScoreName_txt.maxChars = 12;
loadScoreName_mc.loadScoreNameList_mc.loadScoreName_txt.restrict = "a-zA-Z0-9";
loadScoreName_mc.visible = true;
addEventListener(Event.ENTER_FRAME, xEnterLoadScoreNameWidthExtend);
} else {
gotoAndStop("title");
};
};
}
public function xClickOptionVolume(_arg1:MouseEvent):void{
volume++;
if (volume >= 6){
volume = 0;
};
so.data.volume = volume;
sndTr.volume = (volume * 0.04);
playSe(jump01);
volumeTextInit();
}
}
}//package tenshi0_fla
Section 5
//optionListMc_13 (tenshi0_fla.optionListMc_13)
package tenshi0_fla {
import flash.display.*;
public dynamic class optionListMc_13 extends MovieClip {
public var quality_btn:SimpleButton;
public var sendHiscore_btn:SimpleButton;
public var optionClose_btn:SimpleButton;
public var volume_btn:SimpleButton;
public var rename_btn:SimpleButton;
}
}//package tenshi0_fla
Section 6
//optionMc_12 (tenshi0_fla.optionMc_12)
package tenshi0_fla {
import flash.display.*;
public dynamic class optionMc_12 extends MovieClip {
public var optionList_mc:MovieClip;
}
}//package tenshi0_fla
Section 7
//qualityOver_28 (tenshi0_fla.qualityOver_28)
package tenshi0_fla {
import flash.display.*;
import flash.text.*;
public dynamic class qualityOver_28 extends MovieClip {
public var quality_txt:TextField;
}
}//package tenshi0_fla
Section 8
//qualityUp_29 (tenshi0_fla.qualityUp_29)
package tenshi0_fla {
import flash.display.*;
import flash.text.*;
public dynamic class qualityUp_29 extends MovieClip {
public var quality_txt:TextField;
}
}//package tenshi0_fla
Section 9
//rankingListMc_20 (tenshi0_fla.rankingListMc_20)
package tenshi0_fla {
import flash.display.*;
import flash.text.*;
public dynamic class rankingListMc_20 extends MovieClip {
public var rankingScore7_txt:TextField;
public var rankingName3_txt:TextField;
public var rankingName5_txt:TextField;
public var rankingName9_txt:TextField;
public var rankingNo1_txt:TextField;
public var rankingNo3_txt:TextField;
public var rankingName7_txt:TextField;
public var rankingName1_txt:TextField;
public var rankingNo9_txt:TextField;
public var rankingNo5_txt:TextField;
public var rankingNo7_txt:TextField;
public var rankingScore10_txt:TextField;
public var rankingScore8_txt:TextField;
public var rankingScore4_txt:TextField;
public var rankingName10_txt:TextField;
public var rankingScore2_txt:TextField;
public var rankingScore6_txt:TextField;
public var rankingUp_btn:SimpleButton;
public var rankingName6_txt:TextField;
public var rankingNo10_txt:TextField;
public var rankingName8_txt:TextField;
public var rankingName2_txt:TextField;
public var rankingNo2_txt:TextField;
public var rankingDown_btn:SimpleButton;
public var rankingNo6_txt:TextField;
public var rankingName4_txt:TextField;
public var rankingNo4_txt:TextField;
public var rankingNo8_txt:TextField;
public var rankingScore1_txt:TextField;
public var rankingScore3_txt:TextField;
public var rankingScore9_txt:TextField;
public var rankingScore5_txt:TextField;
public var rankingClose_btn:SimpleButton;
}
}//package tenshi0_fla
Section 10
//score_mc_39 (tenshi0_fla.score_mc_39)
package tenshi0_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class score_mc_39 extends MovieClip {
public var score_txt:TextField;
public var pGlo:Point;
public var pLoc:Point;
public var rootObj:MovieClip;
public function score_mc_39(){
addFrameScript(0, frame1);
}
public function xEnterThis(_arg1:Event):void{
if (rootObj.scoreAlphaFlag == true){
if (this.alpha > 0.2){
this.alpha = (this.alpha - 0.1);
};
} else {
if (this.alpha < 1){
this.alpha = (this.alpha + 0.1);
};
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterThis);
};
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
}
}//package tenshi0_fla
Section 11
//sendHiscoreOver_26 (tenshi0_fla.sendHiscoreOver_26)
package tenshi0_fla {
import flash.display.*;
import flash.text.*;
public dynamic class sendHiscoreOver_26 extends MovieClip {
public var str_txt:TextField;
}
}//package tenshi0_fla
Section 12
//sendHiscoreUp_25 (tenshi0_fla.sendHiscoreUp_25)
package tenshi0_fla {
import flash.display.*;
import flash.text.*;
public dynamic class sendHiscoreUp_25 extends MovieClip {
public var str_txt:TextField;
}
}//package tenshi0_fla
Section 13
//sukimaStep_81 (tenshi0_fla.sukimaStep_81)
package tenshi0_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class sukimaStep_81 extends MovieClip {
public var parentObj:MovieClip;
public function sukimaStep_81(){
addFrameScript(0, frame1, 50, frame51, 80, frame81);
}
function frame81(){
parentObj.judgeFlag = true;
}
function frame1(){
parentObj = (this.parent as MovieClip);
parentObj.judgeFlag = true;
}
function frame51(){
parentObj.judgeFlag = false;
}
}
}//package tenshi0_fla
Section 14
//tenkoMotion_83 (tenshi0_fla.tenkoMotion_83)
package tenshi0_fla {
import flash.display.*;
public dynamic class tenkoMotion_83 extends MovieClip {
public function tenkoMotion_83(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame10(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package tenshi0_fla
Section 15
//tenkoMotionRed_85 (tenshi0_fla.tenkoMotionRed_85)
package tenshi0_fla {
import flash.display.*;
public dynamic class tenkoMotionRed_85 extends MovieClip {
public function tenkoMotionRed_85(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame10(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package tenshi0_fla
Section 16
//volumeOver_24 (tenshi0_fla.volumeOver_24)
package tenshi0_fla {
import flash.display.*;
import flash.text.*;
public dynamic class volumeOver_24 extends MovieClip {
public var volume_txt:TextField;
}
}//package tenshi0_fla
Section 17
//volumeUp_23 (tenshi0_fla.volumeUp_23)
package tenshi0_fla {
import flash.display.*;
import flash.text.*;
public dynamic class volumeUp_23 extends MovieClip {
public var volume_txt:TextField;
}
}//package tenshi0_fla
Section 18
//backWall1Mc (backWall1Mc)
package {
import flash.display.*;
public dynamic class backWall1Mc extends MovieClip {
}
}//package
Section 19
//backWall2Mc (backWall2Mc)
package {
import flash.display.*;
public dynamic class backWall2Mc extends MovieClip {
}
}//package
Section 20
//backWall3Mc (backWall3Mc)
package {
import flash.display.*;
public dynamic class backWall3Mc extends MovieClip {
}
}//package
Section 21
//backWall4Mc (backWall4Mc)
package {
import flash.display.*;
public dynamic class backWall4Mc extends MovieClip {
}
}//package
Section 22
//backWall5Mc (backWall5Mc)
package {
import flash.display.*;
public dynamic class backWall5Mc extends MovieClip {
}
}//package
Section 23
//backWall6Mc (backWall6Mc)
package {
import flash.display.*;
public dynamic class backWall6Mc extends MovieClip {
}
}//package
Section 24
//backWall7Mc (backWall7Mc)
package {
import flash.display.*;
public dynamic class backWall7Mc extends MovieClip {
}
}//package
Section 25
//backWall8Mc (backWall8Mc)
package {
import flash.display.*;
public dynamic class backWall8Mc extends MovieClip {
}
}//package
Section 26
//backWalls2 (backWalls2)
package {
import flash.display.*;
public dynamic class backWalls2 extends MovieClip {
}
}//package
Section 27
//backWalls5 (backWalls5)
package {
import flash.display.*;
public dynamic class backWalls5 extends MovieClip {
}
}//package
Section 28
//bar0Mc (bar0Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar0Mc extends MovieClip {
public var pGlo:Point;
public var pLoc:Point;
public var rootObj:MovieClip;
public function bar0Mc(){
addFrameScript(0, frame1, 1, frame2);
}
public function xEnterThis(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:Point;
var _local7:Point;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_local2 = (rootObj.tenko_mc.x - 5);
_local3 = (rootObj.tenko_mc.x + 5);
_local4 = (rootObj.tenko_mc.y + 14);
_local5 = (rootObj.tenko_mc.y + 20);
_local6 = new Point(this.x, this.y);
_local7 = rootObj.bars_mc.localToGlobal(_local6);
_local8 = (_local7.x - 32);
_local9 = (_local7.x + 32);
_local10 = (_local7.y - 3);
_local11 = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
rootObj.bounds();
};
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((360 < _local11)))) && ((400 > _local10)))){
rootObj.scoreAlphaFlag = true;
} else {
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((400 < _local11)))) && ((420 > _local10)))){
rootObj.scoreAlphaFlag = false;
};
};
_local7 = rootObj.bars_mc.localToGlobal(_local6);
if (_local7.y > 420){
insRecycle();
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycle();
};
};
}
function frame1(){
stop();
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function insRecycle():void{
if (rootObj != null){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterThis);
rootObj.bar0Ins_array.push(this);
rootObj.barCount--;
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("reset");
};
}
}
}//package
Section 29
//bar1Mc (bar1Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar1Mc extends MovieClip {
public var pGlo:Point;
public var pLoc:Point;
public var rootObj:MovieClip;
public function bar1Mc(){
addFrameScript(0, frame1, 1, frame2);
}
public function xEnterThis(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:Point;
var _local7:Point;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_local2 = (rootObj.tenko_mc.x - 5);
_local3 = (rootObj.tenko_mc.x + 5);
_local4 = (rootObj.tenko_mc.y + 14);
_local5 = (rootObj.tenko_mc.y + 20);
_local6 = new Point(this.x, this.y);
_local7 = rootObj.bars_mc.localToGlobal(_local6);
_local8 = (_local7.x - 32);
_local9 = (_local7.x + 32);
_local10 = (_local7.y - 3);
_local11 = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
rootObj.bounds();
};
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((360 < _local11)))) && ((400 > _local10)))){
rootObj.scoreAlphaFlag = true;
} else {
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((400 < _local11)))) && ((420 > _local10)))){
rootObj.scoreAlphaFlag = false;
};
};
_local7 = rootObj.bars_mc.localToGlobal(_local6);
if (_local7.y > 420){
insRecycle();
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycle();
};
};
}
function frame1(){
stop();
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function insRecycle():void{
if (rootObj != null){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterThis);
rootObj.bar1Ins_array.push(this);
rootObj.barCount--;
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("reset");
};
}
}
}//package
Section 30
//bar2Mc (bar2Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar2Mc extends MovieClip {
public var pGlo:Point;
public var pLoc:Point;
public var rootObj:MovieClip;
public function bar2Mc(){
addFrameScript(0, frame1, 1, frame2);
}
public function xEnterThis(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:Point;
var _local7:Point;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_local2 = (rootObj.tenko_mc.x - 5);
_local3 = (rootObj.tenko_mc.x + 5);
_local4 = (rootObj.tenko_mc.y + 14);
_local5 = (rootObj.tenko_mc.y + 20);
_local6 = new Point(this.x, this.y);
_local7 = rootObj.bars_mc.localToGlobal(_local6);
_local8 = (_local7.x - 32);
_local9 = (_local7.x + 32);
_local10 = (_local7.y - 3);
_local11 = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
rootObj.bounds();
};
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((360 < _local11)))) && ((400 > _local10)))){
rootObj.scoreAlphaFlag = true;
} else {
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((400 < _local11)))) && ((420 > _local10)))){
rootObj.scoreAlphaFlag = false;
};
};
_local7 = rootObj.bars_mc.localToGlobal(_local6);
if (_local7.y > 420){
insRecycle();
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycle();
};
};
}
function frame1(){
stop();
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function insRecycle():void{
if (rootObj != null){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterThis);
rootObj.bar2Ins_array.push(this);
rootObj.barCount--;
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("reset");
};
}
}
}//package
Section 31
//bar3aMc (bar3aMc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar3aMc extends MovieClip {
public var moveVector;
public var pGlo:Point;
public var pLoc:Point;
public var rootObj:MovieClip;
public function bar3aMc(){
addFrameScript(0, frame1, 1, frame2);
}
public function xEnterThis(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:Point;
var _local7:Point;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_local2 = (rootObj.tenko_mc.x - 5);
_local3 = (rootObj.tenko_mc.x + 5);
_local4 = (rootObj.tenko_mc.y + 14);
_local5 = (rootObj.tenko_mc.y + 20);
_local6 = new Point(this.x, this.y);
_local7 = rootObj.bars_mc.localToGlobal(_local6);
_local8 = (_local7.x - 32);
_local9 = (_local7.x + 32);
_local10 = (_local7.y - 3);
_local11 = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
rootObj.bounds();
};
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((360 < _local11)))) && ((400 > _local10)))){
rootObj.scoreAlphaFlag = true;
} else {
if ((((400 < _local11)) && ((420 > _local10)))){
rootObj.scoreAlphaFlag = false;
};
};
this.x = (this.x + moveVector);
if (this.x >= 182){
this.x = -182;
} else {
if (this.x <= -182){
this.x = 182;
};
};
_local7 = rootObj.bars_mc.localToGlobal(_local6);
if (_local7.y > 420){
insRecycle();
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycle();
};
};
}
function frame1(){
stop();
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
moveVector = 0;
switch (Math.floor((Math.random() * 2))){
case 0:
moveVector = 2.5;
break;
case 1:
moveVector = -2.5;
break;
default:
moveVector = 0;
};
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function insRecycle():void{
if (rootObj != null){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterThis);
rootObj.bar3aIns_array.push(this);
rootObj.barCount--;
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("reset");
};
}
}
}//package
Section 32
//bar3bMc (bar3bMc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar3bMc extends MovieClip {
public var moveVector;
public var pGlo:Point;
public var pLoc:Point;
public var rootObj:MovieClip;
public function bar3bMc(){
addFrameScript(0, frame1, 1, frame2);
}
public function xEnterThis(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:Point;
var _local7:Point;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_local2 = (rootObj.tenko_mc.x - 5);
_local3 = (rootObj.tenko_mc.x + 5);
_local4 = (rootObj.tenko_mc.y + 14);
_local5 = (rootObj.tenko_mc.y + 20);
_local6 = new Point(this.x, this.y);
_local7 = rootObj.bars_mc.localToGlobal(_local6);
_local8 = (_local7.x - 32);
_local9 = (_local7.x + 32);
_local10 = (_local7.y - 3);
_local11 = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
rootObj.bounds();
};
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((360 < _local11)))) && ((400 > _local10)))){
rootObj.scoreAlphaFlag = true;
} else {
if ((((400 < _local11)) && ((420 > _local10)))){
rootObj.scoreAlphaFlag = false;
};
};
this.x = (this.x + moveVector);
if (this.x >= 182){
this.x = -182;
} else {
if (this.x <= -182){
this.x = 182;
};
};
_local7 = rootObj.bars_mc.localToGlobal(_local6);
if (_local7.y > 420){
insRecycle();
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycle();
};
};
}
function frame1(){
stop();
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
moveVector = 0;
switch (Math.floor((Math.random() * 2))){
case 0:
moveVector = 1.5;
break;
case 1:
moveVector = -1.5;
break;
default:
moveVector = 0;
};
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function insRecycle():void{
if (rootObj != null){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterThis);
rootObj.bar3bIns_array.push(this);
rootObj.barCount--;
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("reset");
};
}
}
}//package
Section 33
//bar3cMc (bar3cMc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar3cMc extends MovieClip {
public var moveVector;
public var pGlo:Point;
public var pLoc:Point;
public var rootObj:MovieClip;
public function bar3cMc(){
addFrameScript(0, frame1, 1, frame2);
}
public function xEnterThis(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:Point;
var _local7:Point;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_local2 = (rootObj.tenko_mc.x - 5);
_local3 = (rootObj.tenko_mc.x + 5);
_local4 = (rootObj.tenko_mc.y + 14);
_local5 = (rootObj.tenko_mc.y + 20);
_local6 = new Point(this.x, this.y);
_local7 = rootObj.bars_mc.localToGlobal(_local6);
_local8 = (_local7.x - 32);
_local9 = (_local7.x + 32);
_local10 = (_local7.y - 3);
_local11 = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
rootObj.bounds();
};
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((360 < _local11)))) && ((400 > _local10)))){
rootObj.scoreAlphaFlag = true;
} else {
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((400 < _local11)))) && ((420 > _local10)))){
rootObj.scoreAlphaFlag = false;
};
};
this.x = (this.x + moveVector);
if (this.x >= 182){
this.x = -182;
} else {
if (this.x <= -182){
this.x = 182;
};
};
_local7 = rootObj.bars_mc.localToGlobal(_local6);
if (_local7.y > 420){
insRecycle();
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycle();
};
};
}
function frame1(){
stop();
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
moveVector = 0;
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function insRecycle():void{
if (rootObj != null){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterThis);
rootObj.bar3cIns_array.push(this);
rootObj.barCount--;
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("reset");
};
}
}
}//package
Section 34
//bar3Mc (bar3Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar3Mc extends MovieClip {
public var moveVector;
public var pGlo:Point;
public var pLoc:Point;
public var rootObj:MovieClip;
public function bar3Mc(){
addFrameScript(0, frame1, 1, frame2);
}
public function xEnterThis(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:Point;
var _local7:Point;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_local2 = (rootObj.tenko_mc.x - 5);
_local3 = (rootObj.tenko_mc.x + 5);
_local4 = (rootObj.tenko_mc.y + 14);
_local5 = (rootObj.tenko_mc.y + 20);
_local6 = new Point(this.x, this.y);
_local7 = rootObj.bars_mc.localToGlobal(_local6);
_local8 = (_local7.x - 32);
_local9 = (_local7.x + 32);
_local10 = (_local7.y - 3);
_local11 = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
rootObj.bounds();
};
this.x = (this.x + moveVector);
if (this.x >= 182){
this.x = -182;
} else {
if (this.x <= -182){
this.x = 182;
};
};
_local7 = rootObj.bars_mc.localToGlobal(_local6);
if (_local7.y > 400){
insRecycle();
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycle();
};
};
}
function frame1(){
stop();
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
moveVector = 0;
switch (Math.floor((Math.random() * 4))){
case 0:
moveVector = 2;
break;
case 1:
moveVector = -2;
break;
default:
moveVector = 0;
};
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function insRecycle():void{
if (rootObj != null){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterThis);
rootObj.bar3Ins_array.push(this);
rootObj.barCount--;
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("reset");
};
}
}
}//package
Section 35
//bar4Mc (bar4Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar4Mc extends MovieClip {
public var pGlo:Point;
public var pLoc:Point;
public var rootObj:MovieClip;
public function bar4Mc(){
addFrameScript(0, frame1, 1, frame2);
}
public function xEnterThis(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:Point;
var _local7:Point;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_local2 = (rootObj.tenko_mc.x - 5);
_local3 = (rootObj.tenko_mc.x + 5);
_local4 = (rootObj.tenko_mc.y + 14);
_local5 = (rootObj.tenko_mc.y + 20);
_local6 = new Point(this.x, this.y);
_local7 = rootObj.bars_mc.localToGlobal(_local6);
_local8 = (_local7.x - 24);
_local9 = (_local7.x + 24);
_local10 = (_local7.y - 3);
_local11 = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
rootObj.bounds();
};
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((360 < _local11)))) && ((400 > _local10)))){
rootObj.scoreAlphaFlag = true;
} else {
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((400 < _local11)))) && ((420 > _local10)))){
rootObj.scoreAlphaFlag = false;
};
};
_local7 = rootObj.bars_mc.localToGlobal(_local6);
if (_local7.y > 420){
insRecycle();
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycle();
};
};
}
function frame1(){
stop();
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function insRecycle():void{
if (rootObj != null){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterThis);
rootObj.bar4Ins_array.push(this);
rootObj.barCount--;
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("reset");
};
}
}
}//package
Section 36
//bar5Mc (bar5Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar5Mc extends MovieClip {
public var pGlo:Point;
public var pLoc:Point;
public var rootObj:MovieClip;
public function bar5Mc(){
addFrameScript(0, frame1, 1, frame2);
}
public function xEnterThis(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:Point;
var _local7:Point;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_local2 = (rootObj.tenko_mc.x - 5);
_local3 = (rootObj.tenko_mc.x + 5);
_local4 = (rootObj.tenko_mc.y + 14);
_local5 = (rootObj.tenko_mc.y + 20);
_local6 = new Point(this.x, this.y);
_local7 = rootObj.bars_mc.localToGlobal(_local6);
_local8 = (_local7.x - 24);
_local9 = (_local7.x + 24);
_local10 = (_local7.y - 3);
_local11 = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
rootObj.bounds();
};
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((360 < _local11)))) && ((400 > _local10)))){
rootObj.scoreAlphaFlag = true;
} else {
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((400 < _local11)))) && ((420 > _local10)))){
rootObj.scoreAlphaFlag = false;
};
};
_local7 = rootObj.bars_mc.localToGlobal(_local6);
if (_local7.y > 420){
insRecycle();
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycle();
};
};
}
function frame1(){
stop();
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function insRecycle():void{
if (rootObj != null){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterThis);
rootObj.bar5Ins_array.push(this);
rootObj.barCount--;
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("reset");
};
}
}
}//package
Section 37
//bar6Mc (bar6Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar6Mc extends MovieClip {
public var pGlo:Point;
public var pLoc:Point;
public var rootObj:MovieClip;
public function bar6Mc(){
addFrameScript(0, frame1, 1, frame2);
}
public function xEnterThis(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:Point;
var _local7:Point;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_local2 = (rootObj.tenko_mc.x - 5);
_local3 = (rootObj.tenko_mc.x + 5);
_local4 = (rootObj.tenko_mc.y + 14);
_local5 = (rootObj.tenko_mc.y + 20);
_local6 = new Point(this.x, this.y);
_local7 = rootObj.bars_mc.localToGlobal(_local6);
_local8 = (_local7.x - 16);
_local9 = (_local7.x + 16);
_local10 = (_local7.y - 3);
_local11 = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
rootObj.bounds();
};
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((360 < _local11)))) && ((400 > _local10)))){
rootObj.scoreAlphaFlag = true;
} else {
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((400 < _local11)))) && ((420 > _local10)))){
rootObj.scoreAlphaFlag = false;
};
};
_local7 = rootObj.bars_mc.localToGlobal(_local6);
if (_local7.y > 420){
insRecycle();
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycle();
};
};
}
function frame1(){
stop();
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function insRecycle():void{
if (rootObj != null){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterThis);
rootObj.bar6Ins_array.push(this);
rootObj.barCount--;
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("reset");
};
}
}
}//package
Section 38
//bar7Mc (bar7Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar7Mc extends MovieClip {
public var judgeFlag;
public var pGlo:Point;
public var pLoc:Point;
public var rootObj:MovieClip;
public function bar7Mc(){
addFrameScript(0, frame1, 1, frame2);
}
public function xEnterThis(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:Point;
var _local7:Point;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_local2 = (rootObj.tenko_mc.x - 5);
_local3 = (rootObj.tenko_mc.x + 5);
_local4 = (rootObj.tenko_mc.y + 14);
_local5 = (rootObj.tenko_mc.y + 20);
_local6 = new Point(this.x, this.y);
_local7 = rootObj.bars_mc.localToGlobal(_local6);
_local8 = (_local7.x - 16);
_local9 = (_local7.x + 16);
_local10 = (_local7.y - 3);
_local11 = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
rootObj.bounds();
};
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((360 < _local11)))) && ((400 > _local10)))){
rootObj.scoreAlphaFlag = true;
} else {
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((400 < _local11)))) && ((420 > _local10)))){
rootObj.scoreAlphaFlag = false;
};
};
_local7 = rootObj.bars_mc.localToGlobal(_local6);
if (_local7.y > 420){
insRecycle();
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycle();
};
};
}
function frame1(){
stop();
}
function frame2(){
stop();
judgeFlag = true;
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function insRecycle():void{
if (rootObj != null){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterThis);
rootObj.bar7Ins_array.push(this);
rootObj.barCount--;
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("reset");
};
}
}
}//package
Section 39
//bar8Mc (bar8Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar8Mc extends MovieClip {
public var judgeFlag;
public var pGlo:Point;
public var pLoc:Point;
public var rootObj:MovieClip;
public var sukima_mc:MovieClip;
public function bar8Mc(){
addFrameScript(0, frame1, 1, frame2);
}
public function xEnterThis(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:Point;
var _local7:Point;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_local2 = (rootObj.tenko_mc.x - 5);
_local3 = (rootObj.tenko_mc.x + 5);
_local4 = (rootObj.tenko_mc.y + 14);
_local5 = (rootObj.tenko_mc.y + 20);
_local6 = new Point(this.x, this.y);
_local7 = rootObj.bars_mc.localToGlobal(_local6);
_local8 = (_local7.x - 16);
_local9 = (_local7.x + 16);
_local10 = (_local7.y - 3);
_local11 = (_local7.y + 3);
if ((((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))) && ((judgeFlag == true)))){
rootObj.bounds();
};
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((360 < _local11)))) && ((400 > _local10)))){
rootObj.scoreAlphaFlag = true;
} else {
if ((((((((220 < _local9)) && ((300 > _local8)))) && ((400 < _local11)))) && ((420 > _local10)))){
rootObj.scoreAlphaFlag = false;
};
};
_local7 = rootObj.bars_mc.localToGlobal(_local6);
if (_local7.y > 420){
insRecycle();
};
if (rootObj != null){
if (rootObj.gameOverFlag == true){
insRecycle();
};
};
}
function frame1(){
stop();
}
function frame2(){
stop();
judgeFlag = true;
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function insRecycle():void{
if (rootObj != null){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, xEnterThis);
rootObj.bar8Ins_array.push(this);
rootObj.barCount--;
rootObj = null;
this.parent.removeChild(this);
gotoAndStop("reset");
};
}
}
}//package
Section 40
//bridgeMc (bridgeMc)
package {
import flash.display.*;
public dynamic class bridgeMc extends MovieClip {
}
}//package
Section 41
//cloud1Mc (cloud1Mc)
package {
import flash.display.*;
public dynamic class cloud1Mc extends MovieClip {
}
}//package
Section 42
//cloud2Mc (cloud2Mc)
package {
import flash.display.*;
public dynamic class cloud2Mc extends MovieClip {
}
}//package
Section 43
//cloud3Mc (cloud3Mc)
package {
import flash.display.*;
public dynamic class cloud3Mc extends MovieClip {
}
}//package
Section 44
//cloud4Mc (cloud4Mc)
package {
import flash.display.*;
public dynamic class cloud4Mc extends MovieClip {
}
}//package
Section 45
//fall01 (fall01)
package {
import flash.media.*;
public dynamic class fall01 extends Sound {
}
}//package
Section 46
//gameBgm (gameBgm)
package {
import flash.media.*;
public dynamic class gameBgm extends Sound {
}
}//package
Section 47
//gameOver10Mc (gameOver10Mc)
package {
import flash.display.*;
public dynamic class gameOver10Mc extends MovieClip {
}
}//package
Section 48
//gameOver1Mc (gameOver1Mc)
package {
import flash.display.*;
public dynamic class gameOver1Mc extends MovieClip {
}
}//package
Section 49
//gameOver2Mc (gameOver2Mc)
package {
import flash.display.*;
public dynamic class gameOver2Mc extends MovieClip {
}
}//package
Section 50
//gameOver3Mc (gameOver3Mc)
package {
import flash.display.*;
public dynamic class gameOver3Mc extends MovieClip {
}
}//package
Section 51
//gameOver4Mc (gameOver4Mc)
package {
import flash.display.*;
public dynamic class gameOver4Mc extends MovieClip {
}
}//package
Section 52
//gameOver5Mc (gameOver5Mc)
package {
import flash.display.*;
public dynamic class gameOver5Mc extends MovieClip {
}
}//package
Section 53
//gameOver6Mc (gameOver6Mc)
package {
import flash.display.*;
public dynamic class gameOver6Mc extends MovieClip {
}
}//package
Section 54
//gameOver7Mc (gameOver7Mc)
package {
import flash.display.*;
public dynamic class gameOver7Mc extends MovieClip {
}
}//package
Section 55
//gameOver8Mc (gameOver8Mc)
package {
import flash.display.*;
public dynamic class gameOver8Mc extends MovieClip {
}
}//package
Section 56
//gameOver9Mc (gameOver9Mc)
package {
import flash.display.*;
public dynamic class gameOver9Mc extends MovieClip {
}
}//package
Section 57
//hakureiMc (hakureiMc)
package {
import flash.display.*;
public dynamic class hakureiMc extends MovieClip {
}
}//package
Section 58
//jump01 (jump01)
package {
import flash.media.*;
public dynamic class jump01 extends Sound {
}
}//package
Section 59
//moonMc (moonMc)
package {
import flash.display.*;
public dynamic class moonMc extends MovieClip {
}
}//package
Section 60
//rankingMc (rankingMc)
package {
import flash.display.*;
public dynamic class rankingMc extends MovieClip {
public var rankingList_mc:MovieClip;
}
}//package
Section 61
//rockMc (rockMc)
package {
import flash.display.*;
public dynamic class rockMc extends MovieClip {
}
}//package
Section 62
//select01 (select01)
package {
import flash.media.*;
public dynamic class select01 extends Sound {
}
}//package
Section 63
//select02 (select02)
package {
import flash.media.*;
public dynamic class select02 extends Sound {
}
}//package
Section 64
//sunMc (sunMc)
package {
import flash.display.*;
public dynamic class sunMc extends MovieClip {
}
}//package
Section 65
//tenkoMc (tenkoMc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class tenkoMc extends MovieClip {
public var easing;
public var rootObj:MovieClip;
public var tenkoMotion_mc:MovieClip;
public var vy:Number;
public function tenkoMc(){
addFrameScript(0, frame1);
}
public function xEnterThis(_arg1):void{
if (rootObj.tenkoFallFlag == false){
vy = ((rootObj.moveTarget - this.y) * easing);
this.y = (this.y + vy);
if (rootObj.maxClimbPoint > this.y){
rootObj.score = (rootObj.score + vy);
rootObj.score_mc.score_txt.text = Math.floor((rootObj.score * -1));
rootObj.maxClimbPoint = this.y;
};
} else {
if (this.y < (rootObj.moveTarget + 70)){
vy = ((this.y - rootObj.moveTarget) * easing);
};
this.y = (this.y + vy);
};
if (this.y <= (rootObj.moveTarget + 5)){
rootObj.tenkoFallFlag = true;
};
if (rootObj.gameOverFlag == true){
gameOverTenko();
};
}
function frame1(){
rootObj = (this.root as MovieClip);
easing = 0.17;
vy = ((this.y - rootObj.moveTarget) * easing);
addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function gameOverTenko():void{
removeEventListener(Event.ENTER_FRAME, xEnterThis);
}
}
}//package
Section 66
//tenkoRedMc (tenkoRedMc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class tenkoRedMc extends MovieClip {
public var easing;
public var rootObj:MovieClip;
public var tenkoMotion_mc:MovieClip;
public var vy:Number;
public function tenkoRedMc(){
addFrameScript(0, frame1);
}
public function xEnterThis(_arg1):void{
if (rootObj.tenkoFallFlag == false){
vy = ((rootObj.moveTarget - this.y) * easing);
this.y = (this.y + vy);
if (rootObj.maxClimbPoint > this.y){
rootObj.score = (rootObj.score + vy);
rootObj.score_mc.score_txt.text = Math.floor((rootObj.score * -1));
rootObj.maxClimbPoint = this.y;
};
} else {
if (this.y < (rootObj.moveTarget + 70)){
vy = ((this.y - rootObj.moveTarget) * easing);
};
this.y = (this.y + vy);
};
if (this.y <= (rootObj.moveTarget + 5)){
rootObj.tenkoFallFlag = true;
};
if (rootObj.gameOverFlag == true){
gameOverTenko();
};
}
function frame1(){
rootObj = (this.root as MovieClip);
easing = 0.17;
vy = ((this.y - rootObj.moveTarget) * easing);
addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function gameOverTenko():void{
removeEventListener(Event.ENTER_FRAME, xEnterThis);
}
}
}//package
Section 67
//uraJinjaMc (uraJinjaMc)
package {
import flash.display.*;
public dynamic class uraJinjaMc extends MovieClip {
}
}//package
Section 68
//uraYamaMc (uraYamaMc)
package {
import flash.display.*;
public dynamic class uraYamaMc extends MovieClip {
}
}//package