Section 1
//GAMEOVER_CHARA_MC_147 (jumpGallop_fla.GAMEOVER_CHARA_MC_147)
package jumpGallop_fla {
import flash.display.*;
public dynamic class GAMEOVER_CHARA_MC_147 extends MovieClip {
public function GAMEOVER_CHARA_MC_147(){
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 jumpGallop_fla
Section 2
//HISCORES_MC_131 (jumpGallop_fla.HISCORES_MC_131)
package jumpGallop_fla {
import flash.display.*;
import flash.text.*;
public dynamic class HISCORES_MC_131 extends MovieClip {
public var hiscoreName_txt:TextField;
public var hiscore_txt:TextField;
public var hidistance_txt:TextField;
public var hidistanceName_txt:TextField;
}
}//package jumpGallop_fla
Section 3
//MainTimeline (jumpGallop_fla.MainTimeline)
package jumpGallop_fla {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public const PHP_RANKING = "php196872/ranking.php";
public const PHP_RANKINGEX = "php196872/rankingex.php";
public var rankingLastDistance:int;
public var seasonNo:int;
public var loader:URLLoader;
public var hiDistance:int;
public var playNo:int;
public var optionCursor:int;
public var myBestScore_mc:MovieClip;
public var scoreRegistFlag:Boolean;
public var scoreName:String;
public var blackFilter:GlowFilter;
public var greenFilter:GlowFilter;
public var rankingScore_array:Array;
public var stage0_3_mc:MovieClip;
public var scoreType0_txt:TextField;
public var aroundNo:int;
public var season_mc:MovieClip;
public var rankingLastDistanceEx:int;
public var gameOverFlag:Boolean;
public var info:LoaderInfo;
public var keysDown:Array;
public var scoreDispType:int;
public var manual0_mc:MovieClip;
public var fr;
public var beforePower:int;
public var graphicQuality:int;
public var XML_RANKINGEX;
public var aroundPlus:int;
public var fps;
public var yellowFilter:GlowFilter;
public var manual1_mc:MovieClip;
public var time_count;
public var dayColor_array:Array;
public var titleMessage_mc:MovieClip;
public var overPlayer_mc:MovieClip;
public var bomFlag:Boolean;
public var bgmTr;
public var viewMask_mc:MovieClip;
public var timeNo:int;
public var seasonStart_array:Array;
public var loadMessage_txt:TextField;
public var pointP_mc:MovieClip;
public var stage6StepFlag:Boolean;
public var scrollSpeed:Number;
public var rankingLastScoreEx:int;
public var manual2_mc:MovieClip;
public var alphaSpeed:Number;
public var stepPoint_mc:MovieClip;
public var point0_mc:MovieClip;
public var bgmList:Dictionary;
public var stepCount:int;
public var stage_txt:TextField;
public var ready_mc:MovieClip;
public var nowStage:int;
public var masks_mc:MovieClip;
public var playBgmNo:int;
public var nameInput_mc:MovieClip;
public var manual3_mc:MovieClip;
public var sndTr;
public var keyCount:int;
public var point1_mc:MovieClip;
public var season_array:Array;
public var time_txt:TextField;
public var bgmVolume:int;
public var rankingLastScore:int;
public var seList:Dictionary;
public var hiScore:int;
public var fps_txt:TextField;
public var loadReisen_mc:MovieClip;
public var redFilter_mc:MovieClip;
public var scoreLineFlag:Boolean;
public var playCount:int;
public var ranking_mc:MovieClip;
public var optionMenu_mc:MovieClip;
public var rankin_mc:MovieClip;
public var myBestDistance_mc:MovieClip;
public var nameChange_mc:MovieClip;
public var point2_mc:MovieClip;
public var loadWaitCount:int;
public var so:SharedObject;
public var time_array:Array;
public var titleBg0_mc:MovieClip;
public var titleStep_mc:MovieClip;
public var hiScores_mc:MovieClip;
public var clearScreen_mc:MovieClip;
public var exStatus:int;
public var selectIcon_mc:MovieClip;
public var score:Number;
public var rate_array:Array;
public var stageBack_array:Array;
public var titleBg1_mc:MovieClip;
public var hiScoreEx:int;
public var loadPercent_txt:TextField;
public var point3_mc:MovieClip;
public var kyori:Number;
public var run_txt:TextField;
public var GQ_array:Array;
public var blackMask_mc:MovieClip;
public var plusSpeed:Number;
public var time;
public var scoreLine_mc:MovieClip;
public var rankingGenre:int;
public var charaNo:int;
public var dropFlag:Boolean;
public var titleMenu_mc:MovieClip;
public var titleBg2_mc:MovieClip;
public var bgmLoopTime_array:Array;
public var season_txt:TextField;
public var mitsume_mc:MovieClip;
public var titleLogo_mc:MovieClip;
public var rankingDistanceEx_array:Array;
public var stage0_0_mc:MovieClip;
public var old_timer;
public var score_txt:TextField;
public var nightColor_array:Array;
public var opFps;
public var bgmCh;
public var viewNo:int;
public var effectPoint_mc:MovieClip;
public var dead_mc:MovieClip;
public var titleBg3_mc:MovieClip;
public var dispPage:int;
public var rankingDistance_array:Array;
public var powers_mc:MovieClip;
public var fadeInterval:Number;
public var hiDistanceEx:int;
public var redFilter:GlowFilter;
public var manualPage:int;
public var rankingXmlLoader:URLLoader;
public var titleCursorY_array:Array;
public var overChara_mc:MovieClip;
public var stage0_1_mc:MovieClip;
public var titleTei_mc:MovieClip;
public var slowCount:int;
public var loadTei_mc:MovieClip;
public var dayColorStep_array:Array;
public var readyFlag:Boolean;
public var nightColorStep_array:Array;
public var boost:Number;
public var sndCh;
public var powerMax_mc:MovieClip;
public var player_mc:MovieClip;
public var stepInterval:int;
public var XML_RANKING;
public var frameCounter:Number;
public var bgCount:int;
public var titleCursor:int;
public var stepTimer:Number;
public var rankingPage:int;
public var rankingScoreEx_array:Array;
public var stage0_2_mc:MovieClip;
public var scoreType1_txt:TextField;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
public function gameOverFontInit():void{
score_txt.embedFonts = true;
run_txt.embedFonts = true;
}
public function xEnterFadeGameToGameOver(_arg1:Event):void{
dead_mc.visible = true;
dead_mc.y = (dead_mc.y - 20);
if (dead_mc.y <= -150){
dead_mc.y = -150;
removeEventListener(Event.ENTER_FRAME, xEnterFadeGameToGameOver);
gameOverFlag = true;
addEventListener(Event.ENTER_FRAME, xEnterWaitObjDelete);
};
}
public function xEnterFadeToGame(_arg1:Event):void{
blackMask_mc.alpha = (blackMask_mc.alpha - 0.1);
if (blackMask_mc.alpha <= 0){
blackMask_mc.alpha = 0;
blackMask_mc.visible = false;
removeEventListener(Event.ENTER_FRAME, xEnterFadeToGame);
addEventListener(Event.ENTER_FRAME, xEnterMain);
stage.addEventListener(KeyboardEvent.KEY_DOWN, xKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, xKeyUp);
};
}
public function xKeyDown(_arg1:KeyboardEvent):void{
keysDown[_arg1.keyCode] = true;
}
public function initFontTitle():void{
optionMenu_mc.volume_txt.embedFonts = true;
optionMenu_mc.graphic_txt.embedFonts = true;
hiScores_mc.hiscore_txt.embedFonts = true;
hiScores_mc.hidistance_txt.embedFonts = true;
ranking_mc.genre_txt.embedFonts = true;
}
public function xEnterTitleToGame(_arg1:Event):void{
if (titleTei_mc.x >= 500){
blackMask_mc.visible = true;
blackMask_mc.alpha = (blackMask_mc.alpha + 0.1);
if (blackMask_mc.alpha >= 1){
removeEventListener(Event.ENTER_FRAME, xEnterTitleToGame);
season_mc.particleEnd();
gotoAndStop("game");
};
} else {
titleTei_mc.x = (titleTei_mc.x + 4);
titleLogo_mc.alpha = (titleLogo_mc.alpha - 0.1);
titleMessage_mc.alpha = (titleMessage_mc.alpha - 0.1);
titleMenu_mc.alpha = (titleMenu_mc.alpha - 0.1);
selectIcon_mc.alpha = (selectIcon_mc.alpha - 0.1);
};
}
public function errorHandler(_arg1:IOErrorEvent):void{
}
public function settingTitleBg():void{
if (timeNo == 1){
titleBg0_mc.transform.colorTransform = new ColorTransform(1, 1, 1, 1, dayColor_array[0], dayColor_array[1], dayColor_array[2], dayColor_array[3]);
titleBg1_mc.transform.colorTransform = new ColorTransform(1, 1, 1, 1, dayColor_array[0], dayColor_array[1], dayColor_array[2], dayColor_array[3]);
titleBg2_mc.transform.colorTransform = new ColorTransform(1, 1, 1, 1, dayColor_array[0], dayColor_array[1], dayColor_array[2], dayColor_array[3]);
titleBg3_mc.transform.colorTransform = new ColorTransform(1, 1, 1, 1, dayColor_array[0], dayColor_array[1], dayColor_array[2], dayColor_array[3]);
titleStep_mc.transform.colorTransform = new ColorTransform(1, 1, 1, 1, dayColorStep_array[0], dayColorStep_array[1], dayColorStep_array[2], dayColorStep_array[3]);
} else {
if (timeNo == 2){
titleBg0_mc.transform.colorTransform = new ColorTransform(1, 1, 1, 1, nightColor_array[0], nightColor_array[1], nightColor_array[2], nightColor_array[3]);
titleBg1_mc.transform.colorTransform = new ColorTransform(1, 1, 1, 1, nightColor_array[0], nightColor_array[1], nightColor_array[2], nightColor_array[3]);
titleBg2_mc.transform.colorTransform = new ColorTransform(1, 1, 1, 1, nightColor_array[0], nightColor_array[1], nightColor_array[2], nightColor_array[3]);
titleBg3_mc.transform.colorTransform = new ColorTransform(1, 1, 1, 1, nightColor_array[0], nightColor_array[1], nightColor_array[2], nightColor_array[3]);
titleStep_mc.transform.colorTransform = new ColorTransform(1, 1, 1, 1, nightColorStep_array[0], nightColorStep_array[1], nightColorStep_array[2], nightColorStep_array[3]);
};
};
}
function frame6(){
stop();
dead_mc.y = 270;
dead_mc.visible = false;
powerMax_mc.visible = false;
if (viewNo == 0){
viewMask_mc.visible = false;
} else {
viewMask_mc.alpha = (viewNo * 0.1);
viewMask_mc.visible = true;
};
if (scoreLineFlag == true){
scoreLine_mc.visible = true;
} else {
scoreLine_mc.visible = false;
};
if (scoreDispType == 0){
scoreType0_txt.text = "スコア";
scoreType1_txt.text = "Pts.";
} else {
scoreType0_txt.text = "現在地点";
scoreType1_txt.text = "Km";
};
stepTimer = 0;
frameCounter = 0;
keysDown = [];
boost = 400;
score = 0;
kyori = 0;
plusSpeed = 0;
alphaSpeed = 0;
stepInterval = 30;
scrollSpeed = 1;
nowStage = 0;
aroundNo = 0;
aroundPlus = stageBack_array[8].endPoint;
dropFlag = false;
bomFlag = false;
gameOverFlag = false;
stepCount = 0;
bgCount = 0;
beforePower = 5;
readyFlag = true;
stage6StepFlag = false;
opFps = 60;
fr = opFps;
time = 1000;
time_count = 0;
old_timer = getTimer();
fps = ((fr + "/") + fr);
slowCount = 0;
if (charaNo == 0){
if (Math.floor((Math.random() * 0x0400)) == 0){
player_mc = new PLAYER2_MC();
} else {
player_mc = new PLAYER_MC();
};
} else {
if (charaNo == 1){
if (Math.floor((Math.random() * 0x0400)) == 0){
player_mc = new PLAYER4_MC();
} else {
player_mc = new PLAYER3_MC();
};
boost = 0;
masks_mc["mask0_mc"].height = 0;
masks_mc["mask1_mc"].height = 0;
masks_mc["mask2_mc"].height = 0;
masks_mc["mask3_mc"].height = 0;
masks_mc["mask4_mc"].height = 0;
};
};
player_mc.x = 75;
player_mc.y = 215;
addChildAt(player_mc, getChildIndex(pointP_mc));
stage0_0_mc = new STAGE0_0_MC();
addChildAt(stage0_0_mc, getChildIndex(point0_mc));
stage0_1_mc = new STAGE0_1_MC();
addChildAt(stage0_1_mc, getChildIndex(point1_mc));
stage0_2_mc = new STAGE0_2_MC();
addChildAt(stage0_2_mc, getChildIndex(point2_mc));
stage0_3_mc = new STAGE0_3_MC();
addChildAt(stage0_3_mc, getChildIndex(point3_mc));
bgCount = (bgCount + 4);
nextParticleAdd();
addStartStep();
playNo = 0;
if (timeNo == 2){
playNo = 1;
};
if (playBgmNo == -1){
playBgmLoop(playNo);
};
addEventListener(Event.ENTER_FRAME, xEnterFadeToGame);
}
function frame7(){
stop();
myBestDistance_mc.visible = false;
myBestScore_mc.visible = false;
rankin_mc.visible = false;
gameOverFontInit();
frameCounter = Math.floor(frameCounter);
run_txt.text = (frameCounter + " Km");
score_txt.text = (score + " Pts");
overPlayer_mc.gotoAndStop(("no" + charaNo));
overChara_mc.gotoAndStop(("no" + nowStage));
if ((((charaNo == 1)) && ((nowStage == 8)))){
overChara_mc.gotoAndStop("no9");
};
if ((((nowStage == 7)) && ((frameCounter > ((stageBack_array[6].endPoint + 3000) + (aroundNo * aroundPlus)))))){
overChara_mc.gotoAndStop("no7b");
};
if (aroundNo > 0){
overPlayer_mc.gotoAndStop("clear");
overChara_mc.visible = false;
exStatus = 1;
so.data.exStatus = 1;
};
playCount = (playCount + 1);
so.data.playCount = (so.data.playCount + 1);
if (playCount >= 100){
exStatus = 1;
so.data.exStatus = 1;
};
scoreRegistFlag = false;
if (charaNo == 0){
if (hiDistance < frameCounter){
myBestDistance_mc.visible = true;
hiDistance = frameCounter;
so.data.hiDistance = hiDistance;
scoreRegistFlag = true;
};
if (hiScore < score){
myBestScore_mc.visible = true;
hiScore = score;
so.data.hiScore = hiScore;
scoreRegistFlag = true;
};
if ((((scoreRegistFlag == true)) && ((((rankingLastScore < score)) || ((rankingLastDistance < frameCounter)))))){
if (slowCount <= 100){
registHiscore(scoreName, int(score), int(frameCounter));
rankin_mc.visible = true;
};
};
} else {
if (hiDistanceEx < frameCounter){
myBestDistance_mc.visible = true;
hiDistanceEx = frameCounter;
so.data.hiDistanceEx = hiDistanceEx;
scoreRegistFlag = true;
};
if (hiScoreEx < score){
myBestScore_mc.visible = true;
hiScoreEx = score;
so.data.hiScoreEx = hiScoreEx;
scoreRegistFlag = true;
};
if ((((scoreRegistFlag == true)) && ((((rankingLastScoreEx < score)) || ((rankingLastDistanceEx < frameCounter)))))){
if (slowCount <= 100){
registHiscoreEx(scoreName, int(score), int(frameCounter));
rankin_mc.visible = true;
};
};
};
addEventListener(Event.ENTER_FRAME, xEnterFadeToGameOver);
}
function frame1(){
stop();
contextInit();
stageBack_array = [];
loadWaitCount = 0;
fadeInterval = 0.1;
stageBack_array[0] = {endPoint:1200, name:"迷いの竹林"};
stageBack_array[1] = {endPoint:2400, name:"太陽の畑"};
stageBack_array[2] = {endPoint:3600, name:"霧の湖"};
stageBack_array[3] = {endPoint:4800, name:"魔法の森"};
stageBack_array[4] = {endPoint:6000, name:"妖怪の山上空"};
stageBack_array[5] = {endPoint:7200, name:"白玉楼階段"};
stageBack_array[6] = {endPoint:8400, name:"有頂天"};
stageBack_array[7] = {endPoint:14800, name:"宇宙"};
stageBack_array[8] = {endPoint:16000, name:"????"};
GQ_array = ["low", "medium", "high"];
season_array = ["spring", "summer", "fall", "winter"];
seasonStart_array = [2, 2, 2, 0];
time_array = ["morning", "evening", "night"];
nightColor_array = [-80, -80, -80, 0.5];
nightColorStep_array = [-50, -50, -50, 0.5];
dayColor_array = [50, -50, -100, 0.5];
dayColorStep_array = [30, -30, -60, 0.5];
rate_array = [];
rate_array[0] = [1, 2, 4, 8];
rate_array[1] = [1, 3, 9, 27];
scoreName = "";
hiScore = 0;
hiDistance = 0;
hiScoreEx = 0;
hiDistanceEx = 0;
bgmVolume = 2;
graphicQuality = 2;
scoreLineFlag = false;
exStatus = 0;
playCount = 0;
so = SharedObject.getLocal("udonGallop");
soInit();
bgmList = new Dictionary();
playBgmNo = -1;
bgmTr = new SoundTransform();
bgmCh = new SoundChannel();
bgmTr.volume = (bgmVolume * 0.1);
bgmCh.soundTransform = bgmTr;
bgmLoopTime_array = [];
bgmLoopTime_array[0] = 1620;
bgmLoopTime_array[1] = 0x1900;
seList = new Dictionary();
sndTr = new SoundTransform();
sndCh = new SoundChannel();
sndTr.volume = (bgmVolume * 0.1);
sndCh.soundTransform = sndTr;
yellowFilter = new GlowFilter();
yellowFilter.blurX = 4;
yellowFilter.blurY = 4;
yellowFilter.color = 0x999900;
redFilter = new GlowFilter();
redFilter.blurX = 4;
redFilter.blurY = 4;
redFilter.color = 0x990000;
greenFilter = new GlowFilter();
greenFilter.blurX = 4;
greenFilter.blurY = 4;
greenFilter.color = 0x9900;
blackFilter = new GlowFilter();
blackFilter.blurX = 4;
blackFilter.blurY = 4;
blackFilter.color = 0;
loader = new URLLoader();
info = root.loaderInfo;
stage.addEventListener(Event.ENTER_FRAME, xLoadEnter);
}
function frame2(){
stop();
}
function frame3(){
stop();
XML_RANKING = ("xml813876/ranking.xml?" + new Date().getTime());
XML_RANKINGEX = ("xml813876/rankingex.xml?" + new Date().getTime());
rankingLastScore = 0;
rankingLastDistance = 0;
rankingLastScoreEx = 0;
rankingLastDistanceEx = 0;
rankingScore_array = [];
rankingDistance_array = [];
rankingScoreEx_array = [];
rankingDistanceEx_array = [];
loadSound();
rankingXmlLoader = new URLLoader();
rankingXmlLoader.addEventListener(Event.COMPLETE, xCompleteRanking);
rankingXmlLoader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
rankingXmlLoader.load(new URLRequest(XML_RANKING));
}
function frame5(){
stop();
nameChange_mc.nameInput_txt.restrict = "^,<>";
initFontTitle();
optionMenu_mc.visible = false;
ranking_mc.visible = false;
manual0_mc.visible = false;
manual1_mc.visible = false;
manual2_mc.visible = false;
manual3_mc.visible = false;
updateVolume();
updateGraphic();
nameChange_mc.visible = false;
loadReisen_mc.x = 45;
loadReisen_mc.y = 125;
dispPage = 0;
titleCursor = 0;
optionCursor = 0;
manualPage = 0;
titleCursorY_array = [154, 176, 198, 220, 242];
rankingPage = 0;
rankingGenre = 0;
titleTei_mc.gotoAndPlay("jump");
keyCount = 0;
seasonNo = 0;
timeNo = 0;
charaNo = 0;
viewNo = 0;
scoreDispType = 0;
settingSeason();
if (exStatus == 1){
titleMenu_mc.exStart_mc.visible = true;
} else {
titleMenu_mc.exStart_mc.visible = false;
};
updateHiScore(0);
addEventListener(Event.ENTER_FRAME, xEnterFadeToTitle);
}
function frame4(){
stop();
nameInput_mc.nameInput_txt.restrict = "^,<>";
addEventListener(Event.ENTER_FRAME, xEnterFadeToNameInput);
}
public function xEnterFadeLoadToRanking(_arg1:Event):void{
blackMask_mc.alpha = (blackMask_mc.alpha + fadeInterval);
if (blackMask_mc.alpha >= 1){
blackMask_mc.alpha = 1;
removeEventListener(Event.ENTER_FRAME, xEnterFadeLoadToRanking);
gotoAndStop("loadRanking");
};
}
public function xEnterFadeToGameOver(_arg1:Event):void{
dead_mc.y = (dead_mc.y - 20);
if (dead_mc.y <= -600){
dead_mc.y = -600;
removeEventListener(Event.ENTER_FRAME, xEnterFadeToGameOver);
stage.addEventListener(KeyboardEvent.KEY_DOWN, xGameOverKeyDown);
};
}
public function playSe(_arg1){
seList[_arg1].play(0, 1, sndTr);
}
public function xCompleteRankingEx(_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, distance:_local2.distance});
};
_local4.sortOn(["score", "distance"], [(Array.DESCENDING | Array.NUMERIC), (Array.DESCENDING | Array.NUMERIC)]);
_local5 = [];
_local6 = 0;
while ((((rankingScoreEx_array.length < 300)) && ((_local6 < _local4.length)))) {
if (_local5.indexOf(_local4[_local6].name.toString()) == -1){
rankingScoreEx_array.push(_local4[_local6]);
_local5.push(_local4[_local6].name.toString());
};
_local6++;
};
_local4.sortOn(["distance", "score"], [(Array.DESCENDING | Array.NUMERIC), (Array.DESCENDING | Array.NUMERIC)]);
_local5 = [];
_local6 = 0;
while ((((rankingDistanceEx_array.length < 300)) && ((_local6 < _local4.length)))) {
if (_local5.indexOf(_local4[_local6].name.toString()) == -1){
rankingDistanceEx_array.push(_local4[_local6]);
_local5.push(_local4[_local6].name.toString());
};
_local6++;
};
_local4 = null;
_local5 = null;
if (rankingScoreEx_array[299] != null){
rankingLastScoreEx = rankingScoreEx_array[299].score;
} else {
rankingLastScoreEx = 0;
};
if (rankingDistanceEx_array[299] != null){
rankingLastDistanceEx = rankingDistanceEx_array[299].distance;
} else {
rankingLastDistanceEx = 0;
};
rankingXmlLoader.removeEventListener(Event.COMPLETE, xCompleteRankingEx);
rankingXmlLoader.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler);
rankingXmlLoader = null;
if (scoreName == ""){
gotoAndStop("nameInput");
} else {
gotoAndStop("title");
};
}
public function xEnterLoadWait(_arg1:Event):void{
loadWaitCount++;
if (loadWaitCount >= 30){
loadPercent_txt.text = "";
loadMessage_txt.text = " Load Complete !";
loadTei_mc.x = (loadTei_mc.x + 4);
};
if (loadTei_mc.x >= 500){
removeEventListener(Event.ENTER_FRAME, xEnterLoadWait);
addEventListener(Event.ENTER_FRAME, xEnterFadeLoadToRanking);
};
}
public function updateHiScore(_arg1:int):void{
if (_arg1 == 0){
hiScores_mc.hiscoreName_txt.text = "ハイスコア";
hiScores_mc.hidistanceName_txt.text = "最高到達距離";
hiScores_mc.hiscore_txt.text = (hiScore + " Pts");
hiScores_mc.hidistance_txt.text = (hiDistance + " Km");
} else {
hiScores_mc.hiscoreName_txt.text = "EXハイスコア";
hiScores_mc.hidistanceName_txt.text = "EX最高到達距離";
hiScores_mc.hiscore_txt.text = (hiScoreEx + " Pts");
hiScores_mc.hidistance_txt.text = (hiDistanceEx + " Km");
};
}
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, distance:_local2.distance});
};
_local4.sortOn(["score", "distance"], [(Array.DESCENDING | Array.NUMERIC), (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());
};
_local6++;
};
_local4.sortOn(["distance", "score"], [(Array.DESCENDING | Array.NUMERIC), (Array.DESCENDING | Array.NUMERIC)]);
_local5 = [];
_local6 = 0;
while ((((rankingDistance_array.length < 300)) && ((_local6 < _local4.length)))) {
if (_local5.indexOf(_local4[_local6].name.toString()) == -1){
rankingDistance_array.push(_local4[_local6]);
_local5.push(_local4[_local6].name.toString());
};
_local6++;
};
_local4 = null;
_local5 = null;
if (rankingScore_array[299] != null){
rankingLastScore = rankingScore_array[299].score;
} else {
rankingLastScore = 0;
};
if (rankingDistance_array[299] != null){
rankingLastDistance = rankingDistance_array[299].distance;
} else {
rankingLastDistance = 0;
};
rankingXmlLoader.removeEventListener(Event.COMPLETE, xCompleteRanking);
rankingXmlLoader.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler);
rankingXmlLoader.addEventListener(Event.COMPLETE, xCompleteRankingEx);
rankingXmlLoader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
rankingXmlLoader.load(new URLRequest(XML_RANKINGEX));
}
public function playBgm(_arg1){
playBgmNo = _arg1;
bgmCh = bgmList[_arg1].play(1, 1, bgmTr);
}
public function xEnterFadeToTitle(_arg1:Event):void{
blackMask_mc.alpha = (blackMask_mc.alpha - fadeInterval);
if (blackMask_mc.alpha <= 0){
blackMask_mc.alpha = 0;
blackMask_mc.visible = false;
removeEventListener(Event.ENTER_FRAME, xEnterFadeToTitle);
stage.addEventListener(KeyboardEvent.KEY_DOWN, xTitleKeyDown);
};
}
public function updateVolume():void{
if (bgmVolume == 0){
optionMenu_mc.volume_txt.text = "ミュート";
} else {
if (bgmVolume == 1){
optionMenu_mc.volume_txt.text = "☆";
} else {
if (bgmVolume == 2){
optionMenu_mc.volume_txt.text = "☆☆";
} else {
if (bgmVolume == 3){
optionMenu_mc.volume_txt.text = "☆☆☆";
} else {
if (bgmVolume == 4){
optionMenu_mc.volume_txt.text = "☆☆☆☆";
} else {
if (bgmVolume == 5){
optionMenu_mc.volume_txt.text = "☆☆☆☆☆";
};
};
};
};
};
};
bgmTr.volume = (bgmVolume * 0.1);
bgmCh.soundTransform = bgmTr;
sndTr.volume = (bgmVolume * 0.1);
sndCh.soundTransform = sndTr;
so.data.bgmVolume = bgmVolume;
}
public function xGameOverKeyDown(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 90){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, xGameOverKeyDown);
addEventListener(Event.ENTER_FRAME, xEnterGameOverToGame);
} else {
if (_arg1.keyCode == Keyboard.SPACE){
stopBgm();
stage.removeEventListener(KeyboardEvent.KEY_DOWN, xGameOverKeyDown);
addEventListener(Event.ENTER_FRAME, xEnterGameOverToRanking);
};
};
}
public function settingSeason():void{
var _local1:Date;
_local1 = new Date();
if ((((((_local1.month == 2)) || ((_local1.month == 3)))) || ((_local1.month == 4)))){
seasonNo = 0;
} else {
if ((((((_local1.month == 5)) || ((_local1.month == 6)))) || ((_local1.month == 7)))){
seasonNo = 1;
} else {
if ((((((_local1.month == 8)) || ((_local1.month == 9)))) || ((_local1.month == 10)))){
seasonNo = 2;
} else {
seasonNo = 3;
};
};
};
if ((((_local1.hours >= 7)) && ((_local1.hours <= 16)))){
timeNo = 0;
} else {
if ((((_local1.hours >= 19)) || ((_local1.hours <= 3)))){
timeNo = 2;
} else {
timeNo = 1;
};
};
settingTitleBg();
}
public function keyDownRanking(_arg1:KeyboardEvent):void{
var _local2:Array;
_local2 = [1, 3];
if (_arg1.keyCode == Keyboard.UP){
rankingPage = (rankingPage - 1);
if (rankingPage < 0){
rankingPage = 0;
};
updateRanking();
playSe(cursor0);
} else {
if (_arg1.keyCode == Keyboard.DOWN){
rankingPage = (rankingPage + 1);
if (rankingPage > 29){
rankingPage = 29;
};
updateRanking();
playSe(cursor0);
} else {
if (_arg1.keyCode == Keyboard.LEFT){
rankingGenre--;
if (rankingGenre < 0){
rankingGenre = _local2[exStatus];
};
rankingPage = 0;
updateRanking();
playSe(paper);
} else {
if (_arg1.keyCode == Keyboard.RIGHT){
rankingGenre++;
if (rankingGenre > _local2[exStatus]){
rankingGenre = 0;
};
rankingPage = 0;
updateRanking();
playSe(paper);
} else {
if (_arg1.keyCode == 90){
ranking_mc.visible = false;
titleMenu_mc.visible = true;
titleLogo_mc.visible = true;
titleMessage_mc.visible = true;
selectIcon_mc.visible = true;
mitsume_mc.visible = true;
dispPage = 0;
playSe(enter0);
};
};
};
};
};
}
public function stopBgm(){
bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
bgmCh.stop();
playBgmNo = -1;
}
public function xClickNameChangeOk(_arg1:Event):void{
if (nameChange_mc.nameInput_txt.text != ""){
nameChange_mc.ok_btn.removeEventListener(MouseEvent.CLICK, xClickNameChangeOk);
scoreName = nameChange_mc.nameInput_txt.text;
so.data.scoreName = scoreName;
dispPage = 2;
selectIcon_mc.visible = true;
optionMenu_mc.visible = true;
titleLogo_mc.visible = true;
titleMessage_mc.visible = true;
hiScores_mc.visible = true;
nameChange_mc.visible = false;
mitsume_mc.visible = true;
//unresolved jump
};
playSe(enter0);
}
public function soInit():void{
if (so.size == 0){
so.data.scoreName = "";
so.data.hiScore = 0;
so.data.hiDistance = 0;
so.data.hiScoreEx = 0;
so.data.hiDistanceEx = 0;
so.data.bgmVolume = 2;
so.data.graphicQuality = 2;
so.data.exStatus = 0;
so.data.playCount = 0;
} else {
if (so.data.scoreName != null){
scoreName = so.data.scoreName;
};
if (so.data.hiScore != null){
hiScore = so.data.hiScore;
};
if (so.data.hiDistance != null){
hiDistance = so.data.hiDistance;
};
if (so.data.hiScoreEx != null){
hiScoreEx = so.data.hiScoreEx;
};
if (so.data.hiDistanceEx != null){
hiDistanceEx = so.data.hiDistanceEx;
};
if (so.data.bgmVolume != null){
bgmVolume = so.data.bgmVolume;
};
if (so.data.graphicQuality != null){
graphicQuality = so.data.graphicQuality;
};
if (so.data.exStatus != null){
exStatus = so.data.exStatus;
};
if (so.data.playCount != null){
playCount = so.data.playCount;
};
};
}
public function scoreCheck():void{
var _local1:int;
var _local2:Number;
_local1 = 1;
_local2 = 1;
if (player_mc.x >= 400){
_local1 = rate_array[charaNo][3];
score_txt.filters = [redFilter];
alphaSpeed = 1.3;
_local2 = 2;
} else {
if (player_mc.x >= 300){
_local1 = rate_array[charaNo][2];
score_txt.filters = [yellowFilter];
alphaSpeed = 1.2;
_local2 = 1.6;
} else {
if (player_mc.x >= 200){
_local1 = rate_array[charaNo][1];
score_txt.filters = [greenFilter];
alphaSpeed = 1.1;
_local2 = 1.3;
} else {
_local1 = 1;
score_txt.filters = [blackFilter];
alphaSpeed = 1;
_local2 = 1;
};
};
};
if (nowStage >= 6){
_local2 = 1;
};
if ((((nowStage == 6)) || ((nowStage == 8)))){
_local1 = 1;
_local2 = 1;
alphaSpeed = 1;
score_txt.filters = [blackFilter];
};
if (nowStage == 8){
alphaSpeed = 1;
};
if (readyFlag == false){
score = (score + Math.floor((_local1 * _local2)));
frameCounter = (frameCounter + _local2);
stepTimer = (stepTimer + alphaSpeed);
};
}
public function playBgmLoop(_arg1){
playBgmNo = _arg1;
bgmCh = bgmList[_arg1].play(1, 1, bgmTr);
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
}
public function registHiscore(_arg1:String, _arg2:int, _arg3:int):void{
var url:URLRequest;
var variables:URLVariables;
var loader:URLLoader;
var nameStr = _arg1;
var scoreInt = _arg2;
var distanceInt = _arg3;
url = new URLRequest(PHP_RANKING);
variables = new URLVariables();
variables.name = nameStr;
variables.score = scoreInt;
variables.distance = distanceInt;
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 = "LOW";
} else {
if (graphicQuality == 1){
optionMenu_mc.graphic_txt.text = "MEDIUM";
} else {
if (graphicQuality == 2){
optionMenu_mc.graphic_txt.text = "HIGH";
};
};
};
stage.quality = GQ_array[graphicQuality];
so.data.graphicQuality = graphicQuality;
}
public function updateScoreBoost():void{
var _local1:int;
var _local2:int;
var _local3:*;
var _local4:*;
if (scoreDispType == 0){
score_txt.text = score.toString();
} else {
score_txt.text = Math.floor(frameCounter).toString();
};
_local1 = Math.floor((boost / 80));
_local2 = (boost % 80);
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++;
};
};
_local3 = 0;
while (_local3 < 5) {
if (_local3 < _local1){
masks_mc[(("mask" + _local3) + "_mc")].height = 22;
powers_mc[(("power" + _local3) + "_mc")].alpha = 1;
} else {
masks_mc[(("mask" + _local3) + "_mc")].height = 0;
};
_local3++;
};
if (_local2 > 0){
masks_mc[(("mask" + _local1) + "_mc")].height = (_local2 * (22 / 80));
powers_mc[(("power" + _local1) + "_mc")].alpha = 0.3;
};
if (_local1 > beforePower){
playSe(power0);
powers_mc[(("power" + (_local1 - 1)) + "_mc")].gotoAndPlay("flash");
};
beforePower = _local1;
}
public function updateManual():void{
manual0_mc.visible = false;
manual1_mc.visible = false;
manual2_mc.visible = false;
manual3_mc.visible = false;
if (manualPage == -1){
manual0_mc.visible = false;
manual1_mc.visible = false;
manual2_mc.visible = false;
manual3_mc.visible = false;
hiScores_mc.visible = true;
titleMenu_mc.visible = true;
mitsume_mc.visible = true;
dispPage = 0;
} else {
root[(("manual" + manualPage) + "_mc")].visible = true;
};
playSe(paper);
}
public function xEnterGameOverToGame(_arg1:Event):void{
blackMask_mc.visible = true;
blackMask_mc.alpha = (blackMask_mc.alpha + fadeInterval);
if (blackMask_mc.alpha >= 1){
blackMask_mc.alpha = 1;
removeEventListener(Event.ENTER_FRAME, xEnterGameOverToGame);
gotoAndStop("game");
};
}
public function xEnterWaitObjDelete(_arg1:Event):void{
if ((((stepCount == 0)) && ((bgCount == 0)))){
removeEventListener(Event.ENTER_FRAME, xEnterWaitObjDelete);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, xKeyDown);
stage.removeEventListener(KeyboardEvent.KEY_UP, xKeyUp);
gotoAndStop("gameOver");
};
}
public function xEnterFadeToNameInput(_arg1:Event):void{
blackMask_mc.alpha = (blackMask_mc.alpha - fadeInterval);
if (blackMask_mc.alpha <= 0){
blackMask_mc.alpha = 0;
blackMask_mc.visible = false;
removeEventListener(Event.ENTER_FRAME, xEnterFadeToNameInput);
nameInput_mc.ok_btn.addEventListener(MouseEvent.CLICK, xClickFirstInput);
nameInput_mc.nameInput_txt.setSelection(nameInput_mc.nameInput_txt.length, nameInput_mc.nameInput_txt.length);
stage.focus = nameInput_mc.nameInput_txt;
};
}
public function xEnterGameOverToRanking(_arg1:Event):void{
blackMask_mc.visible = true;
blackMask_mc.alpha = (blackMask_mc.alpha + fadeInterval);
if (blackMask_mc.alpha >= 1){
blackMask_mc.alpha = 1;
removeEventListener(Event.ENTER_FRAME, xEnterGameOverToRanking);
gotoAndStop("loadRanking");
};
}
public function addStartStep():void{
var _local1:Array;
var _local2:*;
var _local3:MovieClip;
_local1 = [300, 880];
_local2 = 0;
while (_local2 < 2) {
_local3 = new STEPSTART_MC();
_local3.x = _local1[_local2];
_local3.y = 215;
addChildAt(_local3, getChildIndex(stepPoint_mc));
stepCount++;
_local2++;
};
}
public function keyDownManual(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.LEFT){
manualPage--;
updateManual();
} else {
if (_arg1.keyCode == Keyboard.RIGHT){
manualPage++;
if (manualPage > 3){
manualPage = -1;
};
updateManual();
} else {
if (_arg1.keyCode == 90){
manualPage++;
if (manualPage > 3){
manualPage = -1;
};
updateManual();
};
};
};
}
public function xTitleKeyDown(_arg1:KeyboardEvent):void{
switch (dispPage){
case 0:
keyDownTitle(_arg1);
break;
case 1:
keyDownRanking(_arg1);
break;
case 2:
keyDownOption(_arg1);
break;
case 3:
keyDownManual(_arg1);
break;
};
}
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 addStep():void{
var _local1:MovieClip;
var _local2:Boolean;
var _local3:*;
var _local4:int;
var _local5:int;
var _local6:MovieClip;
var _local7:MovieClip;
if (stepTimer > stepInterval){
stepTimer = 0;
_local2 = false;
switch (nowStage){
case 0:
_local1 = new STEP00_MC();
_local2 = true;
_local3 = (-110 + (aroundNo * 10));
if (_local3 > -50){
_local3 = -50;
};
stepTimer = _local3;
break;
case 1:
_local1 = new STEP10_MC();
_local2 = true;
break;
case 2:
_local1 = new STEP20_MC();
_local2 = true;
break;
case 3:
if (Math.floor((Math.random() * 100)) == 0){
_local1 = new STEP31_MC();
} else {
_local1 = new STEP30_MC();
};
_local2 = true;
break;
case 4:
if (Math.floor((Math.random() * 2)) == 0){
_local1 = new STEP40_MC();
} else {
_local1 = new STEP41_MC();
};
_local2 = true;
break;
case 5:
_local1 = new STEP50_MC();
_local2 = true;
break;
case 6:
if ((((stage6StepFlag == false)) && ((frameCounter >= (stageBack_array[5].endPoint + (aroundNo * aroundPlus)))))){
_local1 = new STEP62_MC();
stage6StepFlag = true;
_local2 = true;
stepTimer = -20;
} else {
if (frameCounter >= ((stageBack_array[5].endPoint + 300) + (aroundNo * aroundPlus))){
if (charaNo == 0){
_local1 = new STEP60_MC();
stepTimer = -20;
} else {
_local1 = new STEP61_MC();
stepTimer = -10;
};
_local2 = true;
};
};
break;
case 7:
_local4 = 1;
if (frameCounter >= (stageBack_array[6].endPoint + 3000)){
_local4 = 3;
} else {
if (frameCounter >= (stageBack_array[6].endPoint + 1000)){
_local4 = 2;
};
};
_local5 = Math.floor((Math.random() * _local4));
if (_local5 == 0){
_local1 = new STEP70_MC();
} else {
if (_local5 == 1){
_local1 = new STEP71_MC();
} else {
if (_local5 == 2){
_local1 = new STEP72_MC();
};
};
};
_local2 = true;
break;
case 8:
if (frameCounter < ((stageBack_array[8].endPoint - 100) + (aroundNo * aroundPlus))){
if (frameCounter >= ((stageBack_array[7].endPoint + 300) + (aroundNo * aroundPlus))){
if (charaNo == 0){
_local1 = new STEP80_MC();
_local2 = true;
_local6 = new STEP81_MC();
addChildAt(_local6, getChildIndex(stepPoint_mc));
stepCount++;
stepTimer = -20;
} else {
_local1 = new STEP82_MC();
_local2 = true;
};
};
} else {
_local1 = new STEPEND_MC();
_local1.y = 290;
_local1.x = 650;
_local7 = new STEPEND_MC();
_local7.y = 290;
_local7.x = 1200;
addChildAt(_local7, getChildIndex(stepPoint_mc));
stepCount++;
stepTimer = -150;
_local2 = true;
};
break;
};
if (_local2 == true){
addChildAt(_local1, getChildIndex(stepPoint_mc));
stepCount++;
};
};
}
public function xClickFirstInput(_arg1:MouseEvent):void{
if (nameInput_mc.nameInput_txt.text != ""){
nameInput_mc.ok_btn.removeEventListener(MouseEvent.CLICK, xClickFirstInput);
scoreName = nameInput_mc.nameInput_txt.text;
so.data.scoreName = scoreName;
blackMask_mc.visible = true;
addEventListener(Event.ENTER_FRAME, xEnterFadeInputToTitle);
//unresolved jump
};
playSe(enter0);
}
public function xEnterMain(_arg1:Event):void{
scoreCheck();
if (nowStage == 8){
boost = 400;
} else {
if (charaNo == 1){
boost = 0;
};
};
updateScoreBoost();
addStep();
if ((stageBack_array[nowStage].endPoint + (aroundNo * aroundPlus)) <= frameCounter){
nowStage++;
if (nowStage > 8){
nowStage = 0;
aroundNo++;
plusSpeed = (plusSpeed - 1);
stepInterval = (stepInterval - 3);
stage6StepFlag = false;
seasonNo++;
if (seasonNo == 4){
seasonNo = 0;
};
};
if (nowStage == 8){
powerMax_mc.visible = true;
powerMax_mc.gotoAndPlay("start");
} else {
powerMax_mc.visible = false;
};
nextStageBackAdd();
nextParticleAdd();
stage_txt.text = stageBack_array[nowStage].name;
};
if (player_mc.y >= 360){
dropFlag = true;
};
if ((((dropFlag == true)) || ((bomFlag == true)))){
removeEventListener(Event.ENTER_FRAME, xEnterMain);
if (dropFlag == true){
playSe(fall);
} else {
playSe(11);
playSe(11);
};
addEventListener(Event.ENTER_FRAME, xEnterFadeGameToGameOver);
};
}
public function updateRanking():void{
var _local1:*;
_local1 = 0;
if (rankingGenre == 0){
ranking_mc.genre_txt.text = "< スコア >";
ranking_mc.genre_txt.filters = [blackFilter];
updateHiScore(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 + " Pts.");
ranking_mc[(("list" + _local1) + "_mc")].distance_txt.text = (rankingScore_array[((rankingPage * 10) + _local1)].distance + " Km");
} else {
ranking_mc[(("list" + _local1) + "_mc")].name_txt.text = "-";
ranking_mc[(("list" + _local1) + "_mc")].score_txt.text = "-";
ranking_mc[(("list" + _local1) + "_mc")].distance_txt.text = "-";
};
_local1++;
};
} else {
if (rankingGenre == 1){
ranking_mc.genre_txt.text = "< 到達距離 >";
ranking_mc.genre_txt.filters = [blackFilter];
updateHiScore(0);
_local1 = 0;
while (_local1 < 10) {
ranking_mc[(("list" + _local1) + "_mc")].rank_txt.text = ((((rankingPage * 10) + _local1) + 1) + "位 :");
if (rankingDistance_array[((rankingPage * 10) + _local1)] != null){
ranking_mc[(("list" + _local1) + "_mc")].name_txt.text = rankingDistance_array[((rankingPage * 10) + _local1)].name;
ranking_mc[(("list" + _local1) + "_mc")].distance_txt.text = (rankingDistance_array[((rankingPage * 10) + _local1)].score + " Pts.");
ranking_mc[(("list" + _local1) + "_mc")].score_txt.text = (rankingDistance_array[((rankingPage * 10) + _local1)].distance + " Km");
} else {
ranking_mc[(("list" + _local1) + "_mc")].name_txt.text = "-";
ranking_mc[(("list" + _local1) + "_mc")].score_txt.text = "-";
ranking_mc[(("list" + _local1) + "_mc")].distance_txt.text = "-";
};
_local1++;
};
} else {
if (rankingGenre == 2){
ranking_mc.genre_txt.text = "< EXスコア >";
ranking_mc.genre_txt.filters = [redFilter];
updateHiScore(1);
_local1 = 0;
while (_local1 < 10) {
ranking_mc[(("list" + _local1) + "_mc")].rank_txt.text = ((((rankingPage * 10) + _local1) + 1) + "位 :");
if (rankingScoreEx_array[((rankingPage * 10) + _local1)] != null){
ranking_mc[(("list" + _local1) + "_mc")].name_txt.text = rankingScoreEx_array[((rankingPage * 10) + _local1)].name;
ranking_mc[(("list" + _local1) + "_mc")].score_txt.text = (rankingScoreEx_array[((rankingPage * 10) + _local1)].score + " Pts.");
ranking_mc[(("list" + _local1) + "_mc")].distance_txt.text = (rankingScoreEx_array[((rankingPage * 10) + _local1)].distance + " Km");
} else {
ranking_mc[(("list" + _local1) + "_mc")].name_txt.text = "-";
ranking_mc[(("list" + _local1) + "_mc")].score_txt.text = "-";
ranking_mc[(("list" + _local1) + "_mc")].distance_txt.text = "-";
};
_local1++;
};
} else {
if (rankingGenre == 3){
ranking_mc.genre_txt.text = "< EX到達距離 >";
ranking_mc.genre_txt.filters = [redFilter];
updateHiScore(1);
_local1 = 0;
while (_local1 < 10) {
ranking_mc[(("list" + _local1) + "_mc")].rank_txt.text = ((((rankingPage * 10) + _local1) + 1) + "位 :");
if (rankingDistanceEx_array[((rankingPage * 10) + _local1)] != null){
ranking_mc[(("list" + _local1) + "_mc")].name_txt.text = rankingDistanceEx_array[((rankingPage * 10) + _local1)].name;
ranking_mc[(("list" + _local1) + "_mc")].distance_txt.text = (rankingDistanceEx_array[((rankingPage * 10) + _local1)].score + " Pts.");
ranking_mc[(("list" + _local1) + "_mc")].score_txt.text = (rankingDistanceEx_array[((rankingPage * 10) + _local1)].distance + " Km");
} else {
ranking_mc[(("list" + _local1) + "_mc")].name_txt.text = "-";
ranking_mc[(("list" + _local1) + "_mc")].score_txt.text = "-";
ranking_mc[(("list" + _local1) + "_mc")].distance_txt.text = "-";
};
_local1++;
};
};
};
};
};
}
public function keyDownTitle(_arg1):void{
var _local2:int;
if (_arg1.keyCode == Keyboard.UP){
titleCursor = (titleCursor - 1);
if (titleCursor < 0){
if (exStatus == 1){
titleCursor = (titleCursorY_array.length - 1);
} else {
titleCursor = (titleCursorY_array.length - 2);
};
};
selectIcon_mc.y = titleCursorY_array[titleCursor];
if (titleCursor == 4){
updateHiScore(1);
} else {
updateHiScore(0);
};
playSe(cursor0);
} else {
if (_arg1.keyCode == Keyboard.DOWN){
titleCursor = (titleCursor + 1);
_local2 = 4;
if (exStatus == 1){
_local2 = 4;
} else {
_local2 = 3;
};
if (titleCursor > _local2){
titleCursor = 0;
};
selectIcon_mc.y = titleCursorY_array[titleCursor];
if (titleCursor == 4){
updateHiScore(1);
} else {
updateHiScore(0);
};
playSe(cursor0);
} else {
if (_arg1.keyCode == 90){
if (titleCursor == 0){
charaNo = 0;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, xTitleKeyDown);
titleTei_mc.gotoAndPlay("dash");
addEventListener(Event.ENTER_FRAME, xEnterTitleToGame);
} else {
if (titleCursor == 1){
updateRanking();
titleMenu_mc.visible = false;
titleLogo_mc.visible = false;
titleMessage_mc.visible = false;
ranking_mc.visible = true;
selectIcon_mc.visible = false;
mitsume_mc.visible = false;
dispPage = 1;
} else {
if (titleCursor == 2){
titleMenu_mc.visible = false;
optionMenu_mc.visible = true;
optionCursor = 0;
selectIcon_mc.y = titleCursorY_array[0];
dispPage = 2;
} else {
if (titleCursor == 3){
playSe(paper);
manualPage = 0;
manual0_mc.visible = true;
hiScores_mc.visible = false;
titleMenu_mc.visible = false;
mitsume_mc.visible = false;
dispPage = 3;
} else {
if (titleCursor == 4){
charaNo = 1;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, xTitleKeyDown);
if ((((((((int(season_txt.text) == 0)) || ((int(season_txt.text) == 1)))) || ((int(season_txt.text) == 2)))) || ((int(season_txt.text) == 3)))){
seasonNo = int(season_txt.text);
//unresolved jump
};
if ((((((int(time_txt.text) == 0)) || ((int(time_txt.text) == 1)))) || ((int(time_txt.text) == 2)))){
timeNo = int(time_txt.text);
};
titleTei_mc.gotoAndPlay("dash");
addEventListener(Event.ENTER_FRAME, xEnterTitleToGame);
};
};
};
};
};
playSe(enter0);
};
};
};
}
public function nextParticleAdd():void{
var _local1:MovieClip;
var _local2:Boolean;
_local2 = false;
switch (nowStage){
case seasonStart_array[seasonNo]:
if (seasonNo == 0){
_local1 = new PER_SPRING_MC();
_local2 = true;
} else {
if (seasonNo == 1){
if (Math.floor((Math.random() * 10)) == 0){
_local1 = new PER_SUMMER_MC();
_local1.alpha = 0;
_local2 = true;
} else {
if (timeNo == 2){
if (Math.floor((Math.random() * 10)) == 0){
_local1 = new PER_FIREFLY_MC();
_local1.alpha = 0;
_local2 = true;
};
};
};
} else {
if (seasonNo == 2){
_local1 = new PER_FALL_MC();
_local2 = true;
} else {
if (seasonNo == 3){
_local1 = new PER_WINTER_MC();
_local2 = true;
};
};
};
};
break;
case 7:
_local1 = new PER_STAR_MC();
_local2 = true;
};
if (_local2 == true){
addChildAt(_local1, getChildIndex(point0_mc));
bgCount = (bgCount + 1);
};
}
public function contextInit():void{
var _local1:*;
var _local2:*;
_local1 = new ContextMenu();
_local1.hideBuiltInItems();
_local2 = new Sprite();
stage.addChildAt(_local2, 0);
_local2.graphics.beginFill(0xFF0000, 0);
_local2.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
_local2.graphics.endFill();
_local2.contextMenu = _local1;
}
public function xEnterFadeInputToTitle(_arg1:Event):void{
blackMask_mc.alpha = (blackMask_mc.alpha + fadeInterval);
if (blackMask_mc.alpha >= 1){
blackMask_mc.alpha = 1;
removeEventListener(Event.ENTER_FRAME, xEnterFadeInputToTitle);
gotoAndStop("title");
};
}
public function keyDownOption(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.UP){
optionCursor = (optionCursor - 1);
if (optionCursor < 0){
optionCursor = 3;
};
selectIcon_mc.y = titleCursorY_array[optionCursor];
playSe(cursor0);
} else {
if (_arg1.keyCode == Keyboard.DOWN){
optionCursor = (optionCursor + 1);
if (optionCursor > 3){
optionCursor = 0;
};
selectIcon_mc.y = titleCursorY_array[optionCursor];
playSe(cursor0);
} else {
if (_arg1.keyCode == Keyboard.RIGHT){
keyCount++;
if ((((keyCount >= 100)) && ((exStatus == 0)))){
exStatus = 1;
so.data.exStatus = 1;
titleMenu_mc.exStart_mc.visible = true;
playSe(power0);
};
} else {
if (_arg1.keyCode == 90){
switch (optionCursor){
case 0:
bgmVolume++;
if (bgmVolume > 5){
bgmVolume = 0;
};
updateVolume();
break;
case 1:
graphicQuality++;
if (graphicQuality > 2){
graphicQuality = 0;
};
updateGraphic();
break;
case 2:
optionMenu_mc.visible = false;
nameChange_mc.nameInput_txt.text = scoreName;
nameChange_mc.visible = true;
selectIcon_mc.visible = false;
titleLogo_mc.visible = false;
titleMessage_mc.visible = false;
hiScores_mc.visible = false;
mitsume_mc.visible = false;
dispPage = 4;
nameChange_mc.nameInput_txt.setSelection(nameChange_mc.nameInput_txt.length, nameChange_mc.nameInput_txt.length);
stage.focus = nameChange_mc.nameInput_txt;
nameChange_mc.ok_btn.addEventListener(MouseEvent.CLICK, xClickNameChangeOk);
break;
case 3:
titleMenu_mc.visible = true;
optionMenu_mc.visible = false;
selectIcon_mc.y = titleCursorY_array[0];
titleCursor = 0;
dispPage = 0;
break;
};
playSe(enter0);
};
};
};
};
}
public function xKeyUp(_arg1:KeyboardEvent):void{
keysDown[_arg1.keyCode] = false;
if (_arg1.keyCode == 49){
if (scoreLineFlag == true){
scoreLineFlag = false;
scoreLine_mc.visible = false;
} else {
scoreLineFlag = true;
scoreLine_mc.visible = true;
};
playSe(enter0);
} else {
if (_arg1.keyCode == 50){
if (scoreDispType == 0){
scoreDispType = 1;
scoreType0_txt.text = "現在地点";
scoreType1_txt.text = "Km";
} else {
scoreDispType = 0;
scoreType0_txt.text = "スコア";
scoreType1_txt.text = "Pts.";
};
playSe(enter0);
} else {
if (_arg1.keyCode == 51){
viewNo = (viewNo - 2);
if (viewNo < 0){
viewNo = 8;
};
if (viewNo == 0){
viewMask_mc.visible = false;
} else {
viewMask_mc.alpha = (viewNo * 0.1);
viewMask_mc.visible = true;
};
playSe(enter0);
};
};
};
}
public function loadSound():void{
bgmList[0] = new bgm0();
bgmList[1] = new bgm1();
seList[paper] = new paper();
seList[0] = new jump1_1();
seList[1] = new jump2_1();
seList[step0] = new step0();
seList[fall] = new fall();
seList[step01] = new step01();
seList[cursor0] = new cursor0();
seList[enter0] = new enter0();
seList[power0] = new power0();
seList[10] = new bom0();
seList[11] = new bom1();
seList[9] = new sound_spell();
seList[12] = new fire();
seList[13] = new goro();
seList[14] = new rain();
}
public function registHiscoreEx(_arg1:String, _arg2:int, _arg3:int):void{
var url:URLRequest;
var variables:URLVariables;
var loader:URLLoader;
var nameStr = _arg1;
var scoreInt = _arg2;
var distanceInt = _arg3;
url = new URLRequest(PHP_RANKINGEX);
variables = new URLVariables();
variables.name = nameStr;
variables.score = scoreInt;
variables.distance = distanceInt;
url.data = variables.toString();
url.method = URLRequestMethod.POST;
loader = new URLLoader();
try {
loader.load(url);
} catch(e:Error) {
};
url = null;
loader = null;
}
public function nextStageBackAdd():void{
var _local1:MovieClip;
var _local2:MovieClip;
var _local3:MovieClip;
var _local4:MovieClip;
switch (nowStage){
case 0:
_local1 = new STAGE0_0_MC();
_local2 = new STAGE0_1_MC();
_local3 = new STAGE0_2_MC();
_local4 = new STAGE0_3_MC();
break;
case 1:
_local1 = new STAGE1_0_MC();
_local2 = new STAGE1_1_MC();
_local3 = new STAGE1_2_MC();
_local4 = new STAGE1_3_MC();
break;
case 2:
_local1 = new STAGE2_0_MC();
_local2 = new STAGE2_1_MC();
_local3 = new STAGE2_2_MC();
_local4 = new STAGE2_3_MC();
break;
case 3:
_local1 = new STAGE3_0_MC();
_local2 = new STAGE3_1_MC();
_local3 = new STAGE3_2_MC();
_local4 = new STAGE3_3_MC();
break;
case 4:
_local1 = new STAGE4_0_MC();
_local2 = new STAGE4_1_MC();
_local3 = new STAGE4_2_MC();
_local4 = new STAGE4_3_MC();
break;
case 5:
_local1 = new STAGE5_0_MC();
_local2 = new STAGE5_1_MC();
_local3 = new STAGE5_2_MC();
_local4 = new STAGE5_3_MC();
_local2.x = 150;
_local3.y = -1406;
break;
case 6:
_local1 = new STAGE6_0_MC();
_local2 = new STAGE6_1_MC();
_local3 = new STAGE6_2_MC();
_local4 = new STAGE6_3_MC();
break;
case 7:
_local1 = new STAGE7_0_MC();
_local2 = new STAGE7_1_MC();
_local3 = new STAGE7_2_MC();
_local4 = new STAGE7_3_MC();
break;
case 8:
if (charaNo == 0){
_local1 = new STAGE8_0_MC();
} else {
_local1 = new STAGE8_0b_MC();
};
_local2 = new STAGE8_1_MC();
_local3 = new STAGE8_2_MC();
_local4 = new STAGE8_3_MC();
break;
};
_local1.alpha = 0;
_local2.alpha = 0;
_local3.alpha = 0;
_local4.alpha = 0;
addChildAt(_local1, getChildIndex(point0_mc));
addChildAt(_local2, getChildIndex(point1_mc));
addChildAt(_local3, getChildIndex(point2_mc));
addChildAt(_local4, getChildIndex(point3_mc));
bgCount = (bgCount + 4);
}
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);
addEventListener(Event.ENTER_FRAME, xEnterLoadWait);
};
}
}
}//package jumpGallop_fla
Section 4
//MISSILE_MC_15 (jumpGallop_fla.MISSILE_MC_15)
package jumpGallop_fla {
import flash.display.*;
public dynamic class MISSILE_MC_15 extends MovieClip {
public function MISSILE_MC_15(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 5
//MISSILE2_MC_19 (jumpGallop_fla.MISSILE2_MC_19)
package jumpGallop_fla {
import flash.display.*;
public dynamic class MISSILE2_MC_19 extends MovieClip {
public function MISSILE2_MC_19(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 6
//MISSILE3_MC_27 (jumpGallop_fla.MISSILE3_MC_27)
package jumpGallop_fla {
import flash.display.*;
public dynamic class MISSILE3_MC_27 extends MovieClip {
public var shot3_mc:MovieClip;
public var shot1_mc:MovieClip;
public var shot4_mc:MovieClip;
public var shot2_mc:MovieClip;
public var shot5_mc:MovieClip;
public var shot0_mc:MovieClip;
public function MISSILE3_MC_27(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 7
//MOON_MC_143 (jumpGallop_fla.MOON_MC_143)
package jumpGallop_fla {
import flash.display.*;
public dynamic class MOON_MC_143 extends MovieClip {
public function MOON_MC_143(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package jumpGallop_fla
Section 8
//NAMECHANGE_MC_108 (jumpGallop_fla.NAMECHANGE_MC_108)
package jumpGallop_fla {
import flash.display.*;
import flash.text.*;
public dynamic class NAMECHANGE_MC_108 extends MovieClip {
public var nameInput_txt:TextField;
public var ok_btn:SimpleButton;
}
}//package jumpGallop_fla
Section 9
//OPTION_MENU_MC_118 (jumpGallop_fla.OPTION_MENU_MC_118)
package jumpGallop_fla {
import flash.display.*;
import flash.text.*;
public dynamic class OPTION_MENU_MC_118 extends MovieClip {
public var graphic_txt:TextField;
public var volume_txt:TextField;
}
}//package jumpGallop_fla
Section 10
//OVER_PLAYER_MC_148 (jumpGallop_fla.OVER_PLAYER_MC_148)
package jumpGallop_fla {
import flash.display.*;
public dynamic class OVER_PLAYER_MC_148 extends MovieClip {
public function OVER_PLAYER_MC_148(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 11
//POWERMASKS_MC_140 (jumpGallop_fla.POWERMASKS_MC_140)
package jumpGallop_fla {
import flash.display.*;
public dynamic class POWERMASKS_MC_140 extends MovieClip {
public var mask3_mc:MovieClip;
public var mask1_mc:MovieClip;
public var mask4_mc:MovieClip;
public var mask2_mc:MovieClip;
public var mask0_mc:MovieClip;
}
}//package jumpGallop_fla
Section 12
//POWERMAX_MC_136 (jumpGallop_fla.POWERMAX_MC_136)
package jumpGallop_fla {
import flash.display.*;
public dynamic class POWERMAX_MC_136 extends MovieClip {
public var powerMax_mc:MovieClip;
public function POWERMAX_MC_136(){
addFrameScript(0, frame1, 190, frame191);
}
function frame1(){
stop();
}
function frame191(){
stop();
}
}
}//package jumpGallop_fla
Section 13
//POWERS_MC_142 (jumpGallop_fla.POWERS_MC_142)
package jumpGallop_fla {
import flash.display.*;
public dynamic class POWERS_MC_142 extends MovieClip {
public var power4_mc:MovieClip;
public var power2_mc:MovieClip;
public var power0_mc:MovieClip;
public var power3_mc:MovieClip;
public var power1_mc:MovieClip;
}
}//package jumpGallop_fla
Section 14
//RANKING_MC_129 (jumpGallop_fla.RANKING_MC_129)
package jumpGallop_fla {
import flash.display.*;
import flash.text.*;
public dynamic class RANKING_MC_129 extends MovieClip {
public var list9_mc:MovieClip;
public var list1_mc:MovieClip;
public var list4_mc:MovieClip;
public var list7_mc:MovieClip;
public var list2_mc:MovieClip;
public var list8_mc:MovieClip;
public var list5_mc:MovieClip;
public var list0_mc:MovieClip;
public var genre_txt:TextField;
public var list3_mc:MovieClip;
public var list6_mc:MovieClip;
}
}//package jumpGallop_fla
Section 15
//RANKING_NAME_130 (jumpGallop_fla.RANKING_NAME_130)
package jumpGallop_fla {
import flash.display.*;
import flash.text.*;
public dynamic class RANKING_NAME_130 extends MovieClip {
public var distance_txt:TextField;
public var score_txt:TextField;
public var name_txt:TextField;
public var rank_txt:TextField;
}
}//package jumpGallop_fla
Section 16
//READY_MC_134 (jumpGallop_fla.READY_MC_134)
package jumpGallop_fla {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class READY_MC_134 extends MovieClip {
public var rootObj:MovieClip;
public function READY_MC_134(){
addFrameScript(123, frame124);
}
function frame124(){
stop();
rootObj = (this.root as MovieClip);
this.visible = false;
rootObj.readyFlag = false;
}
}
}//package jumpGallop_fla
Section 17
//SKY_MC_52 (jumpGallop_fla.SKY_MC_52)
package jumpGallop_fla {
import flash.display.*;
public dynamic class SKY_MC_52 extends MovieClip {
public function SKY_MC_52(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 18
//SKY2_MC_87 (jumpGallop_fla.SKY2_MC_87)
package jumpGallop_fla {
import flash.display.*;
public dynamic class SKY2_MC_87 extends MovieClip {
public function SKY2_MC_87(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 19
//SKY3_MC_99 (jumpGallop_fla.SKY3_MC_99)
package jumpGallop_fla {
import flash.display.*;
public dynamic class SKY3_MC_99 extends MovieClip {
public function SKY3_MC_99(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 20
//SPELL_MC_93 (jumpGallop_fla.SPELL_MC_93)
package jumpGallop_fla {
import flash.display.*;
public dynamic class SPELL_MC_93 extends MovieClip {
public function SPELL_MC_93(){
addFrameScript(0, frame1, 1, frame2, 171, frame172);
}
function frame172(){
stop();
}
function frame1(){
stop();
}
function frame2(){
}
}
}//package jumpGallop_fla
Section 21
//SPELL2_MC_44 (jumpGallop_fla.SPELL2_MC_44)
package jumpGallop_fla {
import flash.display.*;
public dynamic class SPELL2_MC_44 extends MovieClip {
public function SPELL2_MC_44(){
addFrameScript(0, frame1, 1, frame2, 171, frame172);
}
function frame172(){
stop();
}
function frame1(){
stop();
}
function frame2(){
}
}
}//package jumpGallop_fla
Section 22
//STAGE0_1_SEASON_49 (jumpGallop_fla.STAGE0_1_SEASON_49)
package jumpGallop_fla {
import flash.display.*;
public dynamic class STAGE0_1_SEASON_49 extends MovieClip {
public function STAGE0_1_SEASON_49(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 23
//STAGE0_3_SEASON_53 (jumpGallop_fla.STAGE0_3_SEASON_53)
package jumpGallop_fla {
import flash.display.*;
public dynamic class STAGE0_3_SEASON_53 extends MovieClip {
public function STAGE0_3_SEASON_53(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 24
//STAGE1_3_SEASON_58 (jumpGallop_fla.STAGE1_3_SEASON_58)
package jumpGallop_fla {
import flash.display.*;
public dynamic class STAGE1_3_SEASON_58 extends MovieClip {
public function STAGE1_3_SEASON_58(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 25
//STAGE2_2_SEASON_62 (jumpGallop_fla.STAGE2_2_SEASON_62)
package jumpGallop_fla {
import flash.display.*;
public dynamic class STAGE2_2_SEASON_62 extends MovieClip {
public function STAGE2_2_SEASON_62(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 26
//STAGE2_3_SEASON_64 (jumpGallop_fla.STAGE2_3_SEASON_64)
package jumpGallop_fla {
import flash.display.*;
public dynamic class STAGE2_3_SEASON_64 extends MovieClip {
public function STAGE2_3_SEASON_64(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 27
//STAGE3_0_SEASON_66 (jumpGallop_fla.STAGE3_0_SEASON_66)
package jumpGallop_fla {
import flash.display.*;
public dynamic class STAGE3_0_SEASON_66 extends MovieClip {
public function STAGE3_0_SEASON_66(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 28
//STAGE3_1_SEASON_68 (jumpGallop_fla.STAGE3_1_SEASON_68)
package jumpGallop_fla {
import flash.display.*;
public dynamic class STAGE3_1_SEASON_68 extends MovieClip {
public function STAGE3_1_SEASON_68(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 29
//STAGE3_3_SEASON_71 (jumpGallop_fla.STAGE3_3_SEASON_71)
package jumpGallop_fla {
import flash.display.*;
public dynamic class STAGE3_3_SEASON_71 extends MovieClip {
public function STAGE3_3_SEASON_71(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 30
//STAGE4_0_SEASON_73 (jumpGallop_fla.STAGE4_0_SEASON_73)
package jumpGallop_fla {
import flash.display.*;
public dynamic class STAGE4_0_SEASON_73 extends MovieClip {
public function STAGE4_0_SEASON_73(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 31
//STAGE4_1_SEASON_75 (jumpGallop_fla.STAGE4_1_SEASON_75)
package jumpGallop_fla {
import flash.display.*;
public dynamic class STAGE4_1_SEASON_75 extends MovieClip {
public function STAGE4_1_SEASON_75(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 32
//STAGE4_2_SEASON_77 (jumpGallop_fla.STAGE4_2_SEASON_77)
package jumpGallop_fla {
import flash.display.*;
public dynamic class STAGE4_2_SEASON_77 extends MovieClip {
public function STAGE4_2_SEASON_77(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package jumpGallop_fla
Section 33
//tei5_1 (jumpGallop_fla.tei5_1)
package jumpGallop_fla {
import flash.display.*;
public dynamic class tei5_1 extends MovieClip {
public function tei5_1(){
addFrameScript(30, frame31, 51, frame52);
}
function frame31(){
gotoAndPlay("dash");
}
function frame52(){
gotoAndPlay("jump");
}
}
}//package jumpGallop_fla
Section 34
//Timeline_102 (jumpGallop_fla.Timeline_102)
package jumpGallop_fla {
import flash.display.*;
public dynamic class Timeline_102 extends MovieClip {
public function Timeline_102(){
addFrameScript(30, frame31, 41, frame42, 52, frame53, 53, frame54);
}
function frame31(){
gotoAndPlay("dash");
}
function frame42(){
gotoAndPlay("up");
}
function frame54(){
stop();
}
function frame53(){
gotoAndPlay("down");
}
}
}//package jumpGallop_fla
Section 35
//Timeline_105 (jumpGallop_fla.Timeline_105)
package jumpGallop_fla {
import flash.display.*;
public dynamic class Timeline_105 extends MovieClip {
public function Timeline_105(){
addFrameScript(30, frame31, 41, frame42, 52, frame53, 53, frame54);
}
function frame31(){
gotoAndPlay("dash");
}
function frame42(){
gotoAndPlay("up");
}
function frame54(){
stop();
}
function frame53(){
gotoAndPlay("down");
}
}
}//package jumpGallop_fla
Section 36
//Timeline_107 (jumpGallop_fla.Timeline_107)
package jumpGallop_fla {
import flash.display.*;
public dynamic class Timeline_107 extends MovieClip {
public function Timeline_107(){
addFrameScript(32, frame33, 45, frame46, 56, frame57, 57, frame58);
}
function frame33(){
gotoAndPlay("redash");
}
function frame46(){
gotoAndPlay("reup");
}
function frame57(){
gotoAndPlay("down");
}
function frame58(){
stop();
}
}
}//package jumpGallop_fla
Section 37
//Timeline_154 (jumpGallop_fla.Timeline_154)
package jumpGallop_fla {
import flash.display.*;
public dynamic class Timeline_154 extends MovieClip {
public function Timeline_154(){
addFrameScript(32, frame33, 45, frame46, 56, frame57, 57, frame58);
}
function frame33(){
gotoAndPlay("redash");
}
function frame46(){
gotoAndPlay("reup");
}
function frame57(){
gotoAndPlay("down");
}
function frame58(){
stop();
}
}
}//package jumpGallop_fla
Section 38
//TITLE_MENU_MC_120 (jumpGallop_fla.TITLE_MENU_MC_120)
package jumpGallop_fla {
import flash.display.*;
public dynamic class TITLE_MENU_MC_120 extends MovieClip {
public var exStart_mc:MovieClip;
}
}//package jumpGallop_fla
Section 39
//TITLE_SEASON_MC_117 (jumpGallop_fla.TITLE_SEASON_MC_117)
package jumpGallop_fla {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import org.flintparticles.common.initializers.*;
import org.flintparticles.common.actions.*;
import org.flintparticles.common.counters.*;
import org.flintparticles.twoD.zones.*;
import flash.display.*;
import flash.media.*;
import org.flintparticles.twoD.emitters.*;
import org.flintparticles.twoD.actions.*;
import org.flintparticles.twoD.initializers.*;
import org.flintparticles.common.displayObjects.*;
import org.flintparticles.twoD.renderers.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class TITLE_SEASON_MC_117 extends MovieClip {
public var emitter:Emitter2D;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var renderer:DisplayObjectRenderer;
public function TITLE_SEASON_MC_117(){
addFrameScript(0, frame1);
}
public function particleWinter():void{
emitter.counter = new Steady(25);
emitter.addInitializer(new ImageClass(RadialDot, 5));
emitter.addInitializer(new Position(new LineZone(new Point(-5, -15), new Point(580, -15))));
emitter.addInitializer(new Velocity(new PointZone(new Point(0, 65))));
emitter.addInitializer(new ScaleImageInit(0.5, 1));
emitter.addInitializer(new Lifetime(0, 8));
emitter.addAction(new Move());
emitter.addAction(new DeathZone(new RectangleZone(-30, -30, 580, 280), true));
emitter.addAction(new RandomDrift(10, 10));
emitter.addAction(new Age());
emitter.addAction(new Fade(0.3, 0));
renderer.addEmitter(emitter);
addChild(renderer);
emitter.start();
emitter.runAhead(50);
}
public function particleFall():void{
emitter.counter = new Steady(15);
emitter.addInitializer(new ImageClass(LEAF0_MC));
emitter.addInitializer(new Position(new LineZone(new Point(-5, -15), new Point(580, -15))));
emitter.addInitializer(new Velocity(new PointZone(new Point(0, 65))));
emitter.addInitializer(new RotateVelocity(-3, 3));
emitter.addInitializer(new ScaleImageInit(0.3, 0.8));
emitter.addInitializer(new Lifetime(0, 8));
emitter.addAction(new Move());
emitter.addAction(new DeathZone(new RectangleZone(-30, -30, 580, 300), true));
emitter.addAction(new RandomDrift(10, 10));
emitter.addAction(new Rotate());
emitter.addAction(new Age());
emitter.addAction(new Fade(0.3, 0));
renderer.addEmitter(emitter);
addChild(renderer);
emitter.start();
emitter.runAhead(50);
}
public function particleSpring():void{
emitter.counter = new Steady(15);
emitter.addInitializer(new ImageClass(LEAF1_MC));
emitter.addInitializer(new Position(new LineZone(new Point(-5, -15), new Point(580, -15))));
emitter.addInitializer(new Velocity(new PointZone(new Point(0, 65))));
emitter.addInitializer(new RotateVelocity(-3, 3));
emitter.addInitializer(new ScaleImageInit(0.2, 0.4));
emitter.addInitializer(new Lifetime(0, 6));
emitter.addAction(new Move());
emitter.addAction(new DeathZone(new RectangleZone(-30, -30, 580, 300), true));
emitter.addAction(new RandomDrift(10, 10));
emitter.addAction(new Rotate());
emitter.addAction(new Age());
emitter.addAction(new Fade(0.3, 0));
emitter.addAction(new ScaleImage(0.5, 0.1));
renderer.addEmitter(emitter);
addChild(renderer);
emitter.start();
emitter.runAhead(50);
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
emitter = new Emitter2D();
renderer = new DisplayObjectRenderer();
if (rootObj.seasonNo == 0){
particleSpring();
} else {
if (rootObj.seasonNo == 1){
particleSummer();
} else {
if (rootObj.seasonNo == 2){
particleFall();
} else {
particleWinter();
};
};
};
}
public function particleEnd():void{
emitter.stop();
removeChild(renderer);
renderer.removeEmitter(emitter);
}
public function particleSummer():void{
emitter.counter = new Steady(500);
emitter.addInitializer(new ImageClass(Line, 5));
emitter.addInitializer(new Position(new LineZone(new Point(-5, -15), new Point(580, -15))));
emitter.addInitializer(new Velocity(new PointZone(new Point(0, 400))));
emitter.addInitializer(new Rotation(((90 * Math.PI) / 180), ((90 * Math.PI) / 180)));
emitter.addInitializer(new Lifetime(0, 5));
emitter.addAction(new Move());
emitter.addAction(new DeathZone(new RectangleZone(-30, -30, 580, 300), true));
emitter.addAction(new Age());
emitter.addAction(new Fade(0, 0));
emitter.addAction(new Accelerate(0, 500));
emitter.addAction(new SpeedLimit(500));
renderer.addEmitter(emitter);
addChild(renderer);
emitter.start();
emitter.runAhead(4, 30);
}
}
}//package jumpGallop_fla
Section 40
//Action (org.flintparticles.common.actions.Action)
package org.flintparticles.common.actions {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.behaviours.*;
public interface Action extends Behaviour {
function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void;
}
}//package org.flintparticles.common.actions
Section 41
//ActionBase (org.flintparticles.common.actions.ActionBase)
package org.flintparticles.common.actions {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
public class ActionBase implements Action {
protected var _priority:int;// = 0
public function ActionBase(){
_priority = 0;
super();
}
public function get priority():int{
return (_priority);
}
public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
}
public function set priority(_arg1:int):void{
_priority = _arg1;
}
public function addedToEmitter(_arg1:Emitter):void{
}
public function removedFromEmitter(_arg1:Emitter):void{
}
}
}//package org.flintparticles.common.actions
Section 42
//Age (org.flintparticles.common.actions.Age)
package org.flintparticles.common.actions {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.energyEasing.*;
public class Age extends ActionBase {
private var _easing:Function;
public function Age(_arg1:Function=null){
if (_arg1 == null){
_easing = Linear.easeNone;
} else {
_easing = _arg1;
};
}
override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
_arg2.age = (_arg2.age + _arg3);
if (_arg2.age >= _arg2.lifetime){
_arg2.energy = 0;
_arg2.isDead = true;
} else {
_arg2.energy = _easing(_arg2.age, _arg2.lifetime);
};
}
public function get easing():Function{
return (_easing);
}
public function set easing(_arg1:Function):void{
_easing = _arg1;
}
}
}//package org.flintparticles.common.actions
Section 43
//Fade (org.flintparticles.common.actions.Fade)
package org.flintparticles.common.actions {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
public class Fade extends ActionBase {
private var _endAlpha:Number;
private var _diffAlpha:Number;
public function Fade(_arg1:Number=1, _arg2:Number=0){
priority = -5;
_diffAlpha = (_arg1 - _arg2);
_endAlpha = _arg2;
}
public function get endAlpha():Number{
return (_endAlpha);
}
public function set endAlpha(_arg1:Number):void{
_diffAlpha = ((_endAlpha + _diffAlpha) - _arg1);
_endAlpha = _arg1;
}
override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
var _local4:Number;
_local4 = (_endAlpha + (_diffAlpha * _arg2.energy));
_arg2.color = ((_arg2.color & 0xFFFFFF) | (Math.round((_local4 * 0xFF)) << 24));
}
public function set startAlpha(_arg1:Number):void{
_diffAlpha = (_arg1 - _endAlpha);
}
public function get startAlpha():Number{
return ((_endAlpha + _diffAlpha));
}
}
}//package org.flintparticles.common.actions
Section 44
//ScaleImage (org.flintparticles.common.actions.ScaleImage)
package org.flintparticles.common.actions {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
public class ScaleImage extends ActionBase {
private var _diffScale:Number;
private var _endScale:Number;
public function ScaleImage(_arg1:Number=1, _arg2:Number=1){
_diffScale = (_arg1 - _arg2);
_endScale = _arg2;
}
public function set endScale(_arg1:Number):void{
_diffScale = ((_endScale + _diffScale) - _arg1);
_endScale = _arg1;
}
override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
_arg2.scale = (_endScale + (_diffScale * _arg2.energy));
}
public function get startScale():Number{
return ((_endScale + _diffScale));
}
public function get endScale():Number{
return (_endScale);
}
public function set startScale(_arg1:Number):void{
_diffScale = (_arg1 - _endScale);
}
}
}//package org.flintparticles.common.actions
Section 45
//Activity (org.flintparticles.common.activities.Activity)
package org.flintparticles.common.activities {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.behaviours.*;
public interface Activity extends Behaviour {
function initialize(_arg1:Emitter):void;
function update(_arg1:Emitter, _arg2:Number):void;
}
}//package org.flintparticles.common.activities
Section 46
//Behaviour (org.flintparticles.common.behaviours.Behaviour)
package org.flintparticles.common.behaviours {
import org.flintparticles.common.emitters.*;
public interface Behaviour {
function addedToEmitter(_arg1:Emitter):void;
function get priority():int;
function set priority(_arg1:int):void;
function removedFromEmitter(_arg1:Emitter):void;
}
}//package org.flintparticles.common.behaviours
Section 47
//BehaviourArrayUtils (org.flintparticles.common.behaviours.BehaviourArrayUtils)
package org.flintparticles.common.behaviours {
public class BehaviourArrayUtils {
public static function add(_arg1:Array, _arg2:Behaviour):uint{
var _local3:uint;
var _local4:uint;
_local3 = _arg1.length;
_local4 = 0;
while (_local4 < _local3) {
if (Behaviour(_arg1[_local4]).priority < _arg2.priority){
break;
};
_local4++;
};
_arg1.splice(_local4, 0, _arg2);
return ((_local3 + 1));
}
public static function remove(_arg1:Array, _arg2:Behaviour):Boolean{
var _local3:int;
_local3 = _arg1.indexOf(_arg2);
if (_local3 != -1){
_arg1.splice(_local3, 1);
return (true);
};
return (false);
}
public static function removeAt(_arg1:Array, _arg2:uint):Behaviour{
var _local3:Behaviour;
_local3 = (_arg1[_arg2] as Behaviour);
_arg1.splice(_arg2, 1);
return (_local3);
}
public static function containsType(_arg1:Array, _arg2:Class):Boolean{
var _local3:uint;
var _local4:uint;
_local3 = _arg1.length;
_local4 = 0;
while (_local4 < _local3) {
if ((_arg1[_local4] is _arg2)){
return (true);
};
_local4++;
};
return (false);
}
public static function sortArray(_arg1:Array):void{
_arg1.sortOn("priority", Array.NUMERIC);
}
public static function clear(_arg1:Array):void{
_arg1.length = 0;
}
public static function contains(_arg1:Array, _arg2:Behaviour):Boolean{
return (!((_arg1.indexOf(_arg2) == -1)));
}
}
}//package org.flintparticles.common.behaviours
Section 48
//Counter (org.flintparticles.common.counters.Counter)
package org.flintparticles.common.counters {
import org.flintparticles.common.emitters.*;
public interface Counter {
function stop():void;
function updateEmitter(_arg1:Emitter, _arg2:Number):uint;
function get complete():Boolean;
function startEmitter(_arg1:Emitter):uint;
function resume():void;
}
}//package org.flintparticles.common.counters
Section 49
//Steady (org.flintparticles.common.counters.Steady)
package org.flintparticles.common.counters {
import org.flintparticles.common.emitters.*;
public class Steady implements Counter {
private var _stop:Boolean;
private var _rateInv:Number;
private var _timeToNext:Number;
private var _rate:Number;
public function Steady(_arg1:Number=0){
_stop = false;
this.rate = _arg1;
}
public function get rate():Number{
return (_rate);
}
public function updateEmitter(_arg1:Emitter, _arg2:Number):uint{
var _local3:uint;
if (_stop){
return (0);
};
_local3 = 0;
_timeToNext = (_timeToNext - _arg2);
while (_timeToNext <= 0) {
_local3++;
_timeToNext = (_timeToNext + _rateInv);
};
return (_local3);
}
public function stop():void{
_stop = true;
}
public function startEmitter(_arg1:Emitter):uint{
_timeToNext = _rateInv;
return (0);
}
public function resume():void{
_stop = false;
}
public function set rate(_arg1:Number):void{
var _local2:Number;
if (((!(_arg1)) || ((_arg1 < 0)))){
_arg1 = 0;
};
if (_rate != _arg1){
if (((_rate) && (_arg1))){
_local2 = (_rateInv - _timeToNext);
_rate = _arg1;
_rateInv = (_arg1) ? (1 / _arg1) : Number.MAX_VALUE;
_timeToNext = Math.max((_rateInv - _local2), 0);
} else {
_rate = _arg1;
_rateInv = (_arg1) ? (1 / _arg1) : Number.MAX_VALUE;
_timeToNext = _rateInv;
};
};
}
public function get complete():Boolean{
return (false);
}
}
}//package org.flintparticles.common.counters
Section 50
//ZeroCounter (org.flintparticles.common.counters.ZeroCounter)
package org.flintparticles.common.counters {
import org.flintparticles.common.emitters.*;
public class ZeroCounter implements Counter {
public function stop():void{
}
public function startEmitter(_arg1:Emitter):uint{
return (0);
}
public function updateEmitter(_arg1:Emitter, _arg2:Number):uint{
return (0);
}
public function resume():void{
}
public function get complete():Boolean{
return (true);
}
}
}//package org.flintparticles.common.counters
Section 51
//Line (org.flintparticles.common.displayObjects.Line)
package org.flintparticles.common.displayObjects {
import flash.display.*;
public class Line extends Shape {
private var _color:uint;
private var _length:Number;
public function Line(_arg1:Number=1, _arg2:uint=0xFFFFFF, _arg3:String="normal"){
_length = _arg1;
_color = _arg2;
draw();
blendMode = _arg3;
}
private function draw():void{
graphics.clear();
graphics.lineStyle(1, _color);
graphics.moveTo((-(_length) * 0.5), 0);
graphics.lineTo((_length * 0.5), 0);
}
public function set length(_arg1:Number):void{
_length = _arg1;
draw();
}
public function get color():uint{
return (_color);
}
public function get length():Number{
return (_length);
}
public function set color(_arg1:uint):void{
_color = _arg1;
draw();
}
}
}//package org.flintparticles.common.displayObjects
Section 52
//RadialDot (org.flintparticles.common.displayObjects.RadialDot)
package org.flintparticles.common.displayObjects {
import flash.geom.*;
import flash.display.*;
public class RadialDot extends Shape {
private var _color:uint;
private var _radius:Number;
public function RadialDot(_arg1:Number=1, _arg2:uint=0xFFFFFF, _arg3:String="normal"){
_radius = _arg1;
_color = _arg2;
draw();
blendMode = _arg3;
}
public function get radius():Number{
return (_radius);
}
public function set radius(_arg1:Number):void{
_radius = _arg1;
draw();
}
private function draw():void{
var _local1:Matrix;
graphics.clear();
_local1 = new Matrix();
_local1.createGradientBox((_radius * 2), (_radius * 2), 0, -(_radius), -(_radius));
graphics.beginGradientFill(GradientType.RADIAL, [_color, _color], [1, 0], [0, 0xFF], _local1);
graphics.drawCircle(0, 0, _radius);
graphics.endFill();
}
public function get color():uint{
return (_color);
}
public function set color(_arg1:uint):void{
_color = _arg1;
draw();
}
}
}//package org.flintparticles.common.displayObjects
Section 53
//Emitter (org.flintparticles.common.emitters.Emitter)
package org.flintparticles.common.emitters {
import org.flintparticles.common.particles.*;
import org.flintparticles.common.behaviours.*;
import flash.events.*;
import org.flintparticles.common.initializers.*;
import org.flintparticles.common.actions.*;
import org.flintparticles.common.activities.*;
import org.flintparticles.common.counters.*;
import org.flintparticles.common.events.*;
import org.flintparticles.common.utils.*;
public class Emitter extends EventDispatcher {
protected var _running:Boolean;// = false
protected var _activities:Array;
protected var _particles:Array;
protected var _initializers:Array;
protected var _dispatchCounterComplete:Boolean;// = false
protected var _counter:Counter;
protected var _started:Boolean;// = false
protected var _actions:Array;
protected var _useInternalTick:Boolean;// = true
protected var _fixedFrameTime:Number;// = 0
protected var _particleFactory:ParticleFactory;
protected var _maximumFrameTime:Number;// = 0.1
public function Emitter(){
_useInternalTick = true;
_fixedFrameTime = 0;
_running = false;
_started = false;
_maximumFrameTime = 0.1;
_dispatchCounterComplete = false;
super();
_particles = new Array();
_actions = new Array();
_initializers = new Array();
_activities = new Array();
_counter = new ZeroCounter();
}
public function dispatchCounterComplete():void{
_dispatchCounterComplete = true;
}
public function get counter():Counter{
return (_counter);
}
public function runAhead(_arg1:Number, _arg2:Number=10):void{
var _local3:Number;
var _local4:Number;
_local3 = _maximumFrameTime;
_local4 = (1 / _arg2);
_maximumFrameTime = _local4;
while (_arg1 > 0) {
_arg1 = (_arg1 - _local4);
update(_local4);
};
_maximumFrameTime = _local3;
}
public function addInitializer(_arg1:Initializer):void{
BehaviourArrayUtils.add(_initializers, _arg1);
_arg1.addedToEmitter(this);
}
public function killAllParticles():void{
var _local1:int;
var _local2:int;
_local1 = _particles.length;
_local2 = 0;
while (_local2 < _local1) {
dispatchEvent(new ParticleEvent(ParticleEvent.PARTICLE_DEAD, _particles[_local2]));
_particleFactory.disposeParticle(_particles[_local2]);
_local2++;
};
_particles.length = 0;
}
public function stop():void{
if (_useInternalTick){
FrameUpdater.instance.removeEventListener(UpdateEvent.UPDATE, updateEventListener);
};
_started = false;
_running = false;
killAllParticles();
}
public function set fixedFrameTime(_arg1:Number):void{
_fixedFrameTime = _arg1;
}
public function get maximumFrameTime():Number{
return (_maximumFrameTime);
}
public function set particles(_arg1:Array):void{
killAllParticles();
addExistingParticles(_arg1, false);
}
public function get useInternalTick():Boolean{
return (_useInternalTick);
}
public function set initializers(_arg1:Array):void{
var _local2:Initializer;
for each (_local2 in _initializers) {
_local2.removedFromEmitter(this);
};
_initializers = _arg1.slice();
BehaviourArrayUtils.sortArray(_initializers);
for each (_local2 in _arg1) {
_local2.addedToEmitter(this);
};
}
public function get particleFactory():ParticleFactory{
return (_particleFactory);
}
private function updateEventListener(_arg1:UpdateEvent):void{
if (_fixedFrameTime){
update(_fixedFrameTime);
} else {
update(_arg1.time);
};
}
protected function createParticle():Particle{
var _local1:Particle;
var _local2:int;
var _local3:int;
_local1 = _particleFactory.createParticle();
_local2 = _initializers.length;
initParticle(_local1);
_local3 = 0;
while (_local3 < _local2) {
Initializer(_initializers[_local3]).initialize(this, _local1);
_local3++;
};
_particles.push(_local1);
dispatchEvent(new ParticleEvent(ParticleEvent.PARTICLE_CREATED, _local1));
return (_local1);
}
protected function sortParticles():void{
}
public function set maximumFrameTime(_arg1:Number):void{
_maximumFrameTime = _arg1;
}
protected function initParticle(_arg1:Particle):void{
}
public function addAction(_arg1:Action):void{
BehaviourArrayUtils.add(_actions, _arg1);
_arg1.addedToEmitter(this);
}
public function hasInitializerOfType(_arg1:Class):Boolean{
return (BehaviourArrayUtils.containsType(_initializers, _arg1));
}
public function removeActivity(_arg1:Activity):void{
if (BehaviourArrayUtils.remove(_activities, _arg1)){
_arg1.removedFromEmitter(this);
};
}
public function removeInitializer(_arg1:Initializer):void{
if (BehaviourArrayUtils.remove(_initializers, _arg1)){
_arg1.removedFromEmitter(this);
};
}
public function get running():Boolean{
return (_running);
}
public function hasActionOfType(_arg1:Class):Boolean{
return (BehaviourArrayUtils.containsType(_actions, _arg1));
}
public function get fixedFrameTime():Number{
return (_fixedFrameTime);
}
public function set particleFactory(_arg1:ParticleFactory):void{
_particleFactory = _arg1;
}
public function hasActivity(_arg1:Activity):Boolean{
return (BehaviourArrayUtils.contains(_activities, _arg1));
}
public function get particles():Array{
return (_particles);
}
public function addActivity(_arg1:Activity):void{
BehaviourArrayUtils.add(_activities, _arg1);
_arg1.addedToEmitter(this);
}
public function get initializers():Array{
return (_initializers);
}
public function removeAction(_arg1:Action):void{
if (BehaviourArrayUtils.remove(_actions, _arg1)){
_arg1.removedFromEmitter(this);
};
}
public function set activities(_arg1:Array):void{
var _local2:Activity;
for each (_local2 in _activities) {
_local2.removedFromEmitter(this);
};
_activities = _arg1.slice();
BehaviourArrayUtils.sortArray(_activities);
for each (_local2 in _activities) {
_local2.addedToEmitter(this);
};
}
public function addExistingParticles(_arg1:Array, _arg2:Boolean=false):void{
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
_local3 = _arg1.length;
if (_arg2){
_local5 = _initializers.length;
_local6 = 0;
while (_local6 < _local5) {
_local4 = 0;
while (_local4 < _local3) {
Initializer(_initializers[_local6]).initialize(this, _arg1[_local4]);
_local4++;
};
_local6++;
};
};
_local4 = 0;
while (_local4 < _local3) {
_particles.push(_arg1[_local4]);
dispatchEvent(new ParticleEvent(ParticleEvent.PARTICLE_ADDED, _arg1[_local4]));
_local4++;
};
}
public function set useInternalTick(_arg1:Boolean):void{
if (_useInternalTick != _arg1){
_useInternalTick = _arg1;
if (_started){
if (_useInternalTick){
FrameUpdater.instance.addEventListener(UpdateEvent.UPDATE, updateEventListener, false, 0, true);
} else {
FrameUpdater.instance.removeEventListener(UpdateEvent.UPDATE, updateEventListener);
};
};
};
}
public function resume():void{
_running = true;
}
public function hasInitializer(_arg1:Initializer):Boolean{
return (BehaviourArrayUtils.contains(_initializers, _arg1));
}
public function hasActivityOfType(_arg1:Class):Boolean{
return (BehaviourArrayUtils.containsType(_activities, _arg1));
}
public function update(_arg1:Number):void{
var _local2:int;
var _local3:Particle;
var _local4:int;
var _local5:Action;
var _local6:int;
var _local7:int;
if (!_running){
return;
};
if (_arg1 > _maximumFrameTime){
_arg1 = _maximumFrameTime;
};
_local4 = _counter.updateEmitter(this, _arg1);
_local2 = 0;
while (_local2 < _local4) {
createParticle();
_local2++;
};
sortParticles();
_local4 = _activities.length;
_local2 = 0;
while (_local2 < _local4) {
Activity(_activities[_local2]).update(this, _arg1);
_local2++;
};
if (_particles.length > 0){
_local4 = _actions.length;
_local6 = _particles.length;
_local7 = 0;
while (_local7 < _local4) {
_local5 = _actions[_local7];
_local2 = 0;
while (_local2 < _local6) {
_local3 = _particles[_local2];
_local5.update(this, _local3, _arg1);
_local2++;
};
_local7++;
};
_local2 = _local6;
while (_local2--) {
_local3 = _particles[_local2];
if (_local3.isDead){
_particles.splice(_local2, 1);
dispatchEvent(new ParticleEvent(ParticleEvent.PARTICLE_DEAD, _local3));
if (_local3.isDead){
_particleFactory.disposeParticle(_local3);
};
};
};
} else {
dispatchEvent(new EmitterEvent(EmitterEvent.EMITTER_EMPTY));
};
dispatchEvent(new EmitterEvent(EmitterEvent.EMITTER_UPDATED));
if (_dispatchCounterComplete){
_dispatchCounterComplete = false;
dispatchEvent(new EmitterEvent(EmitterEvent.COUNTER_COMPLETE));
};
}
public function get activities():Array{
return (_activities);
}
public function hasAction(_arg1:Action):Boolean{
return (BehaviourArrayUtils.contains(_actions, _arg1));
}
public function start():void{
var _local1:int;
var _local2:int;
if (_useInternalTick){
FrameUpdater.instance.addEventListener(UpdateEvent.UPDATE, updateEventListener, false, 0, true);
};
_started = true;
_running = true;
_local1 = _activities.length;
_local2 = 0;
while (_local2 < _local1) {
Activity(_activities[_local2]).initialize(this);
_local2++;
};
_local1 = _counter.startEmitter(this);
_local2 = 0;
while (_local2 < _local1) {
createParticle();
_local2++;
};
}
public function pause():void{
_running = false;
}
public function set actions(_arg1:Array):void{
var _local2:Action;
for each (_local2 in _actions) {
_local2.removedFromEmitter(this);
};
_actions = _arg1.slice();
BehaviourArrayUtils.sortArray(_actions);
for each (_local2 in _arg1) {
_local2.addedToEmitter(this);
};
}
public function get actions():Array{
return (_actions);
}
public function set counter(_arg1:Counter):void{
_counter = _arg1;
if (running){
_counter.startEmitter(this);
};
}
}
}//package org.flintparticles.common.emitters
Section 54
//Linear (org.flintparticles.common.energyEasing.Linear)
package org.flintparticles.common.energyEasing {
public class Linear {
public static function easeOut(_arg1:Number, _arg2:Number):Number{
return ((1 - (_arg1 / _arg2)));
}
public static function easeIn(_arg1:Number, _arg2:Number):Number{
return ((1 - (_arg1 / _arg2)));
}
public static function easeInOut(_arg1:Number, _arg2:Number):Number{
return ((1 - (_arg1 / _arg2)));
}
public static function easeNone(_arg1:Number, _arg2:Number):Number{
return ((1 - (_arg1 / _arg2)));
}
}
}//package org.flintparticles.common.energyEasing
Section 55
//EmitterEvent (org.flintparticles.common.events.EmitterEvent)
package org.flintparticles.common.events {
import flash.events.*;
public class EmitterEvent extends Event {
public static var COUNTER_COMPLETE:String = "counterComplete";
public static var EMITTER_UPDATED:String = "emitterUpdated";
public static var EMITTER_EMPTY:String = "emitterEmpty";
public function EmitterEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
}
}//package org.flintparticles.common.events
Section 56
//ParticleEvent (org.flintparticles.common.events.ParticleEvent)
package org.flintparticles.common.events {
import org.flintparticles.common.particles.*;
import flash.events.*;
public class ParticleEvent extends Event {
public var particle:Particle;
public var otherObject;
public static var PARTICLES_COLLISION:String = "particlesCollision";
public static var BOUNDING_BOX_COLLISION:String = "boundingBoxCollision";
public static var PARTICLE_ADDED:String = "particleAdded";
public static var PARTICLE_CREATED:String = "particleCreated";
public static var PARTICLE_DEAD:String = "particleDead";
public static var ZONE_COLLISION:String = "zoneCollision";
public function ParticleEvent(_arg1:String, _arg2:Particle=null, _arg3:Boolean=false, _arg4:Boolean=false){
super(_arg1, _arg3, _arg4);
this.particle = _arg2;
}
override public function clone():Event{
var _local1:ParticleEvent;
_local1 = new ParticleEvent(type, particle, bubbles, cancelable);
_local1.otherObject = otherObject;
return (_local1);
}
}
}//package org.flintparticles.common.events
Section 57
//UpdateEvent (org.flintparticles.common.events.UpdateEvent)
package org.flintparticles.common.events {
import flash.events.*;
public class UpdateEvent extends Event {
public var time:Number;
public static var UPDATE:String = "update";
public function UpdateEvent(_arg1:String, _arg2:Number=NaN, _arg3:Boolean=false, _arg4:Boolean=false){
super(_arg1, _arg3, _arg4);
this.time = _arg2;
}
override public function clone():Event{
return (new UpdateEvent(type, time, bubbles, cancelable));
}
}
}//package org.flintparticles.common.events
Section 58
//ColorInit (org.flintparticles.common.initializers.ColorInit)
package org.flintparticles.common.initializers {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.utils.*;
public class ColorInit extends InitializerBase {
private var _min:uint;
private var _max:uint;
public function ColorInit(_arg1:uint=0xFFFFFF, _arg2:uint=0xFFFFFF){
_min = _arg1;
_max = _arg2;
}
public function set color(_arg1:uint):void{
_max = (_min = _arg1);
}
override public function initialize(_arg1:Emitter, _arg2:Particle):void{
if (_max == _min){
_arg2.color = _min;
} else {
_arg2.color = interpolateColors(_min, _max, Math.random());
};
}
public function get maxColor():uint{
return (_max);
}
public function set minColor(_arg1:uint):void{
_min = _arg1;
}
public function get color():uint{
return (((_min == _max)) ? _min : interpolateColors(_max, _min, 0.5));
}
public function get minColor():uint{
return (_min);
}
public function set maxColor(_arg1:uint):void{
_max = _arg1;
}
}
}//package org.flintparticles.common.initializers
Section 59
//ImageClass (org.flintparticles.common.initializers.ImageClass)
package org.flintparticles.common.initializers {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.utils.*;
public class ImageClass extends InitializerBase {
private var _parameters:Array;
private var _imageClass:Class;
public function ImageClass(_arg1:Class=null, ... _args){
_imageClass = _arg1;
_parameters = _args;
}
public function set imageClass(_arg1:Class):void{
_imageClass = _arg1;
}
public function get parameters():Array{
return (_parameters);
}
override public function initialize(_arg1:Emitter, _arg2:Particle):void{
_arg2.image = construct(_imageClass, _parameters);
}
public function set parameters(_arg1:Array):void{
_parameters = _arg1;
}
public function get imageClass():Class{
return (_imageClass);
}
}
}//package org.flintparticles.common.initializers
Section 60
//Initializer (org.flintparticles.common.initializers.Initializer)
package org.flintparticles.common.initializers {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.behaviours.*;
public interface Initializer extends Behaviour {
function initialize(_arg1:Emitter, _arg2:Particle):void;
}
}//package org.flintparticles.common.initializers
Section 61
//InitializerBase (org.flintparticles.common.initializers.InitializerBase)
package org.flintparticles.common.initializers {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
public class InitializerBase implements Initializer {
protected var _priority:int;// = 0
public function InitializerBase(){
_priority = 0;
super();
}
public function get priority():int{
return (_priority);
}
public function set priority(_arg1:int):void{
_priority = _arg1;
}
public function initialize(_arg1:Emitter, _arg2:Particle):void{
}
public function addedToEmitter(_arg1:Emitter):void{
}
public function removedFromEmitter(_arg1:Emitter):void{
}
}
}//package org.flintparticles.common.initializers
Section 62
//Lifetime (org.flintparticles.common.initializers.Lifetime)
package org.flintparticles.common.initializers {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
public class Lifetime extends InitializerBase {
private var _min:Number;
private var _max:Number;
public function Lifetime(_arg1:Number=1.79769313486232E308, _arg2:Number=NaN){
_max = _arg2;
_min = _arg1;
}
public function get lifetime():Number{
return (((_min == _max)) ? _min : ((_max + _min) * 0.5));
}
public function get maxLifetime():Number{
return (_max);
}
override public function initialize(_arg1:Emitter, _arg2:Particle):void{
if (isNaN(_max)){
_arg2.lifetime = _min;
} else {
_arg2.lifetime = (_min + (Math.random() * (_max - _min)));
};
}
public function set lifetime(_arg1:Number):void{
_max = (_min = _arg1);
}
public function set maxLifetime(_arg1:Number):void{
_max = _arg1;
}
public function set minLifetime(_arg1:Number):void{
_min = _arg1;
}
public function get minLifetime():Number{
return (_min);
}
}
}//package org.flintparticles.common.initializers
Section 63
//ScaleImageInit (org.flintparticles.common.initializers.ScaleImageInit)
package org.flintparticles.common.initializers {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
public class ScaleImageInit extends InitializerBase {
private var _min:Number;
private var _max:Number;
public function ScaleImageInit(_arg1:Number=1, _arg2:Number=NaN){
_min = _arg1;
if (isNaN(_arg2)){
_max = _min;
} else {
_max = _arg2;
};
}
public function set maxScale(_arg1:Number):void{
_max = _arg1;
}
public function get maxScale():Number{
return (_max);
}
override public function initialize(_arg1:Emitter, _arg2:Particle):void{
if (_max == _min){
_arg2.scale = _min;
} else {
_arg2.scale = (_min + (Math.random() * (_max - _min)));
};
}
public function get scale():Number{
return (((_min == _max)) ? _min : ((_max + _min) / 2));
}
public function set scale(_arg1:Number):void{
_max = (_min = _arg1);
}
public function get minScale():Number{
return (_min);
}
public function set minScale(_arg1:Number):void{
_min = _arg1;
}
}
}//package org.flintparticles.common.initializers
Section 64
//Particle (org.flintparticles.common.particles.Particle)
package org.flintparticles.common.particles {
import flash.geom.*;
import flash.utils.*;
public class Particle {
public var lifetime:Number;// = 0
public var scale:Number;// = 1
public var energy:Number;// = 1
public var image;// = null
public var color:uint;// = 4294967295
public var collisionRadius:Number;// = 1
private var _colorTransform:ColorTransform;// = null
private var _previousColor:uint;
public var isDead:Boolean;// = false
public var mass:Number;// = 1
private var _dictionary:Dictionary;// = null
public var age:Number;// = 0
public function Particle(){
color = 4294967295;
_colorTransform = null;
scale = 1;
mass = 1;
collisionRadius = 1;
image = null;
lifetime = 0;
age = 0;
energy = 1;
isDead = false;
_dictionary = null;
super();
}
public function revive():void{
lifetime = 0;
age = 0;
energy = 1;
isDead = false;
}
public function get dictionary():Dictionary{
if (_dictionary == null){
_dictionary = new Dictionary(true);
};
return (_dictionary);
}
public function get colorTransform():ColorTransform{
if (((!(_colorTransform)) || (!((_previousColor == color))))){
_colorTransform = new ColorTransform((((color >>> 16) & 0xFF) / 0xFF), (((color >>> 8) & 0xFF) / 0xFF), ((color & 0xFF) / 0xFF), (((color >>> 24) & 0xFF) / 0xFF), 0, 0, 0, 0);
_previousColor = color;
};
return (_colorTransform);
}
protected function cloneInto(_arg1:Particle):Particle{
var _local2:Object;
_arg1.color = color;
_arg1.scale = scale;
_arg1.mass = mass;
_arg1.collisionRadius = collisionRadius;
_arg1.lifetime = lifetime;
_arg1.age = age;
_arg1.energy = energy;
_arg1.isDead = isDead;
_arg1.image = image;
if (_dictionary){
_arg1._dictionary = new Dictionary(true);
for (_local2 in _dictionary) {
_arg1._dictionary[_local2] = _dictionary[_local2];
};
};
return (_arg1);
}
public function get alpha():Number{
return ((((color & 4278190080) >>> 24) / 0xFF));
}
public function clone(_arg1:ParticleFactory=null):Particle{
var _local2:Particle;
if (_arg1){
_local2 = _arg1.createParticle();
} else {
_local2 = new Particle();
};
return (cloneInto(_local2));
}
public function initialize():void{
color = 4294967295;
scale = 1;
mass = 1;
collisionRadius = 1;
lifetime = 0;
age = 0;
energy = 1;
isDead = false;
image = null;
_dictionary = null;
_colorTransform = null;
}
}
}//package org.flintparticles.common.particles
Section 65
//ParticleFactory (org.flintparticles.common.particles.ParticleFactory)
package org.flintparticles.common.particles {
public interface ParticleFactory {
function createParticle():Particle;
function disposeParticle(_arg1:Particle):void;
function clearAllParticles():void;
}
}//package org.flintparticles.common.particles
Section 66
//Renderer (org.flintparticles.common.renderers.Renderer)
package org.flintparticles.common.renderers {
import org.flintparticles.common.emitters.*;
public interface Renderer {
function removeEmitter(_arg1:Emitter):void;
function addEmitter(_arg1:Emitter):void;
}
}//package org.flintparticles.common.renderers
Section 67
//SpriteRendererBase (org.flintparticles.common.renderers.SpriteRendererBase)
package org.flintparticles.common.renderers {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import flash.events.*;
import org.flintparticles.common.events.*;
import flash.display.*;
public class SpriteRendererBase extends Sprite implements Renderer {
protected var _emitters:Array;
public function SpriteRendererBase(){
_emitters = new Array();
mouseEnabled = false;
mouseChildren = false;
addEventListener(Event.ADDED_TO_STAGE, addedToStage, false, 0, true);
}
private function particleAdded(_arg1:ParticleEvent):void{
addParticle(_arg1.particle);
if (stage){
stage.invalidate();
};
}
private function addedToStage(_arg1:Event):void{
if (stage){
stage.invalidate();
};
}
protected function removeParticle(_arg1:Particle):void{
}
protected function addParticle(_arg1:Particle):void{
}
public function removeEmitter(_arg1:Emitter):void{
var _local2:int;
var _local3:Particle;
_local2 = 0;
while (_local2 < _emitters.length) {
if (_emitters[_local2] == _arg1){
_emitters.splice(_local2, 1);
_arg1.removeEventListener(EmitterEvent.EMITTER_UPDATED, emitterUpdated);
_arg1.removeEventListener(ParticleEvent.PARTICLE_CREATED, particleAdded);
_arg1.removeEventListener(ParticleEvent.PARTICLE_ADDED, particleAdded);
_arg1.removeEventListener(ParticleEvent.PARTICLE_DEAD, particleRemoved);
for each (_local3 in _arg1.particles) {
removeParticle(_local3);
};
if (_emitters.length == 0){
removeEventListener(Event.RENDER, updateParticles);
renderParticles([]);
} else {
if (stage){
stage.invalidate();
};
};
return;
};
_local2++;
};
}
protected function emitterUpdated(_arg1:EmitterEvent):void{
if (stage){
stage.invalidate();
};
}
public function set emitters(_arg1:Array):void{
var _local2:Emitter;
for each (_local2 in _emitters) {
removeEmitter(_local2);
};
for each (_local2 in _arg1) {
addEmitter(_local2);
};
}
public function addEmitter(_arg1:Emitter):void{
var _local2:Particle;
_emitters.push(_arg1);
if (stage){
stage.invalidate();
};
_arg1.addEventListener(EmitterEvent.EMITTER_UPDATED, emitterUpdated, false, 0, true);
_arg1.addEventListener(ParticleEvent.PARTICLE_CREATED, particleAdded, false, 0, true);
_arg1.addEventListener(ParticleEvent.PARTICLE_ADDED, particleAdded, false, 0, true);
_arg1.addEventListener(ParticleEvent.PARTICLE_DEAD, particleRemoved, false, 0, true);
for each (_local2 in _arg1.particles) {
addParticle(_local2);
};
if (_emitters.length == 1){
addEventListener(Event.RENDER, updateParticles, false, 0, true);
};
}
protected function renderParticles(_arg1:Array):void{
}
public function get emitters():Array{
return (_emitters);
}
protected function updateParticles(_arg1:Event):void{
var _local2:Array;
var _local3:int;
_local2 = new Array();
_local3 = 0;
while (_local3 < _emitters.length) {
_local2 = _local2.concat(Emitter(_emitters[_local3]).particles);
_local3++;
};
renderParticles(_local2);
}
private function particleRemoved(_arg1:ParticleEvent):void{
removeParticle(_arg1.particle);
if (stage){
stage.invalidate();
};
}
}
}//package org.flintparticles.common.renderers
Section 68
//construct (org.flintparticles.common.utils.construct)
package org.flintparticles.common.utils {
public function construct(_arg1:Class, _arg2:Array){
switch (_arg2.length){
case 0:
return (new (_arg1));
case 1:
return (new _arg1(_arg2[0]));
case 2:
return (new _arg1(_arg2[0], _arg2[1]));
case 3:
return (new _arg1(_arg2[0], _arg2[1], _arg2[2]));
case 4:
return (new _arg1(_arg2[0], _arg2[1], _arg2[2], _arg2[3]));
case 5:
return (new _arg1(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4]));
case 6:
return (new _arg1(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5]));
case 7:
return (new _arg1(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5], _arg2[6]));
case 8:
return (new _arg1(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5], _arg2[6], _arg2[7]));
case 9:
return (new _arg1(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5], _arg2[6], _arg2[7], _arg2[8]));
case 10:
return (new _arg1(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5], _arg2[6], _arg2[7], _arg2[8], _arg2[9]));
default:
return (null);
};
}
}//package org.flintparticles.common.utils
Section 69
//FrameUpdater (org.flintparticles.common.utils.FrameUpdater)
package org.flintparticles.common.utils {
import flash.utils.*;
import flash.events.*;
import org.flintparticles.common.events.*;
import flash.display.*;
public class FrameUpdater extends EventDispatcher {
private var _shape:Shape;
private var _time:Number;
private var _running:Boolean;// = false
private static var _instance:FrameUpdater;
public function FrameUpdater(){
_running = false;
super();
_shape = new Shape();
}
private function stopTimer():void{
_shape.removeEventListener(Event.ENTER_FRAME, frameUpdate);
_running = false;
}
override public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
super.removeEventListener(_arg1, _arg2, _arg3);
if (((_running) && (!(hasEventListener(UpdateEvent.UPDATE))))){
stopTimer();
};
}
private function startTimer():void{
_shape.addEventListener(Event.ENTER_FRAME, frameUpdate, false, 0, true);
_time = getTimer();
_running = true;
}
private function frameUpdate(_arg1:Event):void{
var _local2:int;
var _local3:Number;
_local2 = _time;
_time = getTimer();
_local3 = ((_time - _local2) * 0.001);
dispatchEvent(new UpdateEvent(UpdateEvent.UPDATE, _local3));
}
override public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
super.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
if (((!(_running)) && (hasEventListener(UpdateEvent.UPDATE)))){
startTimer();
};
}
public static function get instance():FrameUpdater{
if (_instance == null){
_instance = new (FrameUpdater);
};
return (_instance);
}
}
}//package org.flintparticles.common.utils
Section 70
//interpolateColors (org.flintparticles.common.utils.interpolateColors)
package org.flintparticles.common.utils {
public function interpolateColors(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:uint;
_local4 = (1 - _arg3);
_local5 = Math.round(((((_arg1 >>> 16) & 0xFF) * _arg3) + (((_arg2 >>> 16) & 0xFF) * _local4)));
_local6 = Math.round(((((_arg1 >>> 8) & 0xFF) * _arg3) + (((_arg2 >>> 8) & 0xFF) * _local4)));
_local7 = Math.round((((_arg1 & 0xFF) * _arg3) + ((_arg2 & 0xFF) * _local4)));
_local8 = Math.round(((((_arg1 >>> 24) & 0xFF) * _arg3) + (((_arg2 >>> 24) & 0xFF) * _local4)));
return (((((_local8 << 24) | (_local5 << 16)) | (_local6 << 8)) | _local7));
}
}//package org.flintparticles.common.utils
Section 71
//Maths (org.flintparticles.common.utils.Maths)
package org.flintparticles.common.utils {
public class Maths {
private static const DEGTORAD:Number = 0.0174532925199433;
private static const RADTODEG:Number = 57.2957795130823;
public static function asRadians(_arg1:Number):Number{
return ((_arg1 * DEGTORAD));
}
public static function asDegrees(_arg1:Number):Number{
return ((_arg1 * RADTODEG));
}
}
}//package org.flintparticles.common.utils
Section 72
//Accelerate (org.flintparticles.twoD.actions.Accelerate)
package org.flintparticles.twoD.actions {
import org.flintparticles.twoD.particles.*;
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.actions.*;
public class Accelerate extends ActionBase {
private var _y:Number;
private var _x:Number;
public function Accelerate(_arg1:Number=0, _arg2:Number=0){
this.x = _arg1;
this.y = _arg2;
}
public function set y(_arg1:Number):void{
_y = _arg1;
}
override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
var _local4:Particle2D;
_local4 = Particle2D(_arg2);
Particle2D(_arg2).velX = (_local4.velX + (_x * _arg3));
_local4.velY = (_local4.velY + (_y * _arg3));
}
public function set x(_arg1:Number):void{
_x = _arg1;
}
public function get x():Number{
return (_x);
}
public function get y():Number{
return (_y);
}
}
}//package org.flintparticles.twoD.actions
Section 73
//DeathZone (org.flintparticles.twoD.actions.DeathZone)
package org.flintparticles.twoD.actions {
import org.flintparticles.twoD.particles.*;
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.actions.*;
import org.flintparticles.twoD.zones.*;
public class DeathZone extends ActionBase {
private var _zone:Zone2D;
private var _invertZone:Boolean;
private var p:Particle2D;
private var inside:Boolean;
public function DeathZone(_arg1:Zone2D=null, _arg2:Boolean=false){
priority = -20;
this.zone = _arg1;
this.zoneIsSafe = _arg2;
}
public function set zoneIsSafe(_arg1:Boolean):void{
_invertZone = _arg1;
}
override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
p = Particle2D(_arg2);
inside = _zone.contains(p.x, p.y);
if (_invertZone){
if (!inside){
p.isDead = true;
};
} else {
if (inside){
p.isDead = true;
};
};
}
public function set zone(_arg1:Zone2D):void{
_zone = _arg1;
}
public function get zoneIsSafe():Boolean{
return (_invertZone);
}
public function get zone():Zone2D{
return (_zone);
}
}
}//package org.flintparticles.twoD.actions
Section 74
//Move (org.flintparticles.twoD.actions.Move)
package org.flintparticles.twoD.actions {
import org.flintparticles.twoD.particles.*;
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.actions.*;
public class Move extends ActionBase {
public function Move(){
priority = -10;
}
override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
var _local4:Particle2D;
_local4 = Particle2D(_arg2);
Particle2D(_arg2).previousX = _local4.x;
_local4.previousY = _local4.y;
_local4.x = (_local4.x + (_local4.velX * _arg3));
_local4.y = (_local4.y + (_local4.velY * _arg3));
}
}
}//package org.flintparticles.twoD.actions
Section 75
//RandomDrift (org.flintparticles.twoD.actions.RandomDrift)
package org.flintparticles.twoD.actions {
import org.flintparticles.twoD.particles.*;
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.actions.*;
public class RandomDrift extends ActionBase {
private var _sizeX:Number;
private var _sizeY:Number;
public function RandomDrift(_arg1:Number=0, _arg2:Number=0){
this.driftX = _arg1;
this.driftY = _arg2;
}
public function set driftY(_arg1:Number):void{
_sizeY = (_arg1 * 2);
}
public function set driftX(_arg1:Number):void{
_sizeX = (_arg1 * 2);
}
override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
var _local4:Particle2D;
_local4 = Particle2D(_arg2);
Particle2D(_arg2).velX = (_local4.velX + (((Math.random() - 0.5) * _sizeX) * _arg3));
_local4.velY = (_local4.velY + (((Math.random() - 0.5) * _sizeY) * _arg3));
}
public function get driftX():Number{
return ((_sizeX / 2));
}
public function get driftY():Number{
return ((_sizeY / 2));
}
}
}//package org.flintparticles.twoD.actions
Section 76
//Rotate (org.flintparticles.twoD.actions.Rotate)
package org.flintparticles.twoD.actions {
import org.flintparticles.twoD.particles.*;
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.actions.*;
public class Rotate extends ActionBase {
public function Rotate(){
priority = -10;
}
override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
var _local4:Particle2D;
_local4 = Particle2D(_arg2);
Particle2D(_arg2).rotation = (_local4.rotation + (_local4.angVelocity * _arg3));
}
}
}//package org.flintparticles.twoD.actions
Section 77
//SpeedLimit (org.flintparticles.twoD.actions.SpeedLimit)
package org.flintparticles.twoD.actions {
import org.flintparticles.twoD.particles.*;
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.actions.*;
public class SpeedLimit extends ActionBase {
private var _isMinimum:Boolean;
private var _limit:Number;
private var _limitSq:Number;
public function SpeedLimit(_arg1:Number=1.79769313486232E308, _arg2:Boolean=false){
priority = -5;
this.limit = _arg1;
this.isMinimum = _arg2;
}
public function get isMinimum():Boolean{
return (_isMinimum);
}
override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
var _local4:Particle2D;
var _local5:Number;
var _local6:Number;
_local4 = Particle2D(_arg2);
_local5 = ((_local4.velX * _local4.velX) + (_local4.velY * _local4.velY));
if (((((_isMinimum) && ((_local5 < _limitSq)))) || (((!(_isMinimum)) && ((_local5 > _limitSq)))))){
_local6 = (_limit / Math.sqrt(_local5));
_local4.velX = (_local4.velX * _local6);
_local4.velY = (_local4.velY * _local6);
};
}
public function set isMinimum(_arg1:Boolean):void{
_isMinimum = _arg1;
}
public function set limit(_arg1:Number):void{
_limit = _arg1;
_limitSq = (_arg1 * _arg1);
}
public function get limit():Number{
return (_limit);
}
}
}//package org.flintparticles.twoD.actions
Section 78
//Emitter2D (org.flintparticles.twoD.emitters.Emitter2D)
package org.flintparticles.twoD.emitters {
import org.flintparticles.twoD.particles.*;
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.utils.*;
public class Emitter2D extends Emitter {
protected var _y:Number;// = 0
protected var _x:Number;// = 0
public var spaceSort:Boolean;// = false
public var spaceSortedX:Array;
protected var _rotation:Number;// = 0
protected static var _creator:ParticleCreator2D = new ParticleCreator2D();
public function Emitter2D(){
_x = 0;
_y = 0;
_rotation = 0;
spaceSort = false;
super();
_particleFactory = _creator;
}
public function set rotation(_arg1:Number):void{
_rotation = Maths.asRadians(_arg1);
}
public function get x():Number{
return (_x);
}
public function set y(_arg1:Number):void{
_y = _arg1;
}
override protected function sortParticles():void{
var _local1:int;
var _local2:int;
if (spaceSort){
spaceSortedX = _particles.sortOn("x", (Array.NUMERIC | Array.RETURNINDEXEDARRAY));
_local1 = _particles.length;
_local2 = 0;
while (_local2 < _local1) {
Particle2D(_particles[spaceSortedX[_local2]]).sortID = _local2;
_local2++;
};
};
}
public function get y():Number{
return (_y);
}
override protected function initParticle(_arg1:Particle):void{
var _local2:Particle2D;
_local2 = Particle2D(_arg1);
_local2.x = _x;
_local2.y = _y;
_local2.previousX = _x;
_local2.previousY = _y;
_local2.rotation = _rotation;
}
public function set rotRadians(_arg1:Number):void{
_rotation = _arg1;
}
public function get rotRadians():Number{
return (_rotation);
}
public function set x(_arg1:Number):void{
_x = _arg1;
}
public function get rotation():Number{
return (Maths.asDegrees(_rotation));
}
public static function get defaultParticleFactory():ParticleFactory{
return (_creator);
}
}
}//package org.flintparticles.twoD.emitters
Section 79
//Position (org.flintparticles.twoD.initializers.Position)
package org.flintparticles.twoD.initializers {
import flash.geom.*;
import org.flintparticles.twoD.particles.*;
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.initializers.*;
import org.flintparticles.twoD.zones.*;
public class Position extends InitializerBase {
private var _zone:Zone2D;
public function Position(_arg1:Zone2D=null){
this.zone = _arg1;
}
public function get zone():Zone2D{
return (_zone);
}
override public function initialize(_arg1:Emitter, _arg2:Particle):void{
var _local3:Particle2D;
var _local4:Point;
var _local5:Number;
var _local6:Number;
_local3 = Particle2D(_arg2);
_local4 = _zone.getLocation();
if (_local3.rotation == 0){
_local3.x = (_local3.x + _local4.x);
_local3.y = (_local3.y + _local4.y);
} else {
_local5 = Math.sin(_local3.rotation);
_local6 = Math.cos(_local3.rotation);
_local3.x = (_local3.x + ((_local6 * _local4.x) - (_local5 * _local4.y)));
_local3.y = (_local3.y + ((_local6 * _local4.y) + (_local5 * _local4.x)));
};
_local3.previousX = _local3.x;
_local3.previousY = _local3.y;
}
public function set zone(_arg1:Zone2D):void{
_zone = _arg1;
}
}
}//package org.flintparticles.twoD.initializers
Section 80
//RotateVelocity (org.flintparticles.twoD.initializers.RotateVelocity)
package org.flintparticles.twoD.initializers {
import org.flintparticles.twoD.particles.*;
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.initializers.*;
public class RotateVelocity extends InitializerBase {
private var _min:Number;
private var _max:Number;
public function RotateVelocity(_arg1:Number=0, _arg2:Number=NaN){
this.minAngVelocity = _arg1;
this.maxAngVelocity = _arg2;
}
override public function initialize(_arg1:Emitter, _arg2:Particle):void{
var _local3:Particle2D;
_local3 = Particle2D(_arg2);
if (isNaN(_max)){
_local3.angVelocity = _min;
} else {
_local3.angVelocity = (_min + (Math.random() * (_max - _min)));
};
}
public function set minAngVelocity(_arg1:Number):void{
_min = _arg1;
}
public function get maxAngVelocity():Number{
return (_max);
}
public function get angVelocity():Number{
return (((_min == _max)) ? _min : ((_max + _min) / 2));
}
public function get minAngVelocity():Number{
return (_min);
}
public function set maxAngVelocity(_arg1:Number):void{
_max = _arg1;
}
public function set angVelocity(_arg1:Number):void{
_max = (_min = _arg1);
}
}
}//package org.flintparticles.twoD.initializers
Section 81
//Rotation (org.flintparticles.twoD.initializers.Rotation)
package org.flintparticles.twoD.initializers {
import org.flintparticles.twoD.particles.*;
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.initializers.*;
public class Rotation extends InitializerBase {
private var _min:Number;
private var _max:Number;
public function Rotation(_arg1:Number=0, _arg2:Number=NaN){
this.minAngle = _arg1;
this.maxAngle = _arg2;
}
public function set minAngle(_arg1:Number):void{
_min = _arg1;
}
override public function initialize(_arg1:Emitter, _arg2:Particle):void{
var _local3:Particle2D;
_local3 = Particle2D(_arg2);
if (isNaN(_max)){
_local3.rotation = (_local3.rotation + _min);
} else {
_local3.rotation = (_local3.rotation + (_min + (Math.random() * (_max - _min))));
};
}
public function get angle():Number{
return (((_min == _max)) ? _min : ((_max + _min) / 2));
}
public function set maxAngle(_arg1:Number):void{
_max = _arg1;
}
public function get minAngle():Number{
return (_min);
}
public function get maxAngle():Number{
return (_max);
}
public function set angle(_arg1:Number):void{
_max = (_min = _arg1);
}
}
}//package org.flintparticles.twoD.initializers
Section 82
//Velocity (org.flintparticles.twoD.initializers.Velocity)
package org.flintparticles.twoD.initializers {
import flash.geom.*;
import org.flintparticles.twoD.particles.*;
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.initializers.*;
import org.flintparticles.twoD.zones.*;
public class Velocity extends InitializerBase {
private var _zone:Zone2D;
public function Velocity(_arg1:Zone2D=null){
this.zone = _arg1;
}
public function get zone():Zone2D{
return (_zone);
}
override public function initialize(_arg1:Emitter, _arg2:Particle):void{
var _local3:Particle2D;
var _local4:Point;
var _local5:Number;
var _local6:Number;
_local3 = Particle2D(_arg2);
_local4 = _zone.getLocation();
if (_local3.rotation == 0){
_local3.velX = _local4.x;
_local3.velY = _local4.y;
} else {
_local5 = Math.sin(_local3.rotation);
_local6 = Math.cos(_local3.rotation);
_local3.velX = ((_local6 * _local4.x) - (_local5 * _local4.y));
_local3.velY = ((_local6 * _local4.y) + (_local5 * _local4.x));
};
}
public function set zone(_arg1:Zone2D):void{
_zone = _arg1;
}
}
}//package org.flintparticles.twoD.initializers
Section 83
//Particle2D (org.flintparticles.twoD.particles.Particle2D)
package org.flintparticles.twoD.particles {
import flash.geom.*;
import org.flintparticles.common.particles.*;
public class Particle2D extends Particle {
private var _previousRadius:Number;
public var sortID:int;// = -1
public var previousX:Number;// = 0
public var previousY:Number;// = 0
public var angVelocity:Number;// = 0
public var velX:Number;// = 0
private var _previousMass:Number;
public var velY:Number;// = 0
public var x:Number;// = 0
public var y:Number;// = 0
private var _inertia:Number;
public var rotation:Number;// = 0
public function Particle2D(){
x = 0;
y = 0;
previousX = 0;
previousY = 0;
velX = 0;
velY = 0;
rotation = 0;
angVelocity = 0;
sortID = -1;
super();
}
override public function initialize():void{
super.initialize();
x = 0;
y = 0;
previousX = 0;
previousY = 0;
velX = 0;
velY = 0;
rotation = 0;
angVelocity = 0;
sortID = -1;
}
public function get matrixTransform():Matrix{
var _local1:Number;
var _local2:Number;
_local1 = (scale * Math.cos(rotation));
_local2 = (scale * Math.sin(rotation));
return (new Matrix(_local1, _local2, -(_local2), _local1, x, y));
}
public function get inertia():Number{
if (((!((mass == _previousMass))) || (!((collisionRadius == _previousRadius))))){
_inertia = (((mass * collisionRadius) * collisionRadius) * 0.5);
_previousMass = mass;
_previousRadius = collisionRadius;
};
return (_inertia);
}
override public function clone(_arg1:ParticleFactory=null):Particle{
var _local2:Particle2D;
if (_arg1){
_local2 = (_arg1.createParticle() as Particle2D);
} else {
_local2 = new Particle2D();
};
cloneInto(_local2);
_local2.x = x;
_local2.y = y;
_local2.velX = velX;
_local2.velY = velY;
_local2.rotation = rotation;
_local2.angVelocity = angVelocity;
return (_local2);
}
}
}//package org.flintparticles.twoD.particles
Section 84
//ParticleCreator2D (org.flintparticles.twoD.particles.ParticleCreator2D)
package org.flintparticles.twoD.particles {
import org.flintparticles.common.particles.*;
public class ParticleCreator2D implements ParticleFactory {
private var _particles:Array;
public function ParticleCreator2D(){
_particles = new Array();
}
public function clearAllParticles():void{
_particles = new Array();
}
public function createParticle():Particle{
if (_particles.length){
return (_particles.pop());
};
return (new Particle2D());
}
public function disposeParticle(_arg1:Particle):void{
if ((_arg1 is Particle2D)){
_arg1.initialize();
_particles.push(_arg1);
};
}
}
}//package org.flintparticles.twoD.particles
Section 85
//DisplayObjectRenderer (org.flintparticles.twoD.renderers.DisplayObjectRenderer)
package org.flintparticles.twoD.renderers {
import org.flintparticles.twoD.particles.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.renderers.*;
import flash.display.*;
public class DisplayObjectRenderer extends SpriteRendererBase {
override protected function removeParticle(_arg1:Particle):void{
removeChild(_arg1.image);
}
override protected function addParticle(_arg1:Particle):void{
var _local2:Particle2D;
var _local3:DisplayObject;
_local2 = (_arg1 as Particle2D);
addChildAt(_local2.image, 0);
_local3 = _local2.image;
_local3.transform.colorTransform = _local2.colorTransform;
_local3.transform.matrix = _local2.matrixTransform;
}
override protected function renderParticles(_arg1:Array):void{
var _local2:Particle2D;
var _local3:DisplayObject;
var _local4:int;
var _local5:int;
_local4 = _arg1.length;
_local5 = 0;
while (_local5 < _local4) {
_local2 = _arg1[_local5];
_local3 = _local2.image;
_local3.transform.colorTransform = _local2.colorTransform;
_local3.transform.matrix = _local2.matrixTransform;
_local5++;
};
}
}
}//package org.flintparticles.twoD.renderers
Section 86
//LineZone (org.flintparticles.twoD.zones.LineZone)
package org.flintparticles.twoD.zones {
import flash.geom.*;
import org.flintparticles.twoD.particles.*;
public class LineZone implements Zone2D {
private var _length:Point;
private var _normal:Point;
private var _end:Point;
private var _start:Point;
private var _parallel:Point;
public function LineZone(_arg1:Point=null, _arg2:Point=null){
if (_arg1 == null){
_start = new Point(0, 0);
} else {
_start = _arg1;
};
if (_arg2 == null){
_end = new Point(0, 0);
} else {
_end = _arg2;
};
setLengthAndNormal();
}
public function getArea():Number{
return (_length.length);
}
public function set start(_arg1:Point):void{
_start = _arg1;
setLengthAndNormal();
}
private function setLengthAndNormal():void{
_length = _end.subtract(_start);
_parallel = _length.clone();
_parallel.normalize(1);
_normal = new Point(_parallel.y, -(_parallel.x));
}
public function get end():Point{
return (_end);
}
public function get endX():Number{
return (_end.x);
}
public function get endY():Number{
return (_end.y);
}
public function contains(_arg1:Number, _arg2:Number):Boolean{
if ((((_arg1 - _start.x) * _length.y) - ((_arg2 - _start.y) * _length.x)) != 0){
return (false);
};
return (((((_arg1 - _start.x) * (_arg1 - _end.x)) + ((_arg2 - _start.y) * (_arg2 - _end.y))) <= 0));
}
public function get start():Point{
return (_start);
}
public function collideParticle(_arg1:Particle2D, _arg2:Number=1):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
_local3 = (((_arg1.previousX - _start.x) * _normal.x) + ((_arg1.previousY - _start.y) * _normal.y));
_local4 = ((_arg1.velX * _normal.x) + (_arg1.velY * _normal.y));
if ((_local3 * _local4) >= 0){
return (false);
};
_local5 = (((_arg1.x - _start.x) * _normal.x) + ((_arg1.y - _start.y) * _normal.y));
if (((((_local5 * _local3) > 0)) && ((((_local5 > _arg1.collisionRadius)) || ((_local5 < -(_arg1.collisionRadius))))))){
return (false);
};
if (_local3 < 0){
_local6 = (_normal.x * _arg1.collisionRadius);
_local7 = (_normal.y * _arg1.collisionRadius);
} else {
_local6 = (-(_normal.x) * _arg1.collisionRadius);
_local7 = (-(_normal.y) * _arg1.collisionRadius);
};
_local8 = (_arg1.previousX + _local6);
_local9 = (_arg1.previousY + _local7);
_local10 = (_arg1.x + _local6);
_local11 = (_arg1.y + _local7);
_local12 = (_start.x - (_parallel.x * _arg1.collisionRadius));
_local13 = (_start.y - (_parallel.y * _arg1.collisionRadius));
_local14 = (_end.x + (_parallel.x * _arg1.collisionRadius));
_local15 = (_end.y + (_parallel.y * _arg1.collisionRadius));
_local16 = (1 / (((_local11 - _local9) * (_local14 - _local12)) - ((_local10 - _local8) * (_local15 - _local13))));
_local17 = (_local16 * (((_local10 - _local8) * (_local13 - _local9)) - ((_local11 - _local9) * (_local12 - _local8))));
if ((((_local17 < 0)) || ((_local17 > 1)))){
return (false);
};
_local18 = (-(_local16) * (((_local14 - _local12) * (_local9 - _local13)) - ((_local15 - _local13) * (_local8 - _local12))));
if ((((_local18 < 0)) || ((_local18 > 1)))){
return (false);
};
_arg1.x = (_arg1.previousX + (_local18 * (_arg1.x - _arg1.previousX)));
_arg1.y = (_arg1.previousY + (_local18 * (_arg1.y - _arg1.previousY)));
_local19 = ((_normal.x * _arg1.velX) + (_normal.y * _arg1.velY));
_local20 = ((1 + _arg2) * _local19);
_arg1.velX = (_arg1.velX - (_local20 * _normal.x));
_arg1.velY = (_arg1.velY - (_local20 * _normal.y));
return (true);
}
public function getLocation():Point{
var _local1:Point;
var _local2:Number;
_local1 = _start.clone();
_local2 = Math.random();
_local1.x = (_local1.x + (_length.x * _local2));
_local1.y = (_local1.y + (_length.y * _local2));
return (_local1);
}
public function set startX(_arg1:Number):void{
_start.x = _arg1;
_length = _end.subtract(_start);
}
public function set startY(_arg1:Number):void{
_start.y = _arg1;
_length = _end.subtract(_start);
}
public function get startX():Number{
return (_start.x);
}
public function get startY():Number{
return (_start.y);
}
public function set endX(_arg1:Number):void{
_end.x = _arg1;
_length = _end.subtract(_start);
}
public function set endY(_arg1:Number):void{
_end.y = _arg1;
_length = _end.subtract(_start);
}
public function set end(_arg1:Point):void{
_end = _arg1;
setLengthAndNormal();
}
}
}//package org.flintparticles.twoD.zones
Section 87
//PointZone (org.flintparticles.twoD.zones.PointZone)
package org.flintparticles.twoD.zones {
import flash.geom.*;
import org.flintparticles.twoD.particles.*;
public class PointZone implements Zone2D {
private var _point:Point;
public function PointZone(_arg1:Point=null){
if (_arg1 == null){
_point = new Point(0, 0);
} else {
_point = _arg1;
};
}
public function set point(_arg1:Point):void{
_point = _arg1;
}
public function getArea():Number{
return (1);
}
public function collideParticle(_arg1:Particle2D, _arg2:Number=1):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Array;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:Number;
var _local25:Number;
var _local26:Number;
_local3 = (_arg1.previousX - _point.x);
_local4 = (_arg1.previousY - _point.y);
_local5 = ((_local3 * _arg1.velX) + (_local4 * _arg1.velY));
if (_local5 >= 0){
return (false);
};
_local6 = (_arg1.x - _point.x);
_local7 = (_arg1.y - _point.y);
_local8 = _arg1.collisionRadius;
_local5 = ((_local6 * _arg1.velX) + (_local7 * _arg1.velY));
if (_local5 <= 0){
if ((((_local6 > _local8)) || ((_local6 < -(_local8))))){
return (false);
};
if ((((_local7 > _local8)) || ((_local7 < -(_local8))))){
return (false);
};
if (((_local6 * _local6) + (_local7 * _local7)) > (_local8 * _local8)){
return (false);
};
};
_local9 = (_local6 - _local3);
_local10 = (_local7 - _local4);
_local11 = ((_local9 * _local9) + (_local10 * _local10));
_local12 = (2 * ((_local3 * _local9) + (_local4 * _local10)));
_local13 = (((_local3 * _local3) + (_local4 * _local4)) - (_local8 * _local8));
_local14 = ((_local12 * _local12) - ((4 * _local11) * _local13));
if (_local14 < 0){
return (false);
};
_local15 = Math.sqrt(_local14);
_local16 = ((-(_local12) + _local15) / (2 * _local11));
_local17 = ((-(_local12) - _local15) / (2 * _local11));
_local18 = new Array();
if ((((_local16 > 0)) && ((_local16 <= 1)))){
_local18.push(_local16);
};
if ((((_local17 > 0)) && ((_local17 <= 1)))){
_local18.push(_local17);
};
if (_local18.length == 0){
return (false);
};
if (_local18.length == 1){
_local19 = _local18[0];
} else {
_local19 = Math.min(_local16, _local17);
};
_local20 = ((_local3 + (_local19 * _local9)) + _point.x);
_local21 = ((_local4 + (_local19 * _local10)) + _point.y);
_local22 = (_local20 - _point.x);
_local23 = (_local21 - _point.y);
_local24 = Math.sqrt(((_local22 * _local22) + (_local23 * _local23)));
_local22 = (_local22 / _local24);
_local23 = (_local23 / _local24);
_local25 = ((_local9 * _local22) + (_local10 * _local23));
_local9 = (_local9 - ((2 * _local22) * _local25));
_local10 = (_local10 - ((2 * _local23) * _local25));
_arg1.x = (_local20 + ((1 - _local19) * _local9));
_arg1.y = (_local21 + ((1 - _local19) * _local10));
_local26 = ((_arg1.velX * _local22) + (_arg1.velY * _local23));
_arg1.velX = (_arg1.velX - (((1 + _arg2) * _local22) * _local26));
_arg1.velY = (_arg1.velY - (((1 + _arg2) * _local23) * _local26));
return (true);
}
public function getLocation():Point{
return (_point.clone());
}
public function get point():Point{
return (_point);
}
public function set y(_arg1:Number):void{
_point.y = _arg1;
}
public function set x(_arg1:Number):void{
_point.x = _arg1;
}
public function get x():Number{
return (_point.x);
}
public function get y():Number{
return (_point.y);
}
public function contains(_arg1:Number, _arg2:Number):Boolean{
return ((((_point.x == _arg1)) && ((_point.y == _arg2))));
}
}
}//package org.flintparticles.twoD.zones
Section 88
//RectangleZone (org.flintparticles.twoD.zones.RectangleZone)
package org.flintparticles.twoD.zones {
import flash.geom.*;
import org.flintparticles.twoD.particles.*;
public class RectangleZone implements Zone2D {
private var _height:Number;
private var _bottom:Number;
private var _width:Number;
private var _right:Number;
private var _top:Number;
private var _left:Number;
public function RectangleZone(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){
_left = _arg1;
_top = _arg2;
_right = _arg3;
_bottom = _arg4;
_width = (_arg3 - _arg1);
_height = (_arg4 - _arg2);
}
public function getArea():Number{
return ((_width * _height));
}
public function get top():Number{
return (_top);
}
public function set bottom(_arg1:Number):void{
_bottom = _arg1;
if (((!(isNaN(_top))) && (!(isNaN(_bottom))))){
_height = (bottom - top);
};
}
public function get right():Number{
return (_right);
}
public function set left(_arg1:Number):void{
_left = _arg1;
if (((!(isNaN(_right))) && (!(isNaN(_left))))){
_width = (right - left);
};
}
public function contains(_arg1:Number, _arg2:Number):Boolean{
return ((((((((_arg1 >= _left)) && ((_arg1 <= _right)))) && ((_arg2 >= _top)))) && ((_arg2 <= _bottom))));
}
public function get left():Number{
return (_left);
}
public function set top(_arg1:Number):void{
_top = _arg1;
if (((!(isNaN(_top))) && (!(isNaN(_bottom))))){
_height = (bottom - top);
};
}
public function get bottom():Number{
return (_bottom);
}
public function getLocation():Point{
return (new Point((_left + (Math.random() * _width)), (_top + (Math.random() * _height))));
}
public function set right(_arg1:Number):void{
_right = _arg1;
if (((!(isNaN(_right))) && (!(isNaN(_left))))){
_width = (right - left);
};
}
public function collideParticle(_arg1:Particle2D, _arg2:Number=1):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Boolean;
_local6 = false;
if (_arg1.velX > 0){
_local3 = (_arg1.x + _arg1.collisionRadius);
_local4 = (_arg1.previousX + _arg1.collisionRadius);
if ((((_local4 < _left)) && ((_local3 >= _left)))){
_local5 = (_arg1.previousY + (((_arg1.y - _arg1.previousY) * (_left - _local4)) / (_local3 - _local4)));
if ((((_local5 >= (_top - _arg1.collisionRadius))) && ((_local5 <= (_bottom + _arg1.collisionRadius))))){
_arg1.velX = (-(_arg1.velX) * _arg2);
_arg1.x = (_arg1.x + (2 * (_left - _local3)));
_local6 = true;
};
} else {
if ((((_local4 <= _right)) && ((_local3 > _right)))){
_local5 = (_arg1.previousY + (((_arg1.y - _arg1.previousY) * (_right - _local4)) / (_local3 - _local4)));
if ((((_local5 >= (_top - _arg1.collisionRadius))) && ((_local5 <= (_bottom + _arg1.collisionRadius))))){
_arg1.velX = (-(_arg1.velX) * _arg2);
_arg1.x = (_arg1.x + (2 * (_right - _local3)));
_local6 = true;
};
};
};
} else {
if (_arg1.velX < 0){
_local3 = (_arg1.x - _arg1.collisionRadius);
_local4 = (_arg1.previousX - _arg1.collisionRadius);
if ((((_local4 > _right)) && ((_local3 <= _right)))){
_local5 = (_arg1.previousY + (((_arg1.y - _arg1.previousY) * (_right - _local4)) / (_local3 - _local4)));
if ((((_local5 >= (_top - _arg1.collisionRadius))) && ((_local5 <= (_bottom + _arg1.collisionRadius))))){
_arg1.velX = (-(_arg1.velX) * _arg2);
_arg1.x = (_arg1.x + (2 * (_right - _local3)));
_local6 = true;
};
} else {
if ((((_local4 >= _left)) && ((_local3 < _left)))){
_local5 = (_arg1.previousY + (((_arg1.y - _arg1.previousY) * (_left - _local4)) / (_local3 - _local4)));
if ((((_local5 >= (_top - _arg1.collisionRadius))) && ((_local5 <= (_bottom + _arg1.collisionRadius))))){
_arg1.velX = (-(_arg1.velX) * _arg2);
_arg1.x = (_arg1.x + (2 * (_left - _local3)));
_local6 = true;
};
};
};
};
};
if (_arg1.velY > 0){
_local3 = (_arg1.y + _arg1.collisionRadius);
_local4 = (_arg1.previousY + _arg1.collisionRadius);
if ((((_local4 < _top)) && ((_local3 >= _top)))){
_local5 = (_arg1.previousX + (((_arg1.x - _arg1.previousX) * (_top - _local4)) / (_local3 - _local4)));
if ((((_local5 >= (_left - _arg1.collisionRadius))) && ((_local5 <= (_right + _arg1.collisionRadius))))){
_arg1.velY = (-(_arg1.velY) * _arg2);
_arg1.y = (_arg1.y + (2 * (_top - _local3)));
_local6 = true;
};
} else {
if ((((_local4 <= _bottom)) && ((_local3 > _bottom)))){
_local5 = (_arg1.previousX + (((_arg1.x - _arg1.previousX) * (_bottom - _local4)) / (_local3 - _local4)));
if ((((_local5 >= (_left - _arg1.collisionRadius))) && ((_local5 <= (_right + _arg1.collisionRadius))))){
_arg1.velY = (-(_arg1.velY) * _arg2);
_arg1.y = (_arg1.y + (2 * (_bottom - _local3)));
_local6 = true;
};
};
};
} else {
if (_arg1.velY < 0){
_local3 = (_arg1.y - _arg1.collisionRadius);
_local4 = (_arg1.previousY - _arg1.collisionRadius);
if ((((_local4 > _bottom)) && ((_local3 <= _bottom)))){
_local5 = (_arg1.previousX + (((_arg1.x - _arg1.previousX) * (_bottom - _local4)) / (_local3 - _local4)));
if ((((_local5 >= (_left - _arg1.collisionRadius))) && ((_local5 <= (_right + _arg1.collisionRadius))))){
_arg1.velY = (-(_arg1.velY) * _arg2);
_arg1.y = (_arg1.y + (2 * (_bottom - _local3)));
_local6 = true;
};
} else {
if ((((_local4 >= _top)) && ((_local3 < _top)))){
_local5 = (_arg1.previousX + (((_arg1.x - _arg1.previousX) * (_top - _local4)) / (_local3 - _local4)));
if ((((_local5 >= (_left - _arg1.collisionRadius))) && ((_local5 <= (_right + _arg1.collisionRadius))))){
_arg1.velY = (-(_arg1.velY) * _arg2);
_arg1.y = (_arg1.y + (2 * (_top - _local3)));
_local6 = true;
};
};
};
};
};
return (_local6);
}
}
}//package org.flintparticles.twoD.zones
Section 89
//Zone2D (org.flintparticles.twoD.zones.Zone2D)
package org.flintparticles.twoD.zones {
import flash.geom.*;
import org.flintparticles.twoD.particles.*;
public interface Zone2D {
function getArea():Number;
function collideParticle(_arg1:Particle2D, _arg2:Number=1):Boolean;
function getLocation():Point;
function contains(_arg1:Number, _arg2:Number):Boolean;
}
}//package org.flintparticles.twoD.zones
Section 90
//bgm0 (bgm0)
package {
import flash.media.*;
public dynamic class bgm0 extends Sound {
}
}//package
Section 91
//bgm1 (bgm1)
package {
import flash.media.*;
public dynamic class bgm1 extends Sound {
}
}//package
Section 92
//bom0 (bom0)
package {
import flash.media.*;
public dynamic class bom0 extends Sound {
}
}//package
Section 93
//bom1 (bom1)
package {
import flash.media.*;
public dynamic class bom1 extends Sound {
}
}//package
Section 94
//BREND_MC (BREND_MC)
package {
import flash.display.*;
public dynamic class BREND_MC extends MovieClip {
public function BREND_MC(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 95
//cursor0 (cursor0)
package {
import flash.media.*;
public dynamic class cursor0 extends Sound {
}
}//package
Section 96
//enter0 (enter0)
package {
import flash.media.*;
public dynamic class enter0 extends Sound {
}
}//package
Section 97
//fall (fall)
package {
import flash.media.*;
public dynamic class fall extends Sound {
}
}//package
Section 98
//fire (fire)
package {
import flash.media.*;
public dynamic class fire extends Sound {
}
}//package
Section 99
//goro (goro)
package {
import flash.media.*;
public dynamic class goro extends Sound {
}
}//package
Section 100
//jump1_1 (jump1_1)
package {
import flash.media.*;
public dynamic class jump1_1 extends Sound {
}
}//package
Section 101
//jump2_1 (jump2_1)
package {
import flash.media.*;
public dynamic class jump2_1 extends Sound {
}
}//package
Section 102
//LEAF0_MC (LEAF0_MC)
package {
import flash.display.*;
public dynamic class LEAF0_MC extends MovieClip {
}
}//package
Section 103
//LEAF1_MC (LEAF1_MC)
package {
import flash.display.*;
public dynamic class LEAF1_MC extends MovieClip {
}
}//package
Section 104
//paper (paper)
package {
import flash.media.*;
public dynamic class paper extends Sound {
}
}//package
Section 105
//PER_BLEND_MC (PER_BLEND_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class PER_BLEND_MC extends MovieClip {
public var blend_mc:BREND_MC;
public var endPoint:int;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function PER_BLEND_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
endPoint = (rootObj.stageBack_array[0].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
deleteFlag = false;
fadeinFlag = false;
if (rootObj.timeNo == 0){
blend_mc.gotoAndStop("morning");
} else {
if (rootObj.timeNo == 1){
blend_mc.gotoAndStop("evening");
} else {
blend_mc.gotoAndStop("night");
};
};
this.alpha = 1;
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
if (rootObj.nowStage == 8){
if (fadeinFlag == true){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
};
if (rootObj.nowStage == 7){
if (fadeinFlag == false){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
fadeinFlag = true;
};
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 106
//PER_FALL_MC (PER_FALL_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import org.flintparticles.common.initializers.*;
import org.flintparticles.common.actions.*;
import org.flintparticles.common.counters.*;
import org.flintparticles.twoD.zones.*;
import flash.display.*;
import flash.media.*;
import org.flintparticles.twoD.emitters.*;
import org.flintparticles.twoD.actions.*;
import org.flintparticles.twoD.initializers.*;
import org.flintparticles.twoD.renderers.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class PER_FALL_MC extends MovieClip {
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var emitter:Emitter2D;
public var renderer:DisplayObjectRenderer;
public function PER_FALL_MC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
scrollSpeed = 1;
endPoint = (rootObj.stageBack_array[5].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
fadeinFlag = true;
deleteFlag = false;
emitter = new Emitter2D();
renderer = new DisplayObjectRenderer();
particleSetting();
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
emitter.stop();
removeChild(renderer);
renderer.removeEmitter(emitter);
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
public function particleSetting():void{
emitter.counter = new Steady(15);
emitter.addInitializer(new ImageClass(LEAF0_MC));
emitter.addInitializer(new Position(new LineZone(new Point(-5, -15), new Point(580, -15))));
emitter.addInitializer(new Velocity(new PointZone(new Point(-20, 65))));
emitter.addInitializer(new RotateVelocity(-3, 3));
emitter.addInitializer(new ScaleImageInit(0.3, 0.8));
emitter.addInitializer(new Lifetime(0, 8));
emitter.addAction(new Move());
emitter.addAction(new DeathZone(new RectangleZone(-30, -30, 580, 246), true));
emitter.addAction(new RandomDrift(10, 10));
emitter.addAction(new Rotate());
emitter.addAction(new Age());
emitter.addAction(new Fade(0.6, 0));
renderer.addEmitter(emitter);
addChild(renderer);
emitter.start();
}
}
}//package
Section 107
//PER_FIREFLY_MC (PER_FIREFLY_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import org.flintparticles.common.initializers.*;
import org.flintparticles.common.actions.*;
import org.flintparticles.common.counters.*;
import org.flintparticles.twoD.zones.*;
import flash.display.*;
import flash.media.*;
import org.flintparticles.twoD.emitters.*;
import org.flintparticles.twoD.actions.*;
import org.flintparticles.twoD.initializers.*;
import org.flintparticles.common.displayObjects.*;
import org.flintparticles.twoD.renderers.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class PER_FIREFLY_MC extends MovieClip {
public var fadeCount:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var emitter:Emitter2D;
public var renderer:DisplayObjectRenderer;
public function PER_FIREFLY_MC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
scrollSpeed = 1;
endPoint = (rootObj.stageBack_array[3].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
fadeinFlag = true;
fadeCount = 1;
deleteFlag = false;
emitter = new Emitter2D();
renderer = new DisplayObjectRenderer();
this.alpha = 0;
particleSetting();
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
if (fadeinFlag){
if ((fadeCount % 3) == 0){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
fadeCount++;
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
emitter.stop();
removeChild(renderer);
renderer.removeEmitter(emitter);
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
public function particleSetting():void{
var _local1:Emitter2D;
_local1 = new Emitter2D();
_local1.counter = new Steady(10);
_local1.addInitializer(new ImageClass(RadialDot, 3));
_local1.addInitializer(new ColorInit(0x99FF00, 0x99FF00));
_local1.addInitializer(new Position(new LineZone(new Point(580, -15), new Point(580, 500))));
_local1.addInitializer(new Velocity(new PointZone(new Point(-100, 0))));
_local1.addInitializer(new Lifetime(0, 10));
_local1.addAction(new Move());
_local1.addAction(new DeathZone(new RectangleZone(-30, -30, 580, 246), true));
_local1.addAction(new RandomDrift(100, 100));
_local1.addAction(new Age());
_local1.addAction(new Fade(0.5, 0.5));
renderer.addEmitter(_local1);
addChild(renderer);
_local1.start();
}
}
}//package
Section 108
//PER_SPRING_MC (PER_SPRING_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import org.flintparticles.common.initializers.*;
import org.flintparticles.common.actions.*;
import org.flintparticles.common.counters.*;
import org.flintparticles.twoD.zones.*;
import flash.display.*;
import flash.media.*;
import org.flintparticles.twoD.emitters.*;
import org.flintparticles.twoD.actions.*;
import org.flintparticles.twoD.initializers.*;
import org.flintparticles.twoD.renderers.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class PER_SPRING_MC extends MovieClip {
public var speedFlag:Boolean;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var emitter:Emitter2D;
public var renderer:DisplayObjectRenderer;
public function PER_SPRING_MC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
scrollSpeed = 1;
endPoint = (rootObj.stageBack_array[5].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
speedFlag = false;
fadeinFlag = true;
deleteFlag = false;
emitter = new Emitter2D();
renderer = new DisplayObjectRenderer();
particleSetting();
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
emitter.stop();
removeChild(renderer);
renderer.removeEmitter(emitter);
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
public function particleSetting():void{
emitter.counter = new Steady(20);
emitter.addInitializer(new ImageClass(LEAF1_MC));
emitter.addInitializer(new Position(new LineZone(new Point(-5, -15), new Point(580, -15))));
emitter.addInitializer(new Velocity(new PointZone(new Point(-20, 65))));
emitter.addInitializer(new RotateVelocity(-3, 3));
emitter.addInitializer(new ScaleImageInit(0.2, 0.5));
emitter.addInitializer(new Lifetime(0, 8));
emitter.addAction(new Move());
emitter.addAction(new DeathZone(new RectangleZone(-30, -30, 580, 246), true));
emitter.addAction(new RandomDrift(10, 10));
emitter.addAction(new Rotate());
emitter.addAction(new Age());
emitter.addAction(new Fade(0.7, 0));
emitter.addAction(new ScaleImage(0.5, 0.1));
renderer.addEmitter(emitter);
addChild(renderer);
emitter.start();
}
}
}//package
Section 109
//PER_STAR_MC (PER_STAR_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import org.flintparticles.common.initializers.*;
import org.flintparticles.common.actions.*;
import org.flintparticles.common.counters.*;
import org.flintparticles.twoD.zones.*;
import flash.display.*;
import flash.media.*;
import org.flintparticles.twoD.emitters.*;
import org.flintparticles.twoD.actions.*;
import org.flintparticles.twoD.initializers.*;
import org.flintparticles.common.displayObjects.*;
import org.flintparticles.twoD.renderers.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class PER_STAR_MC extends MovieClip {
public var counter:int;
public var transform1:ColorTransform;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var emitter:Emitter2D;
public var renderer:DisplayObjectRenderer;
public function PER_STAR_MC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
scrollSpeed = 1;
endPoint = (rootObj.stageBack_array[7].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
fadeinFlag = true;
deleteFlag = false;
counter = 0;
emitter = new Emitter2D();
renderer = new DisplayObjectRenderer();
this.alpha = 0;
particleSetting();
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
if (fadeinFlag){
this.alpha = (this.alpha + 0.1);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.1);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
emitter.stop();
removeChild(renderer);
renderer.removeEmitter(emitter);
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
public function particleSetting():void{
emitter.counter = new Steady(10);
emitter.addInitializer(new ImageClass(Line, 2));
emitter.addInitializer(new Position(new LineZone(new Point(500, -10), new Point(500, 280))));
emitter.addInitializer(new Velocity(new PointZone(new Point(-400, 0))));
emitter.addInitializer(new Lifetime(0, 5));
emitter.addAction(new Move());
emitter.addAction(new DeathZone(new RectangleZone(-30, -30, 580, 246), true));
emitter.addAction(new Age());
emitter.addAction(new Fade(0.6, 0));
emitter.addAction(new Accelerate(-500, 0));
emitter.addAction(new SpeedLimit(500));
renderer.addEmitter(emitter);
addChild(renderer);
emitter.start();
}
}
}//package
Section 110
//PER_SUMMER_MC (PER_SUMMER_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import org.flintparticles.common.initializers.*;
import org.flintparticles.common.actions.*;
import org.flintparticles.common.counters.*;
import org.flintparticles.twoD.zones.*;
import flash.display.*;
import flash.media.*;
import org.flintparticles.twoD.emitters.*;
import org.flintparticles.twoD.actions.*;
import org.flintparticles.twoD.initializers.*;
import org.flintparticles.common.displayObjects.*;
import org.flintparticles.twoD.renderers.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class PER_SUMMER_MC extends MovieClip {
public var counter:int;
public var flash_mc:MovieClip;
public var transform1:ColorTransform;
public var soundCount:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var emitter:Emitter2D;
public var renderer:DisplayObjectRenderer;
public function PER_SUMMER_MC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
scrollSpeed = 1;
endPoint = (rootObj.stageBack_array[5].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
fadeinFlag = true;
deleteFlag = false;
counter = 0;
soundCount = 0;
emitter = new Emitter2D();
renderer = new DisplayObjectRenderer();
particleSetting();
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
if (counter >= 500){
counter = 0;
flash_mc.alpha = 1;
} else {
counter++;
};
soundCount++;
if ((soundCount % 150) == 0){
rootObj.playSe(14);
};
if (flash_mc.alpha > 0){
flash_mc.alpha = (flash_mc.alpha - 0.05);
if (flash_mc.alpha > 0.8){
transform1 = new ColorTransform(1, 1, 1, 1, -80, -80, -80, 0);
} else {
if (flash_mc.alpha > 0.6){
transform1 = new ColorTransform(1, 1, 1, 1, -60, -60, -60, 0);
} else {
if (flash_mc.alpha > 0.4){
transform1 = new ColorTransform(1, 1, 1, 1, -40, -40, -40, 0);
} else {
if (flash_mc.alpha > 0.2){
transform1 = new ColorTransform(1, 1, 1, 1, -20, -20, -20, 0);
} else {
transform1 = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
};
};
};
};
rootObj.player_mc.player_mc.transform.colorTransform = transform1;
} else {
transform1 = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
rootObj.player_mc.player_mc.transform.colorTransform = transform1;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.1);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.1);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
emitter.stop();
removeChild(renderer);
renderer.removeEmitter(emitter);
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
public function particleSetting():void{
emitter.counter = new Steady(300);
emitter.addInitializer(new ImageClass(Line, 5));
emitter.addInitializer(new Position(new LineZone(new Point(-5, -15), new Point(580, -15))));
emitter.addInitializer(new Velocity(new PointZone(new Point(0, 400))));
emitter.addInitializer(new Rotation(((90 * Math.PI) / 180), ((90 * Math.PI) / 180)));
emitter.addInitializer(new Lifetime(0, 5));
emitter.addAction(new Move());
emitter.addAction(new DeathZone(new RectangleZone(-30, -30, 580, 246), true));
emitter.addAction(new Age());
emitter.addAction(new Fade(0.6, 0));
emitter.addAction(new Accelerate(0, 500));
emitter.addAction(new SpeedLimit(500));
renderer.addEmitter(emitter);
addChild(renderer);
emitter.start();
}
}
}//package
Section 111
//PER_WINTER_MC (PER_WINTER_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import org.flintparticles.common.initializers.*;
import org.flintparticles.common.actions.*;
import org.flintparticles.common.counters.*;
import org.flintparticles.twoD.zones.*;
import flash.display.*;
import flash.media.*;
import org.flintparticles.twoD.emitters.*;
import org.flintparticles.twoD.actions.*;
import org.flintparticles.twoD.initializers.*;
import org.flintparticles.common.displayObjects.*;
import org.flintparticles.twoD.renderers.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class PER_WINTER_MC extends MovieClip {
public var fadeCount:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var emitter:Emitter2D;
public var renderer:DisplayObjectRenderer;
public function PER_WINTER_MC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
scrollSpeed = 1;
endPoint = (rootObj.stageBack_array[5].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
fadeinFlag = true;
fadeCount = 1;
deleteFlag = false;
emitter = new Emitter2D();
renderer = new DisplayObjectRenderer();
this.alpha = 0;
particleSetting();
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
if (fadeinFlag){
if ((fadeCount % 3) == 0){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
fadeCount++;
};
if (rootObj.frameCounter >= endPoint){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
emitter.stop();
removeChild(renderer);
renderer.removeEmitter(emitter);
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
public function particleSetting():void{
emitter.counter = new Steady(20);
emitter.addInitializer(new ImageClass(RadialDot, 5));
emitter.addInitializer(new Position(new LineZone(new Point(-5, -15), new Point(580, -15))));
emitter.addInitializer(new Velocity(new PointZone(new Point(-20, 65))));
emitter.addInitializer(new ScaleImageInit(0.5, 1));
emitter.addInitializer(new Lifetime(0, 8));
emitter.addAction(new Move());
emitter.addAction(new DeathZone(new RectangleZone(-30, -30, 580, 246), true));
emitter.addAction(new RandomDrift(10, 10));
emitter.addAction(new Age());
emitter.addAction(new Fade(0.6, 0));
renderer.addEmitter(emitter);
addChild(renderer);
emitter.start();
}
}
}//package
Section 112
//PLAYER_MC (PLAYER_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class PLAYER_MC extends MovieClip {
public var easing;
public var balia_mc:MovieClip;
public var fallFlag:Boolean;
public var seizureFlag:Boolean;
public var reloadFlag:Boolean;
public var boostFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var player_mc:MovieClip;
public var keysDown:Array;
public var moveTarget:int;
public var vy:Number;
public var switchFlag:Boolean;
public function PLAYER_MC(){
addFrameScript(0, frame1);
}
public function xEnterPlayer(_arg1:Event):void{
keyCheck();
if (seizureFlag == true){
vy = ((moveTarget - this.y) * easing);
this.y = (this.y + vy);
if (this.y <= (moveTarget + 10)){
seizureFlag = false;
fallFlag = true;
reloadFlag = false;
(boostFlag == false);
player_mc.gotoAndPlay("down");
};
} else {
if (reloadFlag == false){
if (fallFlag == false){
if (boostFlag == false){
vy = ((moveTarget - this.y) * easing);
this.y = (this.y + vy);
if (this.y <= (moveTarget + 10)){
fallFlag = true;
player_mc.gotoAndPlay("down");
};
} else {
if (rootObj.boost > 0){
rootObj.boost = (rootObj.boost - 5);
if (rootObj.boost < 0){
rootObj.boost = 0;
};
this.y = (this.y - 5);
if (this.y <= 50){
this.y = 50;
};
} else {
fallFlag = true;
moveTarget = (this.y - 10);
boostFlag = false;
player_mc.gotoAndPlay("down");
};
};
} else {
if (this.y < (moveTarget + 70)){
vy = ((this.y - moveTarget) * easing);
};
this.y = (this.y + vy);
};
} else {
this.y = (this.y + 5);
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterPlayer);
rootObj = null;
this.parent.removeChild(this);
};
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
keysDown = rootObj.keysDown;
easing = 0.12;
reloadFlag = true;
fallFlag = false;
boostFlag = false;
switchFlag = false;
seizureFlag = false;
deleteFlag = false;
moveTarget = (this.y - 100);
vy = ((this.y - rootObj.moveTarget) * easing);
balia_mc.visible = false;
addEventListener(Event.ENTER_FRAME, xEnterPlayer);
}
public function bound3():void{
rootObj.boost = (rootObj.boost + 40);
if (rootObj.boost >= 400){
rootObj.boost = 400;
};
rootObj.playSe(step01);
seizureFlag = true;
moveTarget = (this.y - 2000);
player_mc.gotoAndPlay("up");
}
public function bound2():void{
rootObj.boost = (rootObj.boost + 40);
if (rootObj.boost >= 400){
rootObj.boost = 400;
};
rootObj.playSe(step01);
seizureFlag = true;
moveTarget = (this.y - 150);
player_mc.gotoAndPlay("up");
}
public function bound():void{
if (rootObj.boost < 400){
rootObj.boost = (rootObj.boost + 1);
};
if (reloadFlag == false){
player_mc.gotoAndPlay("dash");
rootObj.playSe(step0);
};
fallFlag = false;
reloadFlag = true;
boostFlag = false;
}
public function keyCheck():void{
if (keysDown[90] == true){
if (reloadFlag == true){
rootObj.playSe(0);
seizureFlag = true;
reloadFlag = false;
fallFlag = false;
switchFlag = true;
moveTarget = (this.y - 100);
player_mc.gotoAndPlay("up");
} else {
if ((((switchFlag == false)) && ((rootObj.boost >= 80)))){
if ((((rootObj.nowStage == 8)) && ((this.y <= 50)))){
} else {
rootObj.playSe(1);
player_mc.gotoAndPlay("up");
reloadFlag = false;
fallFlag = false;
switchFlag = true;
seizureFlag = true;
moveTarget = (this.y - 100);
rootObj.boost = (rootObj.boost - 80);
};
};
};
} else {
if (seizureFlag == false){
if (fallFlag == false){
fallFlag = true;
moveTarget = (this.y - 10);
boostFlag = false;
if (reloadFlag == false){
player_mc.gotoAndPlay("down");
};
};
switchFlag = false;
};
};
if (keysDown[Keyboard.LEFT] == true){
this.x = (this.x - 3);
} else {
if (keysDown[Keyboard.RIGHT] == true){
this.x = (this.x + 3);
};
};
if (this.x <= 20){
this.x = 20;
} else {
if (this.x >= 460){
this.x = 460;
};
};
}
}
}//package
Section 113
//PLAYER2_MC (PLAYER2_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class PLAYER2_MC extends MovieClip {
public var easing;
public var balia_mc:MovieClip;
public var fallFlag:Boolean;
public var seizureFlag:Boolean;
public var reloadFlag:Boolean;
public var boostFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var player_mc:MovieClip;
public var keysDown:Array;
public var moveTarget:int;
public var vy:Number;
public var switchFlag:Boolean;
public function PLAYER2_MC(){
addFrameScript(0, frame1);
}
public function xEnterPlayer(_arg1:Event):void{
keyCheck();
if (seizureFlag == true){
vy = ((moveTarget - this.y) * easing);
this.y = (this.y + vy);
if (this.y <= (moveTarget + 10)){
seizureFlag = false;
fallFlag = true;
reloadFlag = false;
(boostFlag == false);
player_mc.gotoAndPlay("down");
};
} else {
if (reloadFlag == false){
if (fallFlag == false){
if (boostFlag == false){
vy = ((moveTarget - this.y) * easing);
this.y = (this.y + vy);
if (this.y <= (moveTarget + 10)){
fallFlag = true;
player_mc.gotoAndPlay("down");
};
} else {
if (rootObj.boost > 0){
rootObj.boost = (rootObj.boost - 5);
if (rootObj.boost < 0){
rootObj.boost = 0;
};
this.y = (this.y - 5);
if (this.y <= 50){
this.y = 50;
};
} else {
fallFlag = true;
moveTarget = (this.y - 10);
boostFlag = false;
player_mc.gotoAndPlay("down");
};
};
} else {
if (this.y < (moveTarget + 70)){
vy = ((this.y - moveTarget) * easing);
};
this.y = (this.y + vy);
};
} else {
this.y = (this.y + 5);
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterPlayer);
rootObj = null;
this.parent.removeChild(this);
};
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
keysDown = rootObj.keysDown;
easing = 0.12;
reloadFlag = true;
fallFlag = false;
boostFlag = false;
switchFlag = false;
seizureFlag = false;
deleteFlag = false;
moveTarget = (this.y - 100);
vy = ((this.y - rootObj.moveTarget) * easing);
balia_mc.visible = false;
addEventListener(Event.ENTER_FRAME, xEnterPlayer);
}
public function bound3():void{
rootObj.boost = (rootObj.boost + 40);
if (rootObj.boost >= 400){
rootObj.boost = 400;
};
rootObj.playSe(step01);
seizureFlag = true;
moveTarget = (this.y - 2000);
player_mc.gotoAndPlay("up");
}
public function bound2():void{
rootObj.boost = (rootObj.boost + 40);
if (rootObj.boost >= 400){
rootObj.boost = 400;
};
rootObj.playSe(step01);
seizureFlag = true;
moveTarget = (this.y - 150);
player_mc.gotoAndPlay("up");
}
public function bound():void{
if (rootObj.boost < 400){
rootObj.boost = (rootObj.boost + 1);
};
if (reloadFlag == false){
player_mc.gotoAndPlay("dash");
rootObj.playSe(step0);
};
fallFlag = false;
reloadFlag = true;
boostFlag = false;
}
public function keyCheck():void{
if (keysDown[90] == true){
if (reloadFlag == true){
rootObj.playSe(0);
seizureFlag = true;
reloadFlag = false;
fallFlag = false;
switchFlag = true;
moveTarget = (this.y - 100);
player_mc.gotoAndPlay("up");
} else {
if ((((switchFlag == false)) && ((rootObj.boost >= 80)))){
if ((((rootObj.nowStage == 8)) && ((this.y <= 50)))){
} else {
rootObj.playSe(1);
player_mc.gotoAndPlay("up");
reloadFlag = false;
fallFlag = false;
switchFlag = true;
seizureFlag = true;
moveTarget = (this.y - 100);
rootObj.boost = (rootObj.boost - 80);
};
};
};
} else {
if (seizureFlag == false){
if (fallFlag == false){
fallFlag = true;
moveTarget = (this.y - 10);
boostFlag = false;
if (reloadFlag == false){
player_mc.gotoAndPlay("down");
};
};
switchFlag = false;
};
};
if (keysDown[Keyboard.LEFT] == true){
this.x = (this.x - 3);
} else {
if (keysDown[Keyboard.RIGHT] == true){
this.x = (this.x + 3);
};
};
if (this.x <= 20){
this.x = 20;
} else {
if (this.x >= 460){
this.x = 460;
};
};
}
}
}//package
Section 114
//PLAYER3_MC (PLAYER3_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class PLAYER3_MC extends MovieClip {
public var easing;
public var balia_mc:MovieClip;
public var fallFlag:Boolean;
public var seizureFlag:Boolean;
public var reloadFlag:Boolean;
public var boostFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var player_mc:MovieClip;
public var keysDown:Array;
public var moveTarget:int;
public var vy:Number;
public var switchFlag:Boolean;
public function PLAYER3_MC(){
addFrameScript(0, frame1);
}
public function xEnterPlayer(_arg1:Event):void{
keyCheck();
if (seizureFlag == true){
vy = ((moveTarget - this.y) * easing);
this.y = (this.y + vy);
if (this.y <= (moveTarget + 10)){
seizureFlag = false;
fallFlag = true;
reloadFlag = false;
(boostFlag == false);
player_mc.gotoAndPlay("down");
};
} else {
if (reloadFlag == false){
if (fallFlag == false){
if (boostFlag == false){
vy = ((moveTarget - this.y) * easing);
this.y = (this.y + vy);
if (this.y <= (moveTarget + 10)){
fallFlag = true;
player_mc.gotoAndPlay("down");
};
} else {
if (rootObj.boost > 0){
rootObj.boost = (rootObj.boost - 5);
if (rootObj.boost < 0){
rootObj.boost = 0;
};
this.y = (this.y - 5);
if (this.y <= 50){
this.y = 50;
};
} else {
fallFlag = true;
moveTarget = (this.y - 10);
boostFlag = false;
player_mc.gotoAndPlay("down");
};
};
} else {
if (this.y < (moveTarget + 70)){
vy = ((this.y - moveTarget) * easing);
};
this.y = (this.y + vy);
};
} else {
this.y = (this.y + 5);
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterPlayer);
rootObj = null;
this.parent.removeChild(this);
};
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
keysDown = rootObj.keysDown;
easing = 0.12;
reloadFlag = true;
fallFlag = false;
boostFlag = false;
switchFlag = false;
seizureFlag = false;
deleteFlag = false;
moveTarget = (this.y - 150);
vy = ((this.y - rootObj.moveTarget) * easing);
balia_mc.visible = false;
addEventListener(Event.ENTER_FRAME, xEnterPlayer);
}
public function bound3():void{
rootObj.boost = (rootObj.boost + 40);
if (rootObj.boost >= 400){
rootObj.boost = 400;
};
rootObj.playSe(step01);
seizureFlag = true;
moveTarget = (this.y - 2000);
player_mc.gotoAndPlay("up");
}
public function bound2():void{
rootObj.boost = (rootObj.boost + 40);
if (rootObj.boost >= 400){
rootObj.boost = 400;
};
rootObj.playSe(step01);
seizureFlag = true;
moveTarget = (this.y - 200);
player_mc.gotoAndPlay("up");
}
public function bound():void{
if (rootObj.boost < 400){
rootObj.boost = (rootObj.boost + 1);
};
if (reloadFlag == false){
player_mc.gotoAndPlay("dash");
rootObj.playSe(step0);
};
fallFlag = false;
reloadFlag = true;
boostFlag = false;
}
public function keyCheck():void{
if (keysDown[90] == true){
if (reloadFlag == true){
rootObj.playSe(0);
seizureFlag = true;
reloadFlag = false;
fallFlag = false;
switchFlag = true;
moveTarget = (this.y - 150);
player_mc.gotoAndPlay("up");
} else {
if ((((switchFlag == false)) && ((rootObj.boost >= 80)))){
if ((((rootObj.nowStage == 8)) && ((this.y <= 50)))){
} else {
rootObj.playSe(1);
player_mc.gotoAndPlay("reup");
reloadFlag = false;
fallFlag = false;
switchFlag = true;
seizureFlag = true;
moveTarget = (this.y - 150);
rootObj.boost = (rootObj.boost - 80);
};
};
};
} else {
if (seizureFlag == false){
if (fallFlag == false){
fallFlag = true;
moveTarget = (this.y - 10);
boostFlag = false;
if (reloadFlag == false){
player_mc.gotoAndPlay("down");
};
};
switchFlag = false;
};
};
if (keysDown[Keyboard.LEFT] == true){
this.x = (this.x - 3);
} else {
if (keysDown[Keyboard.RIGHT] == true){
this.x = (this.x + 3);
};
};
if (this.x <= 20){
this.x = 20;
} else {
if (this.x >= 460){
this.x = 460;
};
};
}
}
}//package
Section 115
//PLAYER4_MC (PLAYER4_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class PLAYER4_MC extends MovieClip {
public var easing;
public var balia_mc:MovieClip;
public var fallFlag:Boolean;
public var seizureFlag:Boolean;
public var reloadFlag:Boolean;
public var boostFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var player_mc:MovieClip;
public var keysDown:Array;
public var moveTarget:int;
public var vy:Number;
public var switchFlag:Boolean;
public function PLAYER4_MC(){
addFrameScript(0, frame1);
}
public function xEnterPlayer(_arg1:Event):void{
keyCheck();
if (seizureFlag == true){
vy = ((moveTarget - this.y) * easing);
this.y = (this.y + vy);
if (this.y <= (moveTarget + 10)){
seizureFlag = false;
fallFlag = true;
reloadFlag = false;
(boostFlag == false);
player_mc.gotoAndPlay("down");
};
} else {
if (reloadFlag == false){
if (fallFlag == false){
if (boostFlag == false){
vy = ((moveTarget - this.y) * easing);
this.y = (this.y + vy);
if (this.y <= (moveTarget + 10)){
fallFlag = true;
player_mc.gotoAndPlay("down");
};
} else {
if (rootObj.boost > 0){
rootObj.boost = (rootObj.boost - 5);
if (rootObj.boost < 0){
rootObj.boost = 0;
};
this.y = (this.y - 5);
if (this.y <= 50){
this.y = 50;
};
} else {
fallFlag = true;
moveTarget = (this.y - 10);
boostFlag = false;
player_mc.gotoAndPlay("down");
};
};
} else {
if (this.y < (moveTarget + 70)){
vy = ((this.y - moveTarget) * easing);
};
this.y = (this.y + vy);
};
} else {
this.y = (this.y + 5);
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterPlayer);
rootObj = null;
this.parent.removeChild(this);
};
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
keysDown = rootObj.keysDown;
easing = 0.12;
reloadFlag = true;
fallFlag = false;
boostFlag = false;
switchFlag = false;
seizureFlag = false;
deleteFlag = false;
moveTarget = (this.y - 150);
vy = ((this.y - rootObj.moveTarget) * easing);
balia_mc.visible = false;
addEventListener(Event.ENTER_FRAME, xEnterPlayer);
}
public function bound3():void{
rootObj.boost = (rootObj.boost + 40);
if (rootObj.boost >= 400){
rootObj.boost = 400;
};
rootObj.playSe(step01);
seizureFlag = true;
moveTarget = (this.y - 2000);
player_mc.gotoAndPlay("up");
}
public function bound2():void{
rootObj.boost = (rootObj.boost + 40);
if (rootObj.boost >= 400){
rootObj.boost = 400;
};
rootObj.playSe(step01);
seizureFlag = true;
moveTarget = (this.y - 200);
player_mc.gotoAndPlay("up");
}
public function bound():void{
if (rootObj.boost < 400){
rootObj.boost = (rootObj.boost + 1);
};
if (reloadFlag == false){
player_mc.gotoAndPlay("dash");
rootObj.playSe(step0);
};
fallFlag = false;
reloadFlag = true;
boostFlag = false;
}
public function keyCheck():void{
if (keysDown[90] == true){
if (reloadFlag == true){
rootObj.playSe(0);
seizureFlag = true;
reloadFlag = false;
fallFlag = false;
switchFlag = true;
moveTarget = (this.y - 150);
player_mc.gotoAndPlay("up");
} else {
if ((((switchFlag == false)) && ((rootObj.boost >= 80)))){
if ((((rootObj.nowStage == 8)) && ((this.y <= 50)))){
} else {
rootObj.playSe(1);
player_mc.gotoAndPlay("reup");
reloadFlag = false;
fallFlag = false;
switchFlag = true;
seizureFlag = true;
moveTarget = (this.y - 150);
rootObj.boost = (rootObj.boost - 80);
};
};
};
} else {
if (seizureFlag == false){
if (fallFlag == false){
fallFlag = true;
moveTarget = (this.y - 10);
boostFlag = false;
if (reloadFlag == false){
player_mc.gotoAndPlay("down");
};
};
switchFlag = false;
};
};
if (keysDown[Keyboard.LEFT] == true){
this.x = (this.x - 3);
} else {
if (keysDown[Keyboard.RIGHT] == true){
this.x = (this.x + 3);
};
};
if (this.x <= 20){
this.x = 20;
} else {
if (this.x >= 460){
this.x = 460;
};
};
}
}
}//package
Section 116
//power0 (power0)
package {
import flash.media.*;
public dynamic class power0 extends Sound {
}
}//package
Section 117
//rain (rain)
package {
import flash.media.*;
public dynamic class rain extends Sound {
}
}//package
Section 118
//sound_spell (sound_spell)
package {
import flash.media.*;
public dynamic class sound_spell extends Sound {
}
}//package
Section 119
//STAGE0_0_MC (STAGE0_0_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE0_0_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STAGE0_0_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 1;
endPoint = (rootObj.stageBack_array[0].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 1322;
deleteFlag = false;
fadeinFlag = true;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 120
//STAGE0_1_MC (STAGE0_1_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE0_1_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var back_mc:MovieClip;
public function STAGE0_1_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.5;
endPoint = (rootObj.stageBack_array[0].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 9999;
deleteFlag = false;
fadeinFlag = true;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
back_mc.gotoAndStop(rootObj.season_array[rootObj.seasonNo]);
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 121
//STAGE0_2_MC (STAGE0_2_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE0_2_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STAGE0_2_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.3;
endPoint = (rootObj.stageBack_array[0].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 1603;
deleteFlag = false;
fadeinFlag = true;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 122
//STAGE0_3_MC (STAGE0_3_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE0_3_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var sky_mc:MovieClip;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var back_mc:MovieClip;
public function STAGE0_3_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.1;
endPoint = (rootObj.stageBack_array[0].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 2298;
deleteFlag = false;
fadeinFlag = true;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
back_mc.gotoAndStop(rootObj.season_array[rootObj.seasonNo]);
sky_mc.gotoAndStop(rootObj.time_array[rootObj.timeNo]);
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 123
//STAGE1_0_MC (STAGE1_0_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE1_0_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STAGE1_0_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 1;
endPoint = (rootObj.stageBack_array[1].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 788;
fadeinFlag = true;
deleteFlag = false;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 124
//STAGE1_1_MC (STAGE1_1_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE1_1_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STAGE1_1_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.5;
endPoint = (rootObj.stageBack_array[1].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 786;
fadeinFlag = true;
deleteFlag = false;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 125
//STAGE1_2_MC (STAGE1_2_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE1_2_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STAGE1_2_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.3;
endPoint = (rootObj.stageBack_array[1].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 608;
fadeinFlag = true;
deleteFlag = false;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 126
//STAGE1_3_MC (STAGE1_3_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE1_3_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var sky_mc:MovieClip;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var back_mc:MovieClip;
public function STAGE1_3_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.1;
endPoint = (rootObj.stageBack_array[1].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 632;
fadeinFlag = true;
deleteFlag = false;
if (rootObj.timeNo == 1){
back_mc.transform.colorTransform = new ColorTransform(1, 1, 1, 1, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
back_mc.transform.colorTransform = new ColorTransform(1, 1, 1, 1, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
back_mc.gotoAndStop(rootObj.season_array[rootObj.seasonNo]);
sky_mc.gotoAndStop(rootObj.time_array[rootObj.timeNo]);
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 127
//STAGE2_0_MC (STAGE2_0_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE2_0_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STAGE2_0_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 1;
endPoint = (rootObj.stageBack_array[2].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 1487;
fadeinFlag = true;
deleteFlag = false;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 128
//STAGE2_1_MC (STAGE2_1_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE2_1_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STAGE2_1_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0;
endPoint = (rootObj.stageBack_array[2].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 0x0C00;
fadeinFlag = true;
deleteFlag = false;
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - scrollSpeed);
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 129
//STAGE2_2_MC (STAGE2_2_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE2_2_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var back_mc:MovieClip;
public function STAGE2_2_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.3;
endPoint = (rootObj.stageBack_array[2].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 1487;
fadeinFlag = true;
deleteFlag = false;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
back_mc.gotoAndStop(rootObj.season_array[rootObj.seasonNo]);
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 130
//STAGE2_3_MC (STAGE2_3_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE2_3_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var sky_mc:MovieClip;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var back_mc:MovieClip;
public function STAGE2_3_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.1;
endPoint = (rootObj.stageBack_array[2].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 1487;
fadeinFlag = true;
deleteFlag = false;
back_mc.gotoAndStop(rootObj.season_array[rootObj.seasonNo]);
sky_mc.gotoAndStop(rootObj.time_array[rootObj.timeNo]);
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 131
//STAGE3_0_MC (STAGE3_0_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE3_0_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var back_mc:MovieClip;
public function STAGE3_0_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 1;
endPoint = (rootObj.stageBack_array[3].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 1555;
fadeinFlag = true;
deleteFlag = false;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
back_mc.gotoAndStop(rootObj.season_array[rootObj.seasonNo]);
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 132
//STAGE3_1_MC (STAGE3_1_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE3_1_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var back_mc:MovieClip;
public function STAGE3_1_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.5;
endPoint = (rootObj.stageBack_array[3].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 1674;
fadeinFlag = true;
deleteFlag = false;
back_mc.gotoAndStop(rootObj.season_array[rootObj.seasonNo]);
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 133
//STAGE3_2_MC (STAGE3_2_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE3_2_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STAGE3_2_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.3;
endPoint = (rootObj.stageBack_array[3].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 1559;
fadeinFlag = true;
deleteFlag = false;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 134
//STAGE3_3_MC (STAGE3_3_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE3_3_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var back_mc:MovieClip;
public function STAGE3_3_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.1;
endPoint = (rootObj.stageBack_array[3].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 1559;
fadeinFlag = true;
deleteFlag = false;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
back_mc.gotoAndStop(rootObj.season_array[rootObj.seasonNo]);
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 135
//STAGE4_0_MC (STAGE4_0_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE4_0_MC extends MovieClip {
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var loopPointX:int;
public var back_mc:MovieClip;
public function STAGE4_0_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 1;
endPoint = (rootObj.stageBack_array[4].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPointX = 1855;
fadeinFlag = true;
deleteFlag = false;
back_mc.gotoAndStop(rootObj.season_array[rootObj.seasonNo]);
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
this.y = (this.y + 0.6);
if (this.x <= -(loopPointX)){
this.x = 0;
this.y = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 136
//STAGE4_1_MC (STAGE4_1_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE4_1_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var back_mc:MovieClip;
public function STAGE4_1_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.5;
endPoint = (rootObj.stageBack_array[4].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 5000;
fadeinFlag = true;
deleteFlag = false;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
back_mc.gotoAndStop(rootObj.season_array[rootObj.seasonNo]);
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
this.y = (this.y + 0.4);
if (this.x <= -(loopPoint)){
this.x = 0;
this.y = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 137
//STAGE4_2_MC (STAGE4_2_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE4_2_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var back_mc:MovieClip;
public function STAGE4_2_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.3;
endPoint = (rootObj.stageBack_array[4].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 500;
fadeinFlag = true;
deleteFlag = false;
back_mc.gotoAndStop(rootObj.season_array[rootObj.seasonNo]);
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - scrollSpeed);
this.y = (this.y + 0.2);
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 138
//STAGE4_3_MC (STAGE4_3_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE4_3_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var sky_mc:MovieClip;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STAGE4_3_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.2;
endPoint = (rootObj.stageBack_array[4].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 480;
fadeinFlag = true;
deleteFlag = false;
sky_mc.gotoAndStop(rootObj.time_array[rootObj.timeNo]);
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 139
//STAGE5_0_MC (STAGE5_0_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE5_0_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STAGE5_0_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0;
endPoint = (rootObj.stageBack_array[5].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 1555;
fadeinFlag = true;
deleteFlag = false;
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - scrollSpeed);
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 140
//STAGE5_1_MC (STAGE5_1_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE5_1_MC extends MovieClip {
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var loopPointX:int;
public function STAGE5_1_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 1;
endPoint = (rootObj.stageBack_array[5].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPointX = 138;
fadeinFlag = true;
deleteFlag = false;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
this.y = (this.y + (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPointX)){
this.x = 150;
this.y = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 141
//STAGE5_2_MC (STAGE5_2_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE5_2_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STAGE5_2_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 1;
endPoint = (rootObj.stageBack_array[5].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 1555;
fadeinFlag = true;
deleteFlag = false;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (0.3 * rootObj.alphaSpeed));
this.y = (this.y + (0.6 * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
this.y = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 142
//STAGE5_3_MC (STAGE5_3_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE5_3_MC extends MovieClip {
public var loopPoint:int;
public var endPoint:int;
public var sky_mc:MovieClip;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STAGE5_3_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.1;
endPoint = (rootObj.stageBack_array[5].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPoint = 1555;
fadeinFlag = true;
deleteFlag = false;
sky_mc.gotoAndStop(rootObj.time_array[rootObj.timeNo]);
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - (scrollSpeed * rootObj.alphaSpeed));
if (this.x <= -(loopPoint)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 143
//STAGE6_0_MC (STAGE6_0_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE6_0_MC extends MovieClip {
public var checkStatus:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var loopPointY:int;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var checkCount:int;
public function STAGE6_0_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 5;
endPoint = (rootObj.stageBack_array[6].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPointY = -1136;
fadeinFlag = true;
deleteFlag = false;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
checkStatus = 0;
checkCount = 0;
this.y = -2542;
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - 0.5);
if (checkStatus == 0){
checkCount++;
if (checkCount >= 300){
checkStatus = 1;
};
} else {
if (checkStatus == 1){
this.y = (this.y + scrollSpeed);
};
};
if (this.y >= loopPointY){
this.y = -2542;
};
if (this.x <= -782){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 144
//STAGE6_1_MC (STAGE6_1_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE6_1_MC extends MovieClip {
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var loopPointX:int;
public function STAGE6_1_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0;
endPoint = (rootObj.stageBack_array[6].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPointX = 138;
fadeinFlag = true;
deleteFlag = false;
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - scrollSpeed);
if (this.x <= -(loopPointX)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 145
//STAGE6_2_MC (STAGE6_2_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE6_2_MC extends MovieClip {
public var checkStatus:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var loopPointX:int;
public var checkCount:int;
public function STAGE6_2_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.2;
endPoint = (rootObj.stageBack_array[6].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPointX = 2118;
fadeinFlag = true;
deleteFlag = false;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
checkStatus = 0;
checkCount = 0;
this.x = -220;
this.y = 270;
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
var _local2:Number;
if (checkStatus == 0){
checkCount++;
if (checkCount >= 200){
checkStatus = 1;
};
} else {
if (checkStatus == 1){
_local2 = ((this.y - 271) * 0.05);
this.y = (this.y + _local2);
};
};
if (this.y <= 34){
this.y = 34;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 146
//STAGE6_3_MC (STAGE6_3_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE6_3_MC extends MovieClip {
public var checkStatus:int;
public var endPoint:int;
public var sky_mc:MovieClip;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var loopPointX:int;
public var checkCount:int;
public function STAGE6_3_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0;
endPoint = (rootObj.stageBack_array[6].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPointX = 9999;
fadeinFlag = true;
deleteFlag = false;
checkStatus = 0;
checkCount = 0;
sky_mc.gotoAndStop(rootObj.time_array[rootObj.timeNo]);
if (rootObj.timeNo == 2){
scrollSpeed = 0.1;
};
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
if (checkStatus == 0){
checkCount++;
if (checkCount >= 300){
checkStatus = 1;
};
} else {
if (checkStatus == 1){
this.y = (this.y + scrollSpeed);
};
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 147
//STAGE7_0_MC (STAGE7_0_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE7_0_MC extends MovieClip {
public var counter:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var loopPointX:int;
public function STAGE7_0_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.6;
endPoint = (rootObj.stageBack_array[7].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPointX = 5000;
fadeinFlag = true;
deleteFlag = false;
counter = 0;
this.x = 600;
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
var _local2:ColorTransform;
var _local3:GlowFilter;
var _local4:ColorTransform;
if (counter >= 2300){
this.x = (this.x - scrollSpeed);
if (this.x <= -(loopPointX)){
this.x = 0;
};
} else {
counter++;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
_local3 = new GlowFilter();
if ((((this.x > rootObj.player_mc.x)) || (((this.x + 876) < rootObj.player_mc.x)))){
_local4 = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
rootObj.player_mc.player_mc.transform.colorTransform = _local4;
rootObj.player_mc.filters = null;
} else {
if (((((this.x + 10) > rootObj.player_mc.x)) || (((this.x + 866) < rootObj.player_mc.x)))){
_local2 = new ColorTransform(1, 1, 1, 1, -20, -20, -20, 0);
rootObj.player_mc.player_mc.transform.colorTransform = _local2;
_local3.blurX = 16;
_local3.blurY = 16;
_local3.color = 15921828;
_local3.alpha = 0.2;
rootObj.player_mc.filters = [_local3];
} else {
if (((((this.x + 20) > rootObj.player_mc.x)) || (((this.x + 856) < rootObj.player_mc.x)))){
_local2 = new ColorTransform(1, 1, 1, 1, -40, -40, -40, 0);
rootObj.player_mc.player_mc.transform.colorTransform = _local2;
_local3.blurX = 16;
_local3.blurY = 16;
_local3.color = 15921828;
_local3.alpha = 0.4;
rootObj.player_mc.filters = [_local3];
} else {
if (((((this.x + 30) > rootObj.player_mc.x)) || (((this.x + 846) < rootObj.player_mc.x)))){
_local2 = new ColorTransform(1, 1, 1, 1, -60, -60, -60, 0);
rootObj.player_mc.player_mc.transform.colorTransform = _local2;
_local3.blurX = 16;
_local3.blurY = 16;
_local3.color = 15921828;
_local3.alpha = 0.6;
rootObj.player_mc.filters = [_local3];
} else {
if (((((this.x + 40) > rootObj.player_mc.x)) || (((this.x + 836) < rootObj.player_mc.x)))){
_local2 = new ColorTransform(1, 1, 1, 1, -80, -80, -80, 0);
rootObj.player_mc.player_mc.transform.colorTransform = _local2;
_local3.blurX = 16;
_local3.blurY = 16;
_local3.color = 15921828;
_local3.alpha = 0.8;
rootObj.player_mc.filters = [_local3];
};
};
};
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 148
//STAGE7_1_MC (STAGE7_1_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE7_1_MC extends MovieClip {
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var loopPointX:int;
public function STAGE7_1_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.8;
endPoint = (rootObj.stageBack_array[7].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPointX = 5118;
fadeinFlag = true;
deleteFlag = false;
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - scrollSpeed);
this.y = (this.y + 0.08);
if (this.x <= -(loopPointX)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 149
//STAGE7_2_MC (STAGE7_2_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE7_2_MC extends MovieClip {
public var counter:int;
public var soundCount:int;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var loopPointX:int;
public function STAGE7_2_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.8;
endPoint = (rootObj.stageBack_array[7].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPointX = 2118;
fadeinFlag = true;
deleteFlag = false;
counter = 0;
this.x = 2617;
this.y = 440;
soundCount = 50;
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
if (counter >= 5800){
this.x = (this.x - 0.3);
this.width = (this.width + 0.5);
this.height = (this.height + 0.5);
} else {
if (counter >= 4500){
this.x = (this.x - scrollSpeed);
this.y = (this.y - 0.1);
if (this.x <= -(loopPointX)){
this.x = 0;
};
};
};
counter++;
if (counter >= 6000){
if (rootObj.redFilter_mc.alpha < 0.6){
if ((counter % 10) == 0){
rootObj.redFilter_mc.alpha = (rootObj.redFilter_mc.alpha + 0.02);
rootObj.player_mc.balia_mc.alpha = (rootObj.player_mc.balia_mc.alpha + 0.05);
if (rootObj.player_mc.balia_mc.visible == false){
rootObj.player_mc.balia_mc.visible = true;
rootObj.playSe(12);
rootObj.playSe(13);
};
};
};
soundCount++;
if ((soundCount % 50) == 0){
rootObj.playSe(12);
};
if ((soundCount % 250) == 0){
rootObj.playSe(13);
};
};
if (counter >= 6100){
if ((counter % 2) == 0){
this.y = (this.y + 8);
} else {
this.y = (this.y - 8);
};
};
if ((counter % 100) == 0){
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
rootObj.redFilter_mc.alpha = (rootObj.redFilter_mc.alpha - 0.01);
rootObj.player_mc.balia_mc.alpha = (rootObj.player_mc.balia_mc.alpha - 0.05);
if (this.alpha <= 0){
deleteFlag = true;
rootObj.player_mc.balia_mc.visible = false;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 150
//STAGE7_3_MC (STAGE7_3_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE7_3_MC extends MovieClip {
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var loopPointX:int;
public function STAGE7_3_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0.1;
endPoint = (rootObj.stageBack_array[7].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPointX = 521;
fadeinFlag = true;
deleteFlag = false;
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - scrollSpeed);
if (this.x <= -(loopPointX)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 151
//STAGE8_0_MC (STAGE8_0_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE8_0_MC extends MovieClip {
public var counter:int;
public var spell_mc:MovieClip;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STAGE8_0_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0;
endPoint = (rootObj.stageBack_array[8].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
fadeinFlag = true;
deleteFlag = false;
this.alpha = 1;
counter = 0;
this.y = 0;
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
counter++;
if (counter == 150){
spell_mc.gotoAndPlay("startMovie");
rootObj.playSe(9);
rootObj.playSe(9);
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 152
//STAGE8_0b_MC (STAGE8_0b_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE8_0b_MC extends MovieClip {
public var counter:int;
public var spell_mc:MovieClip;
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STAGE8_0b_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0;
endPoint = (rootObj.stageBack_array[8].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
fadeinFlag = true;
deleteFlag = false;
this.alpha = 1;
counter = 0;
this.y = 0;
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
counter++;
if (counter == 150){
spell_mc.gotoAndPlay("startMovie");
rootObj.playSe(9);
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 153
//STAGE8_1_MC (STAGE8_1_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE8_1_MC extends MovieClip {
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var loopPointY:int;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STAGE8_1_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 5;
endPoint = (rootObj.stageBack_array[8].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPointY = -1406;
fadeinFlag = true;
deleteFlag = false;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.dayColor_array[0], rootObj.dayColor_array[1], rootObj.dayColor_array[2], rootObj.dayColor_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, 0, rootObj.nightColor_array[0], rootObj.nightColor_array[1], rootObj.nightColor_array[2], rootObj.nightColor_array[3]);
};
};
this.y = 0;
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = 0;
this.y = (this.y - scrollSpeed);
if (this.y <= loopPointY){
this.y = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 154
//STAGE8_2_MC (STAGE8_2_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE8_2_MC extends MovieClip {
public var endPoint:int;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var loopPointX:int;
public function STAGE8_2_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0;
endPoint = (rootObj.stageBack_array[8].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPointX = 138;
fadeinFlag = true;
deleteFlag = false;
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.x = (this.x - scrollSpeed);
if (this.x <= -(loopPointX)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 155
//STAGE8_3_MC (STAGE8_3_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STAGE8_3_MC extends MovieClip {
public var endPoint:int;
public var sky_mc:MovieClip;
public var scrollSpeed:Number;
public var fadeinFlag:Boolean;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var loopPointX:int;
public function STAGE8_3_MC(){
addFrameScript(0, frame1);
}
function frame1(){
rootObj = (this.root as MovieClip);
scrollSpeed = 0;
endPoint = (rootObj.stageBack_array[8].endPoint + (rootObj.aroundNo * rootObj.aroundPlus));
loopPointX = 9999;
fadeinFlag = true;
deleteFlag = false;
sky_mc.gotoAndStop(rootObj.time_array[rootObj.timeNo]);
if (rootObj.timeNo == 2){
scrollSpeed = 0.1;
};
this.addEventListener(Event.ENTER_FRAME, xEnterScreenMove);
}
public function xEnterScreenMove(_arg1:Event):void{
this.y = (this.y - scrollSpeed);
if (this.x <= -(loopPointX)){
this.x = 0;
};
if (fadeinFlag){
this.alpha = (this.alpha + 0.01);
if (this.alpha >= 1){
this.alpha = 1;
fadeinFlag = false;
};
};
if (rootObj.frameCounter >= endPoint){
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
deleteFlag = true;
};
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
this.removeEventListener(Event.ENTER_FRAME, xEnterScreenMove);
this.visible = false;
rootObj.bgCount--;
rootObj.removeChild(this);
};
}
}
}//package
Section 156
//step0 (step0)
package {
import flash.media.*;
public dynamic class step0 extends Sound {
}
}//package
Section 157
//STEP00_MC (STEP00_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP00_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STEP00_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + (scrollSpeedX * rootObj.alphaSpeed));
this.y = (this.y + scrollSpeedY);
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 10);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound();
};
if (this.x < -350){
deleteFlag = true;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = (-5 + rootObj.plusSpeed);
scrollSpeedY = 0;
rectLeft = 300;
rectRight = 309;
this.x = (800 + Math.floor((Math.random() * 30)));
this.y = (Math.floor((Math.random() * 20)) + 190);
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.dayColorStep_array[0], rootObj.dayColorStep_array[1], rootObj.dayColorStep_array[2], rootObj.dayColorStep_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.nightColorStep_array[0], rootObj.nightColorStep_array[1], rootObj.nightColorStep_array[2], rootObj.nightColorStep_array[3]);
};
};
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package
Section 158
//step01 (step01)
package {
import flash.media.*;
public dynamic class step01 extends Sound {
}
}//package
Section 159
//STEP10_MC (STEP10_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP10_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STEP10_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + (scrollSpeedX * rootObj.alphaSpeed));
this.y = (this.y + scrollSpeedY);
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 10);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound();
};
if (this.x < -150){
deleteFlag = true;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = (-5 + rootObj.plusSpeed);
scrollSpeedY = 0;
rectLeft = 60;
rectRight = 60;
this.x = (630 + Math.floor((Math.random() * 40)));
this.y = (Math.floor((Math.random() * 60)) + 160);
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.dayColorStep_array[0], rootObj.dayColorStep_array[1], rootObj.dayColorStep_array[2], rootObj.dayColorStep_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.nightColorStep_array[0], rootObj.nightColorStep_array[1], rootObj.nightColorStep_array[2], rootObj.nightColorStep_array[3]);
};
};
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package
Section 160
//STEP20_MC (STEP20_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP20_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STEP20_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + (scrollSpeedX * rootObj.alphaSpeed));
this.y = (this.y + scrollSpeedY);
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 10);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound();
};
if (this.x < -150){
deleteFlag = true;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = (-5 + rootObj.plusSpeed);
scrollSpeedY = 0;
rectLeft = 50;
rectRight = 50;
this.x = (630 + Math.floor((Math.random() * 40)));
this.y = (Math.floor((Math.random() * 100)) + 120);
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.dayColorStep_array[0], rootObj.dayColorStep_array[1], rootObj.dayColorStep_array[2], rootObj.dayColorStep_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.nightColorStep_array[0], rootObj.nightColorStep_array[1], rootObj.nightColorStep_array[2], rootObj.nightColorStep_array[3]);
};
};
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package
Section 161
//STEP30_MC (STEP30_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP30_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STEP30_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + (scrollSpeedX * rootObj.alphaSpeed));
this.y = (this.y + scrollSpeedY);
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 10);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound2();
};
if (this.x < -150){
deleteFlag = true;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = (-5 + rootObj.plusSpeed);
scrollSpeedY = 0;
rectLeft = 40;
rectRight = 40;
this.x = (630 + Math.floor((Math.random() * 40)));
this.y = (Math.floor((Math.random() * 100)) + 120);
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.dayColorStep_array[0], rootObj.dayColorStep_array[1], rootObj.dayColorStep_array[2], rootObj.dayColorStep_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.nightColorStep_array[0], rootObj.nightColorStep_array[1], rootObj.nightColorStep_array[2], rootObj.nightColorStep_array[3]);
};
};
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package
Section 162
//STEP31_MC (STEP31_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP31_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STEP31_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + (scrollSpeedX * rootObj.alphaSpeed));
this.y = (this.y + scrollSpeedY);
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 10);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound3();
};
if (this.x < -150){
deleteFlag = true;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = (-5 + rootObj.plusSpeed);
scrollSpeedY = 0;
rectLeft = 40;
rectRight = 40;
this.x = (630 + Math.floor((Math.random() * 40)));
this.y = (Math.floor((Math.random() * 100)) + 120);
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.dayColorStep_array[0], rootObj.dayColorStep_array[1], rootObj.dayColorStep_array[2], rootObj.dayColorStep_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.nightColorStep_array[0], rootObj.nightColorStep_array[1], rootObj.nightColorStep_array[2], rootObj.nightColorStep_array[3]);
};
};
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package
Section 163
//STEP40_MC (STEP40_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP40_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STEP40_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + (scrollSpeedX * rootObj.alphaSpeed));
this.y = (this.y + scrollSpeedY);
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 10);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound();
};
if (this.x < -150){
deleteFlag = true;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = (-5 + rootObj.plusSpeed);
scrollSpeedY = 0.5;
rectLeft = 30;
rectRight = 30;
this.x = (630 + Math.floor((Math.random() * 40)));
this.y = (Math.floor((Math.random() * 50)) + 80);
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.dayColorStep_array[0], rootObj.dayColorStep_array[1], rootObj.dayColorStep_array[2], rootObj.dayColorStep_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.nightColorStep_array[0], rootObj.nightColorStep_array[1], rootObj.nightColorStep_array[2], rootObj.nightColorStep_array[3]);
};
};
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package
Section 164
//STEP41_MC (STEP41_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP41_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STEP41_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + (scrollSpeedX * rootObj.alphaSpeed));
this.y = (this.y + scrollSpeedY);
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 10);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound();
};
if (this.x < -150){
deleteFlag = true;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = (-5 + rootObj.plusSpeed);
scrollSpeedY = 0.5;
rectLeft = 30;
rectRight = 30;
this.x = (630 + Math.floor((Math.random() * 40)));
this.y = (Math.floor((Math.random() * 50)) + 80);
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.dayColorStep_array[0], rootObj.dayColorStep_array[1], rootObj.dayColorStep_array[2], rootObj.dayColorStep_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.nightColorStep_array[0], rootObj.nightColorStep_array[1], rootObj.nightColorStep_array[2], rootObj.nightColorStep_array[3]);
};
};
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package
Section 165
//STEP50_MC (STEP50_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP50_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var fallFlag:Boolean;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var targetY:Number;
public function STEP50_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + (scrollSpeedX * rootObj.alphaSpeed));
if (fallFlag == true){
this.y = (this.y + ((this.y - targetY) * 0.1));
} else {
this.y = (this.y + scrollSpeedY);
};
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 10);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound();
if (fallFlag == false){
targetY = (this.y - 15);
fallFlag = true;
};
};
if (this.x < -150){
deleteFlag = true;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = (-5 + rootObj.plusSpeed);
scrollSpeedY = 1.5;
rectLeft = 25;
rectRight = 25;
fallFlag = false;
targetY = -50;
this.x = (630 + Math.floor((Math.random() * 40)));
this.y = (Math.floor((Math.random() * 20)) + 20);
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package
Section 166
//STEP51_MC (STEP51_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP51_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var fallFlag:Boolean;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var targetY:Number;
public function STEP51_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + (scrollSpeedX * rootObj.alphaSpeed));
if (fallFlag == true){
this.y = (this.y + ((this.y - targetY) * 0.1));
} else {
this.y = (this.y + scrollSpeedY);
};
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 10);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound();
if (fallFlag == false){
targetY = (this.y - 15);
fallFlag = true;
};
};
if (this.x < -150){
deleteFlag = true;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = (-5 + rootObj.plusSpeed);
scrollSpeedY = 1.5;
rectLeft = 25;
rectRight = 25;
fallFlag = false;
targetY = -50;
this.x = (630 + Math.floor((Math.random() * 40)));
this.y = (Math.floor((Math.random() * 20)) + 20);
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package
Section 167
//STEP60_MC (STEP60_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP60_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STEP60_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + scrollSpeedX);
this.y = (this.y + scrollSpeedY);
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 10);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound();
};
if (this.x < -150){
deleteFlag = true;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = 0;
scrollSpeedY = 2.5;
rectLeft = 45;
rectRight = 45;
this.x = (Math.floor((Math.random() * 170)) + 150);
this.y = -50;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.dayColorStep_array[0], rootObj.dayColorStep_array[1], rootObj.dayColorStep_array[2], rootObj.dayColorStep_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.nightColorStep_array[0], rootObj.nightColorStep_array[1], rootObj.nightColorStep_array[2], rootObj.nightColorStep_array[3]);
};
};
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package
Section 168
//STEP61_MC (STEP61_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP61_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STEP61_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + scrollSpeedX);
this.y = (this.y + scrollSpeedY);
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 10);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound();
};
if (this.x < -150){
deleteFlag = true;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = 0;
scrollSpeedY = 2.5;
rectLeft = 45;
rectRight = 45;
this.x = (Math.floor((Math.random() * 170)) + 150);
this.y = -50;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.dayColorStep_array[0], rootObj.dayColorStep_array[1], rootObj.dayColorStep_array[2], rootObj.dayColorStep_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.nightColorStep_array[0], rootObj.nightColorStep_array[1], rootObj.nightColorStep_array[2], rootObj.nightColorStep_array[3]);
};
};
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package
Section 169
//STEP62_MC (STEP62_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP62_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var endPoint:int;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STEP62_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + scrollSpeedX);
this.y = (this.y + scrollSpeedY);
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 10);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound();
};
if (this.x < 290){
this.x = 290;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.frameCounter >= endPoint){
scrollSpeedY = 1;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = (-5 + rootObj.plusSpeed);
scrollSpeedY = 0;
rectLeft = 290;
rectRight = 290;
this.x = 650;
this.y = 215;
endPoint = ((rootObj.stageBack_array[5].endPoint + 380) + (rootObj.aroundNo * rootObj.aroundPlus));
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.dayColorStep_array[0], rootObj.dayColorStep_array[1], rootObj.dayColorStep_array[2], rootObj.dayColorStep_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.nightColorStep_array[0], rootObj.nightColorStep_array[1], rootObj.nightColorStep_array[2], rootObj.nightColorStep_array[3]);
};
};
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package
Section 170
//STEP70_MC (STEP70_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP70_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var easingUpY:Boolean;
public var scrollSpeedY:Number;
public var upperFlag:Boolean;
public var targetYMax:int;
public var targetStart:int;
public var targetYMin:int;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STEP70_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + (scrollSpeedX * rootObj.alphaSpeed));
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 20);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
this.y = (this.y + scrollSpeedY);
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound();
};
if (this.x < -150){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = (-5 + rootObj.plusSpeed);
scrollSpeedY = 2;
rectLeft = 20;
rectRight = 20;
this.x = (630 + Math.floor((Math.random() * 40)));
this.y = (Math.floor((Math.random() * 100)) + 110);
targetYMax = (this.y + (Math.floor((Math.random() * 20)) + 40));
targetYMin = (this.y - (Math.floor((Math.random() * 20)) + 40));
targetStart = this.y;
easingUpY = false;
upperFlag = false;
if (Math.floor((Math.random() * 2)) == 0){
scrollSpeedY = -2;
};
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package
Section 171
//STEP71_MC (STEP71_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP71_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var easingUpY:Boolean;
public var scrollSpeedY:Number;
public var targetYMax:int;
public var targetStart:int;
public var targetYMin:int;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STEP71_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + (scrollSpeedX * rootObj.alphaSpeed));
if (easingUpY == true){
if (this.y >= targetStart){
this.y = (this.y + ((this.y - targetYMax) * 0.1));
} else {
this.y = (this.y + ((targetYMin - this.y) * 0.1));
if (this.y <= (targetYMin + 5)){
easingUpY = false;
};
};
} else {
if (this.y <= targetStart){
this.y = (this.y + ((this.y - targetYMin) * 0.1));
} else {
this.y = (this.y + ((targetYMax - this.y) * 0.1));
if (this.y >= (targetYMax - 5)){
easingUpY = true;
};
};
};
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 20);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound();
};
if (this.x < -150){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = (-5 + rootObj.plusSpeed);
scrollSpeedY = 0;
rectLeft = 20;
rectRight = 20;
this.x = (630 + Math.floor((Math.random() * 40)));
this.y = (Math.floor((Math.random() * 100)) + 110);
targetYMax = (this.y + (Math.floor((Math.random() * 20)) + 40));
targetYMin = (this.y - (Math.floor((Math.random() * 20)) + 40));
targetStart = this.y;
easingUpY = false;
if (Math.floor((Math.random() * 2)) == 0){
easingUpY = true;
};
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package
Section 172
//STEP72_MC (STEP72_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP72_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var easingUpY:Boolean;
public var scrollSpeedY:Number;
public var alphaTime:int;
public var targetStart:int;
public var targetYMax:int;
public var targetYMin:int;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var alphaCounter:int;
public var alphaFlag:Boolean;
public function STEP72_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + (scrollSpeedX * rootObj.alphaSpeed));
if (easingUpY == true){
if (this.y >= targetStart){
this.y = (this.y + ((this.y - targetYMax) * 0.1));
} else {
this.y = (this.y + ((targetYMin - this.y) * 0.1));
if (this.y <= (targetYMin + 5)){
easingUpY = false;
};
};
} else {
if (this.y <= targetStart){
this.y = (this.y + ((this.y - targetYMin) * 0.1));
} else {
this.y = (this.y + ((targetYMax - this.y) * 0.1));
if (this.y >= (targetYMax - 5)){
easingUpY = true;
};
};
};
if (alphaFlag == true){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
this.alpha = 0;
if (alphaCounter >= 10){
alphaCounter = 0;
alphaFlag = false;
};
alphaCounter++;
};
} else {
this.alpha = (this.alpha + 0.05);
if (this.alpha >= 1){
this.alpha = 1;
if (alphaCounter >= alphaTime){
alphaCounter = 0;
alphaFlag = true;
};
alphaCounter = (alphaCounter + 1);
};
};
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 20);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound();
};
if (this.x < -150){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = (-5 + rootObj.plusSpeed);
scrollSpeedY = 0;
rectLeft = 20;
rectRight = 20;
this.x = (630 + Math.floor((Math.random() * 40)));
this.y = (Math.floor((Math.random() * 100)) + 110);
alphaFlag = false;
alphaCounter = 0;
alphaTime = (Math.floor((Math.random() * 40)) + 10);
targetYMax = (this.y + (Math.floor((Math.random() * 20)) + 40));
targetYMin = (this.y - (Math.floor((Math.random() * 20)) + 40));
targetStart = this.y;
easingUpY = false;
if (Math.floor((Math.random() * 2)) == 0){
easingUpY = true;
};
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package
Section 173
//STEP80_MC (STEP80_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP80_MC extends MovieClip {
public var counter:int;
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var missile_mc:MovieClip;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STEP80_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:Number;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
_local2 = ((this.y - 330) * 0.05);
if (_local2 >= 5){
_local2 = 5;
};
this.x = (this.x + scrollSpeedX);
this.y = (this.y + _local2);
_local3 = (rootObj.player_mc.x - 15);
_local4 = (rootObj.player_mc.x + 15);
_local5 = (rootObj.player_mc.y - 50);
_local6 = (rootObj.player_mc.y - 20);
_local7 = (this.x - rectLeft);
_local8 = (this.x + rectRight);
_local9 = this.y;
_local10 = (this.y + 40);
if ((((((((_local3 < _local8)) && ((_local4 > _local7)))) && ((_local5 < _local10)))) && ((_local6 > _local9)))){
rootObj.bomFlag = true;
};
if (this.x < -150){
deleteFlag = true;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
removeEventListener(Event.ENTER_FRAME, xEnterDanger);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
counter = 0;
scrollSpeedX = 0;
scrollSpeedY = (-5 + rootObj.plusSpeed);
rectLeft = 0;
rectRight = 20;
this.x = (20 + Math.floor((Math.random() * 440)));
this.y = 200;
addEventListener(Event.ENTER_FRAME, xEnterDanger);
}
public function xEnterDanger(_arg1:Event):void{
counter++;
if (counter >= 60){
removeEventListener(Event.ENTER_FRAME, xEnterDanger);
addEventListener(Event.ENTER_FRAME, xEnterStep);
this.y = (Math.floor((Math.random() * 20)) + 300);
missile_mc.gotoAndStop("missile");
rootObj.playSe(10);
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
}
}//package
Section 174
//STEP81_MC (STEP81_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP81_MC extends MovieClip {
public var counter:int;
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var missile_mc:MovieClip;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STEP81_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:Number;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
_local2 = ((this.x - 540) * 0.05);
if (_local2 >= 5){
_local2 = 5;
};
this.x = (this.x + _local2);
this.y = (this.y + scrollSpeedY);
_local3 = (rootObj.player_mc.x - 15);
_local4 = (rootObj.player_mc.x + 15);
_local5 = (rootObj.player_mc.y - 50);
_local6 = (rootObj.player_mc.y - 20);
_local7 = (this.x - rectLeft);
_local8 = (this.x + rectRight);
_local9 = this.y;
_local10 = (this.y + 20);
if ((((((((_local3 < _local8)) && ((_local4 > _local7)))) && ((_local5 < _local10)))) && ((_local6 > _local9)))){
rootObj.bomFlag = true;
};
if (this.x < -150){
deleteFlag = true;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
removeEventListener(Event.ENTER_FRAME, xEnterDanger);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
counter = 0;
scrollSpeedX = (-5 + rootObj.plusSpeed);
scrollSpeedY = 0;
rectLeft = 0;
rectRight = 40;
this.x = 400;
this.y = (Math.floor((Math.random() * 215)) + 15);
addEventListener(Event.ENTER_FRAME, xEnterDanger);
}
public function xEnterDanger(_arg1:Event):void{
counter++;
if (counter >= 60){
removeEventListener(Event.ENTER_FRAME, xEnterDanger);
addEventListener(Event.ENTER_FRAME, xEnterStep);
this.x = (490 + Math.floor((Math.random() * 40)));
missile_mc.gotoAndStop("missile");
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
}
}//package
Section 175
//STEP82_MC (STEP82_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEP82_MC extends MovieClip {
public var counter:int;
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var hitBulletNo:int;
public var missile_mc:MovieClip;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public var hitTop:Array;
public function STEP82_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:Number;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
missile_mc[(("shot" + hitBulletNo) + "_mc")].alpha = 1;
_local2 = 5;
if (_local2 >= 5){
_local2 = 5;
};
this.x = (this.x + _local2);
this.y = (this.y + scrollSpeedY);
_local3 = (rootObj.player_mc.x - 15);
_local4 = (rootObj.player_mc.x + 15);
_local5 = (rootObj.player_mc.y - 50);
_local6 = (rootObj.player_mc.y - 20);
_local7 = (this.x - rectLeft);
_local8 = (this.x + rectRight);
_local9 = (this.y + hitTop[hitBulletNo]);
_local10 = ((this.y + hitTop[hitBulletNo]) + 16);
if ((((((((_local3 < _local8)) && ((_local4 > _local7)))) && ((_local5 < _local10)))) && ((_local6 > _local9)))){
rootObj.bomFlag = true;
};
if (this.x > 550){
deleteFlag = true;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
removeEventListener(Event.ENTER_FRAME, xEnterDanger);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
rootObj = (this.root as MovieClip);
deleteFlag = false;
counter = 0;
scrollSpeedX = (-5 + rootObj.plusSpeed);
scrollSpeedY = 0;
rectLeft = 0;
rectRight = 30;
this.x = 10;
this.y = 10;
hitTop = [0, 50, 100, 150, 200, 250];
hitBulletNo = Math.floor((Math.random() * 5));
addEventListener(Event.ENTER_FRAME, xEnterDanger);
}
public function xEnterDanger(_arg1:Event):void{
counter++;
if (counter >= 60){
removeEventListener(Event.ENTER_FRAME, xEnterDanger);
addEventListener(Event.ENTER_FRAME, xEnterStep);
this.x = (-80 + Math.floor((Math.random() * 40)));
missile_mc.gotoAndStop("missile");
rootObj.playSe(10);
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
}
}//package
Section 176
//STEPEND_MC (STEPEND_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEPEND_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STEPEND_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + (scrollSpeedX * rootObj.alphaSpeed));
this.y = (this.y + -1);
if (this.y < 215){
this.y = 215;
};
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 10);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound();
};
if (this.x < -400){
deleteFlag = true;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
this.cacheAsBitmap = true;
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = ((-5 + rootObj.plusSpeed) - 1);
scrollSpeedY = 0;
rectLeft = 300;
rectRight = 300;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.dayColorStep_array[0], rootObj.dayColorStep_array[1], rootObj.dayColorStep_array[2], rootObj.dayColorStep_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.nightColorStep_array[0], rootObj.nightColorStep_array[1], rootObj.nightColorStep_array[2], rootObj.nightColorStep_array[3]);
};
};
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package
Section 177
//STEPSTART_MC (STEPSTART_MC)
package {
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class STEPSTART_MC extends MovieClip {
public var rectLeft:Number;
public var scrollSpeedX:Number;
public var scrollSpeedY:Number;
public var rectRight:Number;
public var rootObj:MovieClip;
public var deleteFlag:Boolean;
public function STEPSTART_MC(){
addFrameScript(0, frame1);
}
public function xEnterStep(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
this.x = (this.x + (scrollSpeedX * rootObj.alphaSpeed));
this.y = (this.y + scrollSpeedY);
_local2 = (rootObj.player_mc.x - 5);
_local3 = (rootObj.player_mc.x + 5);
_local4 = rootObj.player_mc.y;
_local5 = rootObj.player_mc.y;
_local6 = (this.x - rectLeft);
_local7 = (this.x + rectRight);
_local8 = this.y;
_local9 = (this.y + 10);
if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.player_mc.fallFlag == true)))){
rootObj.player_mc.y = this.y;
rootObj.player_mc.bound();
};
if (this.x < -400){
deleteFlag = true;
};
if (this.y > 350){
deleteFlag = true;
};
if (rootObj.gameOverFlag == true){
deleteFlag = true;
};
if (deleteFlag == true){
removeThisObject();
};
}
public function removeThisObject():void{
if (rootObj != null){
removeEventListener(Event.ENTER_FRAME, xEnterStep);
rootObj.stepCount--;
rootObj = null;
this.parent.removeChild(this);
};
}
function frame1(){
stop();
this.cacheAsBitmap = true;
rootObj = (this.root as MovieClip);
deleteFlag = false;
scrollSpeedX = (-5 + rootObj.plusSpeed);
scrollSpeedY = 0;
rectLeft = 300;
rectRight = 300;
if (rootObj.timeNo == 1){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.dayColorStep_array[0], rootObj.dayColorStep_array[1], rootObj.dayColorStep_array[2], rootObj.dayColorStep_array[3]);
} else {
if (rootObj.timeNo == 2){
this.transform.colorTransform = new ColorTransform(1, 1, 1, this.alpha, rootObj.nightColorStep_array[0], rootObj.nightColorStep_array[1], rootObj.nightColorStep_array[2], rootObj.nightColorStep_array[3]);
};
};
addEventListener(Event.ENTER_FRAME, xEnterStep);
}
}
}//package