Section 1
//Bar0GraMC_74 (yamame0_fla.Bar0GraMC_74)
package yamame0_fla {
import flash.display.*;
public dynamic class Bar0GraMC_74 extends MovieClip {
public var net_mc:MovieClip;
public function Bar0GraMC_74(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package yamame0_fla
Section 2
//Bar1GraMC_70 (yamame0_fla.Bar1GraMC_70)
package yamame0_fla {
import flash.display.*;
public dynamic class Bar1GraMC_70 extends MovieClip {
public var net_mc:MovieClip;
public function Bar1GraMC_70(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package yamame0_fla
Section 3
//Bar2GraMC_76 (yamame0_fla.Bar2GraMC_76)
package yamame0_fla {
import flash.display.*;
public dynamic class Bar2GraMC_76 extends MovieClip {
public var net_mc:MovieClip;
public function Bar2GraMC_76(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package yamame0_fla
Section 4
//Bar4GraMC_82 (yamame0_fla.Bar4GraMC_82)
package yamame0_fla {
import flash.display.*;
public dynamic class Bar4GraMC_82 extends MovieClip {
public var net_mc:MovieClip;
public function Bar4GraMC_82(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package yamame0_fla
Section 5
//Bar5GraMC_85 (yamame0_fla.Bar5GraMC_85)
package yamame0_fla {
import flash.display.*;
public dynamic class Bar5GraMC_85 extends MovieClip {
public var net_mc:MovieClip;
public function Bar5GraMC_85(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package yamame0_fla
Section 6
//Bar6GraMC_87 (yamame0_fla.Bar6GraMC_87)
package yamame0_fla {
import flash.display.*;
public dynamic class Bar6GraMC_87 extends MovieClip {
public var net_mc:MovieClip;
public function Bar6GraMC_87(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package yamame0_fla
Section 7
//Bar7GraMC_89 (yamame0_fla.Bar7GraMC_89)
package yamame0_fla {
import flash.display.*;
public dynamic class Bar7GraMC_89 extends MovieClip {
public var net_mc:MovieClip;
public function Bar7GraMC_89(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package yamame0_fla
Section 8
//MainTimeline (yamame0_fla.MainTimeline)
package yamame0_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public const SPECIAL_CONST = 5;
public const PHP_RANKING = "php831412/ranking.php";
public var rankingLastScore;
public var titleOption_btn:SimpleButton;
public var fadeWall_mc:MovieClip;
public var seList:Dictionary;
public var hiScore:Number;
public var fps_txt:TextField;
public var sousaType_array:Array;
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 rename_mc:MovieClip;
public var wallRemovePosition:Array;
public var ranking_mc:rankingMc;
public var hiScore2:Number;
public var objectIns_array:Array;
public var tenko_mc:MovieClip;
public var so:SharedObject;
public var wallFlag:Array;
public var maxClimbPoint;
public var score_mc:MovieClip;
public var bar5Ins_array:Array;
public var volumeOver_mc:MovieClip;
public var gameOverFlag;
public var sendScoreFlag;
public var sendHiscoreFlag:Boolean;
public var gameOver_txt:TextField;
public var score;
public var sousaType_btn:SimpleButton;
public var bar7Ins_array:Array;
public var req:URLRequest;
public var info:LoaderInfo;
public var loadPercent_txt:TextField;
public var sousaType_txt:TextField;
public var gameMode:int;
public var clearMask_mc:MovieClip;
public var keysDown:Array;
public var volumeUp_mc:MovieClip;
public var hardKeysDown:Array;
public var moveTarget;
public var vy:Number;
public var wallAddPosition:Array;
public var bar0Ins_array:Array;
public var time;
public var fr;
public var barCount;
public var loadScoreName_mc:MovieClip;
public var qualityOver_mc:MovieClip;
public var addBarTargetY;
public var tenkoMoveX;
public var fps;
public var rankingLastScore2;
public var tenkoFallFlag;
public var userName:String;
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 ranking_array:Array;
public var sendHiscoreOver_mc:MovieClip;
public var volume:int;
public var clearMask2_mc:MovieClip;
public var time_count;
public var ranking_array2:Array;
public var gameOverBack_mc:MovieClip;
public var easing;
public var old_timer;
public var musicFlag;
public var hardMode;
public var bar4Ins_array:Array;
public var bgmCh;
public var opFps;
public var objectInsFlag_array:Array;
public var titleRanking_btn:SimpleButton;
public var backWalls3_mc:MovieClip;
public var tenkoPosition_mc:MovieClip;
public var rankingXmlLoader:URLLoader;
public var bars_mc:MovieClip;
public var bgmTr;
public var gameOverIns_array:Array;
public var bar6Ins_array:Array;
public var titleStart_btn:SimpleButton;
public var nextAddWallNo;
public var scoreAlphaFlag;
public var nextRemoveWallNo;
public var option_mc:MovieClip;
public var trueScore;
public var resultScore_txt:TextField;
public var slowCount:int;
public var sendHiscoreUp_mc:MovieClip;
public var backWalls_mc:MovieClip;
public var ufoCount;
public var gameOverClick_mc:MovieClip;
public var objectMovePoint:Array;
public var hakurei_mc:hakureiMc;
public var backWalls4_mc:MovieClip;
public var sndTr;
public var bar8Ins_array:Array;
public var XML_RANKING;
public var rankingPage;
public var bar3aIns_array:Array;
public var bar1Ins_array:Array;
public var titleHiscore_txt:TextField;
public var qualityUp_mc:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
public function xClickGameOverMask(_arg1:MouseEvent):void{
if (sendScoreFlag == true){
removeAllGameOverEvent();
gotoAndPlay("game");
};
}
public function xKeyDown(_arg1:KeyboardEvent):void{
keysDown[_arg1.keyCode] = true;
}
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 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 xKeyHardDown(_arg1:KeyboardEvent):void{
hardKeysDown[_arg1.keyCode] = true;
}
public function gameFontInit():void{
score_mc.score_txt.embedFonts = true;
}
public function bounds2():void{
if (tenkoMoveX >= 0){
tenko_mc.tenkoMotion_mc.gotoAndStop("rightSit");
} else {
tenko_mc.tenkoMotion_mc.gotoAndStop("leftSit");
};
playSe(jump02);
tenkoFallFlag = false;
moveTarget = (tenko_mc.y - 180);
}
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 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);
};
}
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 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 ioErrorHandler(_arg1:IOErrorEvent):void{
}
function frame2(){
stop();
rename_mc.visible = false;
titleFontInit();
clearMask_mc.visible = false;
clearMask2_mc.visible = false;
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 = ("xml139343/ranking.xml?" + new Date().getTime());
ranking_array = [];
ranking_array2 = [];
rankingLastScore = 0;
rankingLastScore2 = 0;
rankingPage = 0;
musicFlag = false;
sousaType_array = ["キーボード操作", "マウス操作"];
hardKeysDown = [];
hardMode = false;
easing = 0.17;
vy = ((320 - ranking_mc.width) * easing);
rankingXmlLoader = new URLLoader();
rankingXmlLoader.addEventListener(Event.COMPLETE, xCompleteRanking);
rankingXmlLoader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
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;
updateSousaType();
}
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);
}
public function moveObject():void{
var _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 xClickOptionClose(_arg1:MouseEvent):void{
playSe(select02);
removeAllOptionEvent();
option_mc.optionList_mc.visible = false;
clearMask_mc.visible = false;
addEventListener(Event.ENTER_FRAME, xEnterOptionHeightShrink);
}
public function titleFontInit():void{
titleHiscore_txt.embedFonts = true;
var _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;
}
function frame1(){
stop();
fadeWall_mc.visible = false;
fadeWall_mc.alpha = 0;
loadScoreName_mc.visible = false;
loadFontInit();
userName = "";
volume = 3;
sendHiscoreFlag = true;
hiScore = 0;
hiScore2 = 0;
gameMode = 0;
easing = 0.3;
vy = ((210 - loadScoreName_mc.width) * easing);
loadScoreName_mc.loadScoreNameList_mc.visible = false;
contextInit();
so = SharedObject.getLocal("hopyama3");
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[jump02] = new jump02();
seList[fall01] = new fall01();
sndTr = new SoundTransform();
sndTr.volume = 0.1;
info = root.loaderInfo;
stage.addEventListener(Event.ENTER_FRAME, xLoadEnter);
}
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]);
}
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 < 20000){
gameOverBack_mc = gameOverIns_array[4];
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 < 31000){
gameOverBack_mc = gameOverIns_array[7];
addChildAt(gameOverBack_mc, (getChildIndex(gameOverBase_mc) + 1));
} else {
if (trueScore < 42000){
gameOver_txt.text = "Game Clear?";
gameOverBack_mc = gameOverIns_array[8];
addChildAt(gameOverBack_mc, (getChildIndex(gameOverBase_mc) + 1));
} else {
gameOver_txt.text = "Game Clear!";
gameOverBack_mc = gameOverIns_array[9];
addChildAt(gameOverBack_mc, (getChildIndex(gameOverBase_mc) + 1));
};
};
};
};
};
};
};
};
if (gameMode == 0){
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;
};
};
} else {
if ((((((((Math.floor((score * -1)) > rankingLastScore2)) && ((Math.floor((score * -1)) > hiScore2)))) && ((sendHiscoreFlag == true)))) && ((slowCount < 15)))){
registHiscore();
hiScore2 = Math.floor((score * -1));
so.data.hiScore2 = hiScore2;
} else {
if (Math.floor((score * -1)) > hiScore2){
hiScore2 = Math.floor((score * -1));
so.data.hiScore2 = hiScore2;
sendScoreFlag = true;
} else {
sendScoreFlag = true;
};
};
};
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
addEventListener(Event.ENTER_FRAME, xEnterFadeFromGame);
}
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 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 makeObjectInstance():void{
var _local1:* = new cloud1Mc();
var _local2:* = new cloud2Mc();
var _local3:* = new cloud3Mc();
var _local4:* = new cloud4Mc();
var _local5:* = new moonMc();
var _local6:* = new uraYamaMc();
var _local7:* = new uraJinjaMc();
var _local8:* = new rockMc();
var _local9:* = new bridgeMc();
var _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 xKeyHardUp(_arg1:KeyboardEvent):void{
hardKeysDown[_arg1.keyCode] = false;
}
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);
sousaType_btn.addEventListener(MouseEvent.CLICK, xClickSousaType);
}
function frame4(){
stop();
gotoAndStop("game");
}
public function playSe(_arg1){
seList[_arg1].play(0, 1, sndTr);
}
public function makeGameOverInstance():void{
var _local1:* = new gameOver1Mc();
var _local2:* = new gameOver2Mc();
var _local3:* = new gameOver3Mc();
var _local4:* = new gameOver4Mc();
var _local5:* = new gameOver5Mc();
var _local6:* = new gameOver6Mc();
var _local7:* = new gameOver7Mc();
var _local8:* = new gameOver8Mc();
var _local9:* = new gameOver9Mc();
var _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 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 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 updateSousaType():void{
sousaType_txt.text = sousaType_array[gameMode];
if (gameMode == 0){
titleHiscore_txt.text = hiScore.toString();
} else {
titleHiscore_txt.text = hiScore2.toString();
};
}
public function gameBgmComplete(_arg1:Event):void{
bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
bgmCh = null;
bgmCh = gameBgm_sound.play(7050, 1, bgmTr);
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
}
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 wallMove2():void{
if (backWalls2_mc.y > 0){
backWalls2_mc.y = (backWalls2_mc.y + 1.5);
};
}
public function wallMove3():void{
if (backWalls3_mc.y > 0){
backWalls3_mc.y = (backWalls3_mc.y + 3);
};
}
public function rankingDisplayInit():void{
var _local1:* = 0;
var _local2:* = 0;
if (gameMode == 0){
_local1 = 0;
while (_local1 < 10) {
_local2 = (_local1 + rankingPage);
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++;
};
} else {
_local1 = 0;
while (_local1 < 10) {
_local2 = (_local1 + rankingPage);
ranking_mc.rankingList_mc[(("rankingNo" + (_local1 + 1)) + "_txt")].text = ((_local2 + 1) + "位:");
if (ranking_array2[_local2] != null){
ranking_mc.rankingList_mc[(("rankingName" + (_local1 + 1)) + "_txt")].text = ranking_array2[_local2].name;
ranking_mc.rankingList_mc[(("rankingScore" + (_local1 + 1)) + "_txt")].text = (ranking_array2[_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 == 290){
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 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 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 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 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 _local2:MovieClip;
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:MovieClip;
var _local6:MovieClip;
var _local7:MovieClip;
var _local8:MovieClip;
var _local9:MovieClip;
var _local10:MovieClip;
var _local11:MovieClip;
var _local12:MovieClip;
var _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 xClickTitleStart(_arg1:MouseEvent):void{
if (hardKeysDown[72] == true){
hardMode = true;
};
removeAllTitleEvent();
gotoAndStop("game");
}
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 loadFontInit():void{
loadPercent_txt.embedFonts = true;
loadScoreName_mc.loadScoreNameList_mc.loadScoreName_txt.embedFonts = true;
}
public function volumeTextInit():void{
var _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 xEnterMain(_arg1):void{
var _local2:*;
var _local3:int;
var _local4:*;
if (gameMode == 0){
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);
};
};
};
};
} else {
tenko_mc.x = (tenko_mc.x + tenkoMoveX);
_local2 = Math.abs((tenko_mc.x - stage.mouseX));
_local3 = 0;
if (_local2 >= 100){
_local3 = 50;
} else {
if (_local2 >= 50){
_local3 = 25;
} else {
if (_local2 >= 10){
_local3 = 5;
} else {
if (_local2 >= 5){
_local3 = 3;
} else {
if (_local2 >= 3){
_local3 = 1;
} else {
if (_local2 >= 1){
_local3 = 1;
} else {
_local3 = 0;
};
};
};
};
};
};
if (tenko_mc.x > stage.mouseX){
tenkoMoveX = -(_local3);
} else {
if (tenko_mc.x < stage.mouseX){
tenkoMoveX = _local3;
};
};
};
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){
_local4 = Math.floor(((time_count * 1000) / (getTimer() - old_timer)));
fps = ((_local4 + "/") + fr);
old_timer = getTimer();
time_count = 0;
fps_txt.text = fps;
if (_local4 < (opFps - 20)){
slowCount++;
};
};
if (score < addBarTargetY){
addBarSetting();
};
if ((((tenko_mc.y > 410)) && ((gameOverFlag == false)))){
gameOverFlag = true;
gameOver();
};
}
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 _local4:Array;
var _local5:Array;
var _local6:*;
var _local2:XML = new XML(rankingXmlLoader.data);
var _local3:XMLList = _local2.ranking;
for each (_local2 in _local3) {
if (_local2.gamemode == 0){
ranking_array.push({name:_local2.name, score:_local2.score});
} else {
ranking_array2.push({name:_local2.name, score:_local2.score});
};
};
ranking_array.sortOn("score", (Array.DESCENDING | Array.NUMERIC));
ranking_array2.sortOn("score", (Array.DESCENDING | Array.NUMERIC));
_local4 = [];
_local5 = [];
_local4 = ranking_array;
ranking_array = [];
_local6 = 0;
while ((((ranking_array.length < 300)) && ((_local6 < _local4.length)))) {
if (_local5.indexOf(_local4[_local6].name.toString()) == -1){
ranking_array.push(_local4[_local6]);
_local5.push(_local4[_local6].name.toString());
};
_local6++;
};
_local5 = [];
_local4 = null;
_local4 = ranking_array2;
ranking_array2 = [];
_local6 = 0;
while ((((ranking_array2.length < 300)) && ((_local6 < _local4.length)))) {
if (_local5.indexOf(_local4[_local6].name.toString()) == -1){
ranking_array2.push(_local4[_local6]);
_local5.push(_local4[_local6].name.toString());
};
_local6++;
};
_local4 = null;
_local5 = null;
if (ranking_array[299] != null){
rankingLastScore = ranking_array[299].score;
} else {
rankingLastScore = 0;
};
if (ranking_array2[299] != null){
rankingLastScore2 = ranking_array2[299].score;
} else {
rankingLastScore2 = 0;
};
rankingXmlLoader.removeEventListener(Event.COMPLETE, xCompleteRanking);
rankingXmlLoader.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
rankingXmlLoader = null;
rankingDisplayInit();
addAllTitleEvent();
}
public function xGameOverKeyDown(_arg1:KeyboardEvent):void{
var _local2:String;
var _local3:String;
var _local4:URLRequest;
if (sendScoreFlag == true){
if ((((_arg1.keyCode == Keyboard.SPACE)) || ((_arg1.keyCode == Keyboard.ENTER)))){
removeAllGameOverEvent();
gotoAndPlay("game");
} else {
if (_arg1.keyCode == Keyboard.ESCAPE){
removeAllGameOverEvent();
bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
bgmCh.stop();
gotoAndPlay("title");
} else {
if (_arg1.keyCode == Keyboard.SHIFT){
_local2 = escapeMultiByte((((("ヤマメは " + Math.floor((score * -1))) + "km 上空から地面に激突しました。[") + sousaType_array[gameMode]) + "] http://bit.ly/fvd7Wy #ほっぴんぐヤマメ"));
_local3 = ("http://twitter.com/intent/tweet?text=+" + _local2);
_local4 = new URLRequest(_local3);
navigateToURL(_local4, "_blank");
};
};
};
};
}
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 contextInit():void{
var _local1:* = new ContextMenu();
_local1.hideBuiltInItems();
var _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);
if (loadScoreName_mc.width > 200){
loadScoreName_mc.width = 200;
removeEventListener(Event.ENTER_FRAME, xEnterLoadScoreNameWidthExtend);
addEventListener(Event.ENTER_FRAME, xEnterLoadScoreNameHeightExtend);
};
}
public function xClickSousaType(_arg1:MouseEvent):void{
if (gameMode == 0){
gameMode = 1;
} else {
gameMode = 0;
};
so.data.gameMode = gameMode;
rankingDisplayInit();
playSe(select01);
updateSousaType();
}
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 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 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);
sousaType_btn.removeEventListener(MouseEvent.CLICK, xClickSousaType);
}
public function xEnterWaitReset(_arg1:Event):void{
if (barCount == 0){
removeEventListener(Event.ENTER_FRAME, xEnterWaitReset);
addEventListener(Event.ENTER_FRAME, xEnterFadeToGameover);
};
}
public function soInit():void{
if (so.size == 0){
so.data.userName = "";
so.data.sendHiscoreFlag = true;
so.data.hiScore = 0;
so.data.hiScore2 = 0;
so.data.volume = 3;
so.data.gameMode = 0;
} else {
if (so.data.userName != null){
userName = so.data.userName;
};
if (so.data.hiScore != null){
hiScore = so.data.hiScore;
};
if (so.data.hiScore2 != null){
hiScore2 = so.data.hiScore2;
};
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;
};
if (so.data.gameMode != null){
gameMode = so.data.gameMode;
} else {
so.data.gameMode = 0;
};
};
}
public function makeWallInstance():void{
var _local2:Class;
var _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:* = 0;
while (_local1 < 15) {
addBar(0, addBarTargetY);
addBarTargetY = (addBarTargetY - 30);
_local1++;
};
}
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 _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();
};
};
};
};
};
};
};
};
};
};
var _local4:Point = new Point((Math.floor((Math.random() * 236)) + 32), _arg2);
var _local5:Point = bars_mc.globalToLocal(_local4);
_local3.x = _local5.x;
_local3.y = _arg2;
_local3.visible = true;
_local3.gotoAndStop("normal");
bars_mc.addChild(_local3);
barCount++;
}
public function addTenshi():void{
if (Math.floor((Math.random() * 0x0400)) == 0){
tenko_mc = new tenkoRedMc();
tenko_mc.width = (tenko_mc.width * 0.8);
tenko_mc.height = (tenko_mc.height * 0.8);
tenko_mc.x = 138.2;
tenko_mc.y = 360.9;
} 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 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 xKeyUp(_arg1:KeyboardEvent):void{
keysDown[_arg1.keyCode] = false;
}
public function xClickOptionSendHiscore(_arg1:MouseEvent):void{
playSe(select01);
if (sendHiscoreFlag == true){
sendHiscoreFlag = false;
} else {
sendHiscoreFlag = true;
};
so.data.sendHiscoreFlag = sendHiscoreFlag;
sendHiscoreTextInit();
}
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 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 xClickRankingStart(_arg1:MouseEvent):void{
playSe(select01);
removeAllTitleEvent();
ranking_mc.alpha = 1;
ranking_mc.visible = true;
addEventListener(Event.ENTER_FRAME, xEnterRankingWidthExtend);
}
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 = new URLRequest(PHP_RANKING);
var variables:URLVariables = new URLVariables();
variables.name = userName;
variables.score = Math.floor((score * -1));
variables.gamemode = gameMode;
url.data = variables.toString();
url.method = URLRequestMethod.POST;
var loader:URLLoader = new URLLoader();
try {
loader.load(url);
} catch(e:Error) {
};
url = null;
loader = null;
sendScoreFlag = true;
}
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:* = 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 qualityTextInit():void{
var _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 xClickOptionVolume(_arg1:MouseEvent):void{
volume++;
if (volume >= 6){
volume = 0;
};
so.data.volume = volume;
sndTr.volume = (volume * 0.04);
playSe(jump01);
volumeTextInit();
}
}
}//package yamame0_fla
Section 9
//sanaeMotion_95 (yamame0_fla.sanaeMotion_95)
package yamame0_fla {
import flash.display.*;
public dynamic class sanaeMotion_95 extends MovieClip {
public function sanaeMotion_95(){
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 frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
function frame9(){
stop();
}
}
}//package yamame0_fla
Section 10
//score_mc_39 (yamame0_fla.score_mc_39)
package yamame0_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class score_mc_39 extends MovieClip {
public var pLoc:Point;
public var pGlo:Point;
public var score_txt:TextField;
public var rootObj:MovieClip;
public function score_mc_39(){
addFrameScript(0, frame1);
}
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);
}
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);
};
};
}
}
}//package yamame0_fla
Section 11
//sukimaStep_91 (yamame0_fla.sukimaStep_91)
package yamame0_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class sukimaStep_91 extends MovieClip {
public var parentObj:MovieClip;
public function sukimaStep_91(){
addFrameScript(0, frame1, 50, frame51, 80, frame81);
}
function frame1(){
parentObj = (this.parent as MovieClip);
parentObj.judgeFlag = true;
}
function frame81(){
parentObj.judgeFlag = true;
}
function frame51(){
parentObj.judgeFlag = false;
}
}
}//package yamame0_fla
Section 12
//Timeline_72 (yamame0_fla.Timeline_72)
package yamame0_fla {
import flash.display.*;
public dynamic class Timeline_72 extends MovieClip {
public function Timeline_72(){
addFrameScript(0, frame1, 23, frame24);
}
function frame1(){
stop();
}
function frame24(){
stop();
}
}
}//package yamame0_fla
Section 13
//yamameMotion_93 (yamame0_fla.yamameMotion_93)
package yamame0_fla {
import flash.display.*;
public dynamic class yamameMotion_93 extends MovieClip {
public function yamameMotion_93(){
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 frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
function frame9(){
stop();
}
}
}//package yamame0_fla
Section 14
//backWall1Mc (backWall1Mc)
package {
import flash.display.*;
public dynamic class backWall1Mc extends MovieClip {
}
}//package
Section 15
//backWall2Mc (backWall2Mc)
package {
import flash.display.*;
public dynamic class backWall2Mc extends MovieClip {
}
}//package
Section 16
//backWall3Mc (backWall3Mc)
package {
import flash.display.*;
public dynamic class backWall3Mc extends MovieClip {
}
}//package
Section 17
//backWall4Mc (backWall4Mc)
package {
import flash.display.*;
public dynamic class backWall4Mc extends MovieClip {
}
}//package
Section 18
//backWall5Mc (backWall5Mc)
package {
import flash.display.*;
public dynamic class backWall5Mc extends MovieClip {
}
}//package
Section 19
//backWall6Mc (backWall6Mc)
package {
import flash.display.*;
public dynamic class backWall6Mc extends MovieClip {
}
}//package
Section 20
//backWall7Mc (backWall7Mc)
package {
import flash.display.*;
public dynamic class backWall7Mc extends MovieClip {
}
}//package
Section 21
//backWall8Mc (backWall8Mc)
package {
import flash.display.*;
public dynamic class backWall8Mc extends MovieClip {
}
}//package
Section 22
//backWalls2 (backWalls2)
package {
import flash.display.*;
public dynamic class backWalls2 extends MovieClip {
}
}//package
Section 23
//backWalls5 (backWalls5)
package {
import flash.display.*;
public dynamic class backWalls5 extends MovieClip {
}
}//package
Section 24
//bar0Mc (bar0Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar0Mc extends MovieClip {
public var bar_mc:MovieClip;
public var specialFlag;
public var pLoc:Point;
public var rootObj:MovieClip;
public var pGlo:Point;
public function bar0Mc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
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");
};
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
specialFlag = false;
if (Math.floor((Math.random() * rootObj.SPECIAL_CONST)) == 0){
bar_mc.gotoAndStop("special");
specialFlag = true;
};
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function xEnterThis(_arg1:Event):void{
var _local2:* = (rootObj.tenko_mc.x - 5);
var _local3:* = (rootObj.tenko_mc.x + 5);
var _local4:* = (rootObj.tenko_mc.y + 14);
var _local5:* = (rootObj.tenko_mc.y + 20);
var _local6:Point = new Point(this.x, this.y);
var _local7:Point = rootObj.bars_mc.localToGlobal(_local6);
var _local8:* = (_local7.x - 32);
var _local9:* = (_local7.x + 32);
var _local10:* = (_local7.y - 3);
var _local11:* = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
if (specialFlag == true){
rootObj.tenko_mc.y = (_local7.y - 23);
rootObj.bounds2();
bar_mc.net_mc.gotoAndPlay("bound");
} else {
rootObj.tenko_mc.y = (_local7.y - 23);
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();
};
};
}
}
}//package
Section 25
//bar1Mc (bar1Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar1Mc extends MovieClip {
public var bar_mc:MovieClip;
public var specialFlag;
public var pLoc:Point;
public var rootObj:MovieClip;
public var pGlo:Point;
public function bar1Mc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
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");
};
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
specialFlag = false;
if (Math.floor((Math.random() * rootObj.SPECIAL_CONST)) == 0){
bar_mc.gotoAndStop("special");
specialFlag = true;
};
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function xEnterThis(_arg1:Event):void{
var _local2:* = (rootObj.tenko_mc.x - 5);
var _local3:* = (rootObj.tenko_mc.x + 5);
var _local4:* = (rootObj.tenko_mc.y + 14);
var _local5:* = (rootObj.tenko_mc.y + 20);
var _local6:Point = new Point(this.x, this.y);
var _local7:Point = rootObj.bars_mc.localToGlobal(_local6);
var _local8:* = (_local7.x - 32);
var _local9:* = (_local7.x + 32);
var _local10:* = (_local7.y - 3);
var _local11:* = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
if (specialFlag == true){
rootObj.tenko_mc.y = (_local7.y - 23);
rootObj.bounds2();
bar_mc.net_mc.gotoAndPlay("bound");
} else {
rootObj.tenko_mc.y = (_local7.y - 23);
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();
};
};
}
}
}//package
Section 26
//bar2Mc (bar2Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar2Mc extends MovieClip {
public var bar_mc:MovieClip;
public var specialFlag;
public var pLoc:Point;
public var rootObj:MovieClip;
public var pGlo:Point;
public function bar2Mc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
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");
};
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
specialFlag = false;
if (Math.floor((Math.random() * rootObj.SPECIAL_CONST)) == 0){
bar_mc.gotoAndStop("special");
specialFlag = true;
};
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function xEnterThis(_arg1:Event):void{
var _local2:* = (rootObj.tenko_mc.x - 5);
var _local3:* = (rootObj.tenko_mc.x + 5);
var _local4:* = (rootObj.tenko_mc.y + 14);
var _local5:* = (rootObj.tenko_mc.y + 20);
var _local6:Point = new Point(this.x, this.y);
var _local7:Point = rootObj.bars_mc.localToGlobal(_local6);
var _local8:* = (_local7.x - 32);
var _local9:* = (_local7.x + 32);
var _local10:* = (_local7.y - 3);
var _local11:* = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
if (specialFlag == true){
rootObj.tenko_mc.y = (_local7.y - 23);
rootObj.bounds2();
bar_mc.net_mc.gotoAndPlay("bound");
} else {
rootObj.tenko_mc.y = (_local7.y - 23);
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();
};
};
}
}
}//package
Section 27
//bar3aMc (bar3aMc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar3aMc extends MovieClip {
public var pLoc:Point;
public var rootObj:MovieClip;
public var pGlo:Point;
public var moveVector;
public function bar3aMc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
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");
};
}
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 xEnterThis(_arg1:Event):void{
var _local2:* = (rootObj.tenko_mc.x - 5);
var _local3:* = (rootObj.tenko_mc.x + 5);
var _local4:* = (rootObj.tenko_mc.y + 14);
var _local5:* = (rootObj.tenko_mc.y + 20);
var _local6:Point = new Point(this.x, this.y);
var _local7:Point = rootObj.bars_mc.localToGlobal(_local6);
var _local8:* = (_local7.x - 32);
var _local9:* = (_local7.x + 32);
var _local10:* = (_local7.y - 3);
var _local11:* = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
rootObj.tenko_mc.y = (_local7.y - 23);
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();
};
};
}
}
}//package
Section 28
//bar3bMc (bar3bMc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar3bMc extends MovieClip {
public var pLoc:Point;
public var rootObj:MovieClip;
public var pGlo:Point;
public var moveVector;
public function bar3bMc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
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");
};
}
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 xEnterThis(_arg1:Event):void{
var _local2:* = (rootObj.tenko_mc.x - 5);
var _local3:* = (rootObj.tenko_mc.x + 5);
var _local4:* = (rootObj.tenko_mc.y + 14);
var _local5:* = (rootObj.tenko_mc.y + 20);
var _local6:Point = new Point(this.x, this.y);
var _local7:Point = rootObj.bars_mc.localToGlobal(_local6);
var _local8:* = (_local7.x - 32);
var _local9:* = (_local7.x + 32);
var _local10:* = (_local7.y - 3);
var _local11:* = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
rootObj.tenko_mc.y = (_local7.y - 23);
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();
};
};
}
}
}//package
Section 29
//bar3cMc (bar3cMc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar3cMc extends MovieClip {
public var pLoc:Point;
public var rootObj:MovieClip;
public var pGlo:Point;
public var moveVector;
public function bar3cMc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
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");
};
}
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 xEnterThis(_arg1:Event):void{
var _local2:* = (rootObj.tenko_mc.x - 5);
var _local3:* = (rootObj.tenko_mc.x + 5);
var _local4:* = (rootObj.tenko_mc.y + 14);
var _local5:* = (rootObj.tenko_mc.y + 20);
var _local6:Point = new Point(this.x, this.y);
var _local7:Point = rootObj.bars_mc.localToGlobal(_local6);
var _local8:* = (_local7.x - 32);
var _local9:* = (_local7.x + 32);
var _local10:* = (_local7.y - 3);
var _local11:* = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
rootObj.tenko_mc.y = (_local7.y - 23);
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();
};
};
}
}
}//package
Section 30
//bar3Mc (bar3Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar3Mc extends MovieClip {
public var pLoc:Point;
public var rootObj:MovieClip;
public var pGlo:Point;
public var moveVector;
public function bar3Mc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
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");
};
}
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 xEnterThis(_arg1:Event):void{
var _local2:* = (rootObj.tenko_mc.x - 5);
var _local3:* = (rootObj.tenko_mc.x + 5);
var _local4:* = (rootObj.tenko_mc.y + 14);
var _local5:* = (rootObj.tenko_mc.y + 20);
var _local6:Point = new Point(this.x, this.y);
var _local7:Point = rootObj.bars_mc.localToGlobal(_local6);
var _local8:* = (_local7.x - 32);
var _local9:* = (_local7.x + 32);
var _local10:* = (_local7.y - 3);
var _local11:* = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
rootObj.tenko_mc.y = (_local7.y - 23);
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();
};
};
}
}
}//package
Section 31
//bar4Mc (bar4Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar4Mc extends MovieClip {
public var bar_mc:MovieClip;
public var specialFlag;
public var pLoc:Point;
public var rootObj:MovieClip;
public var pGlo:Point;
public function bar4Mc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
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");
};
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
specialFlag = false;
if (Math.floor((Math.random() * rootObj.SPECIAL_CONST)) == 0){
bar_mc.gotoAndStop("special");
specialFlag = true;
};
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function xEnterThis(_arg1:Event):void{
var _local2:* = (rootObj.tenko_mc.x - 5);
var _local3:* = (rootObj.tenko_mc.x + 5);
var _local4:* = (rootObj.tenko_mc.y + 14);
var _local5:* = (rootObj.tenko_mc.y + 20);
var _local6:Point = new Point(this.x, this.y);
var _local7:Point = rootObj.bars_mc.localToGlobal(_local6);
var _local8:* = (_local7.x - 24);
var _local9:* = (_local7.x + 24);
var _local10:* = (_local7.y - 3);
var _local11:* = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
if (specialFlag == true){
rootObj.tenko_mc.y = (_local7.y - 23);
rootObj.bounds2();
bar_mc.net_mc.gotoAndPlay("bound");
} else {
rootObj.tenko_mc.y = (_local7.y - 23);
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();
};
};
}
}
}//package
Section 32
//bar5Mc (bar5Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar5Mc extends MovieClip {
public var bar_mc:MovieClip;
public var specialFlag;
public var pLoc:Point;
public var rootObj:MovieClip;
public var pGlo:Point;
public function bar5Mc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
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");
};
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
specialFlag = false;
if (Math.floor((Math.random() * rootObj.SPECIAL_CONST)) == 0){
bar_mc.gotoAndStop("special");
specialFlag = true;
};
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function xEnterThis(_arg1:Event):void{
var _local2:* = (rootObj.tenko_mc.x - 5);
var _local3:* = (rootObj.tenko_mc.x + 5);
var _local4:* = (rootObj.tenko_mc.y + 14);
var _local5:* = (rootObj.tenko_mc.y + 20);
var _local6:Point = new Point(this.x, this.y);
var _local7:Point = rootObj.bars_mc.localToGlobal(_local6);
var _local8:* = (_local7.x - 24);
var _local9:* = (_local7.x + 24);
var _local10:* = (_local7.y - 3);
var _local11:* = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
if (specialFlag == true){
rootObj.tenko_mc.y = (_local7.y - 23);
rootObj.bounds2();
bar_mc.net_mc.gotoAndPlay("bound");
} else {
rootObj.tenko_mc.y = (_local7.y - 23);
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();
};
};
}
}
}//package
Section 33
//bar6Mc (bar6Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar6Mc extends MovieClip {
public var bar_mc:MovieClip;
public var specialFlag;
public var pLoc:Point;
public var rootObj:MovieClip;
public var pGlo:Point;
public function bar6Mc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
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");
};
}
function frame2(){
stop();
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
specialFlag = false;
if (Math.floor((Math.random() * rootObj.SPECIAL_CONST)) == 0){
bar_mc.gotoAndStop("special");
specialFlag = true;
};
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function xEnterThis(_arg1:Event):void{
var _local2:* = (rootObj.tenko_mc.x - 5);
var _local3:* = (rootObj.tenko_mc.x + 5);
var _local4:* = (rootObj.tenko_mc.y + 14);
var _local5:* = (rootObj.tenko_mc.y + 20);
var _local6:Point = new Point(this.x, this.y);
var _local7:Point = rootObj.bars_mc.localToGlobal(_local6);
var _local8:* = (_local7.x - 16);
var _local9:* = (_local7.x + 16);
var _local10:* = (_local7.y - 3);
var _local11:* = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
if (specialFlag == true){
rootObj.tenko_mc.y = (_local7.y - 23);
rootObj.bounds2();
bar_mc.net_mc.gotoAndPlay("bound");
} else {
rootObj.tenko_mc.y = (_local7.y - 23);
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();
};
};
}
}
}//package
Section 34
//bar7Mc (bar7Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar7Mc extends MovieClip {
public var bar_mc:MovieClip;
public var judgeFlag;
public var specialFlag;
public var pLoc:Point;
public var rootObj:MovieClip;
public var pGlo:Point;
public function bar7Mc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
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");
};
}
function frame2(){
stop();
judgeFlag = true;
rootObj = (this.root as MovieClip);
pLoc = new Point(this.x, this.y);
pGlo = rootObj.bars_mc.localToGlobal(pLoc);
specialFlag = false;
if (Math.floor((Math.random() * rootObj.SPECIAL_CONST)) == 0){
bar_mc.gotoAndStop("special");
specialFlag = true;
};
this.addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function xEnterThis(_arg1:Event):void{
var _local2:* = (rootObj.tenko_mc.x - 5);
var _local3:* = (rootObj.tenko_mc.x + 5);
var _local4:* = (rootObj.tenko_mc.y + 14);
var _local5:* = (rootObj.tenko_mc.y + 20);
var _local6:Point = new Point(this.x, this.y);
var _local7:Point = rootObj.bars_mc.localToGlobal(_local6);
var _local8:* = (_local7.x - 16);
var _local9:* = (_local7.x + 16);
var _local10:* = (_local7.y - 3);
var _local11:* = (_local7.y + 3);
if ((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))){
if (specialFlag == true){
rootObj.tenko_mc.y = (_local7.y - 23);
rootObj.bounds2();
bar_mc.net_mc.gotoAndPlay("bound");
} else {
rootObj.tenko_mc.y = (_local7.y - 23);
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();
};
};
}
}
}//package
Section 35
//bar8Mc (bar8Mc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bar8Mc extends MovieClip {
public var sukima_mc:MovieClip;
public var judgeFlag;
public var pLoc:Point;
public var rootObj:MovieClip;
public var pGlo:Point;
public function bar8Mc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
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");
};
}
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 xEnterThis(_arg1:Event):void{
var _local2:* = (rootObj.tenko_mc.x - 5);
var _local3:* = (rootObj.tenko_mc.x + 5);
var _local4:* = (rootObj.tenko_mc.y + 14);
var _local5:* = (rootObj.tenko_mc.y + 20);
var _local6:Point = new Point(this.x, this.y);
var _local7:Point = rootObj.bars_mc.localToGlobal(_local6);
var _local8:* = (_local7.x - 16);
var _local9:* = (_local7.x + 16);
var _local10:* = (_local7.y - 3);
var _local11:* = (_local7.y + 3);
if ((((((((((((_local2 < _local9)) && ((_local3 > _local8)))) && ((_local4 < _local11)))) && ((_local5 > _local10)))) && ((rootObj.tenkoFallFlag == true)))) && ((judgeFlag == true)))){
rootObj.tenko_mc.y = (_local7.y - 23);
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();
};
};
}
}
}//package
Section 36
//bridgeMc (bridgeMc)
package {
import flash.display.*;
public dynamic class bridgeMc extends MovieClip {
}
}//package
Section 37
//cloud1Mc (cloud1Mc)
package {
import flash.display.*;
public dynamic class cloud1Mc extends MovieClip {
}
}//package
Section 38
//cloud2Mc (cloud2Mc)
package {
import flash.display.*;
public dynamic class cloud2Mc extends MovieClip {
}
}//package
Section 39
//cloud3Mc (cloud3Mc)
package {
import flash.display.*;
public dynamic class cloud3Mc extends MovieClip {
}
}//package
Section 40
//cloud4Mc (cloud4Mc)
package {
import flash.display.*;
public dynamic class cloud4Mc extends MovieClip {
}
}//package
Section 41
//fall01 (fall01)
package {
import flash.media.*;
public dynamic class fall01 extends Sound {
}
}//package
Section 42
//gameBgm (gameBgm)
package {
import flash.media.*;
public dynamic class gameBgm extends Sound {
}
}//package
Section 43
//gameOver10Mc (gameOver10Mc)
package {
import flash.display.*;
public dynamic class gameOver10Mc extends MovieClip {
}
}//package
Section 44
//gameOver1Mc (gameOver1Mc)
package {
import flash.display.*;
public dynamic class gameOver1Mc extends MovieClip {
}
}//package
Section 45
//gameOver2Mc (gameOver2Mc)
package {
import flash.display.*;
public dynamic class gameOver2Mc extends MovieClip {
}
}//package
Section 46
//gameOver3Mc (gameOver3Mc)
package {
import flash.display.*;
public dynamic class gameOver3Mc extends MovieClip {
}
}//package
Section 47
//gameOver4Mc (gameOver4Mc)
package {
import flash.display.*;
public dynamic class gameOver4Mc extends MovieClip {
}
}//package
Section 48
//gameOver5Mc (gameOver5Mc)
package {
import flash.display.*;
public dynamic class gameOver5Mc extends MovieClip {
}
}//package
Section 49
//gameOver6Mc (gameOver6Mc)
package {
import flash.display.*;
public dynamic class gameOver6Mc extends MovieClip {
}
}//package
Section 50
//gameOver7Mc (gameOver7Mc)
package {
import flash.display.*;
public dynamic class gameOver7Mc extends MovieClip {
}
}//package
Section 51
//gameOver8Mc (gameOver8Mc)
package {
import flash.display.*;
public dynamic class gameOver8Mc extends MovieClip {
}
}//package
Section 52
//gameOver9Mc (gameOver9Mc)
package {
import flash.display.*;
public dynamic class gameOver9Mc extends MovieClip {
}
}//package
Section 53
//hakureiMc (hakureiMc)
package {
import flash.display.*;
public dynamic class hakureiMc extends MovieClip {
}
}//package
Section 54
//jump01 (jump01)
package {
import flash.media.*;
public dynamic class jump01 extends Sound {
}
}//package
Section 55
//jump02 (jump02)
package {
import flash.media.*;
public dynamic class jump02 extends Sound {
}
}//package
Section 56
//moonMc (moonMc)
package {
import flash.display.*;
public dynamic class moonMc extends MovieClip {
}
}//package
Section 57
//rankingMc (rankingMc)
package {
import flash.display.*;
public dynamic class rankingMc extends MovieClip {
public var rankingList_mc:MovieClip;
}
}//package
Section 58
//rockMc (rockMc)
package {
import flash.display.*;
public dynamic class rockMc extends MovieClip {
}
}//package
Section 59
//select01 (select01)
package {
import flash.media.*;
public dynamic class select01 extends Sound {
}
}//package
Section 60
//select02 (select02)
package {
import flash.media.*;
public dynamic class select02 extends Sound {
}
}//package
Section 61
//sunMc (sunMc)
package {
import flash.display.*;
public dynamic class sunMc extends MovieClip {
}
}//package
Section 62
//tenkoMc (tenkoMc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class tenkoMc extends MovieClip {
public var vy:Number;
public var tenkoMotion_mc:MovieClip;
public var easing;
public var rootObj:MovieClip;
public function tenkoMc(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
tenkoMotion_mc.cacheAsBitmap = true;
easing = 0.17;
vy = ((this.y - rootObj.moveTarget) * easing);
addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function gameOverTenko():void{
removeEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function xEnterThis(_arg1):void{
if (rootObj.tenkoFallFlag == false){
vy = ((rootObj.moveTarget - this.y) * easing);
if (vy <= -20){
vy = -20;
};
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();
};
}
}
}//package
Section 63
//tenkoRedMc (tenkoRedMc)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class tenkoRedMc extends MovieClip {
public var vy:Number;
public var tenkoMotion_mc:MovieClip;
public var easing;
public var rootObj:MovieClip;
public function tenkoRedMc(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
tenkoMotion_mc.cacheAsBitmap = true;
easing = 0.17;
vy = ((this.y - rootObj.moveTarget) * easing);
addEventListener(Event.ENTER_FRAME, xEnterThis);
}
public function gameOverTenko():void{
removeEventListener(Event.ENTER_FRAME, xEnterThis);
}
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();
};
}
}
}//package
Section 64
//uraJinjaMc (uraJinjaMc)
package {
import flash.display.*;
public dynamic class uraJinjaMc extends MovieClip {
}
}//package
Section 65
//uraYamaMc (uraYamaMc)
package {
import flash.display.*;
public dynamic class uraYamaMc extends MovieClip {
}
}//package