Section 1
//fontDummy_10 (thquiz_fla.fontDummy_10)
package thquiz_fla {
import flash.display.*;
import flash.text.*;
public dynamic class fontDummy_10 extends MovieClip {
public var fontDummy_txt:TextField;
}
}//package thquiz_fla
Section 2
//judge_212 (thquiz_fla.judge_212)
package thquiz_fla {
import flash.display.*;
public dynamic class judge_212 extends MovieClip {
public var seikai_mc:MovieClip;
public function judge_212(){
addFrameScript(0, frame1, 29, frame30, 49, frame50);
}
function frame1(){
stop();
}
function frame30(){
gotoAndPlay("normal");
}
function frame50(){
gotoAndPlay("normal");
}
}
}//package thquiz_fla
Section 3
//MainTimeline (thquiz_fla.MainTimeline)
package thquiz_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 RANK_NORMAL = "normal";
public const TIME_GAUGE_WIDTH:int = 200;
public const PLAYER_SAKUYA = "sakuya";
public const MAX_QUESTION_LENGTH = 75;
public const MAX_PANEL_LENGTH = 22;
public const RANK_HARD = "hard";
public const PLAYER_MARISA = "marisa";
public const STYLE_4SELECT:int = 0;
public const STAMP_MAX_PAGE:int = 6;
public const PLAYER_REIMU = "reimu";
public const RANK_PHANTASM = "phantasm";
public const RANK_EXTRA = "extra";
public const TIME_LIMIT_10:int = 10;
public const TIME_LIMIT_20:int = 20;
public const STAMP_MAX_NO:int = 47;
public const STYLE_ASSOC:int = 1;
public const Q_BAR_WIDTH:int = 240;
public const STYLE_TYPING:int = 2;
public var volume5_mc:SimpleButton;
public var red_mc:MovieClip;
public var resultPlayer_txt:TextField;
public var quizAssoc_array:Array;
public var typingAnswer;
public var rank:String;
public var quizGenre;
public var userDataBack_btn:SimpleButton;
public var window_mc:MovieClip;
public var rankNormal_btn:SimpleButton;
public var panelShuffle:Array;
public var rankingNormal_array:Array;
public var addPanel3_txt:TextField;
public var quizStyle;
public var styleTypingKana_mc:MovieClip;
public var kanaType;
public var rankingHard10thScore:int;
public var removeResultStamp_mc:MovieClip;
public var quizTyping_array:Array;
public var dl:Number;
public var userDataAvg_mc:MovieClip;
public var playerSakuya_btn:SimpleButton;
public var resultWindow_mc:MovieClip;
public var info:LoaderInfo;
public var rankingWindow_mc:MovieClip;
public var rankText_txt:TextField;
public var clearMask_mc:MovieClip;
public var time_moji_txt:TextField;
public var useTyping_array:Array;
public var nowRankingRank;
public var onmyo3_btn:SimpleButton;
public var addPanel2_txt:TextField;
public var choicePanel;
public var titleCharacter_mc:MovieClip;
public var gray_mc:MovieClip;
public var playerBack_btn:SimpleButton;
public var clock3_btn:SimpleButton;
public var stampPage:int;
public var rankPhantasm_btn:SimpleButton;
public var userSakuya_txt:TextField;
public var resultNoPh_mc:MovieClip;
public var nowQuizNo_txt:TextField;
public var userStampPrev_btn:SimpleButton;
public var gameStart_btn:SimpleButton;
public var userData_btn:SimpleButton;
public var playerMarisa_btn:playerMarisa;
public var rankingExtra10thScore:int;
public var star3_btn:SimpleButton;
public var resultWall_mc:MovieClip;
public var onmyo2_btn:SimpleButton;
public var rankHard_btn:SimpleButton;
public var addPanel1_txt:TextField;
public var rankingNormal10thScore:int;
public var rankingPhantasm_array:Array;
public var bgmTr;
public var white_mc:MovieClip;
public var nowQuizNo:int;
public var playerReimu_btn:SimpleButton;
public var maxQuizNo:int;
public var clock2_btn:SimpleButton;
public var bgmList:Dictionary;
public var resultScore_mc:MovieClip;
public var useAssoc_array:Array;
public var addQuestionExp2_txt:TextField;
public var mt:MersenneTwister;
public var onmyo_mc:MovieClip;
public var XML_ASSOC;
public var userMarisa_txt:TextField;
public var star2_btn:SimpleButton;
public var sndTr;
public var seedDate:Date;
public var loadBar_mc:MovieClip;
public var stampY_array;
public var addQuestion_btn:SimpleButton;
public var userDataHiScore_btn:SimpleButton;
public var addQuestion_txt:TextField;
public var userStampNext_btn:SimpleButton;
public var XML_4SELECT;
public var onmyo1_btn:SimpleButton;
public var fontDummy_mc:MovieClip;
public var time_txt:TextField;
public var clock1_btn:SimpleButton;
public var ranking10thScore:int;
public var seList:Dictionary;
public var star1_btn:SimpleButton;
public var rankingPhantasm10thScore:int;
public var style4Select_mc:MovieClip;
public var so:SharedObject;
public var playerText_txt:TextField;
public var addFixedToTitle_btn:SimpleButton;
public var timeBar_mc:MovieClip;
public var seed;
public var userDataHiScore_mc:MovieClip;
public var volumeNo;
public var volume1_mc:SimpleButton;
public var playPos;
public var stampX_array;
public var gameOverFlg;
public var toNext_btn:SimpleButton;
public var loadPercent_txt:TextField;
public var styleTyping_mc:MovieClip;
public var resultNo_mc:MovieClip;
public var stampCount_txt:TextField;
public var XML_TYPING;
public var addBack_btn:SimpleButton;
public var resultNo:int;
public var resultSend_mc:MovieClip;
public var ranking_btn:SimpleButton;
public var rankingHard_array:Array;
public var volume2_mc:SimpleButton;
public var rankExtra_btn:SimpleButton;
public var stamp_array;
public var addFixedMore_btn:SimpleButton;
public var player:String;
public var resultScoreRate;
public var xmlLoader:URLLoader;
public var stampCount:int;
public var grayFlg;
public var keepButton:SimpleButton;
public var resultRank_txt:TextField;
public var onmyoRed_mc:MovieClip;
public var volume3_mc:SimpleButton;
public var bgmCh;
public var rankBack_btn:SimpleButton;
public var rankingExtra_array:Array;
public var addFix_btn:SimpleButton;
public var resultToTitle_btn:SimpleButton;
public var timeOverFlg;
public var useQuizNo:Array;
public var resultPoint:Number;
public var ms0:Number;
public var rankingXmlLoader:URLLoader;
public var fukidasi:MovieClip;
public var userDataAvg_btn:SimpleButton;
public var volume4_mc:SimpleButton;
public var onmyoWhite_mc:MovieClip;
public var addQuestionExp_txt:TextField;
public var rankPlate_mc:MovieClip;
public var player_mc:MovieClip;
public var toTitle_btn:SimpleButton;
public var judge_mc:MovieClip;
public var maskSprite_mc:MovieClip;
public var answer:String;
public var XML_RANKING;
public var gameWall_mc:MovieClip;
public var addPanel4_txt:TextField;
public var userReimu_txt:TextField;
public var rankingPage;
public var quiz_array:Array;
public var CharacterClass:Class;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 7, frame8, 13, frame14, 14, frame15, 15, frame16);
}
public function xClickOnmyo(_arg1:MouseEvent):void{
playSe(spell);
onmyoRed_mc.alpha = 0;
onmyoRed_mc.visible = true;
onmyoWhite_mc.alpha = 0;
onmyoWhite_mc.visible = true;
onmyoRed_mc.addEventListener(Event.ENTER_FRAME, xEnterOnmyoRedFadeOut);
nowQuizNo--;
nextQuiz();
player_mc.gotoAndPlay("spell");
if (onmyo3_btn.visible == true){
onmyo3_btn.visible = false;
} else {
if (onmyo2_btn.visible == true){
onmyo2_btn.visible = false;
} else {
onmyo1_btn.visible = false;
};
};
var _local2 = so.data.tryGenreNo;
var _local3 = quizGenre;
var _local4 = (_local2[_local3] - 1);
_local2[_local3] = _local4;
}
public function xClickTypeYu(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ゆ");
} else {
if (kanaType == "katakana"){
pushTyping("ユ");
};
};
}
public function xClickTypeYo(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("よ");
} else {
if (kanaType == "katakana"){
pushTyping("ヨ");
};
};
}
public function userStampInit():void{
var _local1:*;
var _local2:*;
var _local3:Class;
var _local4:MovieClip;
if (stampPage == 1){
userStampPrev_btn.visible = false;
} else {
if (stampPage == STAMP_MAX_PAGE){
userStampNext_btn.visible = false;
} else {
userStampPrev_btn.visible = true;
userStampNext_btn.visible = true;
};
};
_local1 = 1;
while (_local1 < 10) {
_local2 = (((stampPage - 1) * 9) + _local1);
if (_local2 <= STAMP_MAX_NO){
if (so.data.stamp[_local2] == true){
_local3 = (getDefinitionByName(("stamp" + _local2)) as Class);
_local4 = new (_local3);
addChild(_local4);
_local4.x = stampX_array[_local1];
_local4.y = stampY_array[_local1];
stamp_array[_local2] = _local4;
};
};
_local1++;
};
}
public function gameFontInit():void{
nowQuizNo_txt.embedFonts = true;
time_txt.embedFonts = true;
time_moji_txt.embedFonts = true;
}
public function xClickTypeHandaku(_arg1:MouseEvent):void{
pushTyping("半濁");
}
public function rankingPageCheck():void{
if (rankingPage == 0){
rankingWindow_mc.rankingUp_btn.visible = false;
} else {
rankingWindow_mc.rankingUp_btn.visible = true;
};
if (rankingPage == 9){
rankingWindow_mc.rankingDown_btn.visible = false;
} else {
rankingWindow_mc.rankingDown_btn.visible = true;
};
}
public function xClickToNext(_arg1:MouseEvent):void{
var _local2:Boolean;
var _local3:String;
playSe(select);
_local2 = false;
_local3 = "";
if (addQuestion_txt.length > MAX_QUESTION_LENGTH){
_local3 = (_local3 + "・問題文の文字数が多すぎます\n");
_local2 = true;
} else {
if (addQuestion_txt.length == 0){
_local3 = (_local3 + "・問題文が入力されていません\n");
_local2 = true;
};
};
if (addPanel1_txt.length > MAX_PANEL_LENGTH){
_local3 = (_local3 + "・回答1(○)の文字数が多すぎます\n");
_local2 = true;
} else {
if (addPanel1_txt.length == 0){
_local3 = (_local3 + "・回答1(○)が入力されていません\n");
_local2 = true;
};
};
if (addPanel2_txt.length > MAX_PANEL_LENGTH){
_local3 = (_local3 + "・回答2(×)の文字数が多すぎます\n");
_local2 = true;
} else {
if (addPanel2_txt.length == 0){
_local3 = (_local3 + "・回答2(×)が入力されていません\n");
_local2 = true;
};
};
if (addPanel3_txt.length > MAX_PANEL_LENGTH){
_local3 = (_local3 + "・回答3(×)の文字数が多すぎます\n");
_local2 = true;
} else {
if (addPanel3_txt.length == 0){
_local3 = (_local3 + "・回答3(×)が入力されていません\n");
_local2 = true;
};
};
if (addPanel4_txt.length > MAX_PANEL_LENGTH){
_local3 = (_local3 + "・回答4(×)の文字数が多すぎます\n");
_local2 = true;
} else {
if (addPanel4_txt.length == 0){
_local3 = (_local3 + "・回答4(×)が入力されていません\n");
_local2 = true;
};
};
if (addPanel1_txt.text == addPanel2_txt.text){
_local3 = (_local3 + "・○と×に同じ答えが入力されています\n");
_local2 = true;
} else {
if (addPanel1_txt.text == addPanel3_txt.text){
_local3 = (_local3 + "・○と×に同じ答えが入力されています\n");
_local2 = true;
} else {
if (addPanel1_txt.text == addPanel4_txt.text){
_local3 = (_local3 + "・○と×に同じ答えが入力されています\n");
_local2 = true;
};
};
};
if (_local2){
window_mc.windowOk_btn.addEventListener(MouseEvent.CLICK, xClickWindowOk);
window_mc.error_txt.text = _local3;
window_mc.visible = true;
maskSprite_mc.visible = true;
} else {
toConfQuestion();
};
}
public function xOverPlayerMarisa(_arg1:MouseEvent):void{
playerText_txt.text = "霧雨魔理沙\n普通の魔法使い\n\nスペルカード \n「マスタースパーク」\n\n正解以外のパネルを吹き飛ばします。ただし、残り時間が5秒以上ないと使用できません。";
fukidasi.x = 230;
fukidasi.y = 155;
fukidasi.visible = true;
}
public function dispRankingStamp(_arg1:int):void{
var _local2:Class;
var _local3:MovieClip;
_local2 = (getDefinitionByName(("stamp" + _arg1)) as Class);
_local3 = new (_local2);
_local3.x = 34.8;
_local3.y = 85.5;
_local3.scaleX = 2;
_local3.scaleY = 2;
_local3.visible = true;
removeResultStamp_mc = _local3;
addChildAt(removeResultStamp_mc, (getChildIndex(white_mc) - 2));
}
public function xClickRankingHard(_arg1:MouseEvent):void{
playSe(typing);
rankingPage = 0;
nowRankingRank = RANK_HARD;
hardRankingInit();
}
public function showResultNoPh():void{
resultNoPh_mc.visible = true;
}
public function extraRankingInit():void{
var _local1:*;
var _local2:*;
rankingBtnDisp(RANK_EXTRA);
_local1 = 0;
while (_local1 < 10) {
_local2 = ((rankingPage * 10) + _local1);
if (rankingExtra_array[_local2] != null){
rankingWindow_mc[(("rankingName" + (_local1 + 1)) + "_txt")].text = rankingExtra_array[_local2].name;
rankingWindow_mc[(("rankingScore" + (_local1 + 1)) + "_txt")].text = rankingExtra_array[_local2].score;
if (rankingExtra_array[_local2].player == PLAYER_REIMU){
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ Reimu";
} else {
if (rankingExtra_array[_local2].player == PLAYER_MARISA){
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ Marisa";
} else {
if (rankingExtra_array[_local2].player == PLAYER_SAKUYA){
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ Sakuya";
};
};
};
} else {
rankingWindow_mc[(("rankingName" + (_local1 + 1)) + "_txt")].text = "----------";
rankingWindow_mc[(("rankingScore" + (_local1 + 1)) + "_txt")].text = 0;
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ ------";
};
rankingWindow_mc[(("rankingOrder" + (_local1 + 1)) + "_txt")].text = ((_local2 + 1) + ":");
_local1++;
};
}
public function xClickUserDataHiScore(_arg1:MouseEvent):void{
playSe(typing);
userDataHiScore_mc.visible = true;
userDataAvg_mc.visible = false;
userDataHiScore_btn.visible = false;
userDataAvg_btn.visible = true;
}
public function xClickRankNormal(_arg1:MouseEvent):void{
rank = "normal";
toPlayerSelect();
}
public function xClickTypeLtu(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("っ");
} else {
if (kanaType == "katakana"){
pushTyping("ッ");
};
};
}
public function xClickPlayerReimu(_arg1:MouseEvent):void{
player = "reimuMc";
toQuizStart();
}
function frame15(){
onmyo_mc.addEventListener(Event.ENTER_FRAME, xEnterRollOnmyo);
addFixedToTitle_btn.addEventListener(MouseEvent.CLICK, xClickAddFixedToTitle);
addFixedMore_btn.addEventListener(MouseEvent.CLICK, xClickAddFixedMore);
}
function frame16(){
stop();
stampPage = 1;
stampCount = 0;
stampX_array = [0, 200, 0xFF, 310, 200, 0xFF, 310, 200, 0xFF, 310];
stampY_array = [0, 90, 90, 90, 145, 145, 145, 200, 200, 200];
stamp_array = [];
userDataAvg_mc.visible = false;
userDataHiScore_btn.visible = false;
userDataBack_btn.addEventListener(MouseEvent.CLICK, xClickUserDataBack);
userDataHiScore_btn.addEventListener(MouseEvent.CLICK, xClickUserDataHiScore);
userDataAvg_btn.addEventListener(MouseEvent.CLICK, xClickUserDataAvg);
userStampPrev_btn.addEventListener(MouseEvent.CLICK, xClickUserStampPrev);
userStampNext_btn.addEventListener(MouseEvent.CLICK, xClickUserStampNext);
userDataFontInit();
userDataInit();
userStampInit();
}
public function playerSelectFontInit():void{
playerText_txt.embedFonts = true;
}
function frame14(){
window_mc = new addWindow();
window_mc.visible = false;
addChild(window_mc);
window_mc.x = 193.8;
window_mc.y = 156.2;
addFix_btn.visible = false;
addBack_btn.visible = false;
maskSprite_mc.visible = false;
addQuestionExp_txt.selectable = false;
addQuestionExp2_txt.selectable = false;
toNext_btn.addEventListener(MouseEvent.CLICK, xClickToNext);
toTitle_btn.addEventListener(MouseEvent.CLICK, xClickToTitle);
addQuestion_txt.tabIndex = 1;
addPanel1_txt.tabIndex = 2;
addPanel2_txt.tabIndex = 3;
addPanel3_txt.tabIndex = 4;
addPanel4_txt.tabIndex = 5;
toNext_btn.tabIndex = 6;
toTitle_btn.tabIndex = 7;
addFix_btn.tabIndex = 8;
addBack_btn.tabIndex = 9;
stage.focus = addQuestion_txt;
}
function frame3(){
rank = "normal";
rankSelectFontInit();
rankNormal_btn.addEventListener(MouseEvent.MOUSE_OVER, xOverRankNormal);
rankHard_btn.addEventListener(MouseEvent.MOUSE_OVER, xOverRankHard);
rankExtra_btn.addEventListener(MouseEvent.MOUSE_OVER, xOverRankExtra);
rankPhantasm_btn.addEventListener(MouseEvent.MOUSE_OVER, xOverRankPhantasm);
rankBack_btn.addEventListener(MouseEvent.MOUSE_OVER, xOverBack);
rankNormal_btn.addEventListener(MouseEvent.MOUSE_OUT, xOutRank);
rankHard_btn.addEventListener(MouseEvent.MOUSE_OUT, xOutRank);
rankExtra_btn.addEventListener(MouseEvent.MOUSE_OUT, xOutRank);
rankPhantasm_btn.addEventListener(MouseEvent.MOUSE_OUT, xOutRank);
rankBack_btn.addEventListener(MouseEvent.MOUSE_OUT, xOutRank);
rankNormal_btn.addEventListener(MouseEvent.CLICK, xClickRankNormal);
rankHard_btn.addEventListener(MouseEvent.CLICK, xClickRankHard);
rankExtra_btn.addEventListener(MouseEvent.CLICK, xClickRankExtra);
rankPhantasm_btn.addEventListener(MouseEvent.CLICK, xClickRankPhantasm);
rankBack_btn.addEventListener(MouseEvent.CLICK, xClickBack);
if ((((((so.data.tryQuizNo[0] == 0)) && ((so.data.tryQuizNo[1] == 0)))) && ((so.data.tryQuizNo[2] == 0)))){
rankPhantasm_btn.visible = false;
};
fukidasi = new rankFukidasi();
addChild(fukidasi);
fukidasi.visible = false;
}
function frame4(){
player = "";
playerSelectFontInit();
playerReimu_btn.addEventListener(MouseEvent.MOUSE_OVER, xOverPlayerReimu);
playerMarisa_btn.addEventListener(MouseEvent.MOUSE_OVER, xOverPlayerMarisa);
playerSakuya_btn.addEventListener(MouseEvent.MOUSE_OVER, xOverPlayerSakuya);
playerBack_btn.addEventListener(MouseEvent.MOUSE_OVER, xOverPlayerBack);
playerReimu_btn.addEventListener(MouseEvent.MOUSE_OUT, xOutPlayer);
playerMarisa_btn.addEventListener(MouseEvent.MOUSE_OUT, xOutPlayer);
playerSakuya_btn.addEventListener(MouseEvent.MOUSE_OUT, xOutPlayer);
playerBack_btn.addEventListener(MouseEvent.MOUSE_OUT, xOutPlayer);
playerReimu_btn.addEventListener(MouseEvent.CLICK, xClickPlayerReimu);
playerMarisa_btn.addEventListener(MouseEvent.CLICK, xClickPlayerMarisa);
playerSakuya_btn.addEventListener(MouseEvent.CLICK, xClickPlayerSakuya);
playerBack_btn.addEventListener(MouseEvent.CLICK, xClickPlayerBack);
}
function frame5(){
stop();
seedDate = new Date();
seed = seedDate.getTime();
mt = new MersenneTwister(seed);
nowQuizNo = 1;
maxQuizNo = 10;
answer = "";
quizStyle = 0;
quizGenre = 0;
gameOverFlg = false;
choicePanel = 0;
keepButton = new SimpleButton();
grayFlg = false;
playPos = 0;
timeOverFlg = false;
quiz_array = [];
panelShuffle = [];
useQuizNo = [];
quizAssoc_array = [];
useAssoc_array = [];
quizTyping_array = [];
useTyping_array = [];
ms0 = 0;
dl = 0;
resultNo = 0;
resultPoint = 0;
if (rank == RANK_NORMAL){
so.data.tryQuizNo[0] = (so.data.tryQuizNo[0] + 10);
} else {
if (rank == RANK_HARD){
so.data.tryQuizNo[1] = (so.data.tryQuizNo[1] + 10);
} else {
if (rank == RANK_EXTRA){
so.data.tryQuizNo[2] = (so.data.tryQuizNo[2] + 10);
};
};
};
if (player == "reimuMc"){
so.data.usePlayer[0] = (so.data.usePlayer[0] + 1);
} else {
if (player == "marisaMc"){
so.data.usePlayer[1] = (so.data.usePlayer[1] + 1);
} else {
if (player == "sakuyaMc"){
so.data.usePlayer[2] = (so.data.usePlayer[2] + 1);
};
};
};
xmlLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, xComplete4select);
xmlLoader.load(new URLRequest(XML_4SELECT));
}
function frame6(){
stop();
gameFontInit();
CharacterClass = (getDefinitionByName(player) as Class);
player_mc = new CharacterClass();
addChildAt(player_mc, (getChildIndex(gameWall_mc) + 1));
RankSettingInit();
if (player == "reimuMc"){
onmyo1_btn = new onmyoBtn();
onmyo2_btn = new onmyoBtn();
onmyo3_btn = new onmyoBtn();
} else {
if (player == "marisaMc"){
star1_btn = new starBtn();
star2_btn = new starBtn();
star3_btn = new starBtn();
} else {
if (player == "sakuyaMc"){
clock1_btn = new clockBtn();
clock2_btn = new clockBtn();
clock3_btn = new clockBtn();
};
};
};
gamePlayerInit();
style4Select_mc.question_txt.selectable = false;
style4Select_mc.panel1_txt.selectable = false;
style4Select_mc.panel2_txt.selectable = false;
style4Select_mc.panel3_txt.selectable = false;
style4Select_mc.panel4_txt.selectable = false;
style4Select_mc.panel1_txt.mouseEnabled = false;
style4Select_mc.panel2_txt.mouseEnabled = false;
style4Select_mc.panel3_txt.mouseEnabled = false;
style4Select_mc.panel4_txt.mouseEnabled = false;
styleTyping_mc = new styleTyping();
styleTypingKana_mc = new styleTypingKana();
typingInit();
typingKanaInit();
xFadeIn();
if (rank == "phantasm"){
playBgm(bgmHakurei, 1);
} else {
playBgm(bgmKoiiro, 1);
};
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
selectQuiz();
}
function frame2(){
stop();
bgmList[bgmHakurei] = new bgmHakurei();
bgmList[bgmKoiiro] = new bgmKoiiro();
XML_RANKING = ("xml05398/ranking.xml?" + new Date().getTime());
XML_4SELECT = ("xml05398/quiz_4select.xml?" + new Date().getTime());
XML_ASSOC = ("xml05398/quiz_assoc.xml?" + new Date().getTime());
XML_TYPING = ("xml05398/quiz_typing.xml?" + new Date().getTime());
dispTitleCharacter();
volumeCheck();
rankingWindow_mc = new rankingWindow();
rankingWindow_mc.visible = false;
addChild(rankingWindow_mc);
rankingWindow_mc.width = 259.6;
rankingWindow_mc.height = 196;
rankingWindow_mc.x = 132.4;
rankingWindow_mc.y = 184.7;
rankingWindow_mc.rankingMon_mc.visible = false;
red_mc.visible = false;
xFadeIn();
titleFontInit();
rankingNormal_array = [];
rankingHard_array = [];
rankingExtra_array = [];
rankingPhantasm_array = [];
rankingNormal10thScore = 0;
rankingHard10thScore = 0;
rankingExtra10thScore = 0;
rankingPhantasm10thScore = 0;
rankingPage = 0;
nowRankingRank = RANK_NORMAL;
rankingXmlLoader = new URLLoader();
addQuestion_btn.visible = false;
rankingXmlLoader.addEventListener(Event.COMPLETE, xCompleteRanking);
rankingXmlLoader.load(new URLRequest(XML_RANKING));
gameStart_btn.addEventListener(MouseEvent.CLICK, xClickGameStart);
ranking_btn.addEventListener(MouseEvent.CLICK, xClickRanking);
userData_btn.addEventListener(MouseEvent.CLICK, xClickUserData);
volume1_mc.addEventListener(MouseEvent.CLICK, xClickVolume1);
volume2_mc.addEventListener(MouseEvent.CLICK, xClickVolume2);
volume3_mc.addEventListener(MouseEvent.CLICK, xClickVolume3);
volume4_mc.addEventListener(MouseEvent.CLICK, xClickVolume4);
volume5_mc.addEventListener(MouseEvent.CLICK, xClickVolume5);
}
public function xOverBack(_arg1:MouseEvent):void{
rankText_txt.text = "タイトル画面へ戻ります";
}
public function titleFontInit():void{
var _local1:*;
rankingWindow_mc.rankingRank_txt.embedFonts = true;
_local1 = 0;
while (_local1 < 10) {
rankingWindow_mc[(("rankingOrder" + (_local1 + 1)) + "_txt")].embedFonts = true;
rankingWindow_mc[(("rankingName" + (_local1 + 1)) + "_txt")].embedFonts = true;
rankingWindow_mc[(("rankingScore" + (_local1 + 1)) + "_txt")].embedFonts = true;
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].embedFonts = true;
_local1++;
};
}
public function hardRankingInit():void{
var _local1:*;
var _local2:*;
rankingBtnDisp(RANK_HARD);
_local1 = 0;
while (_local1 < 10) {
_local2 = ((rankingPage * 10) + _local1);
if (rankingHard_array[_local2] != null){
rankingWindow_mc[(("rankingName" + (_local1 + 1)) + "_txt")].text = rankingHard_array[_local2].name;
rankingWindow_mc[(("rankingScore" + (_local1 + 1)) + "_txt")].text = rankingHard_array[_local2].score;
if (rankingHard_array[_local2].player == PLAYER_REIMU){
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ Reimu";
} else {
if (rankingHard_array[_local2].player == PLAYER_MARISA){
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ Marisa";
} else {
if (rankingHard_array[_local2].player == PLAYER_SAKUYA){
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ Sakuya";
} else {
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ ------";
};
};
};
} else {
rankingWindow_mc[(("rankingName" + (_local1 + 1)) + "_txt")].text = "----------";
rankingWindow_mc[(("rankingScore" + (_local1 + 1)) + "_txt")].text = 0;
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ ------";
};
rankingWindow_mc[(("rankingOrder" + (_local1 + 1)) + "_txt")].text = ((_local2 + 1) + ":");
_local1++;
};
}
public function selectAssoc():void{
var _local1:Boolean;
var _local2:uint;
var _local3:Object;
styleTyping_mc.visible = false;
styleTypingKana_mc.visible = false;
style4Select_mc.visible = true;
_local1 = false;
_local2 = 0;
while (!(_local1)) {
_local2 = Math.floor((mt.nextNumber() * quizAssoc_array.length));
if (useAssoc_array.indexOf(_local2, 0) == -1){
_local1 = true;
};
};
useAssoc_array.push(_local2);
_local3 = quizAssoc_array[_local2];
quizGenre = _local3.genre;
var _local4 = so.data.tryGenreNo;
var _local5 = quizGenre;
var _local6 = (_local4[_local5] + 1);
_local4[_local5] = _local6;
panelShuffle[0] = _local3.panel1;
panelShuffle[1] = _local3.panel2;
panelShuffle[2] = _local3.panel3;
panelShuffle[3] = _local3.panel4;
xShuffleArray(panelShuffle);
if (Math.floor((Math.random() * 2)) == 0){
style4Select_mc.question_txt.text = ((((((((("連想問題\n" + _local3.question1) + "\n") + _local3.question2) + "\n") + _local3.question3) + "\n") + _local3.question4) + "\n") + _local3.question5);
} else {
style4Select_mc.question_txt.text = ((((((((("連想問題\n" + _local3.question2) + "\n") + _local3.question1) + "\n") + _local3.question3) + "\n") + _local3.question4) + "\n") + _local3.question5);
};
style4Select_mc.panel1_txt.text = panelShuffle[0];
style4Select_mc.panel2_txt.text = panelShuffle[1];
style4Select_mc.panel3_txt.text = panelShuffle[2];
style4Select_mc.panel4_txt.text = panelShuffle[3];
answer = _local3.answer;
time_txt.text = TIME_LIMIT_10.toString();
ms0 = getTimer();
timeBar_mc.addEventListener(Event.ENTER_FRAME, xEnterTimeBar);
style4Select_mc.panel1_btn.addEventListener(MouseEvent.CLICK, xClickPanel1);
style4Select_mc.panel2_btn.addEventListener(MouseEvent.CLICK, xClickPanel2);
style4Select_mc.panel3_btn.addEventListener(MouseEvent.CLICK, xClickPanel3);
style4Select_mc.panel4_btn.addEventListener(MouseEvent.CLICK, xClickPanel4);
}
function frame8(){
resultFontInit();
white_mc.visible = false;
xFadeInResult();
ranking10thScore = 0;
resultScoreRate = 0;
resultWindow_mc.visible = false;
resultSend_mc.visible = false;
resultToTitle_btn.visible = false;
resultRank_txt.visible = false;
resultNo_mc.visible = false;
resultNoPh_mc.visible = false;
resultScore_mc.visible = false;
resultNo_mc.resultNo_txt.text = resultNo.toString();
resultNoPh_mc.resultNo_txt.text = resultNo.toString();
resultScore_mc.resultPoint_txt.text = resultPoint.toString();
if (player == "reimuMc"){
resultPlayer_txt.text = "霊夢";
} else {
if (player == "marisaMc"){
resultPlayer_txt.text = "魔理沙";
} else {
if (player == "sakuyaMc"){
resultPlayer_txt.text = "咲夜";
};
};
};
if (rank == RANK_NORMAL){
resultRank_txt.text = "Normal";
ranking10thScore = rankingNormal10thScore;
showResultScore();
showResultNo();
setStampNormal();
} else {
if (rank == RANK_HARD){
resultRank_txt.text = "Hard";
ranking10thScore = rankingNormal10thScore;
showResultScore();
showResultNo();
setStampNormal();
} else {
if (rank == RANK_EXTRA){
resultRank_txt.text = "Extra";
ranking10thScore = rankingExtra10thScore;
showResultScore();
showResultNo();
setStampNormal();
} else {
if (rank == RANK_PHANTASM){
resultRank_txt.text = "Phantasm";
ranking10thScore = rankingPhantasm10thScore;
showResultNoPh();
resultPoint = resultNo;
setStampPhantasm();
};
};
};
};
saveHiScore();
saveRightNo();
if (rank == RANK_NORMAL){
if (so.data.rightQuizNo[0] != 0){
resultScoreRate = (Math.round(((so.data.rightQuizNo[0] / so.data.tryQuizNo[0]) * 1000)) / 10);
} else {
resultScoreRate = 0;
};
} else {
if (rank == RANK_HARD){
if (so.data.rightQuizNo[1] != 0){
resultScoreRate = (Math.round(((so.data.rightQuizNo[1] / so.data.tryQuizNo[1]) * 1000)) / 10);
} else {
resultScoreRate = 0;
};
} else {
if (rank == RANK_EXTRA){
if (so.data.rightQuizNo[2] != 0){
resultScoreRate = (Math.round(((so.data.rightQuizNo[2] / so.data.tryQuizNo[2]) * 1000)) / 10);
} else {
resultScoreRate = 0;
};
} else {
if (rank == RANK_PHANTASM){
if (so.data.rightQuizNo[3] != 0){
resultScoreRate = (Math.round(((so.data.rightQuizNo[3] / so.data.tryQuizNo[3]) * 1000)) / 10);
} else {
resultScoreRate = 0;
};
};
};
};
};
showResultRank();
showRankingWindow();
}
public function removeTypingKanaBtn():void{
styleTypingKana_mc.type_a_btn.removeEventListener(MouseEvent.CLICK, xClickTypeA);
styleTypingKana_mc.type_i_btn.removeEventListener(MouseEvent.CLICK, xClickTypeI);
styleTypingKana_mc.type_u_btn.removeEventListener(MouseEvent.CLICK, xClickTypeU);
styleTypingKana_mc.type_e_btn.removeEventListener(MouseEvent.CLICK, xClickTypeE);
styleTypingKana_mc.type_o_btn.removeEventListener(MouseEvent.CLICK, xClickTypeO);
styleTypingKana_mc.type_ka_btn.removeEventListener(MouseEvent.CLICK, xClickTypeKa);
styleTypingKana_mc.type_ki_btn.removeEventListener(MouseEvent.CLICK, xClickTypeKi);
styleTypingKana_mc.type_ku_btn.removeEventListener(MouseEvent.CLICK, xClickTypeKu);
styleTypingKana_mc.type_ke_btn.removeEventListener(MouseEvent.CLICK, xClickTypeKe);
styleTypingKana_mc.type_ko_btn.removeEventListener(MouseEvent.CLICK, xClickTypeKo);
styleTypingKana_mc.type_sa_btn.removeEventListener(MouseEvent.CLICK, xClickTypeSa);
styleTypingKana_mc.type_si_btn.removeEventListener(MouseEvent.CLICK, xClickTypeSi);
styleTypingKana_mc.type_su_btn.removeEventListener(MouseEvent.CLICK, xClickTypeSu);
styleTypingKana_mc.type_se_btn.removeEventListener(MouseEvent.CLICK, xClickTypeSe);
styleTypingKana_mc.type_so_btn.removeEventListener(MouseEvent.CLICK, xClickTypeSo);
styleTypingKana_mc.type_ta_btn.removeEventListener(MouseEvent.CLICK, xClickTypeTa);
styleTypingKana_mc.type_ti_btn.removeEventListener(MouseEvent.CLICK, xClickTypeTi);
styleTypingKana_mc.type_tu_btn.removeEventListener(MouseEvent.CLICK, xClickTypeTu);
styleTypingKana_mc.type_te_btn.removeEventListener(MouseEvent.CLICK, xClickTypeTe);
styleTypingKana_mc.type_to_btn.removeEventListener(MouseEvent.CLICK, xClickTypeTo);
styleTypingKana_mc.type_na_btn.removeEventListener(MouseEvent.CLICK, xClickTypeNa);
styleTypingKana_mc.type_ni_btn.removeEventListener(MouseEvent.CLICK, xClickTypeNi);
styleTypingKana_mc.type_nu_btn.removeEventListener(MouseEvent.CLICK, xClickTypeNu);
styleTypingKana_mc.type_ne_btn.removeEventListener(MouseEvent.CLICK, xClickTypeNe);
styleTypingKana_mc.type_no_btn.removeEventListener(MouseEvent.CLICK, xClickTypeNo);
styleTypingKana_mc.type_ha_btn.removeEventListener(MouseEvent.CLICK, xClickTypeHa);
styleTypingKana_mc.type_hi_btn.removeEventListener(MouseEvent.CLICK, xClickTypeHi);
styleTypingKana_mc.type_hu_btn.removeEventListener(MouseEvent.CLICK, xClickTypeHu);
styleTypingKana_mc.type_he_btn.removeEventListener(MouseEvent.CLICK, xClickTypeHe);
styleTypingKana_mc.type_ho_btn.removeEventListener(MouseEvent.CLICK, xClickTypeHo);
styleTypingKana_mc.type_ma_btn.removeEventListener(MouseEvent.CLICK, xClickTypeMa);
styleTypingKana_mc.type_mi_btn.removeEventListener(MouseEvent.CLICK, xClickTypeMi);
styleTypingKana_mc.type_mu_btn.removeEventListener(MouseEvent.CLICK, xClickTypeMu);
styleTypingKana_mc.type_me_btn.removeEventListener(MouseEvent.CLICK, xClickTypeMe);
styleTypingKana_mc.type_mo_btn.removeEventListener(MouseEvent.CLICK, xClickTypeMo);
styleTypingKana_mc.type_ya_btn.removeEventListener(MouseEvent.CLICK, xClickTypeYa);
styleTypingKana_mc.type_yu_btn.removeEventListener(MouseEvent.CLICK, xClickTypeYu);
styleTypingKana_mc.type_yo_btn.removeEventListener(MouseEvent.CLICK, xClickTypeYo);
styleTypingKana_mc.type_ra_btn.removeEventListener(MouseEvent.CLICK, xClickTypeRa);
styleTypingKana_mc.type_ri_btn.removeEventListener(MouseEvent.CLICK, xClickTypeRi);
styleTypingKana_mc.type_ru_btn.removeEventListener(MouseEvent.CLICK, xClickTypeRu);
styleTypingKana_mc.type_re_btn.removeEventListener(MouseEvent.CLICK, xClickTypeRe);
styleTypingKana_mc.type_ro_btn.removeEventListener(MouseEvent.CLICK, xClickTypeRo);
styleTypingKana_mc.type_wa_btn.removeEventListener(MouseEvent.CLICK, xClickTypeWa);
styleTypingKana_mc.type_wo_btn.removeEventListener(MouseEvent.CLICK, xClickTypeWo);
styleTypingKana_mc.type_nn_btn.removeEventListener(MouseEvent.CLICK, xClickTypeNn);
styleTypingKana_mc.type_la_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLa);
styleTypingKana_mc.type_li_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLi);
styleTypingKana_mc.type_lu_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLu);
styleTypingKana_mc.type_le_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLe);
styleTypingKana_mc.type_lo_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLo);
styleTypingKana_mc.type_lya_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLya);
styleTypingKana_mc.type_lyu_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLyu);
styleTypingKana_mc.type_lyo_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLyo);
styleTypingKana_mc.type_ltu_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLtu);
styleTypingKana_mc.type_hy_btn.removeEventListener(MouseEvent.CLICK, xClickTypeHy);
styleTypingKana_mc.type_daku_btn.removeEventListener(MouseEvent.CLICK, xClickTypeDaku);
styleTypingKana_mc.type_handaku_btn.removeEventListener(MouseEvent.CLICK, xClickTypeHandaku);
styleTypingKana_mc.type_delete_btn.removeEventListener(MouseEvent.CLICK, xClickTypeDelete);
styleTypingKana_mc.type_ok_btn.removeEventListener(MouseEvent.CLICK, xClickTypeOk);
}
public function gameToResult():void{
bgmCh.stop();
bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
removeTypingBtn();
removeTypingKanaBtn();
if (resultPoint < 0){
resultPoint = 0;
};
allRemoveGameEvent();
white_mc.alpha = 0;
white_mc.visible = true;
white_mc.addEventListener(Event.ENTER_FRAME, xEnterResultFade);
}
function frame1(){
stop();
clearMask_mc.visible = false;
fontDummy_mc.visible = false;
gray_mc.visible = false;
loadPercent_txt.embedFonts = true;
contextInit();
seList = new Dictionary();
seList[select] = new select();
seList[good] = new good();
seList[bad] = new bad();
seList[select2] = new select2();
seList[spell] = new spell();
seList[typing] = new typing();
sndTr = new SoundTransform();
sndTr.volume = 0.5;
bgmList = new Dictionary();
bgmTr = new SoundTransform();
bgmTr.volume = 0.5;
bgmCh = new SoundChannel();
volumeNo = 3;
so = SharedObject.getLocal("thQuiz");
soInit();
maskSprite_mc.visible = false;
red_mc.visible = false;
red_mc.alpha = 0;
white_mc.visible = false;
white_mc.alpha = 0;
onmyoRed_mc.visible = false;
onmyoRed_mc.alpha = 0;
onmyoWhite_mc.visible = false;
onmyoWhite_mc.alpha = 0;
info = root.loaderInfo;
onmyo_mc.addEventListener(Event.ENTER_FRAME, xEnterRollOnmyo);
stage.addEventListener(Event.ENTER_FRAME, xLoadEnter);
}
public function xEnterClockFadeOut(_arg1:Event):void{
gray_mc.alpha = (gray_mc.alpha + 0.3);
if (gray_mc.alpha >= 1){
gameGrayOn();
gray_mc.removeEventListener(Event.ENTER_FRAME, xEnterClockFadeOut);
gray_mc.addEventListener(Event.ENTER_FRAME, xEnterClockFadeIn);
};
}
public function playSe(_arg1){
seList[_arg1].play(0, 1, sndTr);
}
public function xEnterTimeBar(_arg1:Event):void{
var _local2:int;
var _local3:Number;
var _local4:Number;
_local2 = 0;
if ((((quizStyle == STYLE_4SELECT)) || ((quizStyle == STYLE_ASSOC)))){
_local2 = TIME_LIMIT_10;
} else {
if (quizStyle == STYLE_TYPING){
_local2 = TIME_LIMIT_20;
};
};
_local3 = ((getTimer() - ms0) / 10);
_local4 = (_local2 - Math.floor(((_local3 / 100) % 60)));
dl = ((_local2 * 100) - Math.floor((_local3 % (_local2 * 100))));
if (player == "marisaMc"){
if (dl < 400){
star1_btn.alpha = 0.5;
star2_btn.alpha = 0.5;
star3_btn.alpha = 0.5;
star1_btn.removeEventListener(MouseEvent.CLICK, xClickStar);
star2_btn.removeEventListener(MouseEvent.CLICK, xClickStar);
star3_btn.removeEventListener(MouseEvent.CLICK, xClickStar);
};
};
time_txt.text = _local4.toString();
timeBar_mc.width = (dl * ((TIME_GAUGE_WIDTH / _local2) / 100));
if (quizStyle == STYLE_4SELECT){
if (dl >= 900){
style4Select_mc.qBar1_mc.width = ((100 - (1000 - dl)) * (Q_BAR_WIDTH / 100));
} else {
if (dl >= 800){
style4Select_mc.qBar1_mc.visible = false;
style4Select_mc.qBar1_mc.width = 0;
style4Select_mc.qBar2_mc.width = ((200 - (1000 - dl)) * (Q_BAR_WIDTH / 100));
} else {
if (dl >= 700){
style4Select_mc.qBar2_mc.visible = false;
style4Select_mc.qBar2_mc.width = 0;
style4Select_mc.qBar3_mc.width = ((300 - (1000 - dl)) * (Q_BAR_WIDTH / 100));
} else {
if (dl >= 600){
style4Select_mc.qBar3_mc.visible = false;
style4Select_mc.qBar3_mc.width = 0;
style4Select_mc.qBar4_mc.width = ((400 - (1000 - dl)) * (Q_BAR_WIDTH / 100));
} else {
if (dl >= 500){
style4Select_mc.qBar4_mc.visible = false;
style4Select_mc.qBar4_mc.width = 0;
style4Select_mc.qBar5_mc.width = ((500 - (1000 - dl)) * (Q_BAR_WIDTH / 100));
};
};
};
};
};
} else {
if (quizStyle == STYLE_ASSOC){
if (dl >= 800){
style4Select_mc.qBar1_mc.width = ((200 - (1000 - dl)) * (Q_BAR_WIDTH / 200));
} else {
if (dl >= 600){
style4Select_mc.qBar1_mc.visible = false;
style4Select_mc.qBar1_mc.width = 0;
style4Select_mc.qBar2_mc.width = ((400 - (1000 - dl)) * (Q_BAR_WIDTH / 200));
} else {
if (dl >= 400){
style4Select_mc.qBar2_mc.visible = false;
style4Select_mc.qBar2_mc.width = 0;
style4Select_mc.qBar3_mc.width = ((600 - (1000 - dl)) * (Q_BAR_WIDTH / 200));
} else {
if (dl >= 200){
style4Select_mc.qBar3_mc.visible = false;
style4Select_mc.qBar3_mc.width = 0;
style4Select_mc.qBar4_mc.width = ((800 - (1000 - dl)) * (Q_BAR_WIDTH / 200));
} else {
if (dl >= 1){
style4Select_mc.qBar4_mc.visible = false;
style4Select_mc.qBar4_mc.width = 0;
style4Select_mc.qBar5_mc.width = ((1000 - (1000 - dl)) * (Q_BAR_WIDTH / 200));
};
};
};
};
};
};
};
if (_local4 <= 0){
timeOverFlg = true;
incorrectAnswer();
nextQuiz();
};
}
public function xClickUserDataBack(_arg1:MouseEvent):void{
playSe(select);
removeStamp();
removeUserDataBtn();
gotoAndStop("title");
}
public function toTitleFade(){
red_mc.alpha = 0;
red_mc.visible = true;
red_mc.addEventListener(Event.ENTER_FRAME, xEnterFadeOut);
}
public function saveRightNo():void{
if (rank == RANK_NORMAL){
so.data.rightQuizNo[0] = (so.data.rightQuizNo[0] + resultNo);
} else {
if (rank == RANK_HARD){
so.data.rightQuizNo[1] = (so.data.rightQuizNo[1] + resultNo);
} else {
if (rank == RANK_EXTRA){
so.data.rightQuizNo[2] = (so.data.rightQuizNo[2] + resultNo);
} else {
if (rank == RANK_PHANTASM){
so.data.rightQuizNo[3] = (so.data.rightQuizNo[3] + resultNo);
if (gameOverFlg == true){
so.data.tryQuizNo[3] = (so.data.tryQuizNo[3] + (resultNo + 1));
} else {
so.data.tryQuizNo[3] = (so.data.tryQuizNo[3] + resultNo);
};
};
};
};
};
}
public function userDataInit():void{
var _local1:int;
userDataHiScore_mc.userHiscore0_txt.text = so.data.hiScore[0];
userDataHiScore_mc.userHiscore1_txt.text = so.data.hiScore[1];
userDataHiScore_mc.userHiscore2_txt.text = so.data.hiScore[2];
userDataHiScore_mc.userHiscore3_txt.text = so.data.hiScore[3];
if (so.data.rightQuizNo[0] != 0){
userDataAvg_mc.userAvg0_txt.text = String((Math.round(((so.data.rightQuizNo[0] / so.data.tryQuizNo[0]) * 1000)) / 10));
} else {
userDataAvg_mc.userAvg0_txt.text = "0";
};
if (so.data.rightQuizNo[1] != 0){
userDataAvg_mc.userAvg1_txt.text = String((Math.round(((so.data.rightQuizNo[1] / so.data.tryQuizNo[1]) * 1000)) / 10));
} else {
userDataAvg_mc.userAvg1_txt.text = "0";
};
if (so.data.rightQuizNo[2] != 0){
userDataAvg_mc.userAvg2_txt.text = String((Math.round(((so.data.rightQuizNo[2] / so.data.tryQuizNo[2]) * 1000)) / 10));
} else {
userDataAvg_mc.userAvg2_txt.text = "0";
};
if (so.data.rightQuizNo[3] != 0){
userDataAvg_mc.userAvg3_txt.text = String((Math.round(((so.data.rightQuizNo[3] / so.data.tryQuizNo[3]) * 1000)) / 10));
} else {
userDataAvg_mc.userAvg3_txt.text = "0";
};
_local1 = (_local1 + so.data.usePlayer[0]);
_local1 = (_local1 + so.data.usePlayer[1]);
_local1 = (_local1 + so.data.usePlayer[2]);
if (so.data.usePlayer[0] != 0){
userReimu_txt.text = String(Math.round(((so.data.usePlayer[0] / _local1) * 100)));
} else {
userReimu_txt.text = "0";
};
if (so.data.usePlayer[1] != 0){
userMarisa_txt.text = String(Math.round(((so.data.usePlayer[1] / _local1) * 100)));
} else {
userMarisa_txt.text = "0";
};
if (so.data.usePlayer[2] != 0){
userSakuya_txt.text = String(((100 - int(userReimu_txt.text)) - int(userMarisa_txt.text)));
} else {
userSakuya_txt.text = "0";
};
stampCounter();
stampCount_txt.text = stampCount.toString();
}
public function xOverRankHard(_arg1:MouseEvent):void{
rankText_txt.text = "Hard\n\n東方Projectをやりこんでいる人向けの難易度です。\n旧作、商業誌からも出題されます。";
fukidasi.x = 230;
fukidasi.y = 155;
fukidasi.visible = true;
}
public function showResultRank():void{
resultRank_txt.visible = true;
}
public function correctAnswer(){
resultNo = (resultNo + 1);
if (quizStyle == STYLE_TYPING){
resultPoint = (resultPoint + Math.floor((dl / 2)));
} else {
if (quizStyle == STYLE_ASSOC){
resultPoint = (resultPoint + (dl + 200));
} else {
resultPoint = (resultPoint + dl);
};
};
var _local1 = so.data.rightGenreNo;
var _local2 = quizGenre;
var _local3 = (_local1[_local2] + 1);
_local1[_local2] = _local3;
playSe(good);
player_mc.gotoAndPlay("good");
judge_mc.gotoAndPlay("good");
}
public function typingKanaInit():void{
var _local1:*;
styleTypingKana_mc.visible = false;
addChildAt(styleTypingKana_mc, (getChildIndex(gameWall_mc) + 1));
styleTypingKana_mc.x = 247.9;
styleTypingKana_mc.y = 153.1;
_local1 = 0;
while (_local1 < 8) {
styleTypingKana_mc[(("typeAns" + (_local1 + 1)) + "_txt")].embedFonts = true;
_local1++;
};
addTypingKanaBtn();
typingAnswer = "";
}
public function xClickTypeLya(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ゃ");
} else {
if (kanaType == "katakana"){
pushTyping("ャ");
};
};
}
public function xCompleteAssoc(_arg1:Event):void{
var quizXML:XML;
var quizs:XMLList;
var evt = _arg1;
quizXML = new XML(xmlLoader.data);
quizs = quizXML.quiz;
xmlLoader = null;
if (rank == "extra"){
for each (quizXML in quizs.(((((@rank == "hard")) || ((@rank == "normal")))) || ((@rank == "extra")))) {
quizAssoc_array.push({question1:quizXML.question1, question2:quizXML.question2, question3:quizXML.question3, question4:quizXML.question4, question5:quizXML.question5, panel1:quizXML.panel1, panel2:quizXML.panel2, panel3:quizXML.panel3, panel4:quizXML.panel4, answer:quizXML.answer, genre:quizXML.@genre});
};
} else {
if (rank == "hard"){
for each (quizXML in quizs.(((@rank == "hard")) || ((@rank == "normal")))) {
quizAssoc_array.push({question1:quizXML.question1, question2:quizXML.question2, question3:quizXML.question3, question4:quizXML.question4, question5:quizXML.question5, panel1:quizXML.panel1, panel2:quizXML.panel2, panel3:quizXML.panel3, panel4:quizXML.panel4, answer:quizXML.answer, genre:quizXML.@genre});
};
} else {
if (rank == "phantasm"){
for each (quizXML in quizs.(((@rank == "hard")) || ((@rank == "normal")))) {
quizAssoc_array.push({question1:quizXML.question1, question2:quizXML.question2, question3:quizXML.question3, question4:quizXML.question4, question5:quizXML.question5, panel1:quizXML.panel1, panel2:quizXML.panel2, panel3:quizXML.panel3, panel4:quizXML.panel4, answer:quizXML.answer, genre:quizXML.@genre});
};
maxQuizNo = (maxQuizNo + quizAssoc_array.length);
} else {
for each (quizXML in quizs.(@rank == rank)) {
quizAssoc_array.push({question1:quizXML.question1, question2:quizXML.question2, question3:quizXML.question3, question4:quizXML.question4, question5:quizXML.question5, panel1:quizXML.panel1, panel2:quizXML.panel2, panel3:quizXML.panel3, panel4:quizXML.panel4, answer:quizXML.answer, genre:quizXML.@genre});
};
};
};
};
xmlLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, xCompleteTyping);
xmlLoader.load(new URLRequest(XML_TYPING));
}
public function xFadeInResult(){
white_mc.visible = true;
white_mc.alpha = 1;
white_mc.addEventListener(Event.ENTER_FRAME, xEnterFadeInResult);
}
public function xClickPlayerMarisa(_arg1:MouseEvent):void{
player = "marisaMc";
toQuizStart();
}
public function xClickTypeLyo(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ょ");
} else {
if (kanaType == "katakana"){
pushTyping("ョ");
};
};
}
public function xClickTypeLyu(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ゅ");
} else {
if (kanaType == "katakana"){
pushTyping("ュ");
};
};
}
public function showResultNo():void{
resultNo_mc.visible = true;
}
public function setStampNormal():void{
var _local1:*;
_local1 = 0;
if ((((((resultPoint >= 9200)) && ((rank == RANK_HARD)))) && ((so.data.stamp[18] == false)))){
_local1 = 18;
} else {
if ((((((resultPoint >= 8800)) && ((rank == RANK_HARD)))) && ((so.data.stamp[17] == false)))){
_local1 = 17;
} else {
if ((((((resultPoint >= 8300)) && ((rank == RANK_HARD)))) && ((so.data.stamp[16] == false)))){
_local1 = 16;
} else {
if ((((((resultPoint >= 7800)) && ((rank == RANK_HARD)))) && ((so.data.stamp[15] == false)))){
_local1 = 15;
} else {
if ((((((((((((((((((((resultPoint == 9000)) || ((resultPoint == 8000)))) || ((resultPoint == 7000)))) || ((resultPoint == 6000)))) || ((resultPoint == 5000)))) || ((resultPoint == 4000)))) || ((resultPoint == 3000)))) || ((resultPoint == 2000)))) || ((resultPoint == 1000)))) && ((so.data.stamp[46] == false)))){
_local1 = 46;
} else {
if ((((((((((((((((((((resultPoint == 9111)) || ((resultPoint == 8111)))) || ((resultPoint == 7111)))) || ((resultPoint == 6111)))) || ((resultPoint == 5111)))) || ((resultPoint == 4111)))) || ((resultPoint == 3111)))) || ((resultPoint == 2111)))) || ((resultPoint == 1111)))) && ((so.data.stamp[37] == false)))){
_local1 = 37;
} else {
if ((((((((((((((((((((resultPoint == 9222)) || ((resultPoint == 8222)))) || ((resultPoint == 7222)))) || ((resultPoint == 6222)))) || ((resultPoint == 5222)))) || ((resultPoint == 4222)))) || ((resultPoint == 3222)))) || ((resultPoint == 2222)))) || ((resultPoint == 1222)))) && ((so.data.stamp[38] == false)))){
_local1 = 38;
} else {
if ((((((((((((((((((((resultPoint == 9333)) || ((resultPoint == 8333)))) || ((resultPoint == 7333)))) || ((resultPoint == 6333)))) || ((resultPoint == 5333)))) || ((resultPoint == 4333)))) || ((resultPoint == 3333)))) || ((resultPoint == 2333)))) || ((resultPoint == 1333)))) && ((so.data.stamp[39] == false)))){
_local1 = 39;
} else {
if ((((((((((((((((((((resultPoint == 9444)) || ((resultPoint == 8444)))) || ((resultPoint == 7444)))) || ((resultPoint == 6444)))) || ((resultPoint == 5444)))) || ((resultPoint == 4444)))) || ((resultPoint == 3444)))) || ((resultPoint == 2444)))) || ((resultPoint == 1444)))) && ((so.data.stamp[40] == false)))){
_local1 = 40;
} else {
if ((((((((((((((((((((resultPoint == 9555)) || ((resultPoint == 8555)))) || ((resultPoint == 7555)))) || ((resultPoint == 6555)))) || ((resultPoint == 5555)))) || ((resultPoint == 4555)))) || ((resultPoint == 3555)))) || ((resultPoint == 2555)))) || ((resultPoint == 1555)))) && ((so.data.stamp[41] == false)))){
_local1 = 41;
} else {
if ((((((((((((((((((((resultPoint == 9666)) || ((resultPoint == 8666)))) || ((resultPoint == 7666)))) || ((resultPoint == 6666)))) || ((resultPoint == 5666)))) || ((resultPoint == 4666)))) || ((resultPoint == 3666)))) || ((resultPoint == 2666)))) || ((resultPoint == 1666)))) && ((so.data.stamp[42] == false)))){
_local1 = 42;
} else {
if ((((((((((((((((((((resultPoint == 9777)) || ((resultPoint == 8777)))) || ((resultPoint == 7777)))) || ((resultPoint == 6777)))) || ((resultPoint == 5777)))) || ((resultPoint == 4777)))) || ((resultPoint == 3777)))) || ((resultPoint == 2777)))) || ((resultPoint == 1777)))) && ((so.data.stamp[43] == false)))){
_local1 = 43;
} else {
if ((((((((((((((((((((resultPoint == 9888)) || ((resultPoint == 8888)))) || ((resultPoint == 7888)))) || ((resultPoint == 6888)))) || ((resultPoint == 0x1700)))) || ((resultPoint == 4888)))) || ((resultPoint == 3888)))) || ((resultPoint == 2888)))) || ((resultPoint == 1888)))) && ((so.data.stamp[44] == false)))){
_local1 = 44;
} else {
if ((((((((((((((((((((resultPoint == 9999)) || ((resultPoint == 8999)))) || ((resultPoint == 7999)))) || ((resultPoint == 6999)))) || ((resultPoint == 5999)))) || ((resultPoint == 4999)))) || ((resultPoint == 3999)))) || ((resultPoint == 2999)))) || ((resultPoint == 1999)))) && ((so.data.stamp[45] == false)))){
_local1 = 45;
} else {
if ((((resultPoint >= 7200)) && ((so.data.stamp[14] == false)))){
_local1 = 14;
} else {
if ((((resultPoint >= 6500)) && ((so.data.stamp[13] == false)))){
_local1 = 13;
} else {
if ((((resultPoint >= 6000)) && ((so.data.stamp[12] == false)))){
_local1 = 12;
} else {
if ((((resultPoint >= 5500)) && ((so.data.stamp[11] == false)))){
_local1 = 11;
} else {
if ((((resultPoint >= 5000)) && ((so.data.stamp[10] == false)))){
_local1 = 10;
} else {
if ((((resultPoint >= 4500)) && ((so.data.stamp[9] == false)))){
_local1 = 9;
} else {
if ((((resultPoint >= 4000)) && ((so.data.stamp[8] == false)))){
_local1 = 8;
} else {
if ((((resultPoint >= 3500)) && ((so.data.stamp[7] == false)))){
_local1 = 7;
} else {
if ((((resultPoint >= 3000)) && ((so.data.stamp[6] == false)))){
_local1 = 6;
} else {
if ((((resultPoint >= 2500)) && ((so.data.stamp[5] == false)))){
_local1 = 5;
} else {
if ((((resultPoint >= 2000)) && ((so.data.stamp[4] == false)))){
_local1 = 4;
} else {
if ((((((resultPoint <= 1500)) && ((so.data.stamp[47] == false)))) && ((resultNo == 10)))){
_local1 = 47;
} else {
if ((((resultPoint >= 1500)) && ((so.data.stamp[3] == false)))){
_local1 = 3;
} else {
if ((((resultPoint >= 1000)) && ((so.data.stamp[2] == false)))){
_local1 = 2;
} else {
if ((((resultPoint >= 0)) && ((so.data.stamp[1] == false)))){
_local1 = 1;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
dispRankingStamp(_local1);
if (_local1 != 0){
so.data.stamp[_local1] = true;
};
}
public function xClickBack(_arg1:MouseEvent):void{
playSe(select);
allRemoveRankEvent();
gotoAndStop("title");
}
public function stampCounter():void{
var _local1:*;
_local1 = 1;
while (_local1 <= STAMP_MAX_NO) {
if (so.data.stamp[_local1] == true){
stampCount++;
};
_local1++;
};
}
public function xOutRank(_arg1:MouseEvent):void{
rankText_txt.text = "";
fukidasi.visible = false;
}
public function rankingBtnDisp(_arg1:String){
if (_arg1 == RANK_NORMAL){
rankingWindow_mc.rankingNormal_btn.visible = false;
rankingWindow_mc.rankingRank_txt.text = "【Normal】";
} else {
rankingWindow_mc.rankingNormal_btn.visible = true;
};
if (_arg1 == RANK_HARD){
rankingWindow_mc.rankingHard_btn.visible = false;
rankingWindow_mc.rankingRank_txt.text = "【Hard】";
} else {
rankingWindow_mc.rankingHard_btn.visible = true;
};
if (_arg1 == RANK_EXTRA){
rankingWindow_mc.rankingExtra_btn.visible = false;
rankingWindow_mc.rankingRank_txt.text = "【Extra】";
} else {
rankingWindow_mc.rankingExtra_btn.visible = true;
};
if (_arg1 == RANK_PHANTASM){
rankingWindow_mc.rankingPhantasm_btn.visible = false;
rankingWindow_mc.rankingRank_txt.text = "【Phantasm】";
visiblePorM(false);
} else {
rankingWindow_mc.rankingPhantasm_btn.visible = true;
visiblePorM(true);
};
rankingPageCheck();
}
public function xEnterClockFadeIn(_arg1:Event):void{
gray_mc.alpha = (gray_mc.alpha - 0.3);
if (gray_mc.alpha <= 0){
gray_mc.visible = false;
gray_mc.removeEventListener(Event.ENTER_FRAME, xEnterClockFadeIn);
};
}
public function xClickTypeDaku(_arg1:MouseEvent):void{
pushTyping("濁");
}
public function xEnterMasterFadeOut(_arg1:Event):void{
if (timeOverFlg == true){
white_mc.visible = false;
white_mc.removeEventListener(Event.ENTER_FRAME, xEnterMasterFadeOut);
} else {
white_mc.alpha = (white_mc.alpha + 0.02);
if (white_mc.alpha >= 1){
white_mc.removeEventListener(Event.ENTER_FRAME, xEnterMasterFadeOut);
if ((((quizStyle == STYLE_4SELECT)) || ((quizStyle == STYLE_ASSOC)))){
switch (answer){
case style4Select_mc.panel1_txt.text:
style4Select_mc.panel2_txt.text = "";
style4Select_mc.panel3_txt.text = "";
style4Select_mc.panel4_txt.text = "";
break;
case style4Select_mc.panel2_txt.text:
style4Select_mc.panel1_txt.text = "";
style4Select_mc.panel3_txt.text = "";
style4Select_mc.panel4_txt.text = "";
break;
case style4Select_mc.panel3_txt.text:
style4Select_mc.panel1_txt.text = "";
style4Select_mc.panel2_txt.text = "";
style4Select_mc.panel4_txt.text = "";
break;
case style4Select_mc.panel4_txt.text:
style4Select_mc.panel1_txt.text = "";
style4Select_mc.panel2_txt.text = "";
style4Select_mc.panel3_txt.text = "";
break;
};
} else {
if (quizStyle == STYLE_TYPING){
typingAnswer = answer;
reflectTypingAnswer();
};
};
white_mc.addEventListener(Event.ENTER_FRAME, xEnterMasterFadeIn);
};
};
}
public function toRankSelect():void{
removeTitleBtn();
gotoAndStop("rankSelect");
}
public function xCompleteRanking(_arg1:Event):void{
var rankingXML:XML;
var rankings:XMLList;
var evt = _arg1;
rankingXML = new XML(rankingXmlLoader.data);
rankings = rankingXML.ranking;
for each (rankingXML in rankings.(@rank == "normal")) {
rankingNormal_array.push({name:rankingXML.name, score:rankingXML.score, player:rankingXML.player});
};
for each (rankingXML in rankings.(@rank == "hard")) {
rankingHard_array.push({name:rankingXML.name, score:rankingXML.score, player:rankingXML.player});
};
for each (rankingXML in rankings.(@rank == "extra")) {
rankingExtra_array.push({name:rankingXML.name, score:rankingXML.score, player:rankingXML.player});
};
for each (rankingXML in rankings.(@rank == "phantasm")) {
rankingPhantasm_array.push({name:rankingXML.name, score:rankingXML.score, player:rankingXML.player});
};
rankingNormal_array.sortOn("score", (Array.DESCENDING | Array.NUMERIC));
rankingHard_array.sortOn("score", (Array.DESCENDING | Array.NUMERIC));
rankingExtra_array.sortOn("score", (Array.DESCENDING | Array.NUMERIC));
rankingPhantasm_array.sortOn("score", (Array.DESCENDING | Array.NUMERIC));
if (rankingNormal_array[99] != null){
rankingNormal10thScore = rankingNormal_array[99].score;
} else {
rankingNormal10thScore = 0;
};
if (rankingHard_array[99] != null){
rankingHard10thScore = rankingHard_array[99].score;
} else {
rankingHard10thScore = 0;
};
if (rankingExtra_array[99] != null){
rankingExtra10thScore = rankingExtra_array[99].score;
} else {
rankingExtra10thScore = 0;
};
if (rankingPhantasm_array[99] != null){
rankingPhantasm10thScore = rankingPhantasm_array[99].score;
} else {
rankingPhantasm10thScore = 0;
};
rankingXmlLoader.removeEventListener(Event.COMPLETE, xCompleteRanking);
rankingXmlLoader = null;
}
public function toGameFade(){
red_mc.alpha = 0;
red_mc.visible = true;
red_mc.addEventListener(Event.ENTER_FRAME, xEnterGameFadeOut);
}
public function gamePlayerInit():void{
if (player == "reimuMc"){
player_mc.x = -5;
player_mc.y = 180;
player_mc.visible = true;
onmyo1_btn.x = 25;
onmyo1_btn.y = 167.8;
onmyo1_btn.visible = true;
onmyo2_btn.x = 55;
onmyo2_btn.y = 167.8;
onmyo2_btn.visible = false;
onmyo3_btn.x = 85;
onmyo3_btn.y = 167.8;
onmyo3_btn.visible = false;
addChildAt(onmyo1_btn, (getChildIndex(gameWall_mc) + 1));
addChildAt(onmyo2_btn, (getChildIndex(gameWall_mc) + 1));
addChildAt(onmyo3_btn, (getChildIndex(gameWall_mc) + 1));
onmyo1_btn.addEventListener(MouseEvent.CLICK, xClickOnmyo);
onmyo2_btn.addEventListener(MouseEvent.CLICK, xClickOnmyo);
onmyo3_btn.addEventListener(MouseEvent.CLICK, xClickOnmyo);
} else {
if (player == "marisaMc"){
player_mc.x = -10;
player_mc.y = 180;
player_mc.visible = true;
star1_btn.x = 25;
star1_btn.y = 166.5;
star1_btn.visible = true;
star2_btn.x = 55;
star2_btn.y = 166.5;
star2_btn.visible = false;
star3_btn.x = 85;
star3_btn.y = 166.5;
star3_btn.visible = false;
addChildAt(star1_btn, (getChildIndex(gameWall_mc) + 1));
addChildAt(star2_btn, (getChildIndex(gameWall_mc) + 1));
addChildAt(star3_btn, (getChildIndex(gameWall_mc) + 1));
star1_btn.addEventListener(MouseEvent.CLICK, xClickStar);
star2_btn.addEventListener(MouseEvent.CLICK, xClickStar);
star3_btn.addEventListener(MouseEvent.CLICK, xClickStar);
} else {
if (player == "sakuyaMc"){
player_mc.x = -10;
player_mc.y = 180;
player_mc.visible = true;
clock1_btn.x = 25;
clock1_btn.y = 168.5;
clock1_btn.visible = true;
clock2_btn.x = 55;
clock2_btn.y = 168.5;
clock2_btn.visible = false;
clock3_btn.x = 85;
clock3_btn.y = 168.5;
clock3_btn.visible = false;
addChildAt(clock1_btn, (getChildIndex(gameWall_mc) + 1));
addChildAt(clock2_btn, (getChildIndex(gameWall_mc) + 1));
addChildAt(clock3_btn, (getChildIndex(gameWall_mc) + 1));
clock1_btn.addEventListener(MouseEvent.CLICK, xClickClock);
clock2_btn.addEventListener(MouseEvent.CLICK, xClickClock);
clock3_btn.addEventListener(MouseEvent.CLICK, xClickClock);
};
};
};
}
public function keepPanelColor():void{
if (choicePanel == 1){
keepButton.upState = style4Select_mc.panel1_btn.upState;
style4Select_mc.panel1_btn.upState = style4Select_mc.panel1_btn.overState;
} else {
if (choicePanel == 2){
keepButton.upState = style4Select_mc.panel2_btn.upState;
style4Select_mc.panel2_btn.upState = style4Select_mc.panel2_btn.overState;
} else {
if (choicePanel == 3){
keepButton.upState = style4Select_mc.panel3_btn.upState;
style4Select_mc.panel3_btn.upState = style4Select_mc.panel3_btn.overState;
} else {
if (choicePanel == 4){
keepButton.upState = style4Select_mc.panel4_btn.upState;
style4Select_mc.panel4_btn.upState = style4Select_mc.panel4_btn.overState;
};
};
};
};
}
public function xEnterOnmyoRedFadeOut(_arg1:Event):void{
onmyoRed_mc.alpha = (onmyoRed_mc.alpha + 0.2);
if (onmyoRed_mc.alpha >= 1){
onmyoRed_mc.removeEventListener(Event.ENTER_FRAME, xEnterOnmyoRedFadeOut);
onmyoWhite_mc.addEventListener(Event.ENTER_FRAME, xEnterOnmyoWhiteFadeOut);
};
}
public function pushTyping(_arg1:String):void{
playSe(typing);
if (_arg1 == "濁"){
switch (typingAnswer.charAt((typingAnswer.length - 1))){
case "か":
pushLastStr("が");
break;
case "き":
pushLastStr("ぎ");
break;
case "く":
pushLastStr("ぐ");
break;
case "け":
pushLastStr("げ");
break;
case "こ":
pushLastStr("ご");
break;
case "さ":
pushLastStr("ざ");
break;
case "し":
pushLastStr("じ");
break;
case "す":
pushLastStr("ず");
break;
case "せ":
pushLastStr("ぜ");
break;
case "そ":
pushLastStr("ぞ");
break;
case "た":
pushLastStr("だ");
break;
case "ち":
pushLastStr("ぢ");
break;
case "つ":
pushLastStr("づ");
break;
case "て":
pushLastStr("で");
break;
case "と":
pushLastStr("ど");
break;
case "は":
pushLastStr("ば");
break;
case "ひ":
pushLastStr("び");
break;
case "ふ":
pushLastStr("ぶ");
break;
case "へ":
pushLastStr("べ");
break;
case "ほ":
pushLastStr("ぼ");
break;
case "カ":
pushLastStr("ガ");
break;
case "キ":
pushLastStr("ギ");
break;
case "ク":
pushLastStr("グ");
break;
case "ケ":
pushLastStr("ゲ");
break;
case "コ":
pushLastStr("ゴ");
break;
case "サ":
pushLastStr("ザ");
break;
case "シ":
pushLastStr("ジ");
break;
case "ス":
pushLastStr("ズ");
break;
case "セ":
pushLastStr("ゼ");
break;
case "ソ":
pushLastStr("ゾ");
break;
case "タ":
pushLastStr("ダ");
break;
case "チ":
pushLastStr("ヂ");
break;
case "ツ":
pushLastStr("ヅ");
break;
case "テ":
pushLastStr("デ");
break;
case "ト":
pushLastStr("ド");
break;
case "ハ":
pushLastStr("バ");
break;
case "ヒ":
pushLastStr("ビ");
break;
case "フ":
pushLastStr("ブ");
break;
case "ヘ":
pushLastStr("ベ");
break;
case "ホ":
pushLastStr("ボ");
break;
case "ウ":
pushLastStr("ヴ");
break;
};
} else {
if (_arg1 == "半濁"){
switch (typingAnswer.charAt((typingAnswer.length - 1))){
case "は":
pushLastStr("ぱ");
break;
case "ひ":
pushLastStr("ぴ");
break;
case "ふ":
pushLastStr("ぷ");
break;
case "へ":
pushLastStr("ぺ");
break;
case "ほ":
pushLastStr("ぽ");
break;
case "ハ":
pushLastStr("パ");
break;
case "ヒ":
pushLastStr("ピ");
break;
case "フ":
pushLastStr("プ");
break;
case "ヘ":
pushLastStr("ペ");
break;
case "ホ":
pushLastStr("ポ");
break;
};
} else {
if (typingAnswer.length == 8){
} else {
typingAnswer = (typingAnswer + _arg1);
};
};
};
reflectTypingAnswer();
}
public function xClickRankExtra(_arg1:MouseEvent):void{
rank = "extra";
toPlayerSelect();
}
public function showResultScore():void{
resultScore_mc.visible = true;
}
public function xClickResultWindowOk(_arg1:MouseEvent):void{
var url:URLRequest;
var variables:URLVariables;
var loader:URLLoader;
var evt = _arg1;
playSe(select);
url = new URLRequest("php06875/ranking.php");
variables = new URLVariables();
variables.name = resultWindow_mc.resultInputName_txt.text;
variables.score = resultPoint;
variables.rank = rank;
if (player == "reimuMc"){
variables.player = PLAYER_REIMU;
} else {
if (player == "marisaMc"){
variables.player = PLAYER_MARISA;
} else {
if (player == "sakuyaMc"){
variables.player = PLAYER_SAKUYA;
};
};
};
variables.scoreRate = resultScoreRate;
url.data = variables.toString();
url.method = URLRequestMethod.POST;
loader = new URLLoader();
try {
loader.load(url);
} catch(e:Error) {
};
resultWindow_mc.resultOk_btn.removeEventListener(MouseEvent.CLICK, xClickResultWindowOk);
so.data.userName = resultWindow_mc.resultInputName_txt.text;
resultToTitle_btn.visible = true;
resultToTitle_btn.addEventListener(MouseEvent.CLICK, xClickResultToTitle);
resultWindow_mc.visible = false;
maskSprite_mc.visible = false;
}
public function playBgm(_arg1, _arg2){
bgmCh = bgmList[_arg1].play(0, _arg2, bgmTr);
}
public function checkQuizRemaind():void{
var _local1:*;
_local1 = false;
while (_local1 == false) {
if (quizStyle == STYLE_4SELECT){
if (useQuizNo.length >= quiz_array.length){
quizStyle = STYLE_ASSOC;
} else {
_local1 = true;
};
} else {
if (quizStyle == STYLE_ASSOC){
if (useAssoc_array.length >= quizAssoc_array.length){
quizStyle = STYLE_TYPING;
} else {
_local1 = true;
};
} else {
if (quizStyle == STYLE_TYPING){
if (useTyping_array.length >= quizTyping_array.length){
quizStyle = STYLE_4SELECT;
} else {
_local1 = true;
};
};
};
};
};
}
public function removeTypingBtn():void{
styleTyping_mc.type_a_btn.removeEventListener(MouseEvent.CLICK, xClickTypeA);
styleTyping_mc.type_i_btn.removeEventListener(MouseEvent.CLICK, xClickTypeI);
styleTyping_mc.type_u_btn.removeEventListener(MouseEvent.CLICK, xClickTypeU);
styleTyping_mc.type_e_btn.removeEventListener(MouseEvent.CLICK, xClickTypeE);
styleTyping_mc.type_o_btn.removeEventListener(MouseEvent.CLICK, xClickTypeO);
styleTyping_mc.type_ka_btn.removeEventListener(MouseEvent.CLICK, xClickTypeKa);
styleTyping_mc.type_ki_btn.removeEventListener(MouseEvent.CLICK, xClickTypeKi);
styleTyping_mc.type_ku_btn.removeEventListener(MouseEvent.CLICK, xClickTypeKu);
styleTyping_mc.type_ke_btn.removeEventListener(MouseEvent.CLICK, xClickTypeKe);
styleTyping_mc.type_ko_btn.removeEventListener(MouseEvent.CLICK, xClickTypeKo);
styleTyping_mc.type_sa_btn.removeEventListener(MouseEvent.CLICK, xClickTypeSa);
styleTyping_mc.type_si_btn.removeEventListener(MouseEvent.CLICK, xClickTypeSi);
styleTyping_mc.type_su_btn.removeEventListener(MouseEvent.CLICK, xClickTypeSu);
styleTyping_mc.type_se_btn.removeEventListener(MouseEvent.CLICK, xClickTypeSe);
styleTyping_mc.type_so_btn.removeEventListener(MouseEvent.CLICK, xClickTypeSo);
styleTyping_mc.type_ta_btn.removeEventListener(MouseEvent.CLICK, xClickTypeTa);
styleTyping_mc.type_ti_btn.removeEventListener(MouseEvent.CLICK, xClickTypeTi);
styleTyping_mc.type_tu_btn.removeEventListener(MouseEvent.CLICK, xClickTypeTu);
styleTyping_mc.type_te_btn.removeEventListener(MouseEvent.CLICK, xClickTypeTe);
styleTyping_mc.type_to_btn.removeEventListener(MouseEvent.CLICK, xClickTypeTo);
styleTyping_mc.type_na_btn.removeEventListener(MouseEvent.CLICK, xClickTypeNa);
styleTyping_mc.type_ni_btn.removeEventListener(MouseEvent.CLICK, xClickTypeNi);
styleTyping_mc.type_nu_btn.removeEventListener(MouseEvent.CLICK, xClickTypeNu);
styleTyping_mc.type_ne_btn.removeEventListener(MouseEvent.CLICK, xClickTypeNe);
styleTyping_mc.type_no_btn.removeEventListener(MouseEvent.CLICK, xClickTypeNo);
styleTyping_mc.type_ha_btn.removeEventListener(MouseEvent.CLICK, xClickTypeHa);
styleTyping_mc.type_hi_btn.removeEventListener(MouseEvent.CLICK, xClickTypeHi);
styleTyping_mc.type_hu_btn.removeEventListener(MouseEvent.CLICK, xClickTypeHu);
styleTyping_mc.type_he_btn.removeEventListener(MouseEvent.CLICK, xClickTypeHe);
styleTyping_mc.type_ho_btn.removeEventListener(MouseEvent.CLICK, xClickTypeHo);
styleTyping_mc.type_ma_btn.removeEventListener(MouseEvent.CLICK, xClickTypeMa);
styleTyping_mc.type_mi_btn.removeEventListener(MouseEvent.CLICK, xClickTypeMi);
styleTyping_mc.type_mu_btn.removeEventListener(MouseEvent.CLICK, xClickTypeMu);
styleTyping_mc.type_me_btn.removeEventListener(MouseEvent.CLICK, xClickTypeMe);
styleTyping_mc.type_mo_btn.removeEventListener(MouseEvent.CLICK, xClickTypeMo);
styleTyping_mc.type_ya_btn.removeEventListener(MouseEvent.CLICK, xClickTypeYa);
styleTyping_mc.type_yu_btn.removeEventListener(MouseEvent.CLICK, xClickTypeYu);
styleTyping_mc.type_yo_btn.removeEventListener(MouseEvent.CLICK, xClickTypeYo);
styleTyping_mc.type_ra_btn.removeEventListener(MouseEvent.CLICK, xClickTypeRa);
styleTyping_mc.type_ri_btn.removeEventListener(MouseEvent.CLICK, xClickTypeRi);
styleTyping_mc.type_ru_btn.removeEventListener(MouseEvent.CLICK, xClickTypeRu);
styleTyping_mc.type_re_btn.removeEventListener(MouseEvent.CLICK, xClickTypeRe);
styleTyping_mc.type_ro_btn.removeEventListener(MouseEvent.CLICK, xClickTypeRo);
styleTyping_mc.type_wa_btn.removeEventListener(MouseEvent.CLICK, xClickTypeWa);
styleTyping_mc.type_wo_btn.removeEventListener(MouseEvent.CLICK, xClickTypeWo);
styleTyping_mc.type_nn_btn.removeEventListener(MouseEvent.CLICK, xClickTypeNn);
styleTyping_mc.type_la_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLa);
styleTyping_mc.type_li_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLi);
styleTyping_mc.type_lu_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLu);
styleTyping_mc.type_le_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLe);
styleTyping_mc.type_lo_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLo);
styleTyping_mc.type_lya_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLya);
styleTyping_mc.type_lyu_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLyu);
styleTyping_mc.type_lyo_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLyo);
styleTyping_mc.type_ltu_btn.removeEventListener(MouseEvent.CLICK, xClickTypeLtu);
styleTyping_mc.type_hy_btn.removeEventListener(MouseEvent.CLICK, xClickTypeHy);
styleTyping_mc.type_daku_btn.removeEventListener(MouseEvent.CLICK, xClickTypeDaku);
styleTyping_mc.type_handaku_btn.removeEventListener(MouseEvent.CLICK, xClickTypeHandaku);
styleTyping_mc.type_delete_btn.removeEventListener(MouseEvent.CLICK, xClickTypeDelete);
styleTyping_mc.type_ok_btn.removeEventListener(MouseEvent.CLICK, xClickTypeOk);
}
public function resultFontInit():void{
resultNo_mc.resultNo_txt.embedFonts = true;
resultNoPh_mc.resultNo_txt.embedFonts = true;
resultScore_mc.resultPoint_txt.embedFonts = true;
resultRank_txt.embedFonts = true;
resultPlayer_txt.embedFonts = true;
}
public function removeUserDataBtn():void{
userDataBack_btn.removeEventListener(MouseEvent.CLICK, xClickUserDataBack);
userDataHiScore_btn.removeEventListener(MouseEvent.CLICK, xClickUserDataHiScore);
userDataAvg_btn.removeEventListener(MouseEvent.CLICK, xClickUserDataAvg);
userStampPrev_btn.removeEventListener(MouseEvent.CLICK, xClickUserStampPrev);
userStampNext_btn.removeEventListener(MouseEvent.CLICK, xClickUserStampNext);
}
public function toConfQuestion():void{
addQuestion_txt.selectable = false;
addPanel1_txt.selectable = false;
addPanel2_txt.selectable = false;
addPanel3_txt.selectable = false;
addPanel4_txt.selectable = false;
addQuestion_txt.mouseEnabled = false;
addPanel1_txt.mouseEnabled = false;
addPanel2_txt.mouseEnabled = false;
addPanel3_txt.mouseEnabled = false;
addPanel4_txt.mouseEnabled = false;
addQuestion_txt.tabEnabled = false;
addPanel1_txt.tabEnabled = false;
addPanel2_txt.tabEnabled = false;
addPanel3_txt.tabEnabled = false;
addPanel4_txt.tabEnabled = false;
addQuestionExp_txt.text = "この内容で問題を追加してよろしければ\n「問題追加」ボタンをクリックしてください\n修正したい場合は\n「戻る」ボタンをクリックしてください";
addQuestionExp2_txt.text = "";
addBack_btn.visible = true;
addFix_btn.visible = true;
toNext_btn.visible = false;
toTitle_btn.visible = false;
addBack_btn.addEventListener(MouseEvent.CLICK, xClickAddBack);
addFix_btn.addEventListener(MouseEvent.CLICK, xClickAddFix);
toNext_btn.removeEventListener(MouseEvent.CLICK, xClickToNext);
toTitle_btn.removeEventListener(MouseEvent.CLICK, xClickToTitle);
}
public function xOverPlayerReimu(_arg1:MouseEvent):void{
playerText_txt.text = "博麗霊夢\n楽園の素敵な巫女\n\nスペルカード\n「夢想封印」\n\n現在の問題の内容を、別の問題の内容に変えます。";
fukidasi.x = 230;
fukidasi.y = 93;
fukidasi.visible = true;
}
public function toPlayerSelect(){
playSe(select);
allRemoveRankEvent();
fukidasi.visible = false;
gotoAndStop("playerSelect");
}
public function selectQuiz(){
clearMask_mc.visible = false;
releasePanelColor();
style4Select_mc.panel1_btn.enabled = true;
style4Select_mc.panel2_btn.enabled = true;
style4Select_mc.panel3_btn.enabled = true;
style4Select_mc.panel4_btn.enabled = true;
style4Select_mc.qBar1_mc.width = Q_BAR_WIDTH;
style4Select_mc.qBar2_mc.width = Q_BAR_WIDTH;
style4Select_mc.qBar3_mc.width = Q_BAR_WIDTH;
style4Select_mc.qBar4_mc.width = Q_BAR_WIDTH;
style4Select_mc.qBar5_mc.width = Q_BAR_WIDTH;
style4Select_mc.qBar1_mc.visible = true;
style4Select_mc.qBar2_mc.visible = true;
style4Select_mc.qBar3_mc.visible = true;
style4Select_mc.qBar4_mc.visible = true;
timeOverFlg = false;
nowQuizNo_txt.text = (("第" + nowQuizNo.toString()) + "問");
quizStyle = Math.floor((mt.nextNumber() * 5));
if ((((quizStyle == 0)) || ((quizStyle == 1)))){
quizStyle = STYLE_4SELECT;
} else {
if (quizStyle == 2){
quizStyle = STYLE_ASSOC;
} else {
if ((((quizStyle == 3)) || ((quizStyle == 4)))){
quizStyle = STYLE_TYPING;
};
};
};
if (nowQuizNo == 1){
quizStyle = STYLE_4SELECT;
};
checkQuizRemaind();
chargeSpell();
if (quizStyle == STYLE_4SELECT){
select4select();
} else {
if (quizStyle == STYLE_ASSOC){
selectAssoc();
} else {
if (quizStyle == STYLE_TYPING){
selectTyping();
};
};
};
}
public function allRemovePlayerEvent():void{
playerReimu_btn.removeEventListener(MouseEvent.MOUSE_OUT, xOutPlayer);
playerMarisa_btn.removeEventListener(MouseEvent.MOUSE_OUT, xOutPlayer);
playerSakuya_btn.removeEventListener(MouseEvent.MOUSE_OUT, xOutPlayer);
playerBack_btn.removeEventListener(MouseEvent.MOUSE_OVER, xOverPlayerBack);
playerReimu_btn.removeEventListener(MouseEvent.MOUSE_OVER, xOverPlayerReimu);
playerMarisa_btn.removeEventListener(MouseEvent.MOUSE_OVER, xOverPlayerMarisa);
playerSakuya_btn.removeEventListener(MouseEvent.MOUSE_OVER, xOverPlayerSakuya);
playerBack_btn.removeEventListener(MouseEvent.MOUSE_OUT, xOutPlayer);
playerReimu_btn.removeEventListener(MouseEvent.CLICK, xClickPlayerReimu);
playerMarisa_btn.removeEventListener(MouseEvent.CLICK, xClickPlayerMarisa);
playerSakuya_btn.removeEventListener(MouseEvent.CLICK, xClickPlayerSakuya);
playerBack_btn.removeEventListener(MouseEvent.CLICK, xClickPlayerBack);
}
public function xClickAddFixedMore(_arg1:MouseEvent):void{
playSe(select);
allRemoveFixedEvent();
gotoAndStop("addQuestion");
}
public function xClickGameStart(_arg1:MouseEvent):void{
playSe(select);
toRankSelect();
}
public function removeTitleBtn():void{
gameStart_btn.removeEventListener(MouseEvent.CLICK, xClickGameStart);
addQuestion_btn.removeEventListener(MouseEvent.CLICK, xClickAddQuestion);
ranking_btn.removeEventListener(MouseEvent.CLICK, xClickRanking);
userData_btn.removeEventListener(MouseEvent.CLICK, xClickUserData);
removeChild(rankingWindow_mc);
removeChild(titleCharacter_mc);
volume1_mc.removeEventListener(MouseEvent.CLICK, xClickVolume1);
volume2_mc.removeEventListener(MouseEvent.CLICK, xClickVolume2);
volume3_mc.removeEventListener(MouseEvent.CLICK, xClickVolume3);
volume4_mc.removeEventListener(MouseEvent.CLICK, xClickVolume4);
volume5_mc.removeEventListener(MouseEvent.CLICK, xClickVolume5);
}
public function xClickRankingExtra(_arg1:MouseEvent):void{
playSe(typing);
rankingPage = 0;
nowRankingRank = RANK_EXTRA;
extraRankingInit();
}
public function soInit():void{
var _local1:*;
if (so.size == 0){
so.data.userName = "";
so.data.hiScore = [0, 0, 0, 0];
so.data.tryQuizNo = [0, 0, 0, 0];
so.data.rightQuizNo = [0, 0, 0, 0];
so.data.tryGenreNo = [0, 0, 0, 0, 0];
so.data.rightGenreNo = [0, 0, 0, 0, 0];
so.data.usePlayer = [0, 0, 0, 0, 0, 0, 0, 0];
so.data.stamp = new Array();
so.data.selectStamp = 0;
_local1 = 0;
while (_local1 <= 60) {
so.data.stamp[_local1] = false;
_local1++;
};
};
}
public function xClickAddQuestion(_arg1:MouseEvent):void{
playSe(select);
toAddQuestion();
}
public function xEnterResultFade(_arg1:Event):void{
white_mc.alpha = (white_mc.alpha + 0.05);
if (white_mc.alpha >= 1){
white_mc.removeEventListener(Event.ENTER_FRAME, xEnterResultFade);
removeChild(styleTyping_mc);
removeChild(styleTypingKana_mc);
gotoAndStop("result");
};
}
public function selectTyping():void{
var _local1:*;
var _local2:Boolean;
var _local3:uint;
var _local4:Object;
_local1 = 0;
while (_local1 < 8) {
styleTyping_mc[(("typeAns" + (_local1 + 1)) + "_txt")].text = "";
styleTypingKana_mc[(("typeAns" + (_local1 + 1)) + "_txt")].text = "";
_local1++;
};
typingAnswer = "";
_local2 = false;
_local3 = 0;
while (!(_local2)) {
_local3 = Math.floor((mt.nextNumber() * quizTyping_array.length));
if (useTyping_array.indexOf(_local3, 0) == -1){
_local2 = true;
};
};
useTyping_array.push(_local3);
_local4 = quizTyping_array[_local3];
quizGenre = _local4.genre;
var _local5 = so.data.tryGenreNo;
var _local6 = quizGenre;
var _local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
answer = quizTyping_array[_local3].answer;
kanaType = quizTyping_array[_local3].kana;
if (kanaType == "hiragana"){
styleTyping_mc.question_txt.text = quizTyping_array[_local3].question;
styleTyping_mc.visible = true;
styleTypingKana_mc.visible = false;
style4Select_mc.visible = false;
} else {
if (kanaType == "katakana"){
styleTypingKana_mc.question_txt.text = quizTyping_array[_local3].question;
styleTyping_mc.visible = false;
styleTypingKana_mc.visible = true;
style4Select_mc.visible = false;
};
};
time_txt.text = TIME_LIMIT_10.toString();
ms0 = getTimer();
timeBar_mc.addEventListener(Event.ENTER_FRAME, xEnterTimeBar);
}
public function xEnterOnmyoWhiteFadeOut(_arg1:Event):void{
onmyoWhite_mc.alpha = (onmyoWhite_mc.alpha + 0.2);
if (onmyoWhite_mc.alpha >= 1){
onmyoRed_mc.alpha = 0;
onmyoRed_mc.visible = false;
onmyoWhite_mc.removeEventListener(Event.ENTER_FRAME, xEnterOnmyoWhiteFadeOut);
onmyoWhite_mc.addEventListener(Event.ENTER_FRAME, xEnterOnmyoFadeIn);
};
}
public function xEnterFadeInResult(_arg1:Event):void{
white_mc.alpha = (white_mc.alpha - 0.1);
if (white_mc.alpha <= 0){
white_mc.visible = false;
white_mc.removeEventListener(Event.ENTER_FRAME, xEnterFadeInResult);
};
}
public function xEnterGameFadeOut(_arg1:Event):void{
red_mc.alpha = (red_mc.alpha + 0.2);
if (red_mc.alpha >= 1){
red_mc.removeEventListener(Event.ENTER_FRAME, xEnterGameFadeOut);
gotoAndStop("game");
};
}
public function xClickTypeDelete(_arg1:MouseEvent):void{
if (typingAnswer.length != 0){
playSe(typing);
typingAnswer = typingAnswer.substring(0, (typingAnswer.length - 1));
};
reflectTypingAnswer();
}
public function toUserData():void{
removeTitleBtn();
gotoAndStop("userData");
}
public function removeStamp():void{
var _local1:*;
var _local2:*;
_local1 = 1;
while (_local1 < 10) {
_local2 = (((stampPage - 1) * 9) + _local1);
if (_local2 <= STAMP_MAX_NO){
if (so.data.stamp[_local2] == true){
removeChild(stamp_array[_local2]);
};
};
_local1++;
};
}
public function select4select():void{
var _local1:Boolean;
var _local2:uint;
var _local3:Object;
styleTyping_mc.visible = false;
styleTypingKana_mc.visible = false;
style4Select_mc.visible = true;
_local1 = false;
_local2 = 0;
while (!(_local1)) {
_local2 = Math.floor((mt.nextNumber() * quiz_array.length));
if (useQuizNo.indexOf(_local2, 0) == -1){
_local1 = true;
};
};
useQuizNo.push(_local2);
_local3 = quiz_array[_local2];
quizGenre = _local3.genre;
var _local4 = so.data.tryGenreNo;
var _local5 = quizGenre;
var _local6 = (_local4[_local5] + 1);
_local4[_local5] = _local6;
panelShuffle[0] = _local3.panel1;
panelShuffle[1] = _local3.panel2;
panelShuffle[2] = _local3.panel3;
panelShuffle[3] = _local3.panel4;
xShuffleArray(panelShuffle);
style4Select_mc.question_txt.text = _local3.question;
style4Select_mc.panel1_txt.text = panelShuffle[0];
style4Select_mc.panel2_txt.text = panelShuffle[1];
style4Select_mc.panel3_txt.text = panelShuffle[2];
style4Select_mc.panel4_txt.text = panelShuffle[3];
answer = _local3.answer;
time_txt.text = TIME_LIMIT_10.toString();
ms0 = getTimer();
timeBar_mc.addEventListener(Event.ENTER_FRAME, xEnterTimeBar);
style4Select_mc.panel1_btn.addEventListener(MouseEvent.CLICK, xClickPanel1);
style4Select_mc.panel2_btn.addEventListener(MouseEvent.CLICK, xClickPanel2);
style4Select_mc.panel3_btn.addEventListener(MouseEvent.CLICK, xClickPanel3);
style4Select_mc.panel4_btn.addEventListener(MouseEvent.CLICK, xClickPanel4);
}
public function allRemoveGameEvent():void{
if (player == "reimuMc"){
onmyo1_btn.removeEventListener(MouseEvent.CLICK, xClickOnmyo);
onmyo2_btn.removeEventListener(MouseEvent.CLICK, xClickOnmyo);
onmyo3_btn.removeEventListener(MouseEvent.CLICK, xClickOnmyo);
removeChild(onmyo1_btn);
removeChild(onmyo2_btn);
removeChild(onmyo3_btn);
} else {
if (player == "marisaMc"){
star1_btn.removeEventListener(MouseEvent.CLICK, xClickStar);
star2_btn.removeEventListener(MouseEvent.CLICK, xClickStar);
star3_btn.removeEventListener(MouseEvent.CLICK, xClickStar);
removeChild(star1_btn);
removeChild(star2_btn);
removeChild(star3_btn);
} else {
if (player == "sakuyaMc"){
clock1_btn.removeEventListener(MouseEvent.CLICK, xClickClock);
clock2_btn.removeEventListener(MouseEvent.CLICK, xClickClock);
clock3_btn.removeEventListener(MouseEvent.CLICK, xClickClock);
removeChild(clock1_btn);
removeChild(clock2_btn);
removeChild(clock3_btn);
};
};
};
}
public function allRemoveRankEvent(){
rankNormal_btn.removeEventListener(MouseEvent.MOUSE_OVER, xOverRankNormal);
rankHard_btn.removeEventListener(MouseEvent.MOUSE_OVER, xOverRankHard);
rankExtra_btn.removeEventListener(MouseEvent.MOUSE_OVER, xOverRankExtra);
rankPhantasm_btn.removeEventListener(MouseEvent.MOUSE_OVER, xOverRankPhantasm);
rankBack_btn.removeEventListener(MouseEvent.MOUSE_OVER, xOverBack);
rankNormal_btn.removeEventListener(MouseEvent.MOUSE_OUT, xOutRank);
rankHard_btn.removeEventListener(MouseEvent.MOUSE_OUT, xOutRank);
rankExtra_btn.removeEventListener(MouseEvent.MOUSE_OUT, xOutRank);
rankPhantasm_btn.removeEventListener(MouseEvent.MOUSE_OUT, xOutRank);
rankBack_btn.removeEventListener(MouseEvent.MOUSE_OUT, xOutRank);
rankNormal_btn.removeEventListener(MouseEvent.CLICK, xClickRankNormal);
rankHard_btn.removeEventListener(MouseEvent.CLICK, xClickRankHard);
rankExtra_btn.removeEventListener(MouseEvent.CLICK, xClickRankExtra);
rankPhantasm_btn.removeEventListener(MouseEvent.CLICK, xClickRankPhantasm);
rankBack_btn.removeEventListener(MouseEvent.CLICK, xClickBack);
}
public function xEnterFadeOut(_arg1:Event):void{
red_mc.alpha = (red_mc.alpha + 0.2);
if (red_mc.alpha >= 1){
red_mc.removeEventListener(Event.ENTER_FRAME, xEnterFadeOut);
onmyo_mc.removeEventListener(Event.ENTER_FRAME, xEnterRollOnmyo);
gotoAndStop("title");
};
}
public function saveHiScore():void{
if (rank == RANK_NORMAL){
if (so.data.hiScore[0] < resultPoint){
so.data.hiScore[0] = resultPoint;
};
} else {
if (rank == RANK_HARD){
if (so.data.hiScore[1] < resultPoint){
so.data.hiScore[1] = resultPoint;
};
} else {
if (rank == RANK_EXTRA){
if (so.data.hiScore[2] < resultPoint){
so.data.hiScore[2] = resultPoint;
};
} else {
if (rank == RANK_PHANTASM){
if (so.data.hiScore[3] < resultNo){
so.data.hiScore[3] = resultNo;
};
};
};
};
};
}
public function xClickTypeHa(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("は");
} else {
if (kanaType == "katakana"){
pushTyping("ハ");
};
};
}
public function xClickTypeHe(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("へ");
} else {
if (kanaType == "katakana"){
pushTyping("ヘ");
};
};
}
public function xClickTypeHi(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ひ");
} else {
if (kanaType == "katakana"){
pushTyping("ヒ");
};
};
}
public function xClickTypeHo(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ほ");
} else {
if (kanaType == "katakana"){
pushTyping("ホ");
};
};
}
public function dispTitleCharacter():void{
var _local1:*;
var _local2:Class;
_local1 = (Math.floor((Math.random() * 3)) + 1);
_local2 = (getDefinitionByName(("titleCharacter" + _local1)) as Class);
titleCharacter_mc = new (_local2);
titleCharacter_mc.x = -40;
titleCharacter_mc.y = 15;
titleCharacter_mc.alpha = 0.5;
addChildAt(titleCharacter_mc, (getChildIndex(gameWall_mc) + 1));
}
public function xOverPlayerBack(_arg1:MouseEvent):void{
playerText_txt.text = "難易度選択画面へ戻ります";
}
public function xClickTypeHy(_arg1:MouseEvent):void{
pushTyping("ー");
}
public function addTypingBtn():void{
styleTyping_mc.type_a_btn.addEventListener(MouseEvent.CLICK, xClickTypeA);
styleTyping_mc.type_i_btn.addEventListener(MouseEvent.CLICK, xClickTypeI);
styleTyping_mc.type_u_btn.addEventListener(MouseEvent.CLICK, xClickTypeU);
styleTyping_mc.type_e_btn.addEventListener(MouseEvent.CLICK, xClickTypeE);
styleTyping_mc.type_o_btn.addEventListener(MouseEvent.CLICK, xClickTypeO);
styleTyping_mc.type_ka_btn.addEventListener(MouseEvent.CLICK, xClickTypeKa);
styleTyping_mc.type_ki_btn.addEventListener(MouseEvent.CLICK, xClickTypeKi);
styleTyping_mc.type_ku_btn.addEventListener(MouseEvent.CLICK, xClickTypeKu);
styleTyping_mc.type_ke_btn.addEventListener(MouseEvent.CLICK, xClickTypeKe);
styleTyping_mc.type_ko_btn.addEventListener(MouseEvent.CLICK, xClickTypeKo);
styleTyping_mc.type_sa_btn.addEventListener(MouseEvent.CLICK, xClickTypeSa);
styleTyping_mc.type_si_btn.addEventListener(MouseEvent.CLICK, xClickTypeSi);
styleTyping_mc.type_su_btn.addEventListener(MouseEvent.CLICK, xClickTypeSu);
styleTyping_mc.type_se_btn.addEventListener(MouseEvent.CLICK, xClickTypeSe);
styleTyping_mc.type_so_btn.addEventListener(MouseEvent.CLICK, xClickTypeSo);
styleTyping_mc.type_ta_btn.addEventListener(MouseEvent.CLICK, xClickTypeTa);
styleTyping_mc.type_ti_btn.addEventListener(MouseEvent.CLICK, xClickTypeTi);
styleTyping_mc.type_tu_btn.addEventListener(MouseEvent.CLICK, xClickTypeTu);
styleTyping_mc.type_te_btn.addEventListener(MouseEvent.CLICK, xClickTypeTe);
styleTyping_mc.type_to_btn.addEventListener(MouseEvent.CLICK, xClickTypeTo);
styleTyping_mc.type_na_btn.addEventListener(MouseEvent.CLICK, xClickTypeNa);
styleTyping_mc.type_ni_btn.addEventListener(MouseEvent.CLICK, xClickTypeNi);
styleTyping_mc.type_nu_btn.addEventListener(MouseEvent.CLICK, xClickTypeNu);
styleTyping_mc.type_ne_btn.addEventListener(MouseEvent.CLICK, xClickTypeNe);
styleTyping_mc.type_no_btn.addEventListener(MouseEvent.CLICK, xClickTypeNo);
styleTyping_mc.type_ha_btn.addEventListener(MouseEvent.CLICK, xClickTypeHa);
styleTyping_mc.type_hi_btn.addEventListener(MouseEvent.CLICK, xClickTypeHi);
styleTyping_mc.type_hu_btn.addEventListener(MouseEvent.CLICK, xClickTypeHu);
styleTyping_mc.type_he_btn.addEventListener(MouseEvent.CLICK, xClickTypeHe);
styleTyping_mc.type_ho_btn.addEventListener(MouseEvent.CLICK, xClickTypeHo);
styleTyping_mc.type_ma_btn.addEventListener(MouseEvent.CLICK, xClickTypeMa);
styleTyping_mc.type_mi_btn.addEventListener(MouseEvent.CLICK, xClickTypeMi);
styleTyping_mc.type_mu_btn.addEventListener(MouseEvent.CLICK, xClickTypeMu);
styleTyping_mc.type_me_btn.addEventListener(MouseEvent.CLICK, xClickTypeMe);
styleTyping_mc.type_mo_btn.addEventListener(MouseEvent.CLICK, xClickTypeMo);
styleTyping_mc.type_ya_btn.addEventListener(MouseEvent.CLICK, xClickTypeYa);
styleTyping_mc.type_yu_btn.addEventListener(MouseEvent.CLICK, xClickTypeYu);
styleTyping_mc.type_yo_btn.addEventListener(MouseEvent.CLICK, xClickTypeYo);
styleTyping_mc.type_ra_btn.addEventListener(MouseEvent.CLICK, xClickTypeRa);
styleTyping_mc.type_ri_btn.addEventListener(MouseEvent.CLICK, xClickTypeRi);
styleTyping_mc.type_ru_btn.addEventListener(MouseEvent.CLICK, xClickTypeRu);
styleTyping_mc.type_re_btn.addEventListener(MouseEvent.CLICK, xClickTypeRe);
styleTyping_mc.type_ro_btn.addEventListener(MouseEvent.CLICK, xClickTypeRo);
styleTyping_mc.type_wa_btn.addEventListener(MouseEvent.CLICK, xClickTypeWa);
styleTyping_mc.type_wo_btn.addEventListener(MouseEvent.CLICK, xClickTypeWo);
styleTyping_mc.type_nn_btn.addEventListener(MouseEvent.CLICK, xClickTypeNn);
styleTyping_mc.type_la_btn.addEventListener(MouseEvent.CLICK, xClickTypeLa);
styleTyping_mc.type_li_btn.addEventListener(MouseEvent.CLICK, xClickTypeLi);
styleTyping_mc.type_lu_btn.addEventListener(MouseEvent.CLICK, xClickTypeLu);
styleTyping_mc.type_le_btn.addEventListener(MouseEvent.CLICK, xClickTypeLe);
styleTyping_mc.type_lo_btn.addEventListener(MouseEvent.CLICK, xClickTypeLo);
styleTyping_mc.type_lya_btn.addEventListener(MouseEvent.CLICK, xClickTypeLya);
styleTyping_mc.type_lyu_btn.addEventListener(MouseEvent.CLICK, xClickTypeLyu);
styleTyping_mc.type_lyo_btn.addEventListener(MouseEvent.CLICK, xClickTypeLyo);
styleTyping_mc.type_ltu_btn.addEventListener(MouseEvent.CLICK, xClickTypeLtu);
styleTyping_mc.type_hy_btn.addEventListener(MouseEvent.CLICK, xClickTypeHy);
styleTyping_mc.type_daku_btn.addEventListener(MouseEvent.CLICK, xClickTypeDaku);
styleTyping_mc.type_handaku_btn.addEventListener(MouseEvent.CLICK, xClickTypeHandaku);
styleTyping_mc.type_delete_btn.addEventListener(MouseEvent.CLICK, xClickTypeDelete);
styleTyping_mc.type_ok_btn.addEventListener(MouseEvent.CLICK, xClickTypeOk);
}
public function xClickClock(_arg1:MouseEvent):void{
playSe(spell);
if (clock3_btn.visible == true){
clock3_btn.visible = false;
} else {
if (clock2_btn.visible == true){
clock2_btn.visible = false;
} else {
clock1_btn.visible = false;
};
};
clock1_btn.removeEventListener(MouseEvent.CLICK, xClickClock);
clock2_btn.removeEventListener(MouseEvent.CLICK, xClickClock);
clock3_btn.removeEventListener(MouseEvent.CLICK, xClickClock);
timeBar_mc.removeEventListener(Event.ENTER_FRAME, xEnterTimeBar);
player_mc.gotoAndPlay("spell");
gray_mc.alpha = 0;
gray_mc.visible = true;
gray_mc.addEventListener(Event.ENTER_FRAME, xEnterClockFadeOut);
}
public function xClickTypeHu(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ふ");
} else {
if (kanaType == "katakana"){
pushTyping("フ");
};
};
}
public function xClickWindowOk(_arg1:MouseEvent):void{
playSe(select);
window_mc.windowOk_btn.removeEventListener(MouseEvent.CLICK, xClickWindowOk);
window_mc.visible = false;
maskSprite_mc.visible = false;
}
public function volumeCheck():void{
if (volumeNo == 1){
volume1_mc.alpha = 1;
volume2_mc.alpha = 0.5;
volume3_mc.alpha = 0.5;
volume4_mc.alpha = 0.5;
volume5_mc.alpha = 0.5;
} else {
if (volumeNo == 2){
volume1_mc.alpha = 1;
volume2_mc.alpha = 1;
volume3_mc.alpha = 0.5;
volume4_mc.alpha = 0.5;
volume5_mc.alpha = 0.5;
} else {
if (volumeNo == 3){
volume1_mc.alpha = 1;
volume2_mc.alpha = 1;
volume3_mc.alpha = 1;
volume4_mc.alpha = 0.5;
volume5_mc.alpha = 0.5;
} else {
if (volumeNo == 4){
volume1_mc.alpha = 1;
volume2_mc.alpha = 1;
volume3_mc.alpha = 1;
volume4_mc.alpha = 1;
volume5_mc.alpha = 0.5;
} else {
if (volumeNo == 5){
volume1_mc.alpha = 1;
volume2_mc.alpha = 1;
volume3_mc.alpha = 1;
volume4_mc.alpha = 1;
volume5_mc.alpha = 1;
};
};
};
};
};
}
public function xEnterFadeIn(_arg1:Event):void{
red_mc.alpha = (red_mc.alpha - 0.1);
if (red_mc.alpha <= 0){
red_mc.visible = false;
red_mc.removeEventListener(Event.ENTER_FRAME, xEnterFadeIn);
};
}
public function xClickUserData(_arg1:MouseEvent):void{
playSe(select);
toUserData();
}
public function xClickRanking(_arg1:MouseEvent):void{
playSe(select);
showRanking();
}
public function xEnterRollOnmyo(_arg1:Event):void{
onmyo_mc.rotation = (onmyo_mc.rotation + 10);
}
public function toAddQuestion():void{
removeTitleBtn();
gotoAndStop("addQuestion");
}
public function xOutPlayer(_arg1:MouseEvent):void{
playerText_txt.text = "";
fukidasi.visible = false;
}
public function gameGrayOn():void{
var _local1:Array;
var _local2:ColorMatrixFilter;
_local1 = [(1 / 3), (1 / 3), (1 / 3), 0, 0, (1 / 3), (1 / 3), (1 / 3), 0, 0, (1 / 3), (1 / 3), (1 / 3), 0, 0, 0, 0, 0, 1, 0];
_local2 = new ColorMatrixFilter(_local1);
grayFlg = true;
gameWall_mc.filters = [_local2];
style4Select_mc.filters = [_local2];
timeBar_mc.filters = [_local2];
time_txt.filters = [_local2];
nowQuizNo_txt.filters = [_local2];
styleTyping_mc.filters = [_local2];
styleTypingKana_mc.filters = [_local2];
rankPlate_mc.filters = [_local2];
time_moji_txt.filters = [_local2];
playPos = bgmCh.position;
bgmCh.stop();
bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
bgmCh = null;
}
public function xClickTypeI(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("い");
} else {
if (kanaType == "katakana"){
pushTyping("イ");
};
};
}
public function xClickTypeO(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("お");
} else {
if (kanaType == "katakana"){
pushTyping("オ");
};
};
}
public function xClickTypeA(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("あ");
} else {
if (kanaType == "katakana"){
pushTyping("ア");
};
};
}
public function xClickVolume2(_arg1:MouseEvent):void{
sndTr.volume = 0.25;
bgmTr.volume = 0.25;
volumeNo = 2;
volumeCheck();
playSe(select);
}
public function xClickVolume4(_arg1:MouseEvent):void{
sndTr.volume = 0.75;
bgmTr.volume = 0.75;
volumeNo = 4;
volumeCheck();
playSe(select);
}
public function xClickVolume5(_arg1:MouseEvent):void{
sndTr.volume = 1;
bgmTr.volume = 1;
volumeNo = 5;
volumeCheck();
playSe(select);
}
public function xClickTypeKa(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("か");
} else {
if (kanaType == "katakana"){
pushTyping("カ");
};
};
}
public function xClickTypeU(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("う");
} else {
if (kanaType == "katakana"){
pushTyping("ウ");
};
};
}
public function xClickTypeE(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("え");
} else {
if (kanaType == "katakana"){
pushTyping("エ");
};
};
}
public function xClickTypeKo(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("こ");
} else {
if (kanaType == "katakana"){
pushTyping("コ");
};
};
}
public function xClickVolume3(_arg1:MouseEvent):void{
sndTr.volume = 0.5;
bgmTr.volume = 0.5;
volumeNo = 3;
volumeCheck();
playSe(select);
}
public function xClickTypeKu(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("く");
} else {
if (kanaType == "katakana"){
pushTyping("ク");
};
};
}
public function xClickTypeKi(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("き");
} else {
if (kanaType == "katakana"){
pushTyping("キ");
};
};
}
public function xClickStar(_arg1:MouseEvent):void{
playSe(spell);
if (star3_btn.visible == true){
star3_btn.visible = false;
} else {
if (star2_btn.visible == true){
star2_btn.visible = false;
} else {
star1_btn.visible = false;
};
};
player_mc.gotoAndPlay("spell");
white_mc.alpha = 0;
white_mc.visible = true;
white_mc.addEventListener(Event.ENTER_FRAME, xEnterMasterFadeOut);
}
public function xClickTypeLe(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ぇ");
} else {
if (kanaType == "katakana"){
pushTyping("ェ");
};
};
}
public function xClickTypeKe(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("け");
} else {
if (kanaType == "katakana"){
pushTyping("ケ");
};
};
}
public function xClickVolume1(_arg1:MouseEvent):void{
sndTr.volume = 0;
bgmTr.volume = 0;
volumeNo = 1;
volumeCheck();
}
public function xClickTypeLo(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ぉ");
} else {
if (kanaType == "katakana"){
pushTyping("ォ");
};
};
}
public function xClickTypeLu(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ぅ");
} else {
if (kanaType == "katakana"){
pushTyping("ゥ");
};
};
}
public function xClickUserDataAvg(_arg1:MouseEvent):void{
playSe(typing);
userDataHiScore_mc.visible = false;
userDataAvg_mc.visible = true;
userDataHiScore_btn.visible = true;
userDataAvg_btn.visible = false;
}
public function rankSelectFontInit():void{
rankText_txt.embedFonts = true;
}
public function xClickTypeLa(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ぁ");
} else {
if (kanaType == "katakana"){
pushTyping("ァ");
};
};
}
public function xClickTypeLi(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ぃ");
} else {
if (kanaType == "katakana"){
pushTyping("ィ");
};
};
}
public function showRanking():void{
normalRankingInit();
rankingWindow_mc.rankingNormal_btn.addEventListener(MouseEvent.CLICK, xClickRankingNormal);
rankingWindow_mc.rankingHard_btn.addEventListener(MouseEvent.CLICK, xClickRankingHard);
rankingWindow_mc.rankingExtra_btn.addEventListener(MouseEvent.CLICK, xClickRankingExtra);
rankingWindow_mc.rankingPhantasm_btn.addEventListener(MouseEvent.CLICK, xClickRankingPhantasm);
rankingWindow_mc.rankingUp_btn.addEventListener(MouseEvent.CLICK, xClickRankingUp);
rankingWindow_mc.rankingDown_btn.addEventListener(MouseEvent.CLICK, xClickRankingDown);
rankingWindow_mc.visible = true;
maskSprite_mc.visible = true;
rankingWindow_mc.rankingClose_btn.addEventListener(MouseEvent.CLICK, xClickRankingClose);
}
public function xEnterOnmyoFadeIn(_arg1:Event):void{
onmyoWhite_mc.alpha = (onmyoWhite_mc.alpha - 0.2);
if (onmyoWhite_mc.alpha <= 0){
onmyoWhite_mc.visible = false;
onmyoWhite_mc.removeEventListener(Event.ENTER_FRAME, xEnterOnmyoFadeIn);
};
}
public function xClickTypeMi(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("み");
} else {
if (kanaType == "katakana"){
pushTyping("ミ");
};
};
}
public function xClickTypeMo(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("も");
} else {
if (kanaType == "katakana"){
pushTyping("モ");
};
};
}
public function xClickTypeMa(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ま");
} else {
if (kanaType == "katakana"){
pushTyping("マ");
};
};
}
public function xClickTypeMe(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("め");
} else {
if (kanaType == "katakana"){
pushTyping("メ");
};
};
}
public function xClickTypeMu(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("む");
} else {
if (kanaType == "katakana"){
pushTyping("ム");
};
};
}
public function xClickTypeNa(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("な");
} else {
if (kanaType == "katakana"){
pushTyping("ナ");
};
};
}
public function xClickTypeNe(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ね");
} else {
if (kanaType == "katakana"){
pushTyping("ネ");
};
};
}
public function xClickTypeNi(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("に");
} else {
if (kanaType == "katakana"){
pushTyping("ニ");
};
};
}
public function xClickTypeNn(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ん");
} else {
if (kanaType == "katakana"){
pushTyping("ン");
};
};
}
public function xClickRankingNormal(_arg1:MouseEvent):void{
playSe(typing);
rankingPage = 0;
nowRankingRank = RANK_NORMAL;
normalRankingInit();
}
public function xClickTypeNu(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ぬ");
} else {
if (kanaType == "katakana"){
pushTyping("ヌ");
};
};
}
public function xClickTypeNo(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("の");
} else {
if (kanaType == "katakana"){
pushTyping("ノ");
};
};
}
public function xOverRankNormal(_arg1:MouseEvent):void{
rankText_txt.text = "Normal\n\nWindows版東方Projectを一通りやったことのある人向けの難易度です。";
fukidasi.x = 230;
fukidasi.y = 93;
fukidasi.visible = true;
}
public function xCompleteTyping(_arg1:Event):void{
var quizXML:XML;
var quizs:XMLList;
var evt = _arg1;
quizXML = new XML(xmlLoader.data);
quizs = quizXML.quiz;
xmlLoader = null;
if (rank == "extra"){
for each (quizXML in quizs.(((((@rank == "hard")) || ((@rank == "normal")))) || ((@rank == "extra")))) {
quizTyping_array.push({question:("タイピング問題\n" + quizXML.question), answer:quizXML.answer, kana:quizXML.kana, genre:quizXML.@genre});
};
} else {
if (rank == "hard"){
for each (quizXML in quizs.(((@rank == "hard")) || ((@rank == "normal")))) {
quizTyping_array.push({question:("タイピング問題\n" + quizXML.question), answer:quizXML.answer, kana:quizXML.kana, genre:quizXML.@genre});
};
} else {
if (rank == "phantasm"){
for each (quizXML in quizs.(((@rank == "hard")) || ((@rank == "normal")))) {
quizTyping_array.push({question:("タイピング問題\n" + quizXML.question), answer:quizXML.answer, kana:quizXML.kana, genre:quizXML.@genre});
};
maxQuizNo = (maxQuizNo + quizTyping_array.length);
maxQuizNo = (maxQuizNo - 5);
} else {
for each (quizXML in quizs.(@rank == rank)) {
quizTyping_array.push({question:("タイピング問題\n" + quizXML.question), answer:quizXML.answer, kana:quizXML.kana, genre:quizXML.@genre});
};
};
};
};
toGameFade();
}
public function xClickPanel3(_arg1:MouseEvent){
choicePanel = 3;
if (answer == style4Select_mc.panel3_txt.text){
correctAnswer();
} else {
incorrectAnswer();
};
nextQuiz();
}
public function xClickPanel4(_arg1:MouseEvent){
choicePanel = 4;
if (answer == style4Select_mc.panel4_txt.text){
correctAnswer();
} else {
incorrectAnswer();
};
nextQuiz();
}
public function toQuizStart(){
playSe(select);
allRemovePlayerEvent();
removeChild(fukidasi);
fukidasi = null;
gotoAndPlay("quizLoad");
}
public function chargeSpell():void{
if ((nowQuizNo % 30) == 0){
if (player == "reimuMc"){
if (onmyo3_btn.visible == true){
} else {
if (onmyo2_btn.visible == true){
onmyo3_btn.visible = true;
} else {
if (onmyo1_btn.visible == true){
onmyo2_btn.visible = true;
} else {
onmyo1_btn.visible = true;
};
};
};
} else {
if (player == "marisaMc"){
if (star3_btn.visible == true){
} else {
if (star2_btn.visible == true){
star3_btn.visible = true;
} else {
if (star1_btn.visible == true){
star2_btn.visible = true;
} else {
star1_btn.visible = true;
};
};
};
} else {
if (player == "sakuyaMc"){
if (clock3_btn.visible == true){
} else {
if (clock2_btn.visible == true){
clock3_btn.visible = true;
} else {
if (clock1_btn.visible == true){
clock2_btn.visible = true;
} else {
clock1_btn.visible = true;
};
};
};
};
};
};
};
}
public function xClickPanel1(_arg1:MouseEvent){
choicePanel = 1;
if (answer == style4Select_mc.panel1_txt.text){
correctAnswer();
} else {
incorrectAnswer();
};
nextQuiz();
}
public function xClickPanel2(_arg1:MouseEvent){
choicePanel = 2;
if (answer == style4Select_mc.panel2_txt.text){
correctAnswer();
} else {
incorrectAnswer();
};
nextQuiz();
}
public function xClickTypeOk(_arg1:MouseEvent):void{
if (answer == typingAnswer){
correctAnswer();
} else {
incorrectAnswer();
};
nextQuiz();
}
public function allRemoveFixedEvent():void{
addFixedToTitle_btn.removeEventListener(MouseEvent.CLICK, xClickAddFixedToTitle);
addFixedMore_btn.removeEventListener(MouseEvent.CLICK, xClickAddFixedMore);
onmyo_mc.removeEventListener(Event.ENTER_FRAME, xEnterRollOnmyo);
}
public function setStampPhantasm():void{
var _local1:*;
_local1 = 0;
if ((((gameOverFlg == false)) && ((so.data.stamp[36] == false)))){
_local1 = 36;
} else {
if ((((resultPoint >= 500)) && ((so.data.stamp[35] == false)))){
_local1 = 35;
} else {
if ((((resultPoint >= 475)) && ((so.data.stamp[34] == false)))){
_local1 = 34;
} else {
if ((((resultPoint >= 400)) && ((so.data.stamp[33] == false)))){
_local1 = 33;
} else {
if ((((resultPoint >= 300)) && ((so.data.stamp[32] == false)))){
_local1 = 32;
} else {
if ((((resultPoint >= 200)) && ((so.data.stamp[31] == false)))){
_local1 = 31;
} else {
if ((((resultPoint >= 150)) && ((so.data.stamp[30] == false)))){
_local1 = 30;
} else {
if ((((resultPoint >= 100)) && ((so.data.stamp[29] == false)))){
_local1 = 29;
} else {
if ((((resultPoint >= 80)) && ((so.data.stamp[28] == false)))){
_local1 = 28;
} else {
if ((((resultPoint >= 70)) && ((so.data.stamp[27] == false)))){
_local1 = 27;
} else {
if ((((resultPoint >= 60)) && ((so.data.stamp[26] == false)))){
_local1 = 26;
} else {
if ((((resultPoint >= 50)) && ((so.data.stamp[25] == false)))){
_local1 = 25;
} else {
if ((((resultPoint >= 40)) && ((so.data.stamp[24] == false)))){
_local1 = 24;
} else {
if ((((resultPoint >= 30)) && ((so.data.stamp[23] == false)))){
_local1 = 23;
} else {
if ((((resultPoint >= 20)) && ((so.data.stamp[22] == false)))){
_local1 = 22;
} else {
if ((((resultPoint >= 10)) && ((so.data.stamp[21] == false)))){
_local1 = 21;
} else {
if ((((resultPoint >= 5)) && ((so.data.stamp[20] == false)))){
_local1 = 20;
} else {
if ((((resultPoint >= 0)) && ((so.data.stamp[19] == false)))){
_local1 = 19;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
dispRankingStamp(_local1);
if (_local1 != 0){
so.data.stamp[_local1] = true;
};
}
public function gameBgmComplete(_arg1:Event):void{
bgmCh.removeEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
bgmCh = null;
if (rank == "phantasm"){
playBgm(bgmHakurei, 1);
} else {
bgmCh = bgmList[bgmKoiiro].play(0, 1, bgmTr);
};
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
}
public function normalRankingInit():void{
var _local1:*;
var _local2:*;
rankingBtnDisp(RANK_NORMAL);
_local1 = 0;
while (_local1 < 10) {
_local2 = ((rankingPage * 10) + _local1);
if (rankingNormal_array[_local2] != null){
rankingWindow_mc[(("rankingName" + (_local1 + 1)) + "_txt")].text = rankingNormal_array[_local2].name;
rankingWindow_mc[(("rankingScore" + (_local1 + 1)) + "_txt")].text = rankingNormal_array[_local2].score;
if (rankingNormal_array[_local2].player == PLAYER_REIMU){
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ Reimu";
} else {
if (rankingNormal_array[_local2].player == PLAYER_MARISA){
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ Marisa";
} else {
if (rankingNormal_array[_local2].player == PLAYER_SAKUYA){
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ Sakuya";
} else {
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ ------";
};
};
};
} else {
rankingWindow_mc[(("rankingName" + (_local1 + 1)) + "_txt")].text = "----------";
rankingWindow_mc[(("rankingScore" + (_local1 + 1)) + "_txt")].text = 0;
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ ------";
};
rankingWindow_mc[(("rankingOrder" + (_local1 + 1)) + "_txt")].text = ((_local2 + 1) + ":");
_local1++;
};
}
public function xOverRankPhantasm(_arg1:MouseEvent):void{
rankText_txt.text = "Phantasm\n\n果てしなく続く問題群。終着点はあるのか?";
}
public function xOverPlayerSakuya(_arg1:MouseEvent):void{
playerText_txt.text = "十六夜咲夜\n完全で瀟洒な従者\n\nスペルカード \n「咲夜の世界」\n\nその問題のみタイムゲージを止めることができます。";
fukidasi.x = 230;
fukidasi.y = 218;
fukidasi.visible = true;
}
public function xClickTypeRa(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ら");
} else {
if (kanaType == "katakana"){
pushTyping("ラ");
};
};
}
public function xClickTypeRi(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("り");
} else {
if (kanaType == "katakana"){
pushTyping("リ");
};
};
}
public function xEnterMasterFadeIn(_arg1:Event):void{
if (timeOverFlg == true){
white_mc.visible = false;
white_mc.removeEventListener(Event.ENTER_FRAME, xEnterMasterFadeIn);
};
white_mc.alpha = (white_mc.alpha - 0.06);
if (white_mc.alpha <= 0){
white_mc.visible = false;
white_mc.removeEventListener(Event.ENTER_FRAME, xEnterMasterFadeIn);
};
}
public function xClickTypeRe(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("れ");
} else {
if (kanaType == "katakana"){
pushTyping("レ");
};
};
}
public function releasePanelColor():void{
if (choicePanel == 1){
style4Select_mc.panel1_btn.upState = keepButton.upState;
} else {
if (choicePanel == 2){
style4Select_mc.panel2_btn.upState = keepButton.upState;
} else {
if (choicePanel == 3){
style4Select_mc.panel3_btn.upState = keepButton.upState;
} else {
if (choicePanel == 4){
style4Select_mc.panel4_btn.upState = keepButton.upState;
};
};
};
};
choicePanel = 0;
}
public function typingInit():void{
var _local1:*;
styleTyping_mc.visible = false;
addChildAt(styleTyping_mc, (getChildIndex(gameWall_mc) + 1));
styleTyping_mc.x = 247.9;
styleTyping_mc.y = 153.1;
_local1 = 0;
while (_local1 < 8) {
styleTyping_mc[(("typeAns" + (_local1 + 1)) + "_txt")].embedFonts = true;
_local1++;
};
addTypingBtn();
typingAnswer = "";
}
public function xClickTypeRu(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("る");
} else {
if (kanaType == "katakana"){
pushTyping("ル");
};
};
}
public function xClickTypeRo(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ろ");
} else {
if (kanaType == "katakana"){
pushTyping("ロ");
};
};
}
public function xClickAddBack(_arg1:MouseEvent):void{
playSe(select);
addQuestion_txt.selectable = true;
addPanel1_txt.selectable = true;
addPanel2_txt.selectable = true;
addPanel3_txt.selectable = true;
addPanel4_txt.selectable = true;
addQuestion_txt.mouseEnabled = true;
addPanel1_txt.mouseEnabled = true;
addPanel2_txt.mouseEnabled = true;
addPanel3_txt.mouseEnabled = true;
addPanel4_txt.mouseEnabled = true;
addQuestion_txt.tabEnabled = true;
addPanel1_txt.tabEnabled = true;
addPanel2_txt.tabEnabled = true;
addPanel3_txt.tabEnabled = true;
addPanel4_txt.tabEnabled = true;
addQuestionExp_txt.text = "問題と回答を入力して\n「次の画面へ」ボタンを押してください\n正しい答えは○、\n間違った答えは×の欄に入力してください";
addQuestionExp2_txt.text = "問:最大75文字まで\n答:最大22文字まで";
addBack_btn.visible = false;
addFix_btn.visible = false;
toNext_btn.visible = true;
toTitle_btn.visible = true;
addBack_btn.removeEventListener(MouseEvent.CLICK, xClickAddBack);
addFix_btn.removeEventListener(MouseEvent.CLICK, xClickAddFix);
toNext_btn.addEventListener(MouseEvent.CLICK, xClickToNext);
toTitle_btn.addEventListener(MouseEvent.CLICK, xClickToTitle);
}
public function xOverRankExtra(_arg1:MouseEvent):void{
rankText_txt.text = "Extra\n\nAdd Questionモードで登録\nされた問題が出題されます。\nどんな問題が出るかは謎。";
fukidasi.x = 230;
fukidasi.y = 218;
fukidasi.visible = true;
}
public function xComplete4select(_arg1:Event):void{
var quizXML:XML;
var quizs:XMLList;
var evt = _arg1;
quizXML = new XML(xmlLoader.data);
quizs = quizXML.quiz;
xmlLoader = null;
if (rank == "extra"){
for each (quizXML in quizs.(((((@rank == "hard")) || ((@rank == "normal")))) || ((@rank == "extra")))) {
quiz_array.push({question:("四択問題\n" + quizXML.question), panel1:quizXML.panel1, panel2:quizXML.panel2, panel3:quizXML.panel3, panel4:quizXML.panel4, answer:quizXML.answer, genre:quizXML.@genre});
};
} else {
if (rank == "hard"){
for each (quizXML in quizs.(((@rank == "hard")) || ((@rank == "normal")))) {
quiz_array.push({question:("四択問題\n" + quizXML.question), panel1:quizXML.panel1, panel2:quizXML.panel2, panel3:quizXML.panel3, panel4:quizXML.panel4, answer:quizXML.answer, genre:quizXML.@genre});
};
} else {
if (rank == "phantasm"){
for each (quizXML in quizs.(((@rank == "hard")) || ((@rank == "normal")))) {
quiz_array.push({question:("四択問題\n" + quizXML.question), panel1:quizXML.panel1, panel2:quizXML.panel2, panel3:quizXML.panel3, panel4:quizXML.panel4, answer:quizXML.answer, genre:quizXML.@genre});
};
maxQuizNo = quiz_array.length;
} else {
for each (quizXML in quizs.(@rank == rank)) {
quiz_array.push({question:("四択問題\n" + quizXML.question), panel1:quizXML.panel1, panel2:quizXML.panel2, panel3:quizXML.panel3, panel4:quizXML.panel4, answer:quizXML.answer, genre:quizXML.@genre});
};
};
};
};
xmlLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, xCompleteAssoc);
xmlLoader.load(new URLRequest(XML_ASSOC));
}
public function xClickTypeSe(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("せ");
} else {
if (kanaType == "katakana"){
pushTyping("セ");
};
};
}
public function xClickRankHard(_arg1:MouseEvent):void{
rank = "hard";
toPlayerSelect();
}
public function pushLastStr(_arg1:String):void{
if (typingAnswer.length != 0){
typingAnswer = typingAnswer.substring(0, (typingAnswer.length - 1));
};
typingAnswer = (typingAnswer + _arg1);
}
public function xClickTypeSu(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("す");
} else {
if (kanaType == "katakana"){
pushTyping("ス");
};
};
}
public function xClickTypeSi(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("し");
} else {
if (kanaType == "katakana"){
pushTyping("シ");
};
};
}
public function xFadeIn(){
red_mc.visible = true;
red_mc.alpha = 0.5;
red_mc.addEventListener(Event.ENTER_FRAME, xEnterFadeIn);
}
public function xClickTypeTe(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("て");
} else {
if (kanaType == "katakana"){
pushTyping("テ");
};
};
}
public function xClickTypeSo(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("そ");
} else {
if (kanaType == "katakana"){
pushTyping("ソ");
};
};
}
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 xClickTypeSa(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("さ");
} else {
if (kanaType == "katakana"){
pushTyping("サ");
};
};
}
public function xClickTypeTa(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("た");
} else {
if (kanaType == "katakana"){
pushTyping("タ");
};
};
}
public function xClickRankingUp(_arg1:MouseEvent):void{
playSe(typing);
rankingPage = (rankingPage - 1);
rankingPageCheck();
if (nowRankingRank == RANK_NORMAL){
normalRankingInit();
} else {
if (nowRankingRank == RANK_HARD){
hardRankingInit();
} else {
if (nowRankingRank == RANK_EXTRA){
extraRankingInit();
} else {
if (nowRankingRank == RANK_PHANTASM){
phantasmRankingInit();
};
};
};
};
}
public function xClickTypeTu(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("つ");
} else {
if (kanaType == "katakana"){
pushTyping("ツ");
};
};
}
public function userDataFontInit():void{
userDataHiScore_mc.userHiscore0_txt.embedFonts = true;
userDataHiScore_mc.userHiscore1_txt.embedFonts = true;
userDataHiScore_mc.userHiscore2_txt.embedFonts = true;
userDataHiScore_mc.userHiscore3_txt.embedFonts = true;
userDataAvg_mc.userAvg0_txt.embedFonts = true;
userDataAvg_mc.userAvg1_txt.embedFonts = true;
userDataAvg_mc.userAvg2_txt.embedFonts = true;
userDataAvg_mc.userAvg3_txt.embedFonts = true;
userReimu_txt.embedFonts = true;
userMarisa_txt.embedFonts = true;
userSakuya_txt.embedFonts = true;
stampCount_txt.embedFonts = true;
}
public function xClickTypeTi(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("ち");
} else {
if (kanaType == "katakana"){
pushTyping("チ");
};
};
}
public function xClickRankingClose(_arg1):void{
playSe(select);
rankingWindow_mc.visible = false;
maskSprite_mc.visible = false;
rankingWindow_mc.rankingNormal_btn.removeEventListener(MouseEvent.CLICK, xClickRankingNormal);
rankingWindow_mc.rankingNormal_btn.removeEventListener(MouseEvent.CLICK, xClickRankingHard);
rankingWindow_mc.rankingExtra_btn.removeEventListener(MouseEvent.CLICK, xClickRankingExtra);
rankingWindow_mc.rankingPhantasm_btn.removeEventListener(MouseEvent.CLICK, xClickRankingPhantasm);
rankingWindow_mc.rankingClose_btn.removeEventListener(MouseEvent.CLICK, xClickRankingClose);
rankingWindow_mc.rankingUp_btn.removeEventListener(MouseEvent.CLICK, xClickRankingUp);
rankingWindow_mc.rankingDown_btn.removeEventListener(MouseEvent.CLICK, xClickRankingDown);
}
public function xClickToTitle(_arg1:MouseEvent):void{
playSe(select);
toNext_btn.removeEventListener(MouseEvent.CLICK, xClickToNext);
toTitle_btn.removeEventListener(MouseEvent.CLICK, xClickToTitle);
gotoAndStop("title");
}
public function xClickPlayerBack(_arg1:MouseEvent):void{
playSe(select);
allRemovePlayerEvent();
gotoAndStop("rankSelect");
}
public function xClickRankingPhantasm(_arg1:MouseEvent):void{
playSe(typing);
rankingPage = 0;
nowRankingRank = RANK_PHANTASM;
phantasmRankingInit();
}
public function xClickTypeTo(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("と");
} else {
if (kanaType == "katakana"){
pushTyping("ト");
};
};
}
public function xShuffleArray(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = _arg1.length;
while (_local2--) {
_local3 = Math.floor((Math.random() * (_local2 + 1)));
_local4 = _arg1[_local2];
_arg1[_local2] = _arg1[_local3];
_arg1[_local3] = _local4;
};
}
public function reflectTypingAnswer():void{
var _local1:*;
var _local2:*;
if (kanaType == "hiragana"){
_local1 = 0;
while (_local1 < 8) {
styleTyping_mc[(("typeAns" + (_local1 + 1)) + "_txt")].text = typingAnswer.charAt(_local1);
_local1++;
};
} else {
if (kanaType == "katakana"){
_local2 = 0;
while (_local2 < 8) {
styleTypingKana_mc[(("typeAns" + (_local2 + 1)) + "_txt")].text = typingAnswer.charAt(_local2);
_local2++;
};
};
};
}
public function addTypingKanaBtn():void{
styleTypingKana_mc.type_a_btn.addEventListener(MouseEvent.CLICK, xClickTypeA);
styleTypingKana_mc.type_i_btn.addEventListener(MouseEvent.CLICK, xClickTypeI);
styleTypingKana_mc.type_u_btn.addEventListener(MouseEvent.CLICK, xClickTypeU);
styleTypingKana_mc.type_e_btn.addEventListener(MouseEvent.CLICK, xClickTypeE);
styleTypingKana_mc.type_o_btn.addEventListener(MouseEvent.CLICK, xClickTypeO);
styleTypingKana_mc.type_ka_btn.addEventListener(MouseEvent.CLICK, xClickTypeKa);
styleTypingKana_mc.type_ki_btn.addEventListener(MouseEvent.CLICK, xClickTypeKi);
styleTypingKana_mc.type_ku_btn.addEventListener(MouseEvent.CLICK, xClickTypeKu);
styleTypingKana_mc.type_ke_btn.addEventListener(MouseEvent.CLICK, xClickTypeKe);
styleTypingKana_mc.type_ko_btn.addEventListener(MouseEvent.CLICK, xClickTypeKo);
styleTypingKana_mc.type_sa_btn.addEventListener(MouseEvent.CLICK, xClickTypeSa);
styleTypingKana_mc.type_si_btn.addEventListener(MouseEvent.CLICK, xClickTypeSi);
styleTypingKana_mc.type_su_btn.addEventListener(MouseEvent.CLICK, xClickTypeSu);
styleTypingKana_mc.type_se_btn.addEventListener(MouseEvent.CLICK, xClickTypeSe);
styleTypingKana_mc.type_so_btn.addEventListener(MouseEvent.CLICK, xClickTypeSo);
styleTypingKana_mc.type_ta_btn.addEventListener(MouseEvent.CLICK, xClickTypeTa);
styleTypingKana_mc.type_ti_btn.addEventListener(MouseEvent.CLICK, xClickTypeTi);
styleTypingKana_mc.type_tu_btn.addEventListener(MouseEvent.CLICK, xClickTypeTu);
styleTypingKana_mc.type_te_btn.addEventListener(MouseEvent.CLICK, xClickTypeTe);
styleTypingKana_mc.type_to_btn.addEventListener(MouseEvent.CLICK, xClickTypeTo);
styleTypingKana_mc.type_na_btn.addEventListener(MouseEvent.CLICK, xClickTypeNa);
styleTypingKana_mc.type_ni_btn.addEventListener(MouseEvent.CLICK, xClickTypeNi);
styleTypingKana_mc.type_nu_btn.addEventListener(MouseEvent.CLICK, xClickTypeNu);
styleTypingKana_mc.type_ne_btn.addEventListener(MouseEvent.CLICK, xClickTypeNe);
styleTypingKana_mc.type_no_btn.addEventListener(MouseEvent.CLICK, xClickTypeNo);
styleTypingKana_mc.type_ha_btn.addEventListener(MouseEvent.CLICK, xClickTypeHa);
styleTypingKana_mc.type_hi_btn.addEventListener(MouseEvent.CLICK, xClickTypeHi);
styleTypingKana_mc.type_hu_btn.addEventListener(MouseEvent.CLICK, xClickTypeHu);
styleTypingKana_mc.type_he_btn.addEventListener(MouseEvent.CLICK, xClickTypeHe);
styleTypingKana_mc.type_ho_btn.addEventListener(MouseEvent.CLICK, xClickTypeHo);
styleTypingKana_mc.type_ma_btn.addEventListener(MouseEvent.CLICK, xClickTypeMa);
styleTypingKana_mc.type_mi_btn.addEventListener(MouseEvent.CLICK, xClickTypeMi);
styleTypingKana_mc.type_mu_btn.addEventListener(MouseEvent.CLICK, xClickTypeMu);
styleTypingKana_mc.type_me_btn.addEventListener(MouseEvent.CLICK, xClickTypeMe);
styleTypingKana_mc.type_mo_btn.addEventListener(MouseEvent.CLICK, xClickTypeMo);
styleTypingKana_mc.type_ya_btn.addEventListener(MouseEvent.CLICK, xClickTypeYa);
styleTypingKana_mc.type_yu_btn.addEventListener(MouseEvent.CLICK, xClickTypeYu);
styleTypingKana_mc.type_yo_btn.addEventListener(MouseEvent.CLICK, xClickTypeYo);
styleTypingKana_mc.type_ra_btn.addEventListener(MouseEvent.CLICK, xClickTypeRa);
styleTypingKana_mc.type_ri_btn.addEventListener(MouseEvent.CLICK, xClickTypeRi);
styleTypingKana_mc.type_ru_btn.addEventListener(MouseEvent.CLICK, xClickTypeRu);
styleTypingKana_mc.type_re_btn.addEventListener(MouseEvent.CLICK, xClickTypeRe);
styleTypingKana_mc.type_ro_btn.addEventListener(MouseEvent.CLICK, xClickTypeRo);
styleTypingKana_mc.type_wa_btn.addEventListener(MouseEvent.CLICK, xClickTypeWa);
styleTypingKana_mc.type_wo_btn.addEventListener(MouseEvent.CLICK, xClickTypeWo);
styleTypingKana_mc.type_nn_btn.addEventListener(MouseEvent.CLICK, xClickTypeNn);
styleTypingKana_mc.type_la_btn.addEventListener(MouseEvent.CLICK, xClickTypeLa);
styleTypingKana_mc.type_li_btn.addEventListener(MouseEvent.CLICK, xClickTypeLi);
styleTypingKana_mc.type_lu_btn.addEventListener(MouseEvent.CLICK, xClickTypeLu);
styleTypingKana_mc.type_le_btn.addEventListener(MouseEvent.CLICK, xClickTypeLe);
styleTypingKana_mc.type_lo_btn.addEventListener(MouseEvent.CLICK, xClickTypeLo);
styleTypingKana_mc.type_lya_btn.addEventListener(MouseEvent.CLICK, xClickTypeLya);
styleTypingKana_mc.type_lyu_btn.addEventListener(MouseEvent.CLICK, xClickTypeLyu);
styleTypingKana_mc.type_lyo_btn.addEventListener(MouseEvent.CLICK, xClickTypeLyo);
styleTypingKana_mc.type_ltu_btn.addEventListener(MouseEvent.CLICK, xClickTypeLtu);
styleTypingKana_mc.type_hy_btn.addEventListener(MouseEvent.CLICK, xClickTypeHy);
styleTypingKana_mc.type_daku_btn.addEventListener(MouseEvent.CLICK, xClickTypeDaku);
styleTypingKana_mc.type_handaku_btn.addEventListener(MouseEvent.CLICK, xClickTypeHandaku);
styleTypingKana_mc.type_delete_btn.addEventListener(MouseEvent.CLICK, xClickTypeDelete);
styleTypingKana_mc.type_ok_btn.addEventListener(MouseEvent.CLICK, xClickTypeOk);
}
public function xClickRankPhantasm(_arg1:MouseEvent):void{
rank = "phantasm";
toPlayerSelect();
}
public function xClickPlayerSakuya(_arg1:MouseEvent):void{
player = "sakuyaMc";
toQuizStart();
}
public function phantasmRankingInit():void{
var _local1:*;
var _local2:*;
rankingBtnDisp(RANK_PHANTASM);
_local1 = 0;
while (_local1 < 10) {
_local2 = ((rankingPage * 10) + _local1);
if (rankingPhantasm_array[_local2] != null){
rankingWindow_mc[(("rankingName" + (_local1 + 1)) + "_txt")].text = rankingPhantasm_array[_local2].name;
rankingWindow_mc[(("rankingScore" + (_local1 + 1)) + "_txt")].text = rankingPhantasm_array[_local2].score;
if (rankingPhantasm_array[_local2].player == PLAYER_REIMU){
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ Reimu";
} else {
if (rankingPhantasm_array[_local2].player == PLAYER_MARISA){
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ Marisa";
} else {
if (rankingPhantasm_array[_local2].player == PLAYER_SAKUYA){
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ Sakuya";
};
};
};
} else {
rankingWindow_mc[(("rankingName" + (_local1 + 1)) + "_txt")].text = "----------";
rankingWindow_mc[(("rankingScore" + (_local1 + 1)) + "_txt")].text = 0;
rankingWindow_mc[(("rankingPlayer" + (_local1 + 1)) + "_txt")].text = "/ ------";
};
rankingWindow_mc[(("rankingOrder" + (_local1 + 1)) + "_txt")].text = ((_local2 + 1) + ":");
_local1++;
};
}
public function RankSettingInit():void{
var _local1:Class;
_local1 = (getDefinitionByName((rank + "Plate")) as Class);
rankPlate_mc = new (_local1);
rankPlate_mc.x = 63.5;
rankPlate_mc.y = 51.6;
addChildAt(rankPlate_mc, (getChildIndex(gameWall_mc) + 1));
}
public function xClickUserStampPrev(_arg1:MouseEvent):void{
playSe(typing);
removeStamp();
stampPage--;
userStampInit();
}
public function xClickResultToTitle(_arg1:MouseEvent):void{
playSe(select);
white_mc.alpha = 0;
removeRankingStamp();
gotoAndStop("title");
resultToTitle_btn.removeEventListener(MouseEvent.CLICK, xClickResultToTitle);
}
public function xClickTypeWa(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("わ");
} else {
if (kanaType == "katakana"){
pushTyping("ワ");
};
};
}
public function gameGrayOff():void{
grayFlg = false;
gameWall_mc.filters = [];
style4Select_mc.filters = [];
timeBar_mc.filters = [];
time_txt.filters = [];
nowQuizNo_txt.filters = [];
styleTyping_mc.filters = [];
styleTypingKana_mc.filters = [];
rankPlate_mc.filters = [];
time_moji_txt.filters = [];
if (rank == "phantasm"){
bgmCh = bgmList[bgmHakurei].play(playPos, 1, bgmTr);
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
} else {
bgmCh = bgmList[bgmKoiiro].play(playPos, 1, bgmTr);
bgmCh.addEventListener(Event.SOUND_COMPLETE, gameBgmComplete);
};
clock1_btn.addEventListener(MouseEvent.CLICK, xClickClock);
clock2_btn.addEventListener(MouseEvent.CLICK, xClickClock);
clock3_btn.addEventListener(MouseEvent.CLICK, xClickClock);
}
public function xClickTypeWo(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("を");
} else {
if (kanaType == "katakana"){
pushTyping("ヲ");
};
};
}
public function incorrectAnswer(){
if (rank == "phantasm"){
gameOverFlg = true;
};
resultPoint = (resultPoint - Math.floor((dl / 2)));
playSe(bad);
player_mc.gotoAndPlay("bad");
judge_mc.gotoAndPlay("bad");
}
public function showRankingWindow():void{
if (resultPoint > ranking10thScore){
resultWindow_mc.resultInputName_txt.text = so.data.userName;
resultWindow_mc.resultInputName_txt.maxChars = 10;
resultWindow_mc.resultInputName_txt.restrict = "a-zA-Z0-9";
resultWindow_mc.visible = true;
resultSend_mc.visible = true;
resultWindow_mc.resultOk_btn.addEventListener(MouseEvent.CLICK, xClickResultWindowOk);
} else {
resultToTitle_btn.visible = true;
resultToTitle_btn.addEventListener(MouseEvent.CLICK, xClickResultToTitle);
};
}
public function xClickAddFixedToTitle(_arg1:MouseEvent):void{
playSe(select);
allRemoveFixedEvent();
gotoAndStop("title");
}
public function xClickAddFix(_arg1:MouseEvent):void{
var url:URLRequest;
var variables:URLVariables;
var loader:URLLoader;
var evt = _arg1;
playSe(select);
addBack_btn.removeEventListener(MouseEvent.CLICK, xClickAddBack);
addFix_btn.removeEventListener(MouseEvent.CLICK, xClickAddFix);
url = new URLRequest("php06875/addExtra.php");
variables = new URLVariables();
variables.posQuestion = addQuestion_txt.text;
variables.posPanel1 = addPanel1_txt.text;
variables.posPanel2 = addPanel2_txt.text;
variables.posPanel3 = addPanel3_txt.text;
variables.posPanel4 = addPanel4_txt.text;
variables.posAnswer = addPanel1_txt.text;
url.data = variables.toString();
url.method = URLRequestMethod.POST;
loader = new URLLoader();
try {
loader.load(url);
gotoAndStop("addQuestionFixed");
} catch(e:Error) {
};
}
public function xClickUserStampNext(_arg1:MouseEvent):void{
playSe(typing);
removeStamp();
stampPage++;
userStampInit();
}
public function removeRankingStamp():void{
removeChild(removeResultStamp_mc);
}
public function xClickRankingDown(_arg1:MouseEvent):void{
playSe(typing);
rankingPage = (rankingPage + 1);
rankingPageCheck();
if (nowRankingRank == RANK_NORMAL){
normalRankingInit();
} else {
if (nowRankingRank == RANK_HARD){
hardRankingInit();
} else {
if (nowRankingRank == RANK_EXTRA){
extraRankingInit();
} else {
if (nowRankingRank == RANK_PHANTASM){
phantasmRankingInit();
};
};
};
};
}
public function visiblePorM(_arg1:Boolean):void{
if (_arg1 == true){
rankingWindow_mc.rankingPoints_mc.visible = true;
rankingWindow_mc.rankingMon_mc.visible = false;
} else {
rankingWindow_mc.rankingPoints_mc.visible = false;
rankingWindow_mc.rankingMon_mc.visible = true;
};
}
public function xClickTypeYa(_arg1:MouseEvent):void{
if (kanaType == "hiragana"){
pushTyping("や");
} else {
if (kanaType == "katakana"){
pushTyping("ヤ");
};
};
}
public function nextQuiz(){
clearMask_mc.visible = true;
if (grayFlg == true){
gameGrayOff();
};
if (player == "marisaMc"){
if (star1_btn.hasEventListener(MouseEvent.CLICK) == false){
star1_btn.addEventListener(MouseEvent.CLICK, xClickStar);
star1_btn.alpha = 1;
};
if (star2_btn.hasEventListener(MouseEvent.CLICK) == false){
star2_btn.addEventListener(MouseEvent.CLICK, xClickStar);
star2_btn.alpha = 1;
};
if (star3_btn.hasEventListener(MouseEvent.CLICK) == false){
star3_btn.addEventListener(MouseEvent.CLICK, xClickStar);
star3_btn.alpha = 1;
};
};
if ((((quizStyle == STYLE_4SELECT)) || ((quizStyle == STYLE_ASSOC)))){
style4Select_mc.panel1_btn.removeEventListener(MouseEvent.CLICK, xClickPanel1);
style4Select_mc.panel2_btn.removeEventListener(MouseEvent.CLICK, xClickPanel2);
style4Select_mc.panel3_btn.removeEventListener(MouseEvent.CLICK, xClickPanel3);
style4Select_mc.panel4_btn.removeEventListener(MouseEvent.CLICK, xClickPanel4);
style4Select_mc.panel1_btn.enabled = false;
style4Select_mc.panel2_btn.enabled = false;
style4Select_mc.panel3_btn.enabled = false;
style4Select_mc.panel4_btn.enabled = false;
keepPanelColor();
};
if (timeBar_mc.hasEventListener(Event.ENTER_FRAME)){
timeBar_mc.removeEventListener(Event.ENTER_FRAME, xEnterTimeBar);
};
if (gameOverFlg == true){
clearMask_mc.visible = false;
player_mc.visible = false;
gameToResult();
} else {
nowQuizNo++;
if (nowQuizNo <= maxQuizNo){
setTimeout(selectQuiz, 1000);
} else {
clearMask_mc.visible = false;
player_mc.visible = false;
gameToResult();
};
};
}
public function xLoadEnter(_arg1:Event):void{
var _local2:*;
_local2 = Math.floor(((info.bytesLoaded / info.bytesTotal) * 100));
loadPercent_txt.text = _local2.toString();
loadBar_mc.scaleX = (_local2 / 100);
if (info.bytesLoaded == info.bytesTotal){
toTitleFade();
stage.removeEventListener(Event.ENTER_FRAME, xLoadEnter);
};
}
}
}//package thquiz_fla
Section 4
//resultNo_mc_215 (thquiz_fla.resultNo_mc_215)
package thquiz_fla {
import flash.display.*;
import flash.text.*;
public dynamic class resultNo_mc_215 extends MovieClip {
public var resultNo_txt:TextField;
}
}//package thquiz_fla
Section 5
//resultNoPh_mc_222 (thquiz_fla.resultNoPh_mc_222)
package thquiz_fla {
import flash.display.*;
import flash.text.*;
public dynamic class resultNoPh_mc_222 extends MovieClip {
public var resultNo_txt:TextField;
}
}//package thquiz_fla
Section 6
//resultRanking_219 (thquiz_fla.resultRanking_219)
package thquiz_fla {
import flash.display.*;
import flash.text.*;
public dynamic class resultRanking_219 extends MovieClip {
public var resultInputName_txt:TextField;
public var resultOk_btn:SimpleButton;
}
}//package thquiz_fla
Section 7
//resultScore_mc_216 (thquiz_fla.resultScore_mc_216)
package thquiz_fla {
import flash.display.*;
import flash.text.*;
public dynamic class resultScore_mc_216 extends MovieClip {
public var resultPoint_txt:TextField;
}
}//package thquiz_fla
Section 8
//style4Select_mc_205 (thquiz_fla.style4Select_mc_205)
package thquiz_fla {
import flash.display.*;
import flash.text.*;
public dynamic class style4Select_mc_205 extends MovieClip {
public var qBar3_mc:MovieClip;
public var panel2_txt:TextField;
public var panel2_btn:SimpleButton;
public var qBar4_mc:MovieClip;
public var panel4_txt:TextField;
public var qBar1_mc:MovieClip;
public var question_txt:TextField;
public var panel4_btn:SimpleButton;
public var qBar2_mc:MovieClip;
public var qBar5_mc:MovieClip;
public var panel1_btn:SimpleButton;
public var panel3_btn:SimpleButton;
public var panel1_txt:TextField;
public var panel3_txt:TextField;
}
}//package thquiz_fla
Section 9
//userDataAvgMc_228 (thquiz_fla.userDataAvgMc_228)
package thquiz_fla {
import flash.display.*;
import flash.text.*;
public dynamic class userDataAvgMc_228 extends MovieClip {
public var userAvg2_txt:TextField;
public var userAvg0_txt:TextField;
public var userAvg1_txt:TextField;
public var userAvg3_txt:TextField;
}
}//package thquiz_fla
Section 10
//userDataHiScoreMc_229 (thquiz_fla.userDataHiScoreMc_229)
package thquiz_fla {
import flash.display.*;
import flash.text.*;
public dynamic class userDataHiScoreMc_229 extends MovieClip {
public var userHiscore1_txt:TextField;
public var userHiscore3_txt:TextField;
public var userHiscore0_txt:TextField;
public var userHiscore2_txt:TextField;
}
}//package thquiz_fla
Section 11
//addWindow (addWindow)
package {
import flash.display.*;
import flash.text.*;
public dynamic class addWindow extends MovieClip {
public var windowOk_btn:SimpleButton;
public var error_txt:TextField;
}
}//package
Section 12
//bad (bad)
package {
import flash.media.*;
public dynamic class bad extends Sound {
}
}//package
Section 13
//bgmHakurei (bgmHakurei)
package {
import flash.media.*;
public dynamic class bgmHakurei extends Sound {
}
}//package
Section 14
//bgmKoiiro (bgmKoiiro)
package {
import flash.media.*;
public dynamic class bgmKoiiro extends Sound {
}
}//package
Section 15
//clockBtn (clockBtn)
package {
import flash.display.*;
public dynamic class clockBtn extends SimpleButton {
}
}//package
Section 16
//extraPlate (extraPlate)
package {
import flash.display.*;
public dynamic class extraPlate extends MovieClip {
}
}//package
Section 17
//good (good)
package {
import flash.media.*;
public dynamic class good extends Sound {
}
}//package
Section 18
//hardPlate (hardPlate)
package {
import flash.display.*;
public dynamic class hardPlate extends MovieClip {
}
}//package
Section 19
//marisaMc (marisaMc)
package {
import flash.display.*;
public dynamic class marisaMc extends MovieClip {
public function marisaMc(){
addFrameScript(59, frame60, 79, frame80, 99, frame100, 109, frame110);
}
function frame80(){
gotoAndPlay("normal");
}
function frame100(){
gotoAndPlay("normal");
}
function frame110(){
gotoAndPlay("normal");
}
function frame60(){
gotoAndPlay("normal");
}
}
}//package
Section 20
//MersenneTwister (MersenneTwister)
package {
public class MersenneTwister {
private const MATRIX_A:uint = 2567483615;
private const UPPER_MASK:uint = 2147483648;
private const LOWER_MASK:uint = 2147483647;
private const M:int = 397;
private const N:int = 624;
private var q:int;
private var r:int;
private var p:int;
private var x:Array;
public function MersenneTwister(_arg1:uint){
x = new Array();
seed = _arg1;
}
public function nextNumber():Number{
return ((next(32) / 4294967296));
}
public function set seed(_arg1:uint):void{
var _local2:int;
x[0] = _arg1;
_local2 = 1;
while (_local2 < N) {
x[_local2] = (imul(1812433253, (x[(_local2 - 1)] ^ (x[(_local2 - 1)] >>> 30))) + _local2);
x[_local2] = (x[_local2] & 4294967295);
_local2++;
};
p = 0;
q = 1;
r = M;
}
private function next(_arg1:int):uint{
var _local2:uint;
_local2 = ((x[p] & UPPER_MASK) | (x[q] & LOWER_MASK));
x[p] = ((x[r] ^ (_local2 >>> 1)) ^ ((_local2 & 1) * MATRIX_A));
_local2 = x[p];
if (++p == N){
p = 0;
};
if (++q == N){
q = 0;
};
if (++r == N){
r = 0;
};
_local2 = (_local2 ^ (_local2 >>> 11));
_local2 = (_local2 ^ ((_local2 << 7) & 2636928640));
_local2 = (_local2 ^ ((_local2 << 15) & 4022730752));
_local2 = (_local2 ^ (_local2 >>> 18));
return ((_local2 >>> (32 - _arg1)));
}
private function imul(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local3 = (_arg1 & 0xFFFF);
_local4 = (_arg1 >>> 16);
_local5 = (_arg2 & 0xFFFF);
_local6 = (_arg2 >>> 16);
_local7 = (_local3 * _local5);
_local8 = (((((_local7 >>> 16) + (_local3 * _local6)) & 0xFFFF) + (_local4 * _local5)) & 0xFFFF);
return (((_local8 << 16) | (_local7 & 0xFFFF)));
}
}
}//package
Section 21
//normalPlate (normalPlate)
package {
import flash.display.*;
public dynamic class normalPlate extends MovieClip {
}
}//package
Section 22
//onmyoBtn (onmyoBtn)
package {
import flash.display.*;
public dynamic class onmyoBtn extends SimpleButton {
}
}//package
Section 23
//phantasmPlate (phantasmPlate)
package {
import flash.display.*;
public dynamic class phantasmPlate extends MovieClip {
}
}//package
Section 24
//playerMarisa (playerMarisa)
package {
import flash.display.*;
public dynamic class playerMarisa extends SimpleButton {
}
}//package
Section 25
//rankFukidasi (rankFukidasi)
package {
import flash.display.*;
public dynamic class rankFukidasi extends MovieClip {
}
}//package
Section 26
//rankingWindow (rankingWindow)
package {
import flash.display.*;
import flash.text.*;
public dynamic class rankingWindow extends MovieClip {
public var rankingPlayer3_txt:TextField;
public var rankingExtra_btn:SimpleButton;
public var rankingPlayer7_txt:TextField;
public var rankingName1_txt:TextField;
public var rankingName5_txt:TextField;
public var rankingName9_txt:TextField;
public var rankingOrder4_txt:TextField;
public var rankingPhantasm_btn:SimpleButton;
public var rankingOrder8_txt:TextField;
public var rankingRank_txt:TextField;
public var rankingScore2_txt:TextField;
public var rankingScore6_txt:TextField;
public var rankingPlayer2_txt:TextField;
public var rankingPlayer6_txt:TextField;
public var rankingUp_btn:SimpleButton;
public var rankingName4_txt:TextField;
public var rankingName8_txt:TextField;
public var rankingOrder3_txt:TextField;
public var rankingOrder7_txt:TextField;
public var rankingPoints_mc:MovieClip;
public var rankingScore1_txt:TextField;
public var rankingScore5_txt:TextField;
public var rankingScore9_txt:TextField;
public var rankingOrder10_txt:TextField;
public var rankingPlayer1_txt:TextField;
public var rankingPlayer9_txt:TextField;
public var rankingPlayer5_txt:TextField;
public var rankingName3_txt:TextField;
public var rankingOrder2_txt:TextField;
public var rankingName7_txt:TextField;
public var rankingOrder6_txt:TextField;
public var rankingScore10_txt:TextField;
public var rankingHard_btn:SimpleButton;
public var rankingScore4_txt:TextField;
public var rankingScore8_txt:TextField;
public var rankingName10_txt:TextField;
public var rankingMon_mc:MovieClip;
public var rankingPlayer8_txt:TextField;
public var rankingDown_btn:SimpleButton;
public var rankingPlayer4_txt:TextField;
public var rankingName2_txt:TextField;
public var rankingName6_txt:TextField;
public var rankingOrder1_txt:TextField;
public var rankingOrder9_txt:TextField;
public var rankingOrder5_txt:TextField;
public var rankingPlayer10_txt:TextField;
public var rankingNormal_btn:SimpleButton;
public var rankingScore3_txt:TextField;
public var rankingScore7_txt:TextField;
public var rankingClose_btn:SimpleButton;
}
}//package
Section 27
//reimuMc (reimuMc)
package {
import flash.display.*;
public dynamic class reimuMc extends MovieClip {
public function reimuMc(){
addFrameScript(59, frame60, 79, frame80, 99, frame100, 109, frame110, 110, frame111);
}
function frame80(){
gotoAndPlay("normal");
}
function frame100(){
gotoAndPlay("normal");
}
function frame110(){
gotoAndPlay("normal");
}
function frame111(){
gotoAndStop("normal");
}
function frame60(){
gotoAndPlay("normal");
}
}
}//package
Section 28
//sakuyaMc (sakuyaMc)
package {
import flash.display.*;
public dynamic class sakuyaMc extends MovieClip {
public function sakuyaMc(){
addFrameScript(59, frame60, 79, frame80, 99, frame100, 109, frame110, 110, frame111);
}
function frame80(){
gotoAndPlay("normal");
}
function frame100(){
gotoAndPlay("normal");
}
function frame110(){
gotoAndPlay("spell");
}
function frame111(){
gotoAndStop("normal");
}
function frame60(){
gotoAndPlay("normal");
}
}
}//package
Section 29
//select (select)
package {
import flash.media.*;
public dynamic class select extends Sound {
}
}//package
Section 30
//select2 (select2)
package {
import flash.media.*;
public dynamic class select2 extends Sound {
}
}//package
Section 31
//spell (spell)
package {
import flash.media.*;
public dynamic class spell extends Sound {
}
}//package
Section 32
//stamp0 (stamp0)
package {
import flash.display.*;
public dynamic class stamp0 extends MovieClip {
}
}//package
Section 33
//stamp1 (stamp1)
package {
import flash.display.*;
public dynamic class stamp1 extends MovieClip {
}
}//package
Section 34
//stamp10 (stamp10)
package {
import flash.display.*;
public dynamic class stamp10 extends MovieClip {
}
}//package
Section 35
//stamp11 (stamp11)
package {
import flash.display.*;
public dynamic class stamp11 extends MovieClip {
}
}//package
Section 36
//stamp12 (stamp12)
package {
import flash.display.*;
public dynamic class stamp12 extends MovieClip {
}
}//package
Section 37
//stamp13 (stamp13)
package {
import flash.display.*;
public dynamic class stamp13 extends MovieClip {
}
}//package
Section 38
//stamp14 (stamp14)
package {
import flash.display.*;
public dynamic class stamp14 extends MovieClip {
}
}//package
Section 39
//stamp15 (stamp15)
package {
import flash.display.*;
public dynamic class stamp15 extends MovieClip {
}
}//package
Section 40
//stamp16 (stamp16)
package {
import flash.display.*;
public dynamic class stamp16 extends MovieClip {
}
}//package
Section 41
//stamp17 (stamp17)
package {
import flash.display.*;
public dynamic class stamp17 extends MovieClip {
}
}//package
Section 42
//stamp18 (stamp18)
package {
import flash.display.*;
public dynamic class stamp18 extends MovieClip {
}
}//package
Section 43
//stamp19 (stamp19)
package {
import flash.display.*;
public dynamic class stamp19 extends MovieClip {
}
}//package
Section 44
//stamp2 (stamp2)
package {
import flash.display.*;
public dynamic class stamp2 extends MovieClip {
}
}//package
Section 45
//stamp20 (stamp20)
package {
import flash.display.*;
public dynamic class stamp20 extends MovieClip {
}
}//package
Section 46
//stamp21 (stamp21)
package {
import flash.display.*;
public dynamic class stamp21 extends MovieClip {
}
}//package
Section 47
//stamp22 (stamp22)
package {
import flash.display.*;
public dynamic class stamp22 extends MovieClip {
}
}//package
Section 48
//stamp23 (stamp23)
package {
import flash.display.*;
public dynamic class stamp23 extends MovieClip {
}
}//package
Section 49
//stamp24 (stamp24)
package {
import flash.display.*;
public dynamic class stamp24 extends MovieClip {
}
}//package
Section 50
//stamp25 (stamp25)
package {
import flash.display.*;
public dynamic class stamp25 extends MovieClip {
}
}//package
Section 51
//stamp26 (stamp26)
package {
import flash.display.*;
public dynamic class stamp26 extends MovieClip {
}
}//package
Section 52
//stamp27 (stamp27)
package {
import flash.display.*;
public dynamic class stamp27 extends MovieClip {
}
}//package
Section 53
//stamp28 (stamp28)
package {
import flash.display.*;
public dynamic class stamp28 extends MovieClip {
}
}//package
Section 54
//stamp29 (stamp29)
package {
import flash.display.*;
public dynamic class stamp29 extends MovieClip {
}
}//package
Section 55
//stamp3 (stamp3)
package {
import flash.display.*;
public dynamic class stamp3 extends MovieClip {
}
}//package
Section 56
//stamp30 (stamp30)
package {
import flash.display.*;
public dynamic class stamp30 extends MovieClip {
}
}//package
Section 57
//stamp31 (stamp31)
package {
import flash.display.*;
public dynamic class stamp31 extends MovieClip {
}
}//package
Section 58
//stamp32 (stamp32)
package {
import flash.display.*;
public dynamic class stamp32 extends MovieClip {
}
}//package
Section 59
//stamp33 (stamp33)
package {
import flash.display.*;
public dynamic class stamp33 extends MovieClip {
}
}//package
Section 60
//stamp34 (stamp34)
package {
import flash.display.*;
public dynamic class stamp34 extends MovieClip {
}
}//package
Section 61
//stamp35 (stamp35)
package {
import flash.display.*;
public dynamic class stamp35 extends MovieClip {
}
}//package
Section 62
//stamp36 (stamp36)
package {
import flash.display.*;
public dynamic class stamp36 extends MovieClip {
}
}//package
Section 63
//stamp37 (stamp37)
package {
import flash.display.*;
public dynamic class stamp37 extends MovieClip {
}
}//package
Section 64
//stamp38 (stamp38)
package {
import flash.display.*;
public dynamic class stamp38 extends MovieClip {
}
}//package
Section 65
//stamp39 (stamp39)
package {
import flash.display.*;
public dynamic class stamp39 extends MovieClip {
}
}//package
Section 66
//stamp4 (stamp4)
package {
import flash.display.*;
public dynamic class stamp4 extends MovieClip {
}
}//package
Section 67
//stamp40 (stamp40)
package {
import flash.display.*;
public dynamic class stamp40 extends MovieClip {
}
}//package
Section 68
//stamp41 (stamp41)
package {
import flash.display.*;
public dynamic class stamp41 extends MovieClip {
}
}//package
Section 69
//stamp42 (stamp42)
package {
import flash.display.*;
public dynamic class stamp42 extends MovieClip {
}
}//package
Section 70
//stamp43 (stamp43)
package {
import flash.display.*;
public dynamic class stamp43 extends MovieClip {
}
}//package
Section 71
//stamp44 (stamp44)
package {
import flash.display.*;
public dynamic class stamp44 extends MovieClip {
}
}//package
Section 72
//stamp45 (stamp45)
package {
import flash.display.*;
public dynamic class stamp45 extends MovieClip {
}
}//package
Section 73
//stamp46 (stamp46)
package {
import flash.display.*;
public dynamic class stamp46 extends MovieClip {
}
}//package
Section 74
//stamp47 (stamp47)
package {
import flash.display.*;
public dynamic class stamp47 extends MovieClip {
}
}//package
Section 75
//stamp5 (stamp5)
package {
import flash.display.*;
public dynamic class stamp5 extends MovieClip {
}
}//package
Section 76
//stamp6 (stamp6)
package {
import flash.display.*;
public dynamic class stamp6 extends MovieClip {
}
}//package
Section 77
//stamp7 (stamp7)
package {
import flash.display.*;
public dynamic class stamp7 extends MovieClip {
}
}//package
Section 78
//stamp8 (stamp8)
package {
import flash.display.*;
public dynamic class stamp8 extends MovieClip {
}
}//package
Section 79
//stamp9 (stamp9)
package {
import flash.display.*;
public dynamic class stamp9 extends MovieClip {
}
}//package
Section 80
//starBtn (starBtn)
package {
import flash.display.*;
public dynamic class starBtn extends SimpleButton {
}
}//package
Section 81
//styleTyping (styleTyping)
package {
import flash.display.*;
import flash.text.*;
public dynamic class styleTyping extends MovieClip {
public var type_nn_btn:SimpleButton;
public var type_lya_btn:SimpleButton;
public var type_wa_btn:SimpleButton;
public var typeAns2_txt:TextField;
public var typeAns6_txt:TextField;
public var type_ok_btn:SimpleButton;
public var type_lyu_btn:SimpleButton;
public var type_daku_btn:SimpleButton;
public var type_te_btn:SimpleButton;
public var type_ta_btn:SimpleButton;
public var type_ti_btn:SimpleButton;
public var type_tu_btn:SimpleButton;
public var type_e_btn:SimpleButton;
public var type_lo_btn:SimpleButton;
public var type_a_btn:SimpleButton;
public var type_i_btn:SimpleButton;
public var type_yo_btn:SimpleButton;
public var type_u_btn:SimpleButton;
public var type_na_btn:SimpleButton;
public var type_ne_btn:SimpleButton;
public var type_ni_btn:SimpleButton;
public var type_nu_btn:SimpleButton;
public var question_txt:TextField;
public var type_ka_btn:SimpleButton;
public var typeAns1_txt:TextField;
public var type_so_btn:SimpleButton;
public var typeAns5_txt:TextField;
public var type_ke_btn:SimpleButton;
public var type_ki_btn:SimpleButton;
public var type_ku_btn:SimpleButton;
public var type_ha_btn:SimpleButton;
public var type_he_btn:SimpleButton;
public var type_hi_btn:SimpleButton;
public var type_hu_btn:SimpleButton;
public var type_hy_btn:SimpleButton;
public var type_handaku_btn:SimpleButton;
public var type_mo_btn:SimpleButton;
public var type_ra_btn:SimpleButton;
public var type_re_btn:SimpleButton;
public var type_ri_btn:SimpleButton;
public var type_ltu_btn:SimpleButton;
public var typeAns4_txt:TextField;
public var type_wo_btn:SimpleButton;
public var type_lyo_btn:SimpleButton;
public var typeAns8_txt:TextField;
public var type_ru_btn:SimpleButton;
public var type_le_btn:SimpleButton;
public var type_to_btn:SimpleButton;
public var type_la_btn:SimpleButton;
public var type_li_btn:SimpleButton;
public var type_o_btn:SimpleButton;
public var type_lu_btn:SimpleButton;
public var type_ya_btn:SimpleButton;
public var type_yu_btn:SimpleButton;
public var type_no_btn:SimpleButton;
public var type_sa_btn:SimpleButton;
public var typeAns3_txt:TextField;
public var type_se_btn:SimpleButton;
public var typeAns7_txt:TextField;
public var type_si_btn:SimpleButton;
public var type_su_btn:SimpleButton;
public var type_ko_btn:SimpleButton;
public var type_ho_btn:SimpleButton;
public var type_ma_btn:SimpleButton;
public var type_mi_btn:SimpleButton;
public var type_me_btn:SimpleButton;
public var type_delete_btn:SimpleButton;
public var type_mu_btn:SimpleButton;
public var type_ro_btn:SimpleButton;
}
}//package
Section 82
//styleTypingKana (styleTypingKana)
package {
import flash.display.*;
import flash.text.*;
public dynamic class styleTypingKana extends MovieClip {
public var type_nn_btn:SimpleButton;
public var type_lya_btn:SimpleButton;
public var type_wa_btn:SimpleButton;
public var typeAns2_txt:TextField;
public var typeAns6_txt:TextField;
public var type_ok_btn:SimpleButton;
public var type_lyu_btn:SimpleButton;
public var type_daku_btn:SimpleButton;
public var type_te_btn:SimpleButton;
public var type_ta_btn:SimpleButton;
public var type_ti_btn:SimpleButton;
public var type_tu_btn:SimpleButton;
public var type_e_btn:SimpleButton;
public var type_lo_btn:SimpleButton;
public var type_a_btn:SimpleButton;
public var type_i_btn:SimpleButton;
public var type_yo_btn:SimpleButton;
public var type_u_btn:SimpleButton;
public var type_na_btn:SimpleButton;
public var type_ne_btn:SimpleButton;
public var type_ni_btn:SimpleButton;
public var type_nu_btn:SimpleButton;
public var question_txt:TextField;
public var type_ka_btn:SimpleButton;
public var typeAns1_txt:TextField;
public var type_so_btn:SimpleButton;
public var typeAns5_txt:TextField;
public var type_ke_btn:SimpleButton;
public var type_ki_btn:SimpleButton;
public var type_ku_btn:SimpleButton;
public var type_ha_btn:SimpleButton;
public var type_he_btn:SimpleButton;
public var type_hi_btn:SimpleButton;
public var type_hu_btn:SimpleButton;
public var type_hy_btn:SimpleButton;
public var type_handaku_btn:SimpleButton;
public var type_mo_btn:SimpleButton;
public var type_ra_btn:SimpleButton;
public var type_re_btn:SimpleButton;
public var type_ri_btn:SimpleButton;
public var type_ltu_btn:SimpleButton;
public var typeAns4_txt:TextField;
public var type_wo_btn:SimpleButton;
public var type_lyo_btn:SimpleButton;
public var typeAns8_txt:TextField;
public var type_ru_btn:SimpleButton;
public var type_le_btn:SimpleButton;
public var type_to_btn:SimpleButton;
public var type_la_btn:SimpleButton;
public var type_li_btn:SimpleButton;
public var type_o_btn:SimpleButton;
public var type_lu_btn:SimpleButton;
public var type_ya_btn:SimpleButton;
public var type_yu_btn:SimpleButton;
public var type_no_btn:SimpleButton;
public var type_sa_btn:SimpleButton;
public var typeAns3_txt:TextField;
public var type_se_btn:SimpleButton;
public var typeAns7_txt:TextField;
public var type_si_btn:SimpleButton;
public var type_su_btn:SimpleButton;
public var type_ko_btn:SimpleButton;
public var type_ho_btn:SimpleButton;
public var type_ma_btn:SimpleButton;
public var type_mi_btn:SimpleButton;
public var type_me_btn:SimpleButton;
public var type_delete_btn:SimpleButton;
public var type_mu_btn:SimpleButton;
public var type_ro_btn:SimpleButton;
}
}//package
Section 83
//titleCharacter1 (titleCharacter1)
package {
import flash.display.*;
public dynamic class titleCharacter1 extends MovieClip {
}
}//package
Section 84
//titleCharacter2 (titleCharacter2)
package {
import flash.display.*;
public dynamic class titleCharacter2 extends MovieClip {
}
}//package
Section 85
//titleCharacter3 (titleCharacter3)
package {
import flash.display.*;
public dynamic class titleCharacter3 extends MovieClip {
}
}//package
Section 86
//typing (typing)
package {
import flash.media.*;
public dynamic class typing extends Sound {
}
}//package