Frame 1
function xPreload() {
nLoaded = this.getBytesLoaded();
if (nTotal <= nLoaded) {
this.gotoAndStop("init");
delete this.onEnterFrame;
} else {
nParcentage = Math.round((100 * nLoaded) / nTotal);
bar_mc._xscale = nParcentage;
parcentage_txt.text = nParcentage + " %";
}
}
System.useCodepage = true;
Stage.showMenu = false;
stop();
nParcentage = 0;
nTotal = this.getBytesTotal();
this.onEnterFrame = xPreload;
_global.dblQuot = String.fromCharCode(34);
Instance of Symbol 13 MovieClip "bar_mc" in Frame 1
onClipEvent (load) {
this._xscale = 0;
}
Frame 2
snr = "./karen.dat";
scenario_lv = new LoadVars();
scenario_lv.load(snr);
stop();
var totalPages = 0;
var pages = new Array();
var simplePages = new Array();
var bigPages = new Array();
var pNum = 0;
_global.mute = false;
_global.bgmVol = 40;
_global.bgm = new Sound(this.bgm_mc);
_global.seVol = 60;
_global.se = new Sound(this.se_mc);
var title_str = "";
pageNum = 0;
textSpeed = 1;
scenario_lv.onData = function (novel) {
if (novel) {
novel = novel.split(" ").join("");
novel = novel.split("\r\n").join(newline);
novel = novel.split("\r").join(newline);
rest = novel;
bigPages = rest.split("<pc>");
i = 0;
while (i < bigPages.length) {
var _local1;
var _local6 = 15;
var _local3 = 0;
_local1 = bigPages[i].split(newline);
j = 0;
while (j < _local1.length) {
if ((_local1[j].charAt(0) != "<") && (_local1[j].length > 25)) {
rest = _local1[j];
_local1[j] = "";
var _local2;
while (rest.length > 25) {
if ((((((rest.charAt(25) == "\u3002") || (rest.charAt(25) == "\u3001")) || (rest.charAt(25) == "\uFF09")) || (rest.charAt(25) == "\u300D")) || (rest.charAt(25) == "\u300F")) || (rest.charAt(25) == "\uFF1F")) {
_local2 = rest.substr(0, 26);
rest = rest.substr(26);
} else {
_local2 = rest.substr(0, 25);
rest = rest.substr(25);
}
if (rest.charAt(0)) {
_local2 = _local2 + "\r";
}
_local1[j] = _local1[j] + _local2;
}
_local1[j] = _local1[j] + rest;
}
j++;
}
pages[pNum] = "";
simplePages[pNum] = "";
j = 0;
while (j < _local1.length) {
if (_local3 < _local6) {
if (_local1[j].charAt(0) == "<") {
pages[pNum] = pages[pNum] + (_local1[j] + newline);
} else {
var _local4;
_local4 = _local1[j].split("\r");
if ((_local3 + _local4.length) <= _local6) {
pages[pNum] = pages[pNum] + (_local1[j] + newline);
simplePages[pNum] = simplePages[pNum] + (_local1[j] + newline);
_local3 = _local3 + _local4.length;
} else {
pNum++;
pages[pNum] = "";
simplePages[pNum] = "";
_local3 = 0;
j--;
}
}
} else {
pNum++;
pages[pNum] = "";
simplePages[pNum] = "";
_local3 = 0;
j--;
}
j++;
}
pNum++;
i++;
}
pNum--;
i = 0;
while (i <= pNum) {
var _local5 = 0;
while (pages[i].charAt(_local5) == newline) {
_local5++;
}
pages[i] = pages[i].substring(_local5, pages[i].length - 1);
simplePages[i] = simplePages[i].substring(_local5, simplePages[i].length - 1);
i++;
}
totalPages = pNum;
gotoAndPlay ("start");
} else {
gotoAndStop ("error");
}
};
Frame 3
function showTitle() {
cnt++;
if (cnt >= title_str.length) {
_root.titleCall_mc.title_txt.text = title_str.substr(0, cnt);
updateAfterEvent();
titleEnd = true;
clearInterval(showTitleID);
return(undefined);
}
_root.titleCall_mc.title_txt.text = title_str.substr(0, cnt);
updateAfterEvent();
}
this.titleCall_mc.title_txt.text = "";
this.bgmOn_btn.enabled = false;
this.bgmOff_btn.enabled = false;
count = 0;
cnt = 0;
titleEnd = false;
read = false;
showTitleID = setInterval(showTitle, 100);
Instance of Symbol 25 MovieClip "recommend_mc" in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_parent.titleEnd) {
this._visible = true;
this._alpha = 100;
}
if (_parent.read) {
this._visible = false;
}
}
Frame 4
if (titleEnd) {
titleEnd = false;
this.bgmOn_btn.enabled = true;
this.bgmOff_btn.enabled = true;
this.bgmOn_btn._alpha = 100;
this.bgmOff_btn._alpha = 100;
}
if (read) {
if (this.titleCall_mc.titleFade_mc._alpha < 100) {
this.titleCall_mc.titleFade_mc._alpha = this.titleCall_mc.titleFade_mc._alpha + 3;
} else {
this.titleCall_mc.titleFade_mc._alpha = 100;
gotoAndPlay ("start");
}
}
Frame 5
gotoAndPlay(_currentframe - 1);
Frame 6
function showText() {
if (showPage.charAt(cnt) == "<") {
var _local4 = cnt;
while (showPage.charAt(cnt) != ">") {
cnt++;
}
var _local5 = showPage.slice(_local4 + 1, cnt);
var _local3 = _local5.split("=");
switch (_local3[0]) {
case "img" :
_global.imgName = _local3[1];
_global.imgTag = true;
break;
case "blackout" :
_global.imgName = "black";
_global.imgTag = true;
break;
case "whiteout" :
_global.imgName = "white";
_global.imgTag = true;
break;
case "bgm" :
_global.bgmName = _local3[1];
_global.bgmTag = true;
break;
case "bgmdel" :
_global.bgmdelTag = true;
break;
case "se" :
_global.seName = _local3[1];
_global.seTag = true;
break;
case "movie" :
movieStart = true;
break;
case "subtitle" :
subtitleStart = true;
}
showPage = showPage.substr(0, _local4) + showPage.substr(cnt + 2);
cnt = _local4;
clearInterval(showTextID);
return(undefined);
}
cnt++;
if (cnt >= showPage.length) {
_root.stage_mc.novelBody_mc.pageWait_mc._visible = true;
pageWait = true;
_root._quality = "BEST";
_root.stage_mc.novelBody_mc.tempTxt_mc._visible = true;
_root.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt.text = showPage.substr(0, cnt);
_root.stage_mc.novelBody_mc.pageWait_mc._y = _root.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt._height + 23.3;
_root.textBMP = new flash.display.BitmapData(_root.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt._width + 40, _root.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt._height + 40, true, 16777215);
_root.textBMP.draw(_root.stage_mc.novelBody_mc.tempTxt_mc);
_root.stage_mc.novelBody_mc.novelTxt_mc.attachBitmap(_root.textBMP, 0);
_root.stage_mc.novelBody_mc.tempTxt_mc._visible = false;
_root._quality = "LOW";
updateAfterEvent();
clearInterval(showTextID);
return(undefined);
}
if (textClick || (textSpeed == 1)) {
textClick = false;
while (true) {
if ((showPage.charAt(cnt) == "\u3002") || (showPage.charAt(cnt + 1) == newline)) {
break;
}
cnt++;
if (cnt >= showPage.length) {
lock = false;
_root.stage_mc.novelBody_mc.pageWait_mc._visible = true;
pageWait = true;
_root._quality = "BEST";
_root.stage_mc.novelBody_mc.tempTxt_mc._visible = true;
_root.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt.text = showPage.substr(0, cnt);
_root.stage_mc.novelBody_mc.pageWait_mc._y = _root.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt._height + 23.3;
_root.textBMP = new flash.display.BitmapData(_root.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt._width + 40, _root.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt._height + 40, true, 16777215);
_root.textBMP.draw(_root.stage_mc.novelBody_mc.tempTxt_mc);
_root.stage_mc.novelBody_mc.novelTxt_mc.attachBitmap(_root.textBMP, 0);
_root.stage_mc.novelBody_mc.tempTxt_mc._visible = false;
_root._quality = "LOW";
updateAfterEvent();
clearInterval(showTextID);
return(undefined);
}
}
cnt++;
}
_root._quality = "BEST";
_root.stage_mc.novelBody_mc.tempTxt_mc._visible = true;
_root.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt.text = showPage.substr(0, cnt);
_root.textBMP = new flash.display.BitmapData(_root.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt._width + 40, _root.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt._height + 40, true, 16777215);
_root.textBMP.draw(_root.stage_mc.novelBody_mc.tempTxt_mc);
_root.stage_mc.novelBody_mc.novelTxt_mc.attachBitmap(_root.textBMP, 0);
_root.stage_mc.novelBody_mc.tempTxt_mc._visible = false;
_root._quality = "LOW";
updateAfterEvent();
if ((showPage.charAt(cnt - 1) == "\u3002") || (showPage.charAt(cnt) == newline)) {
while (showPage.charAt(cnt) == newline) {
cnt++;
}
if (cnt >= showPage.length) {
_root.stage_mc.novelBody_mc.pageWait_mc._visible = true;
_root.stage_mc.novelBody_mc.pageWait_mc._y = _root.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt._height + 23.3;
pageWait = true;
clearInterval(showTextID);
return(undefined);
}
_root.stage_mc.novelBody_mc.clickWait_mc._y = _root.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt._height + 23.3;
_root.stage_mc.novelBody_mc.clickWait_mc._visible = true;
clickWait = true;
clearInterval(showTextID);
return(undefined);
}
}
showPage = pages[pageNum];
cnt = 0;
_global.clickLock = false;
textDel = false;
ppbtn = false;
npbtn = false;
lock = false;
textClick = false;
clickWait = false;
pageWait = false;
clickON = false;
changePage = false;
textVisible = true;
this.nextPage_btn._visible = false;
this.prevPage_btn._visible = false;
this.stage_mc.novelBody_mc.clickWait_mc._visible = false;
this.stage_mc.novelBody_mc.pageWait_mc._visible = false;
this.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt.autoSize = true;
_global.imgName = "";
_global.imgTag = false;
_global.bgmName = "";
_global.bgmTag = false;
_global.seName = "";
_global.seTag = false;
_global.bgmdelTag = false;
var movieStart = false;
var subtitleStart = false;
var imgFadein = -1;
var textBMP;
var topImg = flash.display.BitmapData.loadBitmap("black");
var bottomImg;
this.stage_mc.topImg_mc.attachBitmap(topImg, 1);
this.stage_mc.bottomImg_mc._visible = false;
showTextID = setInterval(showText, textSpeed);
Instance of Symbol 48 MovieClip "stage_mc" in Frame 6
onClipEvent (load) {
stop();
}
Instance of Symbol 50 MovieClip in Frame 6
onClipEvent (load) {
key_DEL = 0;
rl_num = 999;
var rollBMP;
}
onClipEvent (keyDown) {
if (Key.isDown(13) && (_root.lock == false)) {
if (this._parent.stage_mc._currentframe == 1) {
if (_root.textVisible) {
if (_root.clickWait) {
_root.clickWait = false;
_root.clickON = true;
} else if (_root.pageWait) {
_root.pageWait = false;
_root.changePage = true;
} else {
_root.textClick = true;
}
} else {
_root.textVisible = true;
this._parent.stage_mc.novelBody_mc._visible = true;
this._parent.textVisible_btn._visible = true;
this._parent.txtsp_mc._visible = true;
this._parent.soundVol_mc._visible = true;
}
} else if (this._parent.stage_mc._currentframe == 2) {
this._parent.stage_mc.gotoAndStop(1);
this._parent.stage_mc.novelBody_mc._visible = true;
this._parent.textVisible_btn._visible = true;
this._parent.nextPage_btn._visible = false;
this._parent.txtsp_mc._visible = true;
this._parent.soundVol_mc._visible = true;
}
}
if ((Key.isDown(38) && (_root.lock == false)) && (this._parent.textVisible)) {
if ((this._parent.stage_mc._currentframe == 1) && (this._parent.pageNum > 0)) {
this._parent.textVisible_btn._visible = false;
this._parent.txtsp_mc._visible = false;
this._parent.soundVol_mc._visible = false;
this._parent.stage_mc.nextFrame();
this._parent.stage_mc.novelBody_mc._visible = false;
this._parent.nextPage_btn._visible = true;
this._parent.nextPage_btn._alpha = 100;
_root._quality = "BEST";
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc._visible = true;
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt.text = this._parent.simplePages[this._parent.pageNum - 1];
rollBMP = new flash.display.BitmapData(this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt._width + 40, this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt._height + 40, true, 16777215);
rollBMP.draw(this._parent.stage_mc.rollBack_mc.tempRollTxt_mc);
this._parent.stage_mc.rollBack_mc.rollTxt_mc.attachBitmap(rollBMP, 0);
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc._visible = false;
_root._quality = "LOW";
rl_num = this._parent.pageNum - 1;
} else if ((this._parent.stage_mc._currentframe == 2) && (rl_num > 0)) {
rl_num--;
_root._quality = "BEST";
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc._visible = true;
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt.text = this._parent.simplePages[rl_num];
rollBMP = new flash.display.BitmapData(this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt._width + 40, this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt._height + 40, true, 16777215);
rollBMP.draw(this._parent.stage_mc.rollBack_mc.tempRollTxt_mc);
this._parent.stage_mc.rollBack_mc.rollTxt_mc.attachBitmap(rollBMP, 0);
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc._visible = false;
_root._quality = "LOW";
}
}
if ((Key.isDown(40) && (_root.lock == false)) && (this._parent.textVisible)) {
this._parent.npbtn = false;
if (this._parent.stage_mc._currentframe == 2) {
if (rl_num < (this._parent.pageNum - 1)) {
rl_num++;
_root._quality = "BEST";
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc._visible = true;
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt.text = this._parent.simplePages[rl_num];
rollBMP = new flash.display.BitmapData(this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt._width + 40, this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt._height + 40, true, 16777215);
rollBMP.draw(this._parent.stage_mc.rollBack_mc.tempRollTxt_mc);
this._parent.stage_mc.rollBack_mc.rollTxt_mc.attachBitmap(rollBMP, 0);
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc._visible = false;
_root._quality = "LOW";
} else if (rl_num == (this._parent.pageNum - 1)) {
this._parent.stage_mc.gotoAndStop(1);
this._parent.nextPage_btn._visible = false;
this._parent.stage_mc.novelBody_mc._visible = true;
this._parent.textVisible_btn._visible = true;
this._parent.txtsp_mc._visible = true;
this._parent.soundVol_mc._visible = true;
}
}
}
if (Key.isDown(39)) {
if (bgmVol < 100) {
_global.bgmVol = _global.bgmVol + 1;
} else {
_global.bgmVol = 100;
}
_global.bgm.setVolume(bgmVol);
}
if (Key.isDown(37)) {
if (bgmVol > 0) {
_global.bgmVol = _global.bgmVol - 1;
} else {
_global.bgmVol = 0;
}
_global.bgm.setVolume(bgmVol);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(17) && (_root.lock == false)) {
if (this._parent.stage_mc._currentframe == 1) {
if (_root.textVisible) {
if (_root.clickWait) {
_root.clickWait = false;
_root.clickON = true;
} else if (_root.pageWait) {
_root.pageWait = false;
_root.changePage = true;
} else {
_root.textClick = true;
}
} else {
_root.textVisible = true;
this._parent.stage_mc.novelBody_mc._visible = true;
this._parent.textVisible_btn._visible = true;
this._parent.txtsp_mc._visible = true;
this._parent.soundVol_mc._visible = true;
}
} else if (this._parent.stage_mc._currentframe == 2) {
this._parent.stage_mc.gotoAndStop(1);
this._parent.stage_mc.novelBody_mc._visible = true;
this._parent.textVisible_btn._visible = true;
this._parent.nextPage_btn._visible = false;
this._parent.txtsp_mc._visible = true;
this._parent.soundVol_mc._visible = true;
}
}
if (this._parent.ppbtn && (this._parent.textVisible)) {
this._parent.ppbtn = false;
if ((this._parent.stage_mc._currentframe == 1) && (this._parent.pageNum > 0)) {
this._parent.textVisible_btn._visible = false;
this._parent.txtsp_mc._visible = false;
this._parent.soundVol_mc._visible = false;
this._parent.stage_mc.nextFrame();
this._parent.stage_mc.novelBody_mc._visible = false;
this._parent.nextPage_btn._visible = true;
this._parent.nextPage_btn._alpha = 100;
_root._quality = "BEST";
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc._visible = true;
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt.text = this._parent.simplePages[this._parent.pageNum - 1];
rollBMP = new flash.display.BitmapData(this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt._width + 40, this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt._height + 40, true, 16777215);
rollBMP.draw(this._parent.stage_mc.rollBack_mc.tempRollTxt_mc);
this._parent.stage_mc.rollBack_mc.rollTxt_mc.attachBitmap(rollBMP, 0);
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc._visible = false;
_root._quality = "LOW";
rl_num = this._parent.pageNum - 1;
} else if ((this._parent.stage_mc._currentframe == 2) && (rl_num > 0)) {
rl_num--;
_root._quality = "BEST";
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc._visible = true;
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt.text = this._parent.simplePages[rl_num];
rollBMP = new flash.display.BitmapData(this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt._width + 40, this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt._height + 40, true, 16777215);
rollBMP.draw(this._parent.stage_mc.rollBack_mc.tempRollTxt_mc);
this._parent.stage_mc.rollBack_mc.rollTxt_mc.attachBitmap(rollBMP, 0);
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc._visible = false;
_root._quality = "LOW";
}
}
if (this._parent.npbtn && (this._parent.textVisible)) {
this._parent.npbtn = false;
if (this._parent.stage_mc._currentframe == 2) {
if (rl_num < (this._parent.pageNum - 1)) {
rl_num++;
_root._quality = "BEST";
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc._visible = true;
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt.text = this._parent.simplePages[rl_num];
rollBMP = new flash.display.BitmapData(this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt._width + 40, this._parent.stage_mc.rollBack_mc.tempRollTxt_mc.roll_txt._height + 40, true, 16777215);
rollBMP.draw(this._parent.stage_mc.rollBack_mc.tempRollTxt_mc);
this._parent.stage_mc.rollBack_mc.rollTxt_mc.attachBitmap(rollBMP, 0);
this._parent.stage_mc.rollBack_mc.tempRollTxt_mc._visible = false;
_root._quality = "LOW";
} else if (rl_num == (this._parent.pageNum - 1)) {
this._parent.stage_mc.gotoAndStop(1);
this._parent.nextPage_btn._visible = false;
this._parent.stage_mc.novelBody_mc._visible = true;
this._parent.textVisible_btn._visible = true;
}
}
}
if (((this._parent.pageNum > 0) && (this._parent.textVisible)) && (_root.lock == false)) {
this._parent.prevPage_btn._visible = true;
this._parent.prevPage_btn._alpha = 100;
} else {
this._parent.prevPage_btn._visible = false;
}
if ((((Key.isDown(46) && (key_DEL == 0)) && (_root.lock == false)) || (this._parent.textDel)) && (this._parent.stage_mc._currentframe == 1)) {
this._parent.textDel = false;
if (this._parent.textVisible) {
this._parent.textVisible = false;
this._parent.prevPage_btn._visible = false;
this._parent.stage_mc.novelBody_mc._visible = false;
this._parent.textVisible_btn._visible = false;
this._parent.txtsp_mc._visible = false;
this._parent.soundVol_mc._visible = false;
} else {
this._parent.textVisible = true;
this._parent.stage_mc.novelBody_mc._visible = true;
this._parent.textVisible_btn._visible = true;
this._parent.txtsp_mc._visible = true;
this._parent.soundVol_mc._visible = true;
}
}
key_DEL = Key.isDown(46);
}
onClipEvent (mouseDown) {
if (clickLock == false) {
if (this._parent.stage_mc._currentframe == 1) {
if (this._parent.textVisible) {
if (_root.lock == false) {
if (_root.clickWait) {
_root.clickWait = false;
_root.clickON = true;
} else if (_root.pageWait) {
_root.pageWait = false;
_root.changePage = true;
} else {
_root.textClick = true;
}
}
} else {
this._parent.textVisible = true;
this._parent.stage_mc.novelBody_mc._visible = true;
this._parent.textVisible_btn._visible = true;
this._parent.txtsp_mc._visible = true;
this._parent.soundVol_mc._visible = true;
}
} else if (this._parent.stage_mc._currentframe == 2) {
this._parent.stage_mc.gotoAndStop(1);
this._parent.stage_mc.novelBody_mc._visible = true;
this._parent.textVisible_btn._visible = true;
this._parent.nextPage_btn._visible = false;
this._parent.txtsp_mc._visible = true;
this._parent.soundVol_mc._visible = true;
}
}
}
Instance of Symbol 82 MovieClip "txtsp_mc" in Frame 6
onClipEvent (load) {
stop();
}
on (rollOver) {
_global.clickLock = true;
nextFrame();
this.txspPre_mc._visible = true;
this.txspPre_mc._alpha = 100;
}
on (rollOut) {
_global.clickLock = false;
this.txspPre_mc._visible = false;
prevFrame();
}
on (press) {
this.txspPre_mc._visible = false;
switch (_root.textSpeed) {
case 10 :
_root.textSpeed = 2;
gotoAndStop (4);
break;
case 2 :
_root.textSpeed = 1;
gotoAndStop (6);
break;
case 1 :
_root.textSpeed = 80;
gotoAndStop (8);
break;
case 80 :
_root.textSpeed = 10;
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (clickLock == false) {
switch (_root.textSpeed) {
case 10 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (3);
break;
case 1 :
gotoAndStop (5);
break;
case 80 :
gotoAndStop (7);
}
}
}
Instance of Symbol 91 MovieClip "soundVol_mc" in Frame 6
onClipEvent (load) {
stop();
if (mute) {
gotoAndStop (3);
}
}
on (rollOver) {
_global.clickLock = true;
if (mute) {
gotoAndStop (4);
} else {
gotoAndStop (2);
}
}
on (rollOut) {
_global.clickLock = false;
if (mute) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
on (release) {
if (mute) {
_global.mute = false;
_global.bgm.setVolume(bgmVol);
_global.voice.setVolume(voiceVol);
_global.se.setVolume(seVol);
gotoAndStop (1);
} else {
_global.mute = true;
_global.bgm.setVolume(0);
_global.voice.setVolume(0);
_global.se.setVolume(0);
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (mute) {
_global.bgm.setVolume(0);
_global.voice.setVolume(0);
_global.se.setVolume(0);
}
if (clickLock == false) {
if (mute) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
}
Frame 7
if (clickON) {
clickON = false;
this.stage_mc.novelBody_mc.clickWait_mc._visible = false;
showTextID = setInterval(showText, textSpeed);
}
if (changePage) {
pageNum++;
if (pageNum > totalPages) {
this.stage_mc.novelBody_mc.pageWait_mc._visible = false;
gotoAndPlay ("end");
} else {
changePage = false;
this.stage_mc.novelBody_mc.pageWait_mc._visible = false;
showPage = pages[pageNum];
cnt = 0;
_root._quality = "BEST";
_root.stage_mc.novelBody_mc.tempTxt_mc._visible = true;
_root.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt.text = "";
_root.textBMP = new flash.display.BitmapData(_root.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt._width + 40, _root.stage_mc.novelBody_mc.tempTxt_mc.scenario_txt._height + 40, true, 16777215);
_root.textBMP.draw(_root.stage_mc.novelBody_mc.tempTxt_mc);
_root.stage_mc.novelBody_mc.novelTxt_mc.attachBitmap(_root.textBMP, 0);
_root.stage_mc.novelBody_mc.tempTxt_mc._visible = false;
_root._quality = "LOW";
showTextID = setInterval(showText, textSpeed);
}
}
if (imgTag) {
_global.clickLock = true;
lock = true;
_global.imgTag = false;
this.stage_mc.bottomImg_mc._visible = true;
bottomImg = flash.display.BitmapData.loadBitmap(imgName);
this.stage_mc.bottomImg_mc.attachBitmap(bottomImg, 1);
imgFadeout = true;
this.soundVol_mc._visible = false;
this.textVisible_btn._visible = false;
this.txtsp_mc._visible = false;
this.prevPage_btn._visible = false;
}
if (bgmTag || (bgmdelTag)) {
if (bgm.getVolume() > 10) {
bgm.setVolume(bgm.getVolume() - 10);
} else {
bgm.stop();
if (bgmdelTag) {
_global.bgmdelTag = false;
} else {
bgm.attachSound(bgmName);
if (mute) {
bgm.setVolume(0);
} else {
bgm.setVolume(bgmVol);
}
bgm.start(0, 999);
_global.bgmTag = false;
}
showTextID = setInterval(showText, textSpeed);
}
}
if (seTag) {
se.setVolume(0);
se.stop();
se.attachSound(seName);
if (mute) {
se.setVolume(0);
} else {
se.setVolume(seVol);
}
se.start(0, 1);
_global.seTag = false;
showTextID = setInterval(showText, textSpeed);
}
if (imgFadeout) {
if (this.stage_mc.novelBody_mc._alpha > 10) {
this.stage_mc.novelBody_mc._alpha = this.stage_mc.novelBody_mc._alpha - 10;
} else {
this.stage_mc.novelBody_mc._alpha = 0;
}
if (this.stage_mc.novelBody_mc._alpha == 0) {
if (this.stage_mc.topImg_mc._alpha > 10) {
this.stage_mc.topImg_mc._alpha = this.stage_mc.topImg_mc._alpha - 10;
} else {
this.stage_mc.topImg_mc._alpha = 0;
this.stage_mc.novelBody_mc._alpha = 0;
this.stage_mc.topImg_mc.attachBitmap(bottomImg, 1);
this.stage_mc.topImg_mc._alpha = 100;
this.stage_mc.bottomImg_mc._visible = false;
imgFadeout = false;
imgFadein = 1;
}
}
}
if (imgFadein > 0) {
imgFadein++;
if (imgFadein > 5) {
if (this.stage_mc.novelBody_mc._alpha < 90) {
this.stage_mc.novelBody_mc._alpha = this.stage_mc.novelBody_mc._alpha + 10;
} else {
this.stage_mc.novelBody_mc._alpha = 100;
_global.clickLock = false;
lock = false;
this.stage_mc.novelBody_mc._visible = true;
this.soundVol_mc._visible = true;
this.textVisible_btn._visible = true;
this.txtsp_mc._visible = true;
if (pageNum > 0) {
this.prevPage_btn._visible = true;
}
imgFadein = -1;
showTextID = setInterval(showText, textSpeed);
}
}
}
if (movieStart) {
movieStart = false;
gotoAndPlay ("movie");
}
if (subtitleStart) {
subtitleStart = false;
gotoAndPlay ("subTitle");
}
Frame 8
gotoAndPlay(_currentframe - 1);
Frame 9
var ebgmVol;
Frame 11
gotoAndPlay(_currentframe - 1);
Frame 12
var fadeOutFinish = false;
var bgmFadeFinish = false;
var seFadeFinish = false;
this.fadeOut_mc._alpha = 0;
Frame 13
if (bgm.getVolume() > 5) {
bgm.setVolume(bgm.getVolume() - 5);
} else if (bgmFadeFinish == false) {
bgm.setVolume(0);
bgm.stop();
bgmFadeFinish = true;
}
if (se.getVolume() > 5) {
se.setVolume(se.getVolume() - 5);
} else if (seFadeFinish == false) {
se.setVolume(0);
bgm.stop();
seFadeFinish = true;
}
if (this.fadeOut_mc._alpha < 98) {
this.fadeOut_mc._alpha = this.fadeOut_mc._alpha + 2;
} else {
this.fadeOut_mc._alpha = 100;
fadeOutFinish = true;
}
if ((bgmFadeFinish && (seFadeFinish)) && (fadeOutFinish)) {
bgmFadeFinish = false;
seFadeFinish = false;
fadeOutFinish = false;
this.opMovie_mc.play();
stop();
}
Frame 14
gotoAndPlay(_currentframe - 1);
Frame 15
var fadeOutFinish = false;
var bgmFadeFinish = false;
var seFadeFinish = false;
this.fadeOut_mc._alpha = 0;
Frame 16
if (bgm.getVolume() > 5) {
bgm.setVolume(bgm.getVolume() - 5);
} else if (bgmFadeFinish == false) {
bgm.setVolume(0);
bgm.stop();
bgmFadeFinish = true;
}
if (se.getVolume() > 5) {
se.setVolume(se.getVolume() - 5);
} else if (seFadeFinish == false) {
se.setVolume(0);
bgm.stop();
seFadeFinish = true;
}
if (this.fadeOut_mc._alpha < 95) {
this.fadeOut_mc._alpha = this.fadeOut_mc._alpha + 5;
} else {
this.fadeOut_mc._alpha = 100;
fadeOutFinish = true;
}
if ((bgmFadeFinish && (seFadeFinish)) && (fadeOutFinish)) {
bgmFadeFinish = false;
seFadeFinish = false;
fadeOutFinish = false;
this.subTitle_mc.play();
stop();
}
Frame 17
gotoAndPlay(_currentframe - 1);
Frame 18
stop();
Symbol 23 Button
on (release) {
read = true;
this.bgmOn_btn._visible = false;
this.bgmOff_btn._visible = false;
}
Symbol 27 Button
on (release) {
_global.mute = true;
read = true;
this.bgmOn_btn._visible = false;
this.bgmOff_btn._visible = false;
}
Instance of Symbol 31 MovieClip "clickWait_mc" in Symbol 37 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 33 MovieClip "pageWait_mc" in Symbol 37 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 57 Button
on (rollOver) {
_global.clickLock = true;
}
on (rollOut) {
_global.clickLock = false;
}
on (release) {
textDel = true;
}
Symbol 64 Button
on (rollOver) {
_global.clickLock = true;
}
on (rollOut) {
_global.clickLock = false;
}
on (release) {
ppbtn = true;
}
Symbol 68 Button
on (rollOver) {
_global.clickLock = true;
}
on (rollOut) {
_global.clickLock = false;
}
on (release) {
npbtn = true;
}
Symbol 95 MovieClip Frame 60
stop();
this._parent.stage_mc.novelBody_mc.scenario_txt.text = "";