Frame 1
function cmode() {
if (Key.isDown(32)) {
if (_global.code_flag == 0) {
System.useCodepage = false;
_global.code_flag = 1;
} else {
System.useCodepage = true;
_global.code_flag = 0;
}
}
}
_global.blood_flag = 0;
_global.code_flag = 0;
System.useCodepage = true;
_level0.selImg.loadMovie("img/select.swf");
Instance of Symbol 41 MovieClip in Frame 1
onClipEvent (keyDown) {
_level0.cmode();
}
Instance of Symbol 43 MovieClip "selBlood" in Frame 3
on (release) {
_global.blood_flag = 0;
_level0.gotoAndStop(5);
}
Instance of Symbol 43 MovieClip "selNoBlood" in Frame 3
on (release) {
_global.blood_flag = 1;
_level0.gotoAndStop(5);
}
Frame 4
this.stop();
Frame 5
function clickCount() {
if (c_count == 269) {
playMouseX = _level0._xmouse;
playMouseY = _level0._ymouse;
if ((playMouseX > 297) && (playMouseX < 472)) {
if ((playMouseY > 75) && (playMouseY < 125)) {
c_count = 270;
sel_flag = 0;
}
}
if ((playMouseX > 297) && (playMouseX < 472)) {
if ((playMouseY > 165) && (playMouseY < 215)) {
c_count = 473;
sel_flag = 1;
}
}
} else if (c_count != 760) {
c_count = c_count + 1;
}
if (sel_flag == 0) {
if (c_count == moeNum[n + 1]) {
n++;
if (_global.blood_flag == 0) {
imgLoad();
} else {
nobimgLoad();
}
}
} else if (sel_flag == 1) {
if (c_count == yayoiNum[n + 1]) {
n++;
if (_global.blood_flag == 0) {
imgLoad();
} else {
nobimgLoad();
}
}
}
}
function next() {
fontBase();
if ((sel_flag == 0) && (c_count == 472)) {
c_count = 741;
}
}
function nextJump() {
if ((c_count != 269) && (c_count != 760)) {
c_count = img_next;
n = n + 1;
if (_global.blood_flag == 0) {
imgLoad();
} else {
nobimgLoad();
}
next();
}
}
function revJump() {
if (c_count > 10) {
c_count = img_rev;
n = n - 1;
if (_global.blood_flag == 0) {
imgLoad();
} else {
nobimgLoad();
}
next();
}
}
function disp_ctrl() {
if (disp_flag == 1) {
_level0.btnSet.dispOn._visible = false;
_level0.playMsg._visible = false;
disp_flag = 0;
} else {
_level0.btnSet.dispOn._visible = true;
_level0.playMsg._visible = true;
disp_flag = 1;
}
}
function disp_Mouse() {
if (disp_flag == 0) {
_level0.btnSet.dispOn._visible = true;
_level0.playMsg._visible = true;
disp_flag = 1;
}
}
function disp_Key() {
if (Key.isDown(13)) {
if (disp_flag == 0) {
_level0.btnSet.dispOn._visible = true;
_level0.playMsg._visible = true;
disp_flag = 1;
}
_level0.clickCount();
_level0.next();
}
if (Key.isDown(46)) {
if (disp_flag == 0) {
_level0.btnSet.dispOn._visible = true;
_level0.playMsg._visible = true;
disp_flag = 1;
} else if (disp_flag == 1) {
_level0.btnSet.dispOn._visible = false;
_level0.playMsg._visible = false;
disp_flag = 0;
}
}
if (Key.isDown(17)) {
if (sel_flag == 0) {
_level0.playImg.gotoAndPlay(moeStart[n]);
} else if (sel_flag == 1) {
_level0.playImg.gotoAndPlay(yayoiStart[n]);
}
}
}
_global.c_count = 0;
_global.disp_flag = 1;
_global.img_next = 1;
_global.img_rev = 1;
_global.sel_flag = 0;
_global.play_img;
_global.imgID;
_global.n = 0;
moeNum = [0, 1, 11, 39, 51, 70, 87, 134, 151, 187, 223, 266, 269, 270, 279, 288, 307, 314, 328, 341, 348, 367, 387, 389, 405, 406, 427, 431, 437, 742, 760];
moeStart = [0, 1, 1, 16, 26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 26, 39, 1, 16, 24, 1, 16, 1, 19, 1, 16, 1, 1, 16, 1, 1];
moeSwf = [0, 0, 1, 1, 1, 2, 3, 4, 5, 6, 7, 13, 22, 8, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 0, 19, 19, 21, 0];
yayoiNum = [0, 1, 11, 39, 51, 70, 87, 134, 151, 187, 223, 266, 269, 473, 489, 497, 513, 529, 540, 552, 565, 600, 603, 654, 664, 676, 679, 693, 694, 705, 742, 760];
yayoiStart = [0, 1, 1, 16, 26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 24, 29, 1, 19, 28, 1, 16, 1, 40, 1, 16, 1, 1, 3, 1, 1];
yayoiSwf = [0, 0, 1, 1, 1, 2, 3, 4, 5, 6, 7, 13, 22, 13, 14, 14, 14, 14, 15, 15, 15, 16, 16, 17, 17, 18, 18, 0, 20, 20, 21, 0];
function fontBase() {
theTextFormat = new TextFormat();
fSet = _level0.playMsg.font_array[c_count];
if (fSet == 1) {
_level0.playMsg.cara_name = "";
_level0.playMsg.msg.textColor = 16777215 /* 0xFFFFFF */;
_level0.playMsg.msg.embedFonts = false;
with (theTextFormat) {
font = "_\u30B4\u30B7\u30C3\u30AF";
size = 20;
bold = true;
}
_level0.playMsg.msg.setNewTextFormat(theTextFormat);
}
if (fSet == 2) {
_level0.playMsg.cara_name = "\u840C";
_level0.playMsg.msg.textColor = 16764108 /* 0xFFCCCC */;
_level0.playMsg.msg.embedFonts = false;
with (theTextFormat) {
font = "_\u30B4\u30B7\u30C3\u30AF";
size = 20;
bold = true;
}
_level0.playMsg.msg.setNewTextFormat(theTextFormat);
}
if (fSet == 3) {
_level0.playMsg.cara_name = "\u5F25\u751F";
_level0.playMsg.msg.textColor = 16764108 /* 0xFFCCCC */;
_level0.playMsg.msg.embedFonts = false;
with (theTextFormat) {
font = "_\u30B4\u30B7\u30C3\u30AF";
size = 20;
bold = true;
}
_level0.playMsg.msg.setNewTextFormat(theTextFormat);
}
if (fSet == 4) {
_level0.playMsg.cara_name = "\u5C11\u5973";
_level0.playMsg.msg.textColor = 16764159 /* 0xFFCCFF */;
_level0.playMsg.msg.embedFonts = false;
with (theTextFormat) {
font = "_\u30B4\u30B7\u30C3\u30AF";
size = 20;
bold = true;
}
_level0.playMsg.msg.setNewTextFormat(theTextFormat);
}
if (fSet == 5) {
_level0.playMsg.cara_name = "\u5C11\u5973";
_level0.playMsg.msg.textColor = 16777164 /* 0xFFFFCC */;
_level0.playMsg.msg.embedFonts = false;
with (theTextFormat) {
font = "_\u30B4\u30B7\u30C3\u30AF";
size = 20;
bold = true;
}
_level0.playMsg.msg.setNewTextFormat(theTextFormat);
}
if (fSet == 6) {
_level0.playMsg.cara_name = "\u7537";
_level0.playMsg.msg.textColor = 13434879 /* 0xCCFFFF */;
_level0.playMsg.msg.embedFonts = false;
with (theTextFormat) {
font = "_\u30B4\u30B7\u30C3\u30AF";
size = 20;
bold = true;
}
_level0.playMsg.msg.setNewTextFormat(theTextFormat);
}
if (fSet == 7) {
_level0.playMsg.cara_name = "\u7537";
_level0.playMsg.msg.textColor = 14155701 /* 0xD7FFB5 */;
_level0.playMsg.msg.embedFonts = false;
with (theTextFormat) {
font = "_\u30B4\u30B7\u30C3\u30AF";
size = 20;
}
_level0.playMsg.msg.setNewTextFormat(theTextFormat);
}
if (fSet == 8) {
_level0.playMsg.cara_name = "\u840C\u30FB\u5F25\u751F";
_level0.playMsg.msg.textColor = 16764108 /* 0xFFCCCC */;
_level0.playMsg.msg.embedFonts = false;
with (theTextFormat) {
font = "_\u30B4\u30B7\u30C3\u30AF";
size = 20;
bold = true;
}
_level0.playMsg.msg.setNewTextFormat(theTextFormat);
}
if (fSet == 11) {
_level0.playMsg.cara_name = "";
_level0.playMsg.msg.textColor = 16777215 /* 0xFFFFFF */;
_level0.playMsg.msg.embedFonts = true;
with (theTextFormat) {
font = "CRP\uFF23\uFF06\uFF27\u534A\u53E4\u5370";
size = 24;
}
_level0.playMsg.msg.setNewTextFormat(theTextFormat);
}
if (fSet == 12) {
_level0.playMsg.cara_name = "\u840C";
_level0.playMsg.msg.textColor = 16764108 /* 0xFFCCCC */;
_level0.playMsg.msg.embedFonts = true;
with (theTextFormat) {
font = "CRP\uFF23\uFF06\uFF27\u534A\u53E4\u5370";
size = 24;
}
_level0.playMsg.msg.setNewTextFormat(theTextFormat);
}
if (fSet == 13) {
_level0.playMsg.cara_name = "\u5F25\u751F";
_level0.playMsg.msg.textColor = 16764108 /* 0xFFCCCC */;
_level0.playMsg.msg.embedFonts = true;
with (theTextFormat) {
font = "CRP\uFF23\uFF06\uFF27\u534A\u53E4\u5370";
size = 24;
}
_level0.playMsg.msg.setNewTextFormat(theTextFormat);
}
if (fSet == 14) {
_level0.playMsg.cara_name = "\u5C11\u5973";
_level0.playMsg.msg.textColor = 16764159 /* 0xFFCCFF */;
_level0.playMsg.msg.embedFonts = true;
with (theTextFormat) {
font = "CRP\uFF23\uFF06\uFF27\u534A\u53E4\u5370";
size = 24;
}
_level0.playMsg.msg.setNewTextFormat(theTextFormat);
}
if (fSet == 15) {
_level0.playMsg.cara_name = "\u5C11\u5973";
_level0.playMsg.msg.textColor = 16777164 /* 0xFFFFCC */;
_level0.playMsg.msg.embedFonts = true;
with (theTextFormat) {
font = "CRP\uFF23\uFF06\uFF27\u534A\u53E4\u5370";
size = 24;
}
_level0.playMsg.msg.setNewTextFormat(theTextFormat);
}
if (fSet == 16) {
_level0.playMsg.cara_name = "\u7537";
_level0.playMsg.msg.textColor = 13434879 /* 0xCCFFFF */;
_level0.playMsg.msg.embedFonts = true;
with (theTextFormat) {
font = "CRP\uFF23\uFF06\uFF27\u534A\u53E4\u5370";
size = 24;
}
_level0.playMsg.msg.setNewTextFormat(theTextFormat);
}
if (fSet == 17) {
_level0.playMsg.cara_name = "\u7537";
_level0.playMsg.msg.textColor = 14155701 /* 0xD7FFB5 */;
_level0.playMsg.msg.embedFonts = true;
with (theTextFormat) {
font = "CRP\uFF23\uFF06\uFF27\u534A\u53E4\u5370";
size = 24;
}
_level0.playMsg.msg.setNewTextFormat(theTextFormat);
}
_level0.playMsg.scene = _level0.playMsg.txt_array[c_count];
}
function imgLoad() {
if (sel_flag == 0) {
if (c_count == moeNum[n]) {
img_rev = moeNum[n - 1];
img_next = moeNum[n + 1];
if (imgID != moeSwf[n]) {
play_img = moeStart[n];
_level0.playImg.loadMovie(("img/" + moeSwf[n]) + ".swf");
imgID = moeSwf[n];
} else {
_level0.playImg.gotoAndPlay(moeStart[n]);
}
}
}
if (sel_flag == 1) {
if (c_count == yayoiNum[n]) {
img_rev = yayoiNum[n - 1];
img_next = yayoiNum[n + 1];
if (imgID != yayoiSwf[n]) {
play_img = yayoiStart[n];
_level0.playImg.loadMovie(("img/" + yayoiSwf[n]) + ".swf");
imgID = yayoiSwf[n];
} else {
_level0.playImg.gotoAndPlay(yayoiStart[n]);
}
}
}
}
function nobimgLoad() {
if (sel_flag == 0) {
if (c_count == moeNum[n]) {
img_rev = moeNum[n - 1];
img_next = moeNum[n + 1];
if (imgID != moeSwf[n]) {
play_img = moeStart[n];
if (((((((moeSwf[n] == 3) || (moeSwf[n] == 4)) || (moeSwf[n] == 8)) || (moeSwf[n] == 9)) || (moeSwf[n] == 10)) || (moeSwf[n] == 11)) || (moeSwf[n] == 12)) {
_level0.playImg.loadMovie(("img/" + moeSwf[n]) + "nob.swf");
imgID = moeSwf[n];
} else {
_level0.playImg.loadMovie(("img/" + moeSwf[n]) + ".swf");
imgID = moeSwf[n];
}
} else {
_level0.playImg.gotoAndPlay(moeStart[n]);
}
}
}
if (sel_flag == 1) {
if (c_count == yayoiNum[n]) {
img_rev = yayoiNum[n - 1];
img_next = yayoiNum[n + 1];
if (imgID != yayoiSwf[n]) {
play_img = yayoiStart[n];
if ((((((((yayoiSwf[n] == 3) || (yayoiSwf[n] == 4)) || (yayoiSwf[n] == 14)) || (yayoiSwf[n] == 15)) || (yayoiSwf[n] == 16)) || (yayoiSwf[n] == 17)) || (yayoiSwf[n] == 18)) || (yayoiSwf[n] == 20)) {
_level0.playImg.loadMovie(("img/" + yayoiSwf[n]) + "nob.swf");
imgID = yayoiSwf[n];
} else {
_level0.playImg.loadMovie(("img/" + yayoiSwf[n]) + ".swf");
imgID = yayoiSwf[n];
}
} else {
_level0.playImg.gotoAndPlay(yayoiStart[n]);
}
}
}
}
Instance of Symbol 46 MovieClip "playImg" in Frame 5
onClipEvent (data) {
if ((this.getBytesTotal() > 0) && (this.getBytesLoaded() >= this.getBytesTotal())) {
this.gotoAndPlay(_level0.play_img);
} else {
this.stop();
}
}
Instance of Symbol 54 MovieClip "playMsg" in Frame 5
onClipEvent (load) {
if (_global.code_flag == 0) {
this.loadVariables("item/story.txt");
txt_array = new Array();
this.loadVariables("item/fontset.txt");
font_array = new Array();
} else {
this.loadVariables("item/storyutf8.txt");
txt_array = new Array();
this.loadVariables("item/fontsetutf8.txt");
font_array = new Array();
}
}
onClipEvent (data) {
i = 0;
while (i <= 760) {
txt_array.push(eval ("message" + i));
font_array.push(eval ("fstyle" + i));
i++;
}
}
Instance of Symbol 41 MovieClip "flagA" in Frame 5
onClipEvent (mouseDown) {
playMouseX = _level0._xmouse;
if ((playMouseX > 65) && (playMouseX < 705)) {
_level0.disp_Mouse();
_level0.clickCount();
_level0.next();
}
}
onClipEvent (keyDown) {
_level0.disp_Key();
}
Frame 9
this.stop();
Symbol 5 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var val = this.hostComponent.styleTable.embedFonts.value;
if (val != undefined) {
this.labelField.embedFonts = val;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 14 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 17 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 20 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 22 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 25 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(disabled_mc, "foregroundDisabled");
Symbol 28 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(dot_mc, "radioDot");
Symbol 29 MovieClip [frb_states] Frame 1
stop();
Symbol 29 MovieClip [frb_states] Frame 2
stop();
Symbol 29 MovieClip [frb_states] Frame 3
stop();
Symbol 29 MovieClip [frb_states] Frame 4
stop();
Symbol 29 MovieClip [frb_states] Frame 5
stop();
Symbol 30 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 34 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 34 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 37 MovieClip [FRadioButtonSymbol] Frame 1
#initclip 3
function FRadioButtonClass() {
this.init();
}
function FRadioButtonGroupClass() {
this.radioInstances = new Array();
}
FRadioButtonClass.prototype = new FUIComponentClass();
FRadioButtonGroupClass.prototype = new FUIComponentClass();
Object.registerClass("FRadioButtonSymbol", FRadioButtonClass);
FRadioButtonClass.prototype.init = function () {
if (this.initialState == undefined) {
this.selected = false;
} else {
this.selected = this.initialState;
}
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.boundingBox_mc._width = 0;
this.boundingBox_mc._height = 0;
this.attachMovie("frb_hitArea", "frb_hitArea_mc", 1);
this.attachMovie("frb_states", "frb_states_mc", 2);
this.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
this.setChangeHandler(this.changeHandler);
if (this.label != undefined) {
this.setLabel(this.label);
}
if (this.initialState == undefined) {
this.setValue(false);
} else {
this.setValue(this.initialState);
}
if (this.data == "") {
this.data = undefined;
} else {
this.setData(this.data);
}
this.addToRadioGroup();
this.ROLE_SYSTEM_RADIOBUTTON = 45;
this.STATE_SYSTEM_SELECTED = 16;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FRadioButtonClass.prototype.setHitArea = function (w, h) {
var hit = this.frb_hitArea_mc;
this.hitArea = hit;
if (this.frb_states_mc._width > w) {
hit._width = this.frb_states_mc._width;
} else {
hit._width = w;
}
hit._visible = false;
if (arguments.length > 1) {
hit._height = h;
}
};
FRadioButtonClass.prototype.txtFormat = function (pos) {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = pos)) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 0)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 0)) : undefined);
if (this.flabel_mc._height > this.height) {
super.setSize(this.width, this.flabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.setEnabled(this.enable);
};
FRadioButtonClass.prototype.setSize = function (w, h) {
this.setLabel(this.getLabel());
this.setLabelPlacement(this.labelPlacement);
if (this.frb_states_mc._height < this.flabel_mc.labelField._height) {
super.setSize(w, this.flabel_mc.labelField._height);
}
this.setHitArea(this.width, this.height);
this.setLabelPlacement(this.labelPlacement);
};
FRadioButtonClass.prototype.setLabelPlacement = function (pos) {
this.setLabel(this.getLabel());
this.txtFormat(pos);
var halfLabelH = (this.fLabel_mc._height / 2);
var halfFrameH = (this.frb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var radioWidth = this.frb_states_mc._width;
var frame = this.frb_states_mc;
var label = this.fLabel_mc;
var w = (this.width - frame._width);
if (frame._width > this.width) {
w = 0;
} else {
w = this.width - frame._width;
}
this.fLabel_mc.setSize(w);
if ((pos == "right") || (pos == undefined)) {
this.labelPlacement = "right";
this.frb_states_mc._x = 0;
this.fLabel_mc._x = radioWidth;
this.txtFormat("left");
} else if (pos == "left") {
this.labelPlacement = "left";
this.fLabel_mc._x = 0;
this.frb_states_mc._x = this.width - radioWidth;
this.txtFormat("right");
}
this.fLabel_mc._y = vertCenter;
this.frb_hitArea_mc._y = vertCenter;
this.setLabel(this.getLabel());
};
FRadioButtonClass.prototype.setData = function (dataValue) {
this.data = dataValue;
};
FRadioButtonClass.prototype.getData = function () {
return(this.data);
};
FRadioButtonClass.prototype.getState = function () {
return(this.selected);
};
FRadioButtonClass.prototype.getSize = function () {
return(this.width);
};
FRadioButtonClass.prototype.getGroupName = function () {
return(this.groupName);
};
FRadioButtonClass.prototype.setGroupName = function (groupName) {
var i = 0;
while (i < this._parent[this.groupName].radioInstances.length) {
if (this._parent[this.groupName].radioInstances[i] == this) {
delete this._parent[this.groupName].radioInstances[i];
}
i++;
}
this.groupName = groupName;
this.addToRadioGroup();
};
FRadioButtonClass.prototype.addToRadioGroup = function () {
if (this._parent[this.groupName] == undefined) {
this._parent[this.groupName] = new FRadioButtonGroupClass();
}
this._parent[this.groupName].addRadioInstance(this);
};
FRadioButtonClass.prototype.setValue = function (selected) {
if (selected || (selected == undefined)) {
this.setState(true);
this.focusRect.removeMovieClip();
this.executeCallBack();
} else if (selected == false) {
this.setState(false);
}
};
FRadioButtonClass.prototype.setTabState = function (selected) {
Selection.setFocus(this);
this.setState(selected);
this.drawFocusRect();
this.executeCallBack();
};
FRadioButtonClass.prototype.setState = function (selected) {
if (selected || (selected == undefined)) {
this.tabEnabled = true;
for (var i in this._parent) {
if ((this != this._parent[i]) && (this._parent[i].groupName == this.groupName)) {
this._parent[i].setState(false);
this._parent[i].tabEnabled = false;
}
}
}
if (this.enable) {
this.flabel_mc.setEnabled(true);
if (selected || (selected == undefined)) {
this.frb_states_mc.gotoAndStop("selectedEnabled");
this.enabled = false;
this.selected = true;
this.tabEnabled = true;
this.tabFocused = true;
} else {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
this.enabled = true;
this.selected = false;
this.tabEnabled = false;
var enabTrue = this._parent[this.groupName].getEnabled();
var noneSelect = (this._parent[this.groupName].getValue() == undefined);
if (enabTrue && (noneSelect)) {
this._parent[this.groupName].radioInstances[0].tabEnabled = true;
}
}
} else {
this.flabel_mc.setEnabled(false);
if (selected || (selected == undefined)) {
this.frb_states_mc.gotoAndStop("selectedDisabled");
this.enabled = false;
this.selected = true;
this.tabEnabled = false;
} else {
this.frb_states_mc.gotoAndStop("unselectedDisabled");
this.enabled = false;
this.selected = false;
this.tabEnabled = false;
}
}
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FRadioButtonClass.prototype.getValue = function () {
if (this.selected) {
if ((this.data == "") || (this.data == undefined)) {
return(this.getLabel());
}
return(this.data);
}
};
FRadioButtonClass.prototype.setEnabled = function (enable) {
if ((enable == true) || (enable == undefined)) {
this.enable = true;
super.setEnabled(true);
} else {
this.enable = false;
super.setEnabled(false);
}
this.setState(this.selected);
var cgn = (this._parent[this.groupName].getEnabled() == undefined);
var cgnez = (this._parent[this.groupName].radioInstances[0].getEnabled() == false);
if (cgn && (cgnez)) {
var i = 0;
while (i < this._parent[this.groupName].radioInstances.length) {
if (this._parent[this.groupName].radioInstances[i].getEnabled() == true) {
this._parent[this.groupName].radioInstances[i].tabEnabled = true;
return(undefined);
}
i++;
}
}
};
FRadioButtonClass.prototype.getEnabled = function () {
return(this.enable);
};
FRadioButtonClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FRadioButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.getLabel());
};
FRadioButtonClass.prototype.onPress = function () {
this.pressFocus();
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.onRelease = function () {
this.frb_states_mc.gotoAndStop("unselectedDisabled");
this.setValue(!this.selected);
};
FRadioButtonClass.prototype.onReleaseOutside = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOut = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOver = function () {
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this._parent[this.groupName]);
};
FRadioButtonGroupClass.prototype.addRadioInstance = function (instance) {
this.radioInstances.push(instance);
this.radioInstances[0].tabEnabled = true;
};
FRadioButtonGroupClass.prototype.setEnabled = function (enableFlag) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setEnabled(enableFlag);
i++;
}
};
FRadioButtonGroupClass.prototype.getEnabled = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].getEnabled() != this.radioInstances[0].getEnabled()) {
return(undefined);
}
i++;
}
return(this.radioInstances[0].getEnabled());
};
FRadioButtonGroupClass.prototype.setChangeHandler = function (changeHandler, obj) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setChangeHandler(changeHandler, obj);
i++;
}
};
FRadioButtonGroupClass.prototype.getValue = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].selected == true) {
if ((this.radioInstances[i].data == "") || (this.radioInstances[i].data == undefined)) {
return(this.radioInstances[i].getLabel());
}
return(this.radioInstances[i].data);
}
i++;
}
};
FRadioButtonGroupClass.prototype.getData = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].selected) {
return(this.radioInstances[i].getData());
}
i++;
}
};
FRadioButtonGroupClass.prototype.getInstance = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].selected == true) {
return(i);
}
i++;
}
};
FRadioButtonGroupClass.prototype.setValue = function (dataValue) {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].data == dataValue) {
this.radioInstances[i].setValue(true);
return(undefined);
}
i++;
}
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].getLabel() == dataValue) {
this.radioInstances[i].setValue(true);
}
i++;
}
};
FRadioButtonGroupClass.prototype.setSize = function (w) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setSize(w);
i++;
}
};
FRadioButtonGroupClass.prototype.getSize = function () {
var widestRadio = 0;
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].width >= widestRadio) {
widestRadio = this.radioInstances[i].width;
}
i++;
}
return(widestRadio);
};
FRadioButtonGroupClass.prototype.setGroupName = function (groupName) {
this.oldGroupName = this.radioInstances[0].groupName;
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].groupName = groupName;
this.radioInstances[i].addToRadioGroup();
i++;
}
delete this._parent[this.oldGroupName];
};
FRadioButtonGroupClass.prototype.getGroupName = function () {
return(this.radioInstances[0].groupName);
};
FRadioButtonGroupClass.prototype.setLabelPlacement = function (pos) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setLabelPlacement(pos);
i++;
}
};
FRadioButtonGroupClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setStyleProperty(propName, value, isGlobal);
i++;
}
};
FRadioButtonGroupClass.prototype.addListener = function () {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].addListener();
i++;
}
};
FRadioButtonGroupClass.prototype.applyChanges = function () {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].applyChanges();
i++;
}
};
FRadioButtonGroupClass.prototype.removeListener = function (component) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].removeListener(component);
i++;
}
};
FRadioButtonClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this._width + 6, this._height - 3);
};
FRadioButtonClass.prototype.myOnKillFocus = function () {
Key.removeListener(this.keyListener);
this.focused = false;
this.focusRect.removeMovieClip();
this._parent[this.groupName].foobar = 0;
};
FRadioButtonClass.prototype.myOnKeyDown = function () {
if ((Key.getCode() == 32) && (this._parent[this.groupName].getValue() == undefined)) {
if (this._parent[this.groupName].radioInstances[0] == this) {
this.setTabState(true);
}
}
if ((Key.getCode() == 40) && (this.pressOnce == undefined)) {
this.foobar = this._parent[this.groupName].getInstance();
var i = this.foobar;
while (i < this._parent[this.groupName].radioInstances.length) {
var inc = (i + 1);
if (this._parent[this.groupName].radioInstances[inc].getEnabled()) {
this._parent[this.groupName].radioInstances[inc].setTabState(true);
return(undefined);
}
i++;
}
}
if ((Key.getCode() == 38) && (this.pressOnce == undefined)) {
this.foobar = this._parent[this.groupName].getInstance();
var i = this.foobar;
while (i >= 0) {
var inc = (i - 1);
if (this._parent[this.groupName].radioInstances[inc].getEnabled()) {
this._parent[this.groupName].radioInstances[inc].setTabState(true);
return(undefined);
}
i--;
}
}
};
FRadioButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_RADIOBUTTON);
};
FRadioButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FRadioButtonClass.prototype.get_accState = function (childId) {
if (this.master.getState()) {
return(this.master.STATE_SYSTEM_SELECTED);
}
return(0);
};
FRadioButtonClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getState()) {
return("UnCheck");
}
return("Check");
};
FRadioButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 59 Button
on (release) {
if (_level0.c_count != 1) {
_level0.revJump();
}
}
Symbol 60 Button
on (release) {
if (_level0.c_count != 760) {
_level0.nextJump();
}
}
Instance of Symbol 62 MovieClip "dispOff" in Symbol 68 MovieClip Frame 1
on (release) {
_level0.disp_ctrl();
}
Instance of Symbol 67 MovieClip "dispOn" in Symbol 68 MovieClip Frame 1
on (release) {
_level0.disp_ctrl();
}