Section 1
//CLOUDS_MC_2 (yamaswi_fla.CLOUDS_MC_2)
package yamaswi_fla {
import flash.display.*;
public dynamic class CLOUDS_MC_2 extends MovieClip {
public function CLOUDS_MC_2(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11);
}
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();
}
function frame11(){
stop();
}
}
}//package yamaswi_fla
Section 2
//FACE_4 (yamaswi_fla.FACE_4)
package yamaswi_fla {
import flash.display.*;
public dynamic class FACE_4 extends MovieClip {
public var face1:MovieClip;
public function FACE_4(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package yamaswi_fla
Section 3
//GAMEOVER_MC_29 (yamaswi_fla.GAMEOVER_MC_29)
package yamaswi_fla {
import flash.display.*;
import flash.text.*;
public dynamic class GAMEOVER_MC_29 extends MovieClip {
public var score_txt:TextField;
public var rankin_mc:MovieClip;
public var newRecord_mc:MovieClip;
}
}//package yamaswi_fla
Section 4
//INFO_MC_18 (yamaswi_fla.INFO_MC_18)
package yamaswi_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INFO_MC_18 extends MovieClip {
public var totalScore_txt:TextField;
public var totalAtama_txt:TextField;
public var totalFinish_txt:TextField;
public var totalMoon_txt:TextField;
}
}//package yamaswi_fla
Section 5
//MainTimeline (yamaswi_fla.MainTimeline)
package yamaswi_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public const PHP_RANKING = "";
public const PHP_FREE = "";
public const PHP_INFO = "";
public var hiRank_txt:TextField;
public var seVolume:int;
public var rotMax:int;
public var scoreName:String;
public var myScore:int;
public var rankingScore_array:Array;
public var g;
public var wood_mc:MovieClip;
public var wireX;
public var wireY;
public var gameOverFlag:Boolean;
public var gameOver_mc:MovieClip;
public var rankingType:int;
public var wireLong:Number;
public var g2;
public var info:LoaderInfo;
public var jumpSpeed:Number;
public var beforeY;
public var keysDown:Array;
public var beforeX;
public var charaFace:int;
public var fx;
public var fy;
public var gra;
public var targetX;
public var targetY;
public var graphicQuality:int;
public var totalFinish:Number;
public var playSeNo:int;
public var objectCount:int;
public var gameOverY:int;
public var freedomScore_array:Array;
public var myFinish:int;
public var bgmTr;
public var zoomPoint:Number;
public var bgmList:Dictionary;
public var atamaCount:int;
public var gra_mc:MovieClip;
public var rightMax:Number;
public var cloud2Flag:Boolean;
public var totalScore:Number;
public var XML_FREE;
public var graVector:int;
public var menuNum_array:Array;
public var sndTr;
public var playBgmNo:int;
public var rot;
public var bgmVolume:int;
public var counter:int;
public var rankingLastScore:int;
public var px;
public var py;
public var seList:Dictionary;
public var hiScore:int;
public var turbo:Number;
public var yama_mc:MovieClip;
public var playCount:int;
public var ranking_mc:MovieClip;
public var optionMenu_mc:MovieClip;
public var sleepTime:int;
public var myAtama:int;
public var so:SharedObject;
public var turboMax:Number;
public var stage_mc:MovieClip;
public var missFlag:Boolean;
public var gameEndFlag:Boolean;
public var flyFlag:Boolean;
public var vectorRight;
public var finishFlag:Boolean;
public var score:int;
public var loadPercent_txt:TextField;
public var face_mc:MovieClip;
public var wallBack_mc:MovieClip;
public var info_mc:MovieClip;
public var wireSpeed;
public var blackMask_mc:MovieClip;
public var GQ_array:Array;
public var wireStart:Boolean;
public var beforeRot_spd;
public var freedomLastScore:int;
public var sleepFlag:Boolean;
public var length;
public var titleMenu_mc:MovieClip;
public var dispNo:int;
public var bgmLoopTime_array:Array;
public var daitaiFree:int;
public var testFlag:Boolean;
public var cursor_mc:MovieClip;
public var rot_spd;
public var hiScore_txt:TextField;
public var score_txt:TextField;
public var flySpeedX:Number;
public var flySpeedY:Number;
public var bgmCh;
public var rotationSpeed:Number;
public var firstCloud2:Boolean;
public var charaMotion:int;
public var rankingXmlLoader:URLLoader;
public var minWallHeight:Number;
public var freeScore:int;
public var shape;
public var sndCh;
public var totalAtama:Number;
public var XML_RANKING;
public var niceStep:int;
public var titleCursor:int;
public var cloudCount:int;
public var daitaiScore:int;
public var rankingPage:int;
public var titleMenu_array:Array;
public var skyEnd:Boolean;
public var XML_INFO;
public var freeFlag:Boolean;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
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);
blackMask_mc.visible = true;
blackMask_mc.addEventListener(Event.ENTER_FRAME, xFadeLoadToTitle);
};
}
public function xKeyDown(_arg1:KeyboardEvent):void{
keysDown[_arg1.keyCode] = true;
}
public function errorHandler(_arg1:IOErrorEvent):void{
}
public function wireStyle():void{
gra.lineStyle(3, 0xCCCCCC, 1, false);
}
public function xCompleteFreedom(_arg1:Event):void{
var _local2:XML;
var _local3:XMLList;
var _local4:Array;
var _local5:Array;
var _local6:*;
_local2 = new XML(rankingXmlLoader.data);
_local3 = _local2.ranking;
_local4 = [];
for each (_local2 in _local3) {
_local4.push({name:_local2.name, score:_local2.score, player:_local2.player});
};
_local4.sortOn(["score"], [(Array.DESCENDING | Array.NUMERIC)]);
_local5 = [];
_local6 = 0;
while ((((freedomScore_array.length < 300)) && ((_local6 < _local4.length)))) {
if (_local5.indexOf(_local4[_local6].name.toString()) == -1){
freedomScore_array.push(_local4[_local6]);
_local5.push(_local4[_local6].name.toString());
if (freeScore < _local4[_local6].score){
daitaiFree = (freedomScore_array.length + 1);
};
};
_local6++;
};
_local4.sortOn(["score"], [(Array.DESCENDING | Array.NUMERIC)]);
_local4 = null;
_local5 = null;
if (freedomScore_array[299] != null){
freedomLastScore = freedomScore_array[299].score;
} else {
freedomLastScore = 0;
};
rankingXmlLoader.removeEventListener(Event.COMPLETE, xCompleteFreedom);
rankingXmlLoader.addEventListener(Event.COMPLETE, xCompleteInfo);
rankingXmlLoader.load(new URLRequest(XML_INFO));
}
public function xClickRankNoSend(_arg1:MouseEvent):void{
gameOver_mc.rankin_mc.send_btn.removeEventListener(MouseEvent.CLICK, xClickRankSend);
gameOver_mc.rankin_mc.noSend_btn.removeEventListener(MouseEvent.CLICK, xClickRankNoSend);
playSe(enter0);
gameOver_mc.rankin_mc.visible = false;
}
public function xWaitGameToRetry(_arg1:Event):void{
if (objectCount == 0){
blackMask_mc.removeEventListener(Event.ENTER_FRAME, xWaitGameToRetry);
gotoAndStop("retry");
};
}
function frame1(){
stop();
testFlag = false;
contextInit();
blackMask_mc.visible = false;
graphicQuality = 2;
GQ_array = ["low", "medium", "high"];
bgmVolume = 2;
seVolume = 2;
bgmList = new Dictionary();
playBgmNo = -1;
bgmTr = new SoundTransform();
bgmCh = new SoundChannel();
bgmTr.volume = (bgmVolume * 0.1);
bgmCh.soundTransform = bgmTr;
bgmLoopTime_array = [];
bgmLoopTime_array[0] = 0;
seList = new Dictionary();
playSeNo = -1;
sndTr = new SoundTransform();
sndCh = new SoundChannel();
sndTr.volume = (seVolume * 0.1);
sndCh.soundTransform = sndTr;
loadSound();
scoreName = "";
hiScore = 0;
playCount = 0;
charaMotion = 0;
charaFace = 0;
myScore = 0;
myAtama = 0;
myFinish = 0;
freeScore = 0;
so = SharedObject.getLocal("yamaswing");
soInit();
info = root.loaderInfo;
stage.addEventListener(Event.ENTER_FRAME, xLoadEnter);
}
function frame3(){
stop();
titleMenu_array = [265, 305, 345, 385, 425];
titleCursor = 0;
dispNo = 0;
rankingPage = 0;
freeFlag = false;
menuNum_array = [3, 3];
rankingType = 0;
if (playCount > 3){
menuNum_array[0] = 4;
titleMenu_mc.freemode_mc.alpha = 1;
};
face_mc.gotoAndStop(("face" + Math.floor((Math.random() * 2))));
ranking_mc.visible = false;
info_mc.visible = false;
optionMenu_mc.visible = false;
updateVolume();
updateGraphic();
updateRanking();
hiScore_txt.text = ((hiScore / 100).toFixed(2) + " m");
if (daitaiScore < 300){
hiRank_txt.text = (("だいたい " + daitaiScore) + " 位くらい");
} else {
hiRank_txt.text = "ランク外";
};
info_mc.totalScore_txt.text = (((commaBack((myScore / 100).toFixed(2)) + " m / ") + commaBack((totalScore / 100).toFixed(2))) + " m");
info_mc.totalAtama_txt.text = (((myAtama + " 回 / ") + totalAtama) + " 回");
info_mc.totalFinish_txt.text = (((myFinish + " 回 / ") + totalFinish) + " 回");
info_mc.totalMoon_txt.text = (("月まであと " + commaBack(((38000000000 - totalScore) / 100000).toFixed(2))) + " km");
if (totalScore > 38000000000){
info_mc.totalMoon_txt.text = (("火星まであと " + commaBack(((8000000000000 - totalScore) / 100000).toFixed(2))) + " km");
};
blackMask_mc.addEventListener(Event.ENTER_FRAME, xFadeInTitle);
}
public function playSeLoop(_arg1){
if ((((playSeNo == -1)) && ((skyEnd == false)))){
playSeNo = _arg1;
sndCh = seList[_arg1].play(1, 1, sndTr);
sndCh.addEventListener(Event.SOUND_COMPLETE, gameSeComplete);
};
}
function frame2(){
stop();
XML_RANKING = "xml418501/ranking.xml";
XML_FREE = "xml418501/freedom.xml";
XML_INFO = "xml418501/info.xml";
if (testFlag == false){
XML_RANKING = ("xml418501/ranking.xml?" + new Date().getTime());
XML_INFO = ("xml418501/info.xml?" + new Date().getTime());
XML_FREE = ("xml418501/freedom.xml?" + new Date().getTime());
};
rankingScore_array = [];
rankingLastScore = 0;
freedomScore_array = [];
freedomLastScore = 0;
daitaiScore = 1;
daitaiFree = 1;
totalScore = 0;
totalAtama = 0;
totalFinish = 0;
rankingXmlLoader = new URLLoader();
rankingXmlLoader.addEventListener(Event.COMPLETE, xCompleteRanking);
rankingXmlLoader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
rankingXmlLoader.load(new URLRequest(XML_RANKING));
}
function frame4(){
stop();
gotoAndStop("game");
}
function frame5(){
stop();
rotMax = 15000;
fx = 250;
fy = 80;
rot = 90;
rot_spd = 4;
beforeRot_spd = 0;
length = 50;
g = 0.6;
g2 = 0.05;
wireSpeed = 20;
jumpSpeed = 1.5;
px = 0;
py = 0;
beforeX = 0;
beforeY = 0;
targetX = 0;
targetY = 0;
wireX = 0;
wireY = 0;
shape = new Shape();
gameOverY = 400;
counter = 0;
vectorRight = true;
rightMax = 400;
turboMax = (length * 1.5);
turbo = 0.5;
flyFlag = false;
cloudCount = 0;
cloud2Flag = false;
firstCloud2 = false;
objectCount = 0;
gameOverFlag = false;
gameEndFlag = false;
score = 0;
wireStart = true;
wireLong = 0.5;
graVector = 0;
minWallHeight = 3000;
zoomPoint = 0;
missFlag = false;
sleepFlag = true;
sleepTime = 0;
flySpeedX = 0;
flySpeedY = 0;
rotationSpeed = 15;
skyEnd = false;
finishFlag = false;
px = fx;
py = (fy + 50);
stage_mc.yamame_mc.x = px;
stage_mc.yamame_mc.y = py;
atamaCount = 0;
niceStep = 0;
keysDown = [];
stage_mc.addChildAt(shape, stage_mc.getChildIndex(stage_mc.yamame_mc));
gra = shape.graphics;
wireStyle();
gra.moveTo(fx, fy);
gra.lineTo(px, py);
if (charaMotion == 3){
charaFace = 4;
} else {
charaFace = 0;
};
stage_mc.yamame_mc.face_mc.gotoAndStop(("face" + charaFace));
stage_mc.yamame_mc.gotoAndStop(("normal" + charaMotion));
gameOver_mc.rankin_mc.rankName_txt.text = scoreName;
gameOver_mc.rankin_mc.visible = false;
gameOver_mc.rankin_mc.rankName_txt.restrict = "^,<>";
gameOver_mc.newRecord_mc.visible = false;
addCloud2();
if (playBgmNo != 0){
playBgmLoop(0);
};
playCount = (playCount + 1);
so.data.playCount = playCount;
blackMask_mc.addEventListener(Event.ENTER_FRAME, xFadeInGame);
gameOver_mc.visible = false;
}
public function xTitleKeyUp(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 90){
playSe(enter0);
if (dispNo == 0){
switch (titleCursor){
case 0:
freeFlag = false;
removeTitleEvent();
blackMask_mc.visible = true;
blackMask_mc.addEventListener(Event.ENTER_FRAME, xFadeTitleToGame);
break;
case 1:
dispNo = 2;
ranking_mc.visible = true;
titleMenu_mc.visible = false;
cursor_mc.visible = false;
break;
case 2:
titleMenu_mc.visible = false;
optionMenu_mc.visible = true;
dispNo = 1;
titleCursor = 0;
cursor_mc.y = titleMenu_array[titleCursor];
break;
case 3:
dispNo = 3;
info_mc.visible = true;
titleMenu_mc.visible = false;
cursor_mc.visible = false;
break;
case 4:
freeFlag = true;
removeTitleEvent();
blackMask_mc.visible = true;
blackMask_mc.addEventListener(Event.ENTER_FRAME, xFadeTitleToGame);
break;
};
} else {
if (dispNo == 1){
switch (titleCursor){
case 0:
bgmVolume++;
if (bgmVolume > 5){
bgmVolume = 0;
};
updateVolume();
break;
case 1:
seVolume++;
if (seVolume > 5){
seVolume = 0;
};
updateVolume();
break;
case 2:
graphicQuality++;
if (graphicQuality > 2){
graphicQuality = 0;
};
updateGraphic();
break;
case 3:
titleMenu_mc.visible = true;
optionMenu_mc.visible = false;
dispNo = 0;
titleCursor = 0;
cursor_mc.y = titleMenu_array[titleCursor];
break;
};
} else {
if (dispNo == 2){
dispNo = 0;
ranking_mc.visible = false;
titleMenu_mc.visible = true;
cursor_mc.visible = true;
} else {
if (dispNo == 3){
dispNo = 0;
info_mc.visible = false;
titleMenu_mc.visible = true;
cursor_mc.visible = true;
};
};
};
};
} else {
if (_arg1.keyCode == Keyboard.UP){
if ((((dispNo == 0)) || ((dispNo == 1)))){
playSe(cursor0);
titleCursor--;
if (titleCursor < 0){
titleCursor = menuNum_array[dispNo];
};
cursor_mc.y = titleMenu_array[titleCursor];
} else {
if (dispNo == 2){
playSe(cursor0);
rankingPage--;
if (rankingPage < 0){
rankingPage = 0;
};
updateRanking();
};
};
} else {
if (_arg1.keyCode == Keyboard.DOWN){
if ((((dispNo == 0)) || ((dispNo == 1)))){
playSe(cursor0);
titleCursor++;
if (titleCursor > menuNum_array[dispNo]){
titleCursor = 0;
};
cursor_mc.y = titleMenu_array[titleCursor];
} else {
if (dispNo == 2){
playSe(cursor0);
rankingPage++;
if (rankingPage > 29){
rankingPage = 29;
};
updateRanking();
};
};
} else {
if ((((_arg1.keyCode == Keyboard.LEFT)) || ((_arg1.keyCode == Keyboard.RIGHT)))){
if (dispNo == 2){
playSe(cursor0);
rankingType++;
if (rankingType > 1){
rankingType = 0;
ranking_mc.rankTitle_txt.text = "ランキング";
hiScore_txt.text = ((hiScore / 100).toFixed(2) + " m");
if (daitaiScore < 300){
hiRank_txt.text = (("だいたい " + daitaiScore) + " 位くらい");
} else {
hiRank_txt.text = "ランク外";
};
} else {
ranking_mc.rankTitle_txt.text = "ふりーだむランキング";
hiScore_txt.text = (commaBack((freeScore / 100).toFixed(2)) + " m");
if (daitaiFree < 300){
hiRank_txt.text = (("だいたい " + daitaiFree) + " 位くらい");
} else {
hiRank_txt.text = "ランク外";
};
};
rankingPage = 0;
updateRanking();
};
};
};
};
};
}
public function xFadeGameToTitle(_arg1:Event):void{
blackMask_mc.alpha = (blackMask_mc.alpha + 0.05);
if (blackMask_mc.alpha >= 1){
gameEndFlag = true;
blackMask_mc.removeEventListener(Event.ENTER_FRAME, xFadeGameToTitle);
blackMask_mc.addEventListener(Event.ENTER_FRAME, xWaitGameToTitle);
};
}
public function addCloud2():void{
var _local1:MovieClip;
if (cloud2Flag == false){
_local1 = new CLOUD2_MC();
_local1.y = (1320 + Math.floor((Math.random() * 50)));
if (firstCloud2 == false){
_local1.x = 400;
firstCloud2 = true;
} else {
_local1.x = 650;
};
wallBack_mc.addChild(_local1);
cloud2Flag = true;
objectCount++;
};
}
public function playSe(_arg1){
seList[_arg1].play(0, 1, sndTr);
}
public function xFadeGameToRetry(_arg1:Event):void{
blackMask_mc.alpha = (blackMask_mc.alpha + 0.05);
if (blackMask_mc.alpha >= 1){
gameEndFlag = true;
blackMask_mc.removeEventListener(Event.ENTER_FRAME, xFadeGameToRetry);
blackMask_mc.addEventListener(Event.ENTER_FRAME, xWaitGameToRetry);
};
}
public function xFadeLoadToTitle(_arg1:Event):void{
blackMask_mc.alpha = (blackMask_mc.alpha + 0.05);
if (blackMask_mc.alpha >= 1){
blackMask_mc.removeEventListener(Event.ENTER_FRAME, xFadeLoadToTitle);
gotoAndStop("loadRanking");
};
}
public function xCompleteRanking(_arg1:Event):void{
var _local2:XML;
var _local3:XMLList;
var _local4:Array;
var _local5:Array;
var _local6:*;
_local2 = new XML(rankingXmlLoader.data);
_local3 = _local2.ranking;
_local4 = [];
for each (_local2 in _local3) {
_local4.push({name:_local2.name, score:_local2.score, player:_local2.player});
};
_local4.sortOn(["score"], [(Array.DESCENDING | Array.NUMERIC)]);
_local5 = [];
_local6 = 0;
while ((((rankingScore_array.length < 300)) && ((_local6 < _local4.length)))) {
if (_local5.indexOf(_local4[_local6].name.toString()) == -1){
rankingScore_array.push(_local4[_local6]);
_local5.push(_local4[_local6].name.toString());
if (hiScore < _local4[_local6].score){
daitaiScore = (rankingScore_array.length + 1);
};
};
_local6++;
};
_local4.sortOn(["score"], [(Array.DESCENDING | Array.NUMERIC)]);
_local4 = null;
_local5 = null;
if (rankingScore_array[299] != null){
rankingLastScore = rankingScore_array[299].score;
} else {
rankingLastScore = 0;
};
rankingXmlLoader.removeEventListener(Event.COMPLETE, xCompleteRanking);
rankingXmlLoader.addEventListener(Event.COMPLETE, xCompleteFreedom);
rankingXmlLoader.load(new URLRequest(XML_FREE));
}
public function playBgm(_arg1){
playBgmNo = _arg1;
bgmCh = bgmList[_arg1].play(1, 1, bgmTr);
}
public function updateVolume():void{
optionMenu_mc.bgmVolume_txt.text = bgmVolume.toString();
optionMenu_mc.seVolume_txt.text = seVolume.toString();
bgmTr.volume = (bgmVolume * 0.1);
bgmCh.soundTransform = bgmTr;
sndTr.volume = (seVolume * 0.2);
sndCh.soundTransform = sndTr;
so.data.bgmVolume = bgmVolume;
so.data.seVolume = seVolume;
}
public function registInfo(_arg1:int, _arg2:int, _arg3:int):void{
var url:URLRequest;
var variables:URLVariables;
var loader:URLLoader;
var atamaInt = _arg1;
var scoreInt = _arg2;
var finishInt = _arg3;
url = new URLRequest(PHP_INFO);
variables = new URLVariables();
variables.atama = atamaInt;
variables.kyori = scoreInt;
variables.finish = finishInt;
url.data = variables.toString();
url.method = URLRequestMethod.POST;
loader = new URLLoader();
try {
loader.load(url);
} catch(e:Error) {
};
url = null;
loader = null;
}
public function commaBack(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local3 = "";
_local4 = ((_arg1)<0) ? "-" : "";
_local5 = "";
_arg1 = Math.abs(_arg1);
if ((_arg1 % 1)){
_local5 = (_arg1 + "");
_local5 = (_arg1 + "").substr(_local5.indexOf("."));
};
_arg1 = (Math.floor(_arg1) + "");
while ((_local2 = _arg1.length) > 3) {
_local3 = (("," + _arg1.substr((_local2 - 3), 3)) + _local3);
_arg1 = _arg1.substr(0, (_local2 - 3));
};
return ((((_local4 + _arg1) + _local3) + _local5));
}
public function stopBgm(){
bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
bgmCh.stop();
playBgmNo = -1;
}
public function soInit():void{
if (so.size == 0){
so.data.scoreName = "";
so.data.hiScore = 0;
so.data.bgmVolume = 2;
so.data.seVolume = 2;
so.data.graphicQuality = 2;
so.data.playCount = 0;
so.data.charaMotion = 0;
so.data.myScore = 0;
so.data.myAtama = 0;
so.data.myFinish = 0;
so.data.freeScore = 0;
} else {
if (so.data.scoreName != null){
scoreName = so.data.scoreName;
};
if (so.data.hiScore != null){
hiScore = so.data.hiScore;
};
if (so.data.bgmVolume != null){
bgmVolume = so.data.bgmVolume;
};
if (so.data.seVolume != null){
seVolume = so.data.seVolume;
};
if (so.data.graphicQuality != null){
graphicQuality = so.data.graphicQuality;
};
if (so.data.playCount != null){
playCount = so.data.playCount;
};
if (so.data.charaMotion != null){
charaMotion = so.data.charaMotion;
};
if (so.data.myScore != null){
myScore = so.data.myScore;
};
if (so.data.myAtama != null){
myAtama = so.data.myAtama;
};
if (so.data.myFinish != null){
myFinish = so.data.myFinish;
};
if (so.data.freeScore != null){
freeScore = so.data.freeScore;
} else {
so.data.freeScore = 0;
};
};
}
public function scoreCheck():void{
var _local1:int;
gameOver_mc.score_txt.text = ((score / 100).toFixed(2) + " m");
_local1 = 0;
if ((((stage_mc.yamame_mc.rotation < 45)) && ((stage_mc.yamame_mc.rotation > -45)))){
atamaCount = 1;
playSe(don3);
} else {
if ((((stage_mc.yamame_mc.rotation > 175)) || ((stage_mc.yamame_mc.rotation < -175)))){
playSe(finish5);
finishFlag = true;
stage_mc.yamame_mc.y = (gameOverY - 12);
stage_mc.yamame_mc.rotation = 180;
stage_mc.yamame_mc.face_mc.gotoAndStop(("face" + 5));
stage_mc.yamame_mc.gotoAndPlay("finish");
_local1 = 1;
} else {
playSe(don3);
};
};
myScore = (myScore + Math.abs(score));
so.data.myScore = myScore;
myAtama = (myAtama + atamaCount);
so.data.myAtama = myAtama;
myFinish = (myFinish + _local1);
so.data.myFinish = myFinish;
registInfo(atamaCount, Math.abs(score), _local1);
if ((((score > hiScore)) && ((freeFlag == false)))){
hiScore = score;
so.data.hiScore = hiScore;
gameOver_mc.newRecord_mc.visible = true;
if (score > rankingLastScore){
stage.focus = gameOver_mc.rankin_mc.rankName_txt;
gameOver_mc.rankin_mc.visible = true;
gameOver_mc.rankin_mc.send_btn.addEventListener(MouseEvent.CLICK, xClickRankSend);
gameOver_mc.rankin_mc.noSend_btn.addEventListener(MouseEvent.CLICK, xClickRankNoSend);
} else {
gameOver_mc.rankin_mc.visible = false;
};
} else {
if ((((score > freeScore)) && ((freeFlag == true)))){
freeScore = score;
so.data.freeScore = freeScore;
gameOver_mc.newRecord_mc.visible = true;
if (score > freedomLastScore){
stage.focus = gameOver_mc.rankin_mc.rankName_txt;
gameOver_mc.rankin_mc.visible = true;
gameOver_mc.rankin_mc.send_btn.addEventListener(MouseEvent.CLICK, xClickRankSend);
gameOver_mc.rankin_mc.noSend_btn.addEventListener(MouseEvent.CLICK, xClickRankNoSend);
} else {
gameOver_mc.rankin_mc.visible = false;
};
};
};
}
public function removeGameEvent():void{
removeEventListener(Event.ENTER_FRAME, xEnterMain);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, xKeyDown);
stage.removeEventListener(KeyboardEvent.KEY_UP, xKeyUp);
}
public function playBgmLoop(_arg1){
playBgmNo = _arg1;
bgmCh = bgmList[_arg1].play(1, 1, bgmTr);
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
}
public function xFadeTitleToGame(_arg1:Event):void{
blackMask_mc.alpha = (blackMask_mc.alpha + 0.05);
if (blackMask_mc.alpha >= 1){
blackMask_mc.removeEventListener(Event.ENTER_FRAME, xFadeTitleToGame);
gotoAndStop("game");
};
}
public function gameRetry():void{
playSe(enter0);
removeGameEvent();
blackMask_mc.visible = true;
blackMask_mc.addEventListener(Event.ENTER_FRAME, xFadeGameToRetry);
}
public function registHiscore(_arg1:String, _arg2:int):void{
var url:URLRequest;
var playerNo:int;
var variables:URLVariables;
var loader:URLLoader;
var nameStr = _arg1;
var scoreInt = _arg2;
url = new URLRequest(PHP_RANKING);
if (freeFlag == true){
url = new URLRequest(PHP_FREE);
};
playerNo = 0;
if (finishFlag == true){
playerNo = 1;
};
variables = new URLVariables();
variables.name = nameStr;
variables.score = scoreInt;
variables.player = playerNo;
url.data = variables.toString();
url.method = URLRequestMethod.POST;
loader = new URLLoader();
try {
loader.load(url);
} catch(e:Error) {
};
url = null;
loader = null;
}
public function updateGraphic():void{
if (graphicQuality == 0){
optionMenu_mc.graphic_txt.text = "低";
} else {
if (graphicQuality == 1){
optionMenu_mc.graphic_txt.text = "中";
} else {
if (graphicQuality == 2){
optionMenu_mc.graphic_txt.text = "高";
};
};
};
stage.quality = GQ_array[graphicQuality];
so.data.graphicQuality = graphicQuality;
}
public function xClickRankSend(_arg1:MouseEvent):void{
gameOver_mc.rankin_mc.send_btn.removeEventListener(MouseEvent.CLICK, xClickRankSend);
gameOver_mc.rankin_mc.noSend_btn.removeEventListener(MouseEvent.CLICK, xClickRankNoSend);
playSe(enter0);
if (gameOver_mc.rankin_mc.rankName_txt.length != 0){
registHiscore(gameOver_mc.rankin_mc.rankName_txt.text, score);
scoreName = gameOver_mc.rankin_mc.rankName_txt.text;
so.data.scoreName = scoreName;
gameOver_mc.rankin_mc.visible = false;
};
}
public function stopSe(){
sndCh.removeEventListener(Event.SOUND_COMPLETE, gameSeComplete);
sndCh.stop();
playSeNo = -1;
}
public function xCompleteInfo(_arg1:Event):void{
var _local2:XML;
_local2 = new XML(rankingXmlLoader.data);
totalScore = _local2.kyori;
totalAtama = _local2.atama;
totalFinish = _local2.finish;
rankingXmlLoader.removeEventListener(Event.COMPLETE, xCompleteInfo);
rankingXmlLoader.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler);
gotoAndStop("title");
}
public function addGameEvent():void{
addEventListener(Event.ENTER_FRAME, xEnterMain);
stage.addEventListener(KeyboardEvent.KEY_DOWN, xKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, xKeyUp);
}
public function xFadeInTitle(_arg1:Event):void{
blackMask_mc.alpha = (blackMask_mc.alpha - 0.05);
if (blackMask_mc.alpha < 0){
blackMask_mc.alpha = 0;
blackMask_mc.visible = false;
blackMask_mc.removeEventListener(Event.ENTER_FRAME, xFadeInTitle);
addTitleEvent();
};
}
public function addTitleEvent():void{
stage.addEventListener(KeyboardEvent.KEY_UP, xTitleKeyUp);
}
public function gotoTitle():void{
playSe(enter0);
removeGameEvent();
blackMask_mc.visible = true;
blackMask_mc.addEventListener(Event.ENTER_FRAME, xFadeGameToTitle);
}
public function removeTitleEvent():void{
stage.removeEventListener(KeyboardEvent.KEY_UP, xTitleKeyUp);
}
public function gameBgmComplete(_arg1:Event):void{
bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
bgmCh = null;
bgmCh = bgmList[playBgmNo].play(bgmLoopTime_array[playBgmNo], 1, bgmTr);
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
}
public function xFadeInGame(_arg1:Event):void{
blackMask_mc.alpha = (blackMask_mc.alpha - 0.05);
if (blackMask_mc.alpha < 0){
blackMask_mc.alpha = 0;
blackMask_mc.visible = false;
blackMask_mc.removeEventListener(Event.ENTER_FRAME, xFadeInGame);
addGameEvent();
};
}
public function xEnterMain(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:Number;
counter++;
addCloud2();
if (gameOverFlag == false){
if (wireStart == true){
py = (py + wireLong);
wireLong = (wireLong * 1.08);
stage_mc.yamame_mc.y = py;
gra.clear();
wireStyle();
gra.moveTo(fx, fy);
gra.lineTo(px, py);
if (py > (gameOverY - 20)){
gameOverFlag = true;
atamaCount = 1;
scoreCheck();
gameOver_mc.visible = true;
stage_mc.yamame_mc.y = 410;
};
if ((((keysDown[90] == true)) && ((gameOverFlag == false)))){
keysDown[90] = false;
wireStart = false;
length = (py - fy);
turboMax = 270;
};
} else {
if (flyFlag == false){
if (keysDown[90] == true){
flyStart();
};
beforeX = stage_mc.yamame_mc.x;
beforeY = stage_mc.yamame_mc.y;
beforeRot_spd = rot_spd;
_local2 = ((rot * Math.PI) / 180);
px = (fx + (Math.cos(_local2) * length));
py = (fy + (Math.sin(_local2) * length));
_local3 = (px - fx);
_local4 = (py - fy);
_local5 = (-((_local4 * g)) / ((_local3 * _local3) + (_local4 * _local4)));
_local6 = (px + (_local5 * _local3));
_local7 = ((py + g) + (_local5 * _local4));
_local8 = ((Math.atan2((_local7 - fy), (_local6 - fx)) * 180) / Math.PI);
_local9 = (_local8 - rot);
_local9 = (_local9 - (Math.floor((_local9 / 360)) * 360));
if (_local9 < -180){
_local9 = (_local9 + 360);
};
if (_local9 > 180){
_local9 = (_local9 - 360);
};
rot_spd = (rot_spd + _local9);
rot = (rot + rot_spd);
_local2 = ((rot * Math.PI) / 180);
px = (fx + (Math.cos(_local2) * length));
py = (fy + (Math.sin(_local2) * length));
stage_mc.yamame_mc.x = px;
stage_mc.yamame_mc.y = py;
gra.clear();
wireStyle();
gra.moveTo(fx, fy);
gra.lineTo(px, py);
stage_mc.yamame_mc.rotation = (rot - 90);
if (fx < px){
if (vectorRight == false){
vectorRight = true;
rightMax = 0;
if (sleepFlag == false){
playSe(swing1);
};
if ((((fy > py)) && ((freeFlag == false)))){
px = 0;
beforeX = 0;
py = 2;
beforeY = 0;
missFlag = true;
flyStart();
};
};
} else {
if (fx > px){
if (vectorRight == true){
vectorRight = false;
if ((((fy > py)) && ((freeFlag == false)))){
px = 0;
beforeX = 0;
py = 2;
beforeY = 0;
missFlag = true;
flyStart();
};
if (rightMax < turboMax){
sleepFlag = true;
turbo = 0.5;
} else {
playSe(swing1);
sleepFlag = false;
sleepTime = 0;
};
};
};
};
if (rightMax < px){
rightMax = px;
};
if ((counter % 60) == 0){
};
if (keysDown[Keyboard.LEFT] == true){
if (rot_spd >= 0){
rot_spd = (rot_spd + turbo);
turbo = 0;
rightMax = turboMax;
if (Math.abs(rot_spd) < rotMax){
rot_spd = (rot_spd * 1.003);
};
} else {
rot_spd = (rot_spd * 0.99);
};
if (graVector != -1){
stage_mc.yamame_mc.gotoAndPlay(("left" + charaMotion));
graVector = -1;
};
} else {
if (keysDown[Keyboard.RIGHT] == true){
if (rot_spd > 0){
rot_spd = (rot_spd * 0.99);
} else {
rot_spd = (rot_spd - turbo);
turbo = 0;
rightMax = turboMax;
if (Math.abs(rot_spd) < rotMax){
rot_spd = (rot_spd * 1.003);
};
};
if (graVector != 1){
stage_mc.yamame_mc.gotoAndPlay(("right" + charaMotion));
graVector = 1;
};
} else {
rot_spd = (rot_spd * 0.995);
if (graVector != 0){
stage_mc.yamame_mc.gotoAndStop(("normal" + charaMotion));
graVector = 0;
};
};
};
if (sleepFlag == true){
sleepTime++;
if (sleepTime == 600){
stage_mc.yamame_mc.face_mc.gotoAndStop("face2");
};
};
} else {
gra.clear();
flySpeedY = (flySpeedY + g2);
stage_mc.yamame_mc.x = (stage_mc.yamame_mc.x + (flySpeedX * jumpSpeed));
stage_mc.yamame_mc.y = (stage_mc.yamame_mc.y + (flySpeedY * jumpSpeed));
if ((stage_mc.yamame_mc.x > (-(stage_mc.x) + 250))){
if (flySpeedX > 0){
stage_mc.x = (stage_mc.x - ((flySpeedX * jumpSpeed) * 2));
yama_mc.x = (yama_mc.x - (flySpeedX * 0.1));
wood_mc.x = (wood_mc.x - (flySpeedX * 0.2));
};
if (yama_mc.x <= -698){
yama_mc.x = (yama_mc.x + 698);
};
if (wood_mc.x <= -673){
wood_mc.x = (wood_mc.x + 673);
};
if (stage_mc.yamame_mc.x < (-(stage_mc.x) + 250)){
stage_mc.x = (-(stage_mc.yamame_mc.x) + 250);
};
};
if (flySpeedX > 0){
if (stage_mc.yamame_mc.y < 50){
stage_mc.y = (-(stage_mc.yamame_mc.y) + 50);
} else {
if (stage_mc.yamame_mc.y > 50){
if (stage_mc.y < 0){
stage_mc.y++;
} else {
if (stage_mc.y > 0){
stage_mc.y = 0;
};
};
};
};
};
if (keysDown[Keyboard.LEFT] == true){
rotationSpeed = (rotationSpeed + 0.1);
if (rotationSpeed >= 15){
rotationSpeed = 15;
};
} else {
if (keysDown[Keyboard.RIGHT] == true){
rotationSpeed = (rotationSpeed - 0.1);
if (rotationSpeed <= -15){
rotationSpeed = -15;
};
};
};
stage_mc.yamame_mc.rotation = (stage_mc.yamame_mc.rotation - rotationSpeed);
score = (stage_mc.yamame_mc.x - 250);
_local10 = (score / 100);
score_txt.text = (_local10.toFixed(2) + " m");
if (stage_mc.localToGlobal(new Point(stage_mc.wall2_mc.x, 1)).x <= -1568){
stage_mc.wall2_mc.x = (stage_mc.wall2_mc.x + 784);
};
wallBack_mc.y = ((stage_mc.y * 0.15) - 1320);
yama_mc.y = ((stage_mc.y * 0.2) + 150);
wood_mc.y = ((stage_mc.y * 0.9) + 180);
addObject();
if ((((stage_mc.yamame_mc.y > gameOverY)) && ((gameOverFlag == false)))){
stage_mc.yamame_mc.y = gameOverY;
stage_mc.y = 0;
atamaCount = 0;
scoreCheck();
gameOverFlag = true;
gameOver_mc.visible = true;
};
};
};
};
}
public function updateRanking():void{
var _local1:*;
_local1 = 0;
if (rankingType == 0){
_local1 = 0;
while (_local1 < 10) {
ranking_mc[(("list" + _local1) + "_mc")].rank_txt.text = ((((rankingPage * 10) + _local1) + 1) + "位 :");
if (rankingScore_array[((rankingPage * 10) + _local1)] != null){
ranking_mc[(("list" + _local1) + "_mc")].name_txt.text = rankingScore_array[((rankingPage * 10) + _local1)].name;
ranking_mc[(("list" + _local1) + "_mc")].score_txt.text = ((rankingScore_array[((rankingPage * 10) + _local1)].score / 100).toFixed(2) + " m");
if (rankingScore_array[((rankingPage * 10) + _local1)].player == 1){
ranking_mc[(("list" + _local1) + "_mc")].heart_mc.visible = true;
} else {
ranking_mc[(("list" + _local1) + "_mc")].heart_mc.visible = false;
};
} else {
ranking_mc[(("list" + _local1) + "_mc")].name_txt.text = "-";
ranking_mc[(("list" + _local1) + "_mc")].score_txt.text = "-";
ranking_mc[(("list" + _local1) + "_mc")].heart_mc.visible = false;
};
_local1++;
};
} else {
_local1 = 0;
while (_local1 < 10) {
ranking_mc[(("list" + _local1) + "_mc")].rank_txt.text = ((((rankingPage * 10) + _local1) + 1) + "位 :");
if (freedomScore_array[((rankingPage * 10) + _local1)] != null){
ranking_mc[(("list" + _local1) + "_mc")].name_txt.text = freedomScore_array[((rankingPage * 10) + _local1)].name;
ranking_mc[(("list" + _local1) + "_mc")].score_txt.text = (commaBack((freedomScore_array[((rankingPage * 10) + _local1)].score / 100).toFixed(2)) + " m");
if (freedomScore_array[((rankingPage * 10) + _local1)].player == 1){
ranking_mc[(("list" + _local1) + "_mc")].heart_mc.visible = true;
} else {
ranking_mc[(("list" + _local1) + "_mc")].heart_mc.visible = false;
};
} else {
ranking_mc[(("list" + _local1) + "_mc")].name_txt.text = "-";
ranking_mc[(("list" + _local1) + "_mc")].score_txt.text = "-";
ranking_mc[(("list" + _local1) + "_mc")].heart_mc.visible = false;
};
_local1++;
};
};
}
public function gameSeComplete(_arg1:Event):void{
sndCh.removeEventListener(Event.SOUND_COMPLETE, gameSeComplete);
playSeNo = -1;
if (stage_mc.y > 2000){
skyEnd = true;
playSeNo = 2;
sndCh = seList[playSeNo].play(50, 1, sndTr);
sndCh.addEventListener(Event.SOUND_COMPLETE, gameSeComplete);
};
}
public function addObject():void{
var _local1:MovieClip;
var _local2:int;
var _local3:int;
cloudCount++;
if (cloudCount > 50){
if (stage_mc.y >= 1000){
_local1 = new CLOUD_MC();
_local2 = 0;
if (flySpeedY < 0){
_local2 = -300;
} else {
_local2 = 100;
};
_local3 = 0;
if (stage_mc.y > 10000){
if (Math.floor((Math.random() * 50)) == 0){
_local3 = 10;
} else {
_local3 = (Math.floor((Math.random() * 3)) + 7);
};
} else {
if (stage_mc.y > 5500){
_local3 = (Math.floor((Math.random() * 2)) + 7);
} else {
if (stage_mc.y > 4200){
_local3 = (Math.floor((Math.random() * 3)) + 4);
} else {
_local3 = Math.floor((Math.random() * 3));
};
};
};
_local1.ojbect_mc.gotoAndStop(("cloud" + _local3));
_local1.x = (stage_mc.yamame_mc.x + (flySpeedX * 30));
_local1.y = ((stage_mc.yamame_mc.y + (flySpeedY * 30)) + (-300 + Math.floor((Math.random() * 600))));
stage_mc.addChild(_local1);
if ((((((stage_mc.localToGlobal(new Point(_local1.x, _local1.y)).x <= 640)) && ((stage_mc.localToGlobal(new Point(_local1.x, _local1.y)).y >= -200)))) && ((stage_mc.localToGlobal(new Point(_local1.x, _local1.y)).y <= 480)))){
_local1.x = (stage_mc.yamame_mc.x + 400);
};
objectCount++;
if (stage_mc.y > 10000){
cloudCount = -1200;
} else {
if (stage_mc.y > 6000){
cloudCount = 0;
} else {
if (stage_mc.y > 5500){
cloudCount = 0;
} else {
if (stage_mc.y > 4200){
cloudCount = 0;
} else {
if (stage_mc.y > 3900){
cloudCount = 40;
} else {
if (stage_mc.y > 3600){
cloudCount = 37;
} else {
if (stage_mc.y > 3300){
cloudCount = 34;
} else {
if (stage_mc.y > 3000){
cloudCount = 31;
} else {
if (stage_mc.y > 2700){
cloudCount = 28;
} else {
if (stage_mc.y > 2400){
cloudCount = 25;
} else {
if (stage_mc.y > 2100){
cloudCount = 22;
} else {
if (stage_mc.y > 1800){
cloudCount = 0;
} else {
cloudCount = 0;
};
};
};
};
};
};
};
};
};
};
};
};
playSeLoop(2);
} else {
if ((((stage_mc.y >= 1000)) && ((stage_mc.y <= 6000)))){
} else {
cloudCount = 0;
};
};
};
}
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 flyStart():void{
flyFlag = true;
gra.clear();
stage_mc.yamame_mc.face_mc.gotoAndStop("face1");
stage_mc.yamame_mc.gotoAndStop(("normal" + charaMotion));
if (missFlag == true){
stage_mc.yamame_mc.face_mc.gotoAndStop(("face" + 3));
playSe(miss0);
stage_mc.yamame_mc.x = 250;
} else {
playSe(swing1);
};
flySpeedX = (px - beforeX);
flySpeedY = (py - beforeY);
}
public function xKeyUp(_arg1:KeyboardEvent):void{
var _local2:String;
var _local3:String;
var _local4:URLRequest;
keysDown[_arg1.keyCode] = false;
if (_arg1.keyCode == Keyboard.UP){
if (finishFlag == false){
playSe(change0);
charaMotion++;
if (charaMotion > 3){
charaMotion = 0;
};
if ((((charaMotion == 3)) && ((flyFlag == false)))){
charaFace = 4;
stage_mc.yamame_mc.face_mc.gotoAndStop(("face" + charaFace));
} else {
if (flyFlag == false){
charaFace = 0;
stage_mc.yamame_mc.face_mc.gotoAndStop(("face" + charaFace));
};
};
stage_mc.yamame_mc.gotoAndStop(("normal" + charaMotion));
};
} else {
if (_arg1.keyCode == Keyboard.DOWN){
if (finishFlag == false){
playSe(change0);
charaMotion--;
if (charaMotion < 0){
charaMotion = 3;
};
if ((((charaMotion == 3)) && ((flyFlag == false)))){
charaFace = 4;
stage_mc.yamame_mc.face_mc.gotoAndStop(("face" + charaFace));
} else {
if (flyFlag == false){
charaFace = 0;
stage_mc.yamame_mc.face_mc.gotoAndStop(("face" + charaFace));
};
};
stage_mc.yamame_mc.gotoAndStop(("normal" + charaMotion));
};
};
};
if (gameOver_mc.rankin_mc.visible == false){
if ((((_arg1.keyCode == 90)) && ((gameOverFlag == true)))){
gameRetry();
} else {
if ((((_arg1.keyCode == Keyboard.SPACE)) && ((gameOverFlag == true)))){
gotoTitle();
} else {
if ((((_arg1.keyCode == Keyboard.SHIFT)) && ((gameOverFlag == true)))){
_local2 = escapeMultiByte((("ヤマメを" + commaBack((score / 100).toFixed(2))) + "m ぶっ飛ばしました。 http://bit.ly/gWl62M #yamame_swing"));
_local3 = ("http://twitter.com/intent/tweet?text=+" + _local2);
_local4 = new URLRequest(_local3);
navigateToURL(_local4, "_blank");
};
};
};
};
}
public function loadSound():void{
bgmList[0] = new BGM();
seList[cursor0] = new cursor0();
seList[enter0] = new enter0();
seList[swing0] = new swing0();
seList[swing1] = new swing1();
seList[swing2] = new swing2();
seList[swing3] = new swing3();
seList[don0] = new don0();
seList[don1] = new don1();
seList[don2] = new don2();
seList[don3] = new don3();
seList[2] = new sky0();
seList[miss0] = new miss0();
seList[change0] = new change0();
seList[finish0] = new finish0();
seList[finish1] = new finish1();
seList[finish2] = new finish2();
seList[finish3] = new finish3();
seList[finish4] = new finish4();
seList[finish5] = new finish5();
}
public function xWaitGameToTitle(_arg1:Event):void{
if (objectCount == 0){
blackMask_mc.removeEventListener(Event.ENTER_FRAME, xWaitGameToTitle);
stopBgm();
gotoAndStop("loadRanking");
};
}
}
}//package yamaswi_fla
Section 6
//RANKIN_MC_31 (yamaswi_fla.RANKIN_MC_31)
package yamaswi_fla {
import flash.display.*;
import flash.text.*;
public dynamic class RANKIN_MC_31 extends MovieClip {
public var noSend_btn:SimpleButton;
public var rankName_txt:TextField;
public var send_btn:SimpleButton;
}
}//package yamaswi_fla
Section 7
//RANKING_LIST_16 (yamaswi_fla.RANKING_LIST_16)
package yamaswi_fla {
import flash.display.*;
import flash.text.*;
public dynamic class RANKING_LIST_16 extends MovieClip {
public var heart_mc:MovieClip;
public var score_txt:TextField;
public var name_txt:TextField;
public var rank_txt:TextField;
}
}//package yamaswi_fla
Section 8
//RANKING_MC_15 (yamaswi_fla.RANKING_MC_15)
package yamaswi_fla {
import flash.display.*;
import flash.text.*;
public dynamic class RANKING_MC_15 extends MovieClip {
public var list9_mc:MovieClip;
public var list1_mc:MovieClip;
public var list4_mc:MovieClip;
public var list7_mc:MovieClip;
public var rankTitle_txt:TextField;
public var list2_mc:MovieClip;
public var list8_mc:MovieClip;
public var list5_mc:MovieClip;
public var list0_mc:MovieClip;
public var list3_mc:MovieClip;
public var list6_mc:MovieClip;
}
}//package yamaswi_fla
Section 9
//STAGE_MC_22 (yamaswi_fla.STAGE_MC_22)
package yamaswi_fla {
import flash.display.*;
public dynamic class STAGE_MC_22 extends MovieClip {
public var yamame_mc:MovieClip;
public var wall2_mc:MovieClip;
}
}//package yamaswi_fla
Section 10
//Timeline_3 (yamaswi_fla.Timeline_3)
package yamaswi_fla {
import flash.display.*;
public dynamic class Timeline_3 extends MovieClip {
public function Timeline_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package yamaswi_fla
Section 11
//TITLE_MENU_12 (yamaswi_fla.TITLE_MENU_12)
package yamaswi_fla {
import flash.display.*;
public dynamic class TITLE_MENU_12 extends MovieClip {
public var freemode_mc:MovieClip;
}
}//package yamaswi_fla
Section 12
//TITLE_OPTION_14 (yamaswi_fla.TITLE_OPTION_14)
package yamaswi_fla {
import flash.display.*;
import flash.text.*;
public dynamic class TITLE_OPTION_14 extends MovieClip {
public var graphic_txt:TextField;
public var bgmVolume_txt:TextField;
public var seVolume_txt:TextField;
}
}//package yamaswi_fla
Section 13
//YAMAME_MC_23 (yamaswi_fla.YAMAME_MC_23)
package yamaswi_fla {
import flash.display.*;
public dynamic class YAMAME_MC_23 extends MovieClip {
public var gra_mc:MovieClip;
public var face_mc:MovieClip;
public function YAMAME_MC_23(){
addFrameScript(0, frame1, 5, frame6, 10, frame11, 12, frame13, 17, frame18, 22, frame23, 24, frame25, 29, frame30, 34, frame35, 36, frame37, 41, frame42, 46, frame47, 66, frame67);
}
function frame18(){
stop();
}
function frame6(){
stop();
}
function frame1(){
stop();
}
function frame13(){
stop();
}
function frame23(){
stop();
}
function frame25(){
stop();
}
function frame30(){
stop();
}
function frame37(){
stop();
}
function frame11(){
stop();
}
function frame35(){
stop();
}
function frame47(){
stop();
}
function frame42(){
stop();
}
function frame67(){
stop();
}
}
}//package yamaswi_fla
Section 14
//BGM (BGM)
package {
import flash.media.*;
public dynamic class BGM extends Sound {
}
}//package
Section 15
//change0 (change0)
package {
import flash.media.*;
public dynamic class change0 extends Sound {
}
}//package
Section 16
//CLOUD_MC (CLOUD_MC)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class CLOUD_MC extends MovieClip {
public var ojbect_mc:MovieClip;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function CLOUD_MC(){
addFrameScript(0, frame1);
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterObject);
rootObj.objectCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
addEventListener(Event.ENTER_FRAME, xEnterObject);
}
public function xEnterObject(_arg1:Event):void{
this.x = (this.x + -1);
if (this.x < -350){
deleteFlag = true;
};
if (rootObj.gameEndFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
}
}//package
Section 17
//CLOUD2_MC (CLOUD2_MC)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class CLOUD2_MC extends MovieClip {
public var ojbect_mc:MovieClip;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function CLOUD2_MC(){
addFrameScript(0, frame1);
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterObject);
rootObj.objectCount--;
rootObj.cloud2Flag = false;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
ojbect_mc.gotoAndStop("cloud3");
addEventListener(Event.ENTER_FRAME, xEnterObject);
}
public function xEnterObject(_arg1:Event):void{
var _local2:Number;
_local2 = ((rootObj.px - rootObj.beforeX) * 0.05);
if (_local2 < 0){
_local2 = 0.1;
};
if ((((rootObj.flyFlag == true)) && ((rootObj.gameOverFlag == false)))){
this.x = (this.x + -(_local2));
} else {
this.x = (this.x + -0.1);
};
if (this.x < -350){
deleteFlag = true;
};
if (rootObj.gameEndFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
}
}//package
Section 18
//cursor0 (cursor0)
package {
import flash.media.*;
public dynamic class cursor0 extends Sound {
}
}//package
Section 19
//don0 (don0)
package {
import flash.media.*;
public dynamic class don0 extends Sound {
}
}//package
Section 20
//don1 (don1)
package {
import flash.media.*;
public dynamic class don1 extends Sound {
}
}//package
Section 21
//don2 (don2)
package {
import flash.media.*;
public dynamic class don2 extends Sound {
}
}//package
Section 22
//don3 (don3)
package {
import flash.media.*;
public dynamic class don3 extends Sound {
}
}//package
Section 23
//enter0 (enter0)
package {
import flash.media.*;
public dynamic class enter0 extends Sound {
}
}//package
Section 24
//finish0 (finish0)
package {
import flash.media.*;
public dynamic class finish0 extends Sound {
}
}//package
Section 25
//finish1 (finish1)
package {
import flash.media.*;
public dynamic class finish1 extends Sound {
}
}//package
Section 26
//finish2 (finish2)
package {
import flash.media.*;
public dynamic class finish2 extends Sound {
}
}//package
Section 27
//finish3 (finish3)
package {
import flash.media.*;
public dynamic class finish3 extends Sound {
}
}//package
Section 28
//finish4 (finish4)
package {
import flash.media.*;
public dynamic class finish4 extends Sound {
}
}//package
Section 29
//finish5 (finish5)
package {
import flash.media.*;
public dynamic class finish5 extends Sound {
}
}//package
Section 30
//miss0 (miss0)
package {
import flash.media.*;
public dynamic class miss0 extends Sound {
}
}//package
Section 31
//sky0 (sky0)
package {
import flash.media.*;
public dynamic class sky0 extends Sound {
}
}//package
Section 32
//swing0 (swing0)
package {
import flash.media.*;
public dynamic class swing0 extends Sound {
}
}//package
Section 33
//swing1 (swing1)
package {
import flash.media.*;
public dynamic class swing1 extends Sound {
}
}//package
Section 34
//swing2 (swing2)
package {
import flash.media.*;
public dynamic class swing2 extends Sound {
}
}//package
Section 35
//swing3 (swing3)
package {
import flash.media.*;
public dynamic class swing3 extends Sound {
}
}//package