STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/94820032?noj=FRM94820032-22DC" width="1" height="1"></div>

madoka magika train.swf

This is the info page for
Flash #233017

(Click the ID number above for more basic data on this flash file.)


Text
ファイル読み込み中...

ランキング読み込み中...

まどか☆
    トレイン

Game Start

Ranking

Produced by       &

Bgm ☆☆☆☆☆

ハイスコア 8回

ミツメ書房

幸宮チノ

Se ☆☆☆☆☆

v1.3

Ranking

[z]キーでもどる

0 回

GAME OVER

回電車を避けた所で電車に轢かれました。

0

ランキングにランクインしました

送信しない

送信する

[Z] もう一度
[SPACE] タイトルへ
[SHIFT] 結果をツイートする

<p align="right"><font face="_ゴシック" size="12" color="#ff0000" letterSpacing="0.000000" kerning="0">Te</font></p>

ActionScript [AS3]

Section 1
//GAMEOVER_MC_24 (madokatrain2_fla.GAMEOVER_MC_24) package madokatrain2_fla { import flash.display.*; import flash.text.*; public dynamic class GAMEOVER_MC_24 extends MovieClip { public var score_txt:TextField; public var rankin_mc:MovieClip; public var nextGame_mc:MovieClip; } }//package madokatrain2_fla
Section 2
//MainTimeline (madokatrain2_fla.MainTimeline) package madokatrain2_fla { import flash.events.*; import flash.media.*; import flash.display.*; import flash.text.*; import flash.utils.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.geom.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public const PHP_RANKING = "php198712/ranking.php"; public var bgmVolume:int; public var trainOk:Boolean; public var seVolume:int; public var rankingLastScore:int; public var seList:Dictionary; public var hiScore:int; public var titleDisp:int; public var madokaMove:Boolean; public var ranking_mc:MovieClip; public var madokaX:Array; public var scoreName:String; public var so:SharedObject; public var rankingScore_array:Array; public var stage_mc:MovieClip; public var bgm_txt:TextField; public var gameOverFlag:Boolean; public var gameOver_mc:MovieClip; public var score:int; public var info:LoaderInfo; public var keysDown:Array; public var blackMask_mc:MovieClip; public var se_txt:TextField; public var playSeNo:int; public var bgmLoopTime_array:Array; public var trainNext:int; public var testFlag:Boolean; public var cursor_mc:MovieClip; public var hikareFlag:Boolean; public var hiScore_txt:TextField; public var score_txt:TextField; public var bgmCh; public var trainX:Array; public var test_txt:TextField; public var train_array:Array; public var link1_mc:SimpleButton; public var bgmTr; public var madoka_mc:MovieClip; public var rails_mc:MovieClip; public var rankingXmlLoader:URLLoader; public var bgmList:Dictionary; public var trainWait:int; public var stepCount:int; public var cursorX_array:Array; public var sndCh; public var cursorNo:int; public var link2_mc:SimpleButton; public var mask_mc:MovieClip; public var sndTr; public var playBgmNo:int; public var trainStage:int; public var madokaPoint:int; public var XML_RANKING; public var beforeTrain:int; public var rankingPage:int; public var trainNow:Array; public var counter; public function MainTimeline(){ addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5); } public function xKeyDown(_arg1:KeyboardEvent):void{ keysDown[_arg1.keyCode] = true; } public function errorHandler(_arg1:IOErrorEvent):void{ } public function addGameEvent():void{ addEventListener(Event.ENTER_FRAME, xEnterMain); stage.addEventListener(KeyboardEvent.KEY_DOWN, xKeyDown); stage.addEventListener(KeyboardEvent.KEY_UP, xKeyUp); } function frame3(){ stop(); ranking_mc.visible = false; updateVolume(); titleDisp = 0; cursorNo = 0; cursorX_array = [300, 340, 380, 420]; rankingPage = 0; hiScore_txt.text = (("ハイスコア " + hiScore) + " 回"); updateRanking(); blackMask_mc.addEventListener(Event.ENTER_FRAME, xFadeInTitle); } public function xClickRankNoSend(_arg1:MouseEvent):void{ gameOver_mc.rankin_mc.send_btn.removeEventListener(MouseEvent.CLICK, xClickRankSend); gameOver_mc.rankin_mc.noSend_btn.removeEventListener(MouseEvent.CLICK, xClickRankNoSend); playSe(1); gameOver_mc.rankin_mc.visible = false; gameOver_mc.nextGame_mc.visible = true; } function frame5(){ stop(); gameOver_mc.visible = false; gameOver_mc.alpha = 0; gameOver_mc.rankin_mc.visible = false; gameOver_mc.rankin_mc.rankName_txt.restrict = "^,<>"; counter = 0; train_array = []; train_array[0] = [0, 0, 1, 700, 2, 1400, 3, 2100, 4, 4200, 2, 6300, 0, 7000, 3, 8400, 1, 11200, 4, 12600]; train_array[1] = [1, 0, 3, 1000]; keysDown = []; madokaPoint = 2; madokaX = [35, 165, 295, 425, 555]; trainX = [0, 130, 260, 390, 520]; trainNow = [0, 0, 0, 0, 0]; beforeTrain = 0; madokaMove = false; stepCount = 0; trainWait = 0; trainNext = 200; trainStage = 0; trainOk = true; score = 0; hikareFlag = false; gameOverFlag = false; if (playBgmNo != 0){ playBgmLoop(0); }; blackMask_mc.addEventListener(Event.ENTER_FRAME, xFadeInGame); } public function playSeLoop(_arg1){ if (playSeNo == -1){ playSeNo = _arg1; sndCh = seList[_arg1].play(1, 1, sndTr); sndCh.addEventListener(Event.SOUND_COMPLETE, gameSeComplete); }; } function frame1(){ stop(); hiScore = 0; scoreName = ""; contextInit(); bgmVolume = 2; seVolume = 2; bgmList = new Dictionary(); playBgmNo = -1; bgmTr = new SoundTransform(); bgmCh = new SoundChannel(); bgmTr.volume = (bgmVolume * 0.1); bgmCh.soundTransform = bgmTr; bgmLoopTime_array = []; bgmLoopTime_array[0] = 0; seList = new Dictionary(); playSeNo = -1; sndTr = new SoundTransform(); sndCh = new SoundChannel(); sndTr.volume = (seVolume * 0.2); sndCh.soundTransform = sndTr; loadSound(); so = SharedObject.getLocal("madokatrain"); soInit(); info = root.loaderInfo; stage.addEventListener(Event.ENTER_FRAME, xLoadEnter); } function frame4(){ stop(); gotoAndStop("game"); } function frame2(){ stop(); testFlag = false; XML_RANKING = "xml418501/ranking.xml"; if (testFlag == false){ XML_RANKING = ("xml418501/ranking.xml?" + new Date().getTime()); }; rankingScore_array = []; rankingLastScore = 0; rankingXmlLoader = new URLLoader(); rankingXmlLoader.addEventListener(Event.COMPLETE, xCompleteRanking); rankingXmlLoader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); rankingXmlLoader.load(new URLRequest(XML_RANKING)); } public function xFadeInTitle(_arg1:Event):void{ blackMask_mc.alpha = (blackMask_mc.alpha - 0.05); if (blackMask_mc.alpha < 0){ blackMask_mc.alpha = 0; blackMask_mc.visible = false; blackMask_mc.removeEventListener(Event.ENTER_FRAME, xFadeInTitle); addTitleEvent(); }; } public function xFadeGameToTitle(_arg1:Event):void{ blackMask_mc.alpha = (blackMask_mc.alpha + 0.05); if (blackMask_mc.alpha >= 1){ stopBgm(); blackMask_mc.removeEventListener(Event.ENTER_FRAME, xFadeGameToTitle); gotoAndStop("loadRanking"); }; } public function addTitleEvent():void{ stage.addEventListener(KeyboardEvent.KEY_UP, xKeyUpTitle); link1_mc.addEventListener(MouseEvent.CLICK, xClickLink1); link2_mc.addEventListener(MouseEvent.CLICK, xClickLink2); } public function playSe(_arg1){ seList[_arg1].play(0, 1, sndTr); } public function gameOverCheck():void{ if (score > hiScore){ hiScore = score; so.data.hiScore = hiScore; if (rankingLastScore < score){ gameOver_mc.rankin_mc.rankName_txt.text = scoreName; stage.focus = gameOver_mc.rankin_mc.rankName_txt; gameOver_mc.rankin_mc.visible = true; gameOver_mc.nextGame_mc.visible = false; gameOver_mc.rankin_mc.send_btn.addEventListener(MouseEvent.CLICK, xClickRankSend); gameOver_mc.rankin_mc.noSend_btn.addEventListener(MouseEvent.CLICK, xClickRankNoSend); }; }; } public function removeTitleEvent():void{ stage.removeEventListener(KeyboardEvent.KEY_UP, xKeyUpTitle); link1_mc.removeEventListener(MouseEvent.CLICK, xClickLink1); link2_mc.removeEventListener(MouseEvent.CLICK, xClickLink2); } 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 xFadeGameToRetry(_arg1:Event):void{ blackMask_mc.alpha = (blackMask_mc.alpha + 0.05); if (blackMask_mc.alpha >= 1){ blackMask_mc.removeEventListener(Event.ENTER_FRAME, xFadeGameToRetry); gotoAndStop("reset"); }; } public function xFadeInGame(_arg1:Event):void{ blackMask_mc.alpha = (blackMask_mc.alpha - 0.05); if (blackMask_mc.alpha < 0){ blackMask_mc.alpha = 0; blackMask_mc.visible = false; blackMask_mc.removeEventListener(Event.ENTER_FRAME, xFadeInGame); addGameEvent(); }; } public function xEnterMain(_arg1:Event):void{ counter++; if (hikareFlag == false){ if (madokaMove == false){ if (keysDown[Keyboard.LEFT] == true){ madokaPoint--; madokaMove = true; if (madokaPoint < 0){ madokaPoint = 0; }; } else { if (keysDown[Keyboard.RIGHT] == true){ madokaPoint++; madokaMove = true; if (madokaPoint > 4){ madokaPoint = 4; }; }; }; }; if (madokaMove == true){ if (madoka_mc.x == madokaX[madokaPoint]){ madokaMove = false; } else { if (madoka_mc.x < madokaX[madokaPoint]){ madoka_mc.x = (madoka_mc.x + 13); } else { if (madoka_mc.x > madokaX[madokaPoint]){ madoka_mc.x = (madoka_mc.x - 13); }; }; }; }; rails_mc.y = (rails_mc.y + 0.5); if (rails_mc.y >= 960){ rails_mc.y = 0; }; score_txt.text = (score + " 回"); trainWait++; if (trainWait >= trainNext){ addTrain(); trainWait = 0; if (trainNext >= 100){ trainNext = (trainNext - 10); } else { trainNext = (trainNext - 2); }; if (trainNext <= 50){ trainNext = 50; }; }; } else { if (gameOverFlag == false){ madoka_mc.y = (madoka_mc.y + 20); if ((((stepCount == 0)) && ((madoka_mc.y >= 650)))){ if (gameOver_mc.visible == false){ gameOver_mc.score_txt.text = score.toString(); gameOver_mc.visible = true; gameOverCheck(); }; gameOver_mc.alpha = (gameOver_mc.alpha + 0.05); if (gameOver_mc.alpha >= 0.9){ stopSe(); gameOverFlag = true; }; }; }; }; test_txt.text = trainNow.toString(); } public function xFadeLoadToTitle(_arg1:Event):void{ blackMask_mc.alpha = (blackMask_mc.alpha + 0.05); if (blackMask_mc.alpha >= 1){ blackMask_mc.removeEventListener(Event.ENTER_FRAME, xFadeLoadToTitle); gotoAndStop("loadRanking"); }; } public function xCompleteRanking(_arg1:Event):void{ var _local2:XML; var _local3:XMLList; var _local4:Array; var _local5:Array; var _local6:*; _local2 = new XML(rankingXmlLoader.data); _local3 = _local2.ranking; _local4 = []; for each (_local2 in _local3) { _local4.push({name:_local2.name, score:_local2.score, player:_local2.player}); }; _local4.sortOn(["score"], [(Array.DESCENDING | Array.NUMERIC)]); _local5 = []; _local6 = 0; while ((((rankingScore_array.length < 300)) && ((_local6 < _local4.length)))) { if (_local5.indexOf(_local4[_local6].name.toString()) == -1){ rankingScore_array.push(_local4[_local6]); _local5.push(_local4[_local6].name.toString()); }; _local6++; }; _local4.sortOn(["score"], [(Array.DESCENDING | Array.NUMERIC)]); _local4 = null; _local5 = null; if (rankingScore_array[299] != null){ rankingLastScore = rankingScore_array[299].score; } else { rankingLastScore = 0; }; rankingXmlLoader.removeEventListener(Event.COMPLETE, xCompleteRanking); rankingXmlLoader.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler); gotoAndStop("title"); } public function addTrain2():void{ var _local1:*; var _local2:MovieClip; var _local3:*; if (trainOk == true){ trainOk = false; _local1 = 0; while (_local1 < train_array[trainStage].length) { _local2 = new TRAIN_MC(); _local3 = Math.floor((Math.random() * 5)); if (beforeTrain == _local3){ _local3++; if (_local3 > 4){ _local3 = 0; }; }; _local2.x = trainX[train_array[trainStage][_local1]]; _local2.y = ((-50 - _local2.height) - train_array[trainStage][(_local1 + 1)]); stage_mc.addChild(_local2); stepCount++; _local1 = (_local1 + 2); }; trainStage++; if (train_array.length <= trainStage){ trainStage = 0; }; }; } public function updateRanking():void{ var _local1:*; _local1 = 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 + " 回"); } else { ranking_mc[(("list" + _local1) + "_mc")].name_txt.text = "-"; ranking_mc[(("list" + _local1) + "_mc")].score_txt.text = "-"; }; _local1++; }; } public function gameSeComplete(_arg1:Event):void{ sndCh.removeEventListener(Event.SOUND_COMPLETE, gameSeComplete); if (hikareFlag == false){ playSeNo = -1; playSeNo = 5; sndCh = seList[playSeNo].play(0, 1, sndTr); sndCh.addEventListener(Event.SOUND_COMPLETE, gameSeComplete); }; } public function updateVolume():void{ var _local1:*; se_txt.text = "Se "; _local1 = 0; while (_local1 < seVolume) { se_txt.appendText("☆"); _local1++; }; bgm_txt.text = "Bgm "; _local1 = 0; while (_local1 < bgmVolume) { bgm_txt.appendText("☆"); _local1++; }; bgmTr.volume = (bgmVolume * 0.1); bgmCh.soundTransform = bgmTr; sndTr.volume = (seVolume * 0.2); sndCh.soundTransform = sndTr; so.data.bgmVolume = bgmVolume; so.data.seVolume = seVolume; } public function 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 stopBgm(){ bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameBgmComplete); bgmCh.stop(); playBgmNo = -1; } public function xClickLink1(_arg1:MouseEvent):void{ var _local2:String; var _local3:URLRequest; _local2 = "http://3-me.net/"; _local3 = new URLRequest(_local2); navigateToURL(_local3, "_blank"); } public function xClickLink2(_arg1:MouseEvent):void{ var _local2:String; var _local3:URLRequest; _local2 = "http://chacocco.blog94.fc2.com/"; _local3 = new URLRequest(_local2); navigateToURL(_local3, "_blank"); } public function soInit():void{ if (so.size == 0){ so.data.scoreName = ""; so.data.hiScore = 0; so.data.bgmVolume = 2; so.data.seVolume = 2; } else { if (so.data.scoreName != null){ scoreName = so.data.scoreName; }; if (so.data.hiScore != null){ hiScore = so.data.hiScore; }; if (so.data.bgmVolume != null){ bgmVolume = so.data.bgmVolume; }; if (so.data.seVolume != null){ seVolume = so.data.seVolume; }; }; } public function removeGameEvent():void{ removeEventListener(Event.ENTER_FRAME, xEnterMain); stage.removeEventListener(KeyboardEvent.KEY_DOWN, xKeyDown); stage.removeEventListener(KeyboardEvent.KEY_UP, xKeyUp); } public function xKeyUpTitle(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 90){ if (titleDisp == 0){ if (cursorNo == 0){ removeTitleEvent(); blackMask_mc.visible = true; blackMask_mc.addEventListener(Event.ENTER_FRAME, xFadeTitleToGame); } else { if (cursorNo == 1){ titleDisp = 1; ranking_mc.visible = true; } else { if (cursorNo == 2){ bgmVolume++; if (bgmVolume > 5){ bgmVolume = 0; }; updateVolume(); } else { if (cursorNo == 3){ seVolume++; if (seVolume > 5){ seVolume = 0; }; updateVolume(); }; }; }; }; } else { if (titleDisp == 1){ titleDisp = 0; ranking_mc.visible = false; }; }; playSe(1); } else { if (_arg1.keyCode == Keyboard.UP){ if (titleDisp == 0){ cursorNo--; if (cursorNo < 0){ cursorNo = 0; }; playSe(0); cursor_mc.y = cursorX_array[cursorNo]; } else { if (titleDisp == 1){ rankingPage--; if (rankingPage < 0){ rankingPage = 0; }; playSe(0); updateRanking(); }; }; } else { if (_arg1.keyCode == Keyboard.DOWN){ if (titleDisp == 0){ cursorNo++; if (cursorNo > 3){ cursorNo = 3; }; playSe(0); cursor_mc.y = cursorX_array[cursorNo]; } else { if (titleDisp == 1){ rankingPage++; if (rankingPage > 29){ rankingPage = 29; }; playSe(0); updateRanking(); }; }; }; }; }; } public function xKeyUp(_arg1:KeyboardEvent):void{ var _local2:String; var _local3:String; var _local4:URLRequest; keysDown[_arg1.keyCode] = false; if ((((gameOverFlag == true)) && ((gameOver_mc.rankin_mc.visible == false)))){ if (_arg1.keyCode == 90){ playSe(1); removeGameEvent(); blackMask_mc.visible = true; blackMask_mc.addEventListener(Event.ENTER_FRAME, xFadeGameToRetry); } else { if (_arg1.keyCode == Keyboard.SPACE){ playSe(1); removeGameEvent(); blackMask_mc.visible = true; blackMask_mc.addEventListener(Event.ENTER_FRAME, xFadeGameToTitle); } else { if (_arg1.keyCode == Keyboard.SHIFT){ playSe(1); _local2 = escapeMultiByte((("まどかは " + score) + "回 避けたところで XXにXかれました。 http://bit.ly/ftrvsH #madoka_train")); _local3 = ("http://twitter.com/intent/tweet?text=+" + _local2); _local4 = new URLRequest(_local3); navigateToURL(_local4, "_blank"); }; }; }; }; } public function loadSound():void{ bgmList[0] = new BGM(); seList[0] = new cursor0(); seList[1] = new enter0(); seList[2] = new fue(); seList[3] = new train0(); seList[4] = new train1(); seList[5] = new train2(); seList[6] = new train3(); seList[7] = new miss0(); } public function xFadeTitleToGame(_arg1:Event):void{ blackMask_mc.alpha = (blackMask_mc.alpha + 0.05); if (blackMask_mc.alpha >= 1){ blackMask_mc.removeEventListener(Event.ENTER_FRAME, xFadeTitleToGame); gotoAndStop("game"); }; } public function playBgmLoop(_arg1){ playBgmNo = _arg1; bgmCh = bgmList[_arg1].play(1, 1, bgmTr); bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete); } public function registHiscore(_arg1:String, _arg2:int):void{ var url:URLRequest; var playerNo:int; var variables:URLVariables; var loader:URLLoader; var nameStr = _arg1; var scoreInt = _arg2; url = new URLRequest(PHP_RANKING); playerNo = 0; variables = new URLVariables(); variables.name = nameStr; variables.score = scoreInt; variables.player = playerNo; url.data = variables.toString(); url.method = URLRequestMethod.POST; loader = new URLLoader(); try { loader.load(url); } catch(e:Error) { }; url = null; loader = null; } public function xClickRankSend(_arg1:MouseEvent):void{ playSe(1); if (gameOver_mc.rankin_mc.rankName_txt.length != 0){ gameOver_mc.rankin_mc.send_btn.removeEventListener(MouseEvent.CLICK, xClickRankSend); gameOver_mc.rankin_mc.noSend_btn.removeEventListener(MouseEvent.CLICK, xClickRankNoSend); registHiscore(gameOver_mc.rankin_mc.rankName_txt.text, score); scoreName = gameOver_mc.rankin_mc.rankName_txt.text; so.data.scoreName = scoreName; gameOver_mc.rankin_mc.visible = false; gameOver_mc.nextGame_mc.visible = true; }; } public function addTrain():void{ var _local1:int; var _local2:Boolean; var _local3:*; var _local4:Boolean; var _local5:*; var _local6:int; var _local7:*; var _local8:*; var _local9:*; var _local10:Boolean; var _local11:Boolean; var _local12:*; var _local13:MovieClip; _local1 = (Math.floor((Math.random() * 2)) + 1); _local1 = 2; _local2 = false; _local3 = 0; while (_local3 < _local1) { _local4 = true; _local5 = Math.floor((Math.random() * 5)); if (beforeTrain == _local5){ ++_local5; if (_local5 > 4){ _local5 = 0; }; _local4 = false; }; if (madokaPoint == _local5){ _local8 = (madokaPoint - 1); _local9 = (madokaPoint + 1); _local10 = false; _local11 = false; if ((((trainNow[_local8] >= 1)) || ((_local8 == -1)))){ _local10 = true; }; if ((((trainNow[_local9] >= 1)) || ((_local9 == 5)))){ _local11 = true; }; if ((((_local10 == true)) && ((_local11 == true)))){ _local4 = false; }; }; _local8 = (_local5 - 1); _local9 = (_local5 + 1); _local10 = false; _local11 = false; if ((((trainNow[_local8] >= 1)) || ((_local8 == -1)))){ _local10 = true; }; if ((((trainNow[_local9] >= 1)) || ((_local9 == 5)))){ _local11 = true; }; if ((((((_local10 == true)) && ((_local11 == true)))) && ((((((_local8 == madokaPoint)) || ((_local9 == madokaPoint)))) || ((_local5 == madokaPoint)))))){ _local4 = false; }; _local6 = 0; _local7 = 0; while (_local7 < trainNow.length) { _local6 = (_local6 + trainNow[_local7]); _local7++; }; if (_local6 >= 4){ _local4 = false; }; if (_local4 == true){ _local12 = 0; switch (Math.floor((Math.random() * 3))){ case 0: _local13 = new TRAIN_MC(); break; case 1: _local13 = new TRAIN1_MC(); break; case 2: _local13 = new TRAIN2_MC(); break; }; _local13.x = trainX[_local5]; beforeTrain = _local5; var _local14 = trainNow; var _local15 = _local5; var _local16 = (_local14[_local15] + 1); _local14[_local15] = _local16; _local13.railNo = _local5; if (_local3 >= 1){ if (Math.floor((Math.random() * 3)) == 0){ _local13.y = (-50 - _local13.height); } else { _local13.y = (((-50 - _local13.height) - Math.floor((Math.random() * 400))) - 500); }; } else { _local13.y = (-50 - _local13.height); }; _local2 = true; stage_mc.addChild(_local13); stepCount++; }; _local3++; }; if (_local2 == true){ playSe(2); }; } public function stopSe(){ sndCh.removeEventListener(Event.SOUND_COMPLETE, gameSeComplete); sndCh.stop(); playSeNo = -1; } public function xLoadEnter(_arg1:Event):void{ var _local2:*; _local2 = Math.floor(((info.bytesLoaded / info.bytesTotal) * 100)); if (info.bytesLoaded == info.bytesTotal){ stage.removeEventListener(Event.ENTER_FRAME, xLoadEnter); blackMask_mc.addEventListener(Event.ENTER_FRAME, xFadeLoadToTitle); }; } } }//package madokatrain2_fla
Section 3
//RANKIN_MC_25 (madokatrain2_fla.RANKIN_MC_25) package madokatrain2_fla { import flash.display.*; import flash.text.*; public dynamic class RANKIN_MC_25 extends MovieClip { public var noSend_btn:SimpleButton; public var rankName_txt:TextField; public var send_btn:SimpleButton; } }//package madokatrain2_fla
Section 4
//RANKING_LIST_6 (madokatrain2_fla.RANKING_LIST_6) package madokatrain2_fla { import flash.display.*; import flash.text.*; public dynamic class RANKING_LIST_6 extends MovieClip { public var score_txt:TextField; public var name_txt:TextField; public var rank_txt:TextField; } }//package madokatrain2_fla
Section 5
//RANKING_MC_5 (madokatrain2_fla.RANKING_MC_5) package madokatrain2_fla { import flash.display.*; import flash.text.*; public dynamic class RANKING_MC_5 extends MovieClip { public var list9_mc:MovieClip; public var list1_mc:MovieClip; public var list4_mc:MovieClip; public var list7_mc:MovieClip; public var rankTitle_txt:TextField; public var list2_mc:MovieClip; public var list8_mc:MovieClip; public var list5_mc:MovieClip; public var list0_mc:MovieClip; public var list3_mc:MovieClip; public var list6_mc:MovieClip; } }//package madokatrain2_fla
Section 6
//TRAINHEAD_MC_30 (madokatrain2_fla.TRAINHEAD_MC_30) package madokatrain2_fla { import flash.display.*; public dynamic class TRAINHEAD_MC_30 extends MovieClip { public function TRAINHEAD_MC_30(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package madokatrain2_fla
Section 7
//BGM (BGM) package { import flash.media.*; public dynamic class BGM extends Sound { } }//package
Section 8
//cursor0 (cursor0) package { import flash.media.*; public dynamic class cursor0 extends Sound { } }//package
Section 9
//enter0 (enter0) package { import flash.media.*; public dynamic class enter0 extends Sound { } }//package
Section 10
//fue (fue) package { import flash.media.*; public dynamic class fue extends Sound { } }//package
Section 11
//miss0 (miss0) package { import flash.media.*; public dynamic class miss0 extends Sound { } }//package
Section 12
//TRAIN_MC (TRAIN_MC) package { import flash.events.*; import flash.media.*; import flash.display.*; import flash.text.*; import flash.utils.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.geom.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class TRAIN_MC extends MovieClip { public var railNo; public var rectLeft:Number; public var scrollSpeedY:Number; public var head_mc:MovieClip; public var rectRight:Number; public var safeFlag:Boolean; public var rootObj:MovieClip; public var deleteFlag:Boolean; public function TRAIN_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.y = (this.y + scrollSpeedY); _local2 = rootObj.madoka_mc.x; _local3 = (rootObj.madoka_mc.x + 40); _local4 = rootObj.madoka_mc.y; _local5 = (rootObj.madoka_mc.y + 80); _local6 = (this.x - 0); _local7 = (this.x + 100); _local8 = this.y; _local9 = (this.y + 1900); if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.hikareFlag == false)))){ rootObj.playSe(7); rootObj.hikareFlag = true; }; if ((((this.y > 200)) && ((safeFlag == false)))){ safeFlag = true; var _local10 = rootObj.trainNow; var _local11 = railNo; var _local12 = (_local10[_local11] - 1); _local10[_local11] = _local12; }; if (this.y > 650){ deleteFlag = true; if (rootObj.hikareFlag == false){ rootObj.score++; if ((rootObj.score % 10) == 0){ if (rootObj.madoka_mc.y > 180){ rootObj.madoka_mc.y = (rootObj.madoka_mc.y - 1); }; }; }; }; 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; scrollSpeedY = 20; rectLeft = 50; rectRight = 50; safeFlag = false; if (Math.floor((Math.random() * 500)) == 0){ head_mc.gotoAndStop("rare"); }; rootObj.playSeLoop(5); addEventListener(Event.ENTER_FRAME, xEnterStep); } } }//package
Section 13
//train0 (train0) package { import flash.media.*; public dynamic class train0 extends Sound { } }//package
Section 14
//train1 (train1) package { import flash.media.*; public dynamic class train1 extends Sound { } }//package
Section 15
//TRAIN1_MC (TRAIN1_MC) package { import flash.events.*; import flash.media.*; import flash.display.*; import flash.text.*; import flash.utils.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.geom.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class TRAIN1_MC extends MovieClip { public var railNo; public var rectLeft:Number; public var scrollSpeedY:Number; public var head_mc:MovieClip; public var rectRight:Number; public var safeFlag:Boolean; public var rootObj:MovieClip; public var deleteFlag:Boolean; public function TRAIN1_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.y = (this.y + scrollSpeedY); _local2 = rootObj.madoka_mc.x; _local3 = (rootObj.madoka_mc.x + 40); _local4 = rootObj.madoka_mc.y; _local5 = (rootObj.madoka_mc.y + 80); _local6 = (this.x - 0); _local7 = (this.x + 100); _local8 = this.y; _local9 = (this.y + 1150); if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.hikareFlag == false)))){ rootObj.playSe(7); rootObj.hikareFlag = true; }; if ((((this.y > 200)) && ((safeFlag == false)))){ safeFlag = true; var _local10 = rootObj.trainNow; var _local11 = railNo; var _local12 = (_local10[_local11] - 1); _local10[_local11] = _local12; }; if (this.y > 650){ deleteFlag = true; if (rootObj.hikareFlag == false){ rootObj.score++; if ((rootObj.score % 10) == 0){ if (rootObj.madoka_mc.y > 180){ rootObj.madoka_mc.y = (rootObj.madoka_mc.y - 1); }; }; }; }; 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; scrollSpeedY = 20; rectLeft = 50; rectRight = 50; safeFlag = false; if (Math.floor((Math.random() * 500)) == 0){ head_mc.gotoAndStop("rare"); }; rootObj.playSeLoop(5); addEventListener(Event.ENTER_FRAME, xEnterStep); } } }//package
Section 16
//train2 (train2) package { import flash.media.*; public dynamic class train2 extends Sound { } }//package
Section 17
//TRAIN2_MC (TRAIN2_MC) package { import flash.events.*; import flash.media.*; import flash.display.*; import flash.text.*; import flash.utils.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.geom.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class TRAIN2_MC extends MovieClip { public var railNo; public var rectLeft:Number; public var scrollSpeedY:Number; public var head_mc:MovieClip; public var rectRight:Number; public var safeFlag:Boolean; public var rootObj:MovieClip; public var deleteFlag:Boolean; public function TRAIN2_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.y = (this.y + scrollSpeedY); _local2 = rootObj.madoka_mc.x; _local3 = (rootObj.madoka_mc.x + 40); _local4 = rootObj.madoka_mc.y; _local5 = (rootObj.madoka_mc.y + 80); _local6 = (this.x - 0); _local7 = (this.x + 100); _local8 = this.y; _local9 = (this.y + 450); if ((((((((((_local2 < _local7)) && ((_local3 > _local6)))) && ((_local4 < _local9)))) && ((_local5 > _local8)))) && ((rootObj.hikareFlag == false)))){ rootObj.playSe(7); rootObj.hikareFlag = true; }; if ((((this.y > 200)) && ((safeFlag == false)))){ safeFlag = true; var _local10 = rootObj.trainNow; var _local11 = railNo; var _local12 = (_local10[_local11] - 1); _local10[_local11] = _local12; }; if (this.y > 650){ deleteFlag = true; if (rootObj.hikareFlag == false){ rootObj.score++; if ((rootObj.score % 10) == 0){ if (rootObj.madoka_mc.y > 180){ rootObj.madoka_mc.y = (rootObj.madoka_mc.y - 1); }; }; }; }; 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; scrollSpeedY = 20; rectLeft = 50; rectRight = 50; safeFlag = false; if (Math.floor((Math.random() * 500)) == 0){ head_mc.gotoAndStop("rare"); }; rootObj.playSeLoop(5); addEventListener(Event.ENTER_FRAME, xEnterStep); } } }//package
Section 18
//train3 (train3) package { import flash.media.*; public dynamic class train3 extends Sound { } }//package

Library Items

Symbol 1 Sound {train3}
Symbol 2 Sound {train2}
Symbol 3 Sound {train1}
Symbol 4 Sound {train0}
Symbol 5 Sound {miss0}
Symbol 6 Sound {fue}
Symbol 7 Sound {enter0}
Symbol 8 Sound {cursor0}
Symbol 9 Sound {BGM}
Symbol 10 BitmapUsed by:11
Symbol 11 GraphicUses:10Used by:14
Symbol 12 BitmapUsed by:13
Symbol 13 GraphicUses:12Used by:14
Symbol 14 MovieClip {madokatrain2_fla.TRAINHEAD_MC_30}Uses:11 13Used by:18 22 25
Symbol 15 GraphicUsed by:18
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClipUses:16Used by:18 22 25
Symbol 18 MovieClip {TRAIN2_MC}Uses:14 15 17
Symbol 19 BitmapUsed by:20 23
Symbol 20 GraphicUses:19Used by:22
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClip {TRAIN1_MC}Uses:20 14 21 17
Symbol 23 GraphicUses:19Used by:25
Symbol 24 GraphicUsed by:25
Symbol 25 MovieClip {TRAIN_MC}Uses:23 14 24 17
Symbol 26 GraphicUsed by:27
Symbol 27 MovieClipUses:26Used by:Timeline
Symbol 28 GraphicUsed by:Timeline
Symbol 29 FontUsed by:30 31 34 35 36 37 38 40 41 42 44 46 47 49 55 103 105 106 107 108 112 114 117
Symbol 30 TextUses:29Used by:Timeline
Symbol 31 TextUses:29Used by:Timeline
Symbol 32 BitmapUsed by:33
Symbol 33 GraphicUses:32Used by:Timeline
Symbol 34 TextUses:29Used by:Timeline
Symbol 35 TextUses:29Used by:Timeline
Symbol 36 TextUses:29Used by:Timeline
Symbol 37 TextUses:29Used by:Timeline
Symbol 38 TextUses:29Used by:39
Symbol 39 MovieClipUses:38Used by:Timeline
Symbol 40 EditableTextUses:29Used by:Timeline
Symbol 41 EditableTextUses:29Used by:Timeline
Symbol 42 TextUses:29Used by:43
Symbol 43 ButtonUses:42Used by:Timeline
Symbol 44 TextUses:29Used by:45
Symbol 45 ButtonUses:44Used by:Timeline
Symbol 46 EditableTextUses:29Used by:Timeline
Symbol 47 TextUses:29Used by:Timeline
Symbol 48 GraphicUsed by:56
Symbol 49 EditableTextUses:29Used by:56
Symbol 50 FontUsed by:51 52 53
Symbol 51 EditableTextUses:50Used by:54
Symbol 52 EditableTextUses:50Used by:54
Symbol 53 EditableTextUses:50Used by:54
Symbol 54 MovieClip {madokatrain2_fla.RANKING_LIST_6}Uses:51 52 53Used by:56
Symbol 55 TextUses:29Used by:56
Symbol 56 MovieClip {madokatrain2_fla.RANKING_MC_5}Uses:48 49 54 55Used by:Timeline
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:62
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:61
Symbol 61 MovieClipUses:60Used by:62
Symbol 62 MovieClipUses:58 61Used by:Timeline
Symbol 63 GraphicUsed by:101
Symbol 64 BitmapUsed by:65
Symbol 65 GraphicUses:64Used by:66
Symbol 66 MovieClipUses:65Used by:100
Symbol 67 BitmapUsed by:68
Symbol 68 GraphicUses:67Used by:69
Symbol 69 MovieClipUses:68Used by:100
Symbol 70 BitmapUsed by:71
Symbol 71 GraphicUses:70Used by:72
Symbol 72 MovieClipUses:71Used by:100
Symbol 73 BitmapUsed by:74
Symbol 74 GraphicUses:73Used by:75
Symbol 75 MovieClipUses:74Used by:100
Symbol 76 BitmapUsed by:77
Symbol 77 GraphicUses:76Used by:78
Symbol 78 MovieClipUses:77Used by:100
Symbol 79 BitmapUsed by:80
Symbol 80 GraphicUses:79Used by:81
Symbol 81 MovieClipUses:80Used by:100
Symbol 82 BitmapUsed by:83
Symbol 83 GraphicUses:82Used by:84
Symbol 84 MovieClipUses:83Used by:100
Symbol 85 BitmapUsed by:86
Symbol 86 GraphicUses:85Used by:87
Symbol 87 MovieClipUses:86Used by:100
Symbol 88 BitmapUsed by:89
Symbol 89 GraphicUses:88Used by:90
Symbol 90 MovieClipUses:89Used by:100
Symbol 91 BitmapUsed by:92
Symbol 92 GraphicUses:91Used by:93
Symbol 93 MovieClipUses:92Used by:100
Symbol 94 BitmapUsed by:95
Symbol 95 GraphicUses:94Used by:96
Symbol 96 MovieClipUses:95Used by:100
Symbol 97 BitmapUsed by:98
Symbol 98 GraphicUses:97Used by:99
Symbol 99 MovieClipUses:98Used by:100
Symbol 100 MovieClipUses:66 69 72 75 78 81 84 87 90 93 96 99Used by:101
Symbol 101 MovieClipUses:63 100Used by:Timeline
Symbol 102 MovieClipUsed by:Timeline
Symbol 103 EditableTextUses:29Used by:Timeline
Symbol 104 GraphicUsed by:119
Symbol 105 TextUses:29Used by:119
Symbol 106 TextUses:29Used by:119
Symbol 107 EditableTextUses:29Used by:119
Symbol 108 TextUses:29Used by:116
Symbol 109 FontUsed by:110 120
Symbol 110 EditableTextUses:109Used by:116
Symbol 111 GraphicUsed by:113 115
Symbol 112 TextUses:29Used by:113
Symbol 113 ButtonUses:111 112Used by:116
Symbol 114 TextUses:29Used by:115
Symbol 115 ButtonUses:111 114Used by:116
Symbol 116 MovieClip {madokatrain2_fla.RANKIN_MC_25}Uses:108 110 113 115Used by:119
Symbol 117 TextUses:29Used by:118
Symbol 118 MovieClipUses:117Used by:119
Symbol 119 MovieClip {madokatrain2_fla.GAMEOVER_MC_24}Uses:104 105 106 107 116 118Used by:Timeline
Symbol 120 EditableTextUses:109Used by:Timeline

Instance Names

"mask_mc"Frame 1Symbol 27 MovieClip
"blackMask_mc"Frame 1Symbol 27 MovieClip
"cursor_mc"Frame 3Symbol 39 MovieClip
"bgm_txt"Frame 3Symbol 40 EditableText
"hiScore_txt"Frame 3Symbol 41 EditableText
"link1_mc"Frame 3Symbol 43 Button
"link2_mc"Frame 3Symbol 45 Button
"se_txt"Frame 3Symbol 46 EditableText
"ranking_mc"Frame 3Symbol 56 MovieClip {madokatrain2_fla.RANKING_MC_5}
"rails_mc"Frame 5Symbol 62 MovieClip
"madoka_mc"Frame 5Symbol 101 MovieClip
"stage_mc"Frame 5Symbol 102 MovieClip
"score_txt"Frame 5Symbol 103 EditableText
"gameOver_mc"Frame 5Symbol 119 MovieClip {madokatrain2_fla.GAMEOVER_MC_24}
"test_txt"Frame 5Symbol 120 EditableText
"head_mc"Symbol 18 MovieClip {TRAIN2_MC} Frame 1Symbol 14 MovieClip {madokatrain2_fla.TRAINHEAD_MC_30}
"head_mc"Symbol 22 MovieClip {TRAIN1_MC} Frame 1Symbol 14 MovieClip {madokatrain2_fla.TRAINHEAD_MC_30}
"head_mc"Symbol 25 MovieClip {TRAIN_MC} Frame 1Symbol 14 MovieClip {madokatrain2_fla.TRAINHEAD_MC_30}
"rank_txt"Symbol 54 MovieClip {madokatrain2_fla.RANKING_LIST_6} Frame 1Symbol 51 EditableText
"name_txt"Symbol 54 MovieClip {madokatrain2_fla.RANKING_LIST_6} Frame 1Symbol 52 EditableText
"score_txt"Symbol 54 MovieClip {madokatrain2_fla.RANKING_LIST_6} Frame 1Symbol 53 EditableText
"rankTitle_txt"Symbol 56 MovieClip {madokatrain2_fla.RANKING_MC_5} Frame 1Symbol 49 EditableText
"list0_mc"Symbol 56 MovieClip {madokatrain2_fla.RANKING_MC_5} Frame 1Symbol 54 MovieClip {madokatrain2_fla.RANKING_LIST_6}
"list1_mc"Symbol 56 MovieClip {madokatrain2_fla.RANKING_MC_5} Frame 1Symbol 54 MovieClip {madokatrain2_fla.RANKING_LIST_6}
"list2_mc"Symbol 56 MovieClip {madokatrain2_fla.RANKING_MC_5} Frame 1Symbol 54 MovieClip {madokatrain2_fla.RANKING_LIST_6}
"list3_mc"Symbol 56 MovieClip {madokatrain2_fla.RANKING_MC_5} Frame 1Symbol 54 MovieClip {madokatrain2_fla.RANKING_LIST_6}
"list5_mc"Symbol 56 MovieClip {madokatrain2_fla.RANKING_MC_5} Frame 1Symbol 54 MovieClip {madokatrain2_fla.RANKING_LIST_6}
"list6_mc"Symbol 56 MovieClip {madokatrain2_fla.RANKING_MC_5} Frame 1Symbol 54 MovieClip {madokatrain2_fla.RANKING_LIST_6}
"list7_mc"Symbol 56 MovieClip {madokatrain2_fla.RANKING_MC_5} Frame 1Symbol 54 MovieClip {madokatrain2_fla.RANKING_LIST_6}
"list9_mc"Symbol 56 MovieClip {madokatrain2_fla.RANKING_MC_5} Frame 1Symbol 54 MovieClip {madokatrain2_fla.RANKING_LIST_6}
"list4_mc"Symbol 56 MovieClip {madokatrain2_fla.RANKING_MC_5} Frame 1Symbol 54 MovieClip {madokatrain2_fla.RANKING_LIST_6}
"list8_mc"Symbol 56 MovieClip {madokatrain2_fla.RANKING_MC_5} Frame 1Symbol 54 MovieClip {madokatrain2_fla.RANKING_LIST_6}
"rankName_txt"Symbol 116 MovieClip {madokatrain2_fla.RANKIN_MC_25} Frame 1Symbol 110 EditableText
"noSend_btn"Symbol 116 MovieClip {madokatrain2_fla.RANKIN_MC_25} Frame 1Symbol 113 Button
"send_btn"Symbol 116 MovieClip {madokatrain2_fla.RANKIN_MC_25} Frame 1Symbol 115 Button
"score_txt"Symbol 119 MovieClip {madokatrain2_fla.GAMEOVER_MC_24} Frame 1Symbol 107 EditableText
"rankin_mc"Symbol 119 MovieClip {madokatrain2_fla.GAMEOVER_MC_24} Frame 1Symbol 116 MovieClip {madokatrain2_fla.RANKIN_MC_25}
"nextGame_mc"Symbol 119 MovieClip {madokatrain2_fla.GAMEOVER_MC_24} Frame 1Symbol 118 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.
Protect (24)Timeline Frame 131 bytes "..$1$R4$WUJSuNlMbcof8TNKTy7oY0."

Labels

"load"Frame 1
"loadRanking"Frame 2
"title"Frame 3
"reset"Frame 4
"game"Frame 5
"normal"Symbol 14 MovieClip {madokatrain2_fla.TRAINHEAD_MC_30} Frame 1
"rare"Symbol 14 MovieClip {madokatrain2_fla.TRAINHEAD_MC_30} Frame 2




http://swfchan.com/47/233017/info.shtml
Created: 1/3 -2020 00:19:19 Last modified: 1/3 -2020 00:19:19 Server time: 22/12 -2024 07:33:05