Frame 1
function session_fn() {
myLoadVars = new LoadVars();
myLoadVars.load("../story/m_session.asp");
myLoadVars.onLoad = function () {
id = myLoadVars.id;
m_name = id;
m_id = myLoadVars.m_id;
delete this.onEnterFrame;
initnum = 1;
init();
gotoAndStop ("dressup");
};
stop();
}
function init() {
var _local1 = this;
function chkautopos_fn() {
myLSO = SharedObject.getLocal("sh_autopos", soldepdir);
if (myLSO.data.autoposnum == 0) {
autopos = 0;
} else {
autopos = 1;
}
if (myLSO.data.lightonnum == 0) {
lightonnum = 0;
} else {
lightonnum = 1;
}
largemode = myLSO.data.largemode;
delete myLSO;
}
ptnnumld = "ptnnum.txt";
ptnfolder = "pattnjpg/";
var f_arr = f_file.split("t");
var fn_arr = f_arr[2].split(".");
f_num = fn_arr[0];
moviename = "bbddi" + f_num;
soldepdir = "/admin/fashion/";
hitnum = 0;
swnum = 200;
name = id;
sndon = 1;
womannum = 0;
womanposinit = 475;
womanypos = 300;
showwomannum = 4;
showscale = 70;
pattnwin_mc.swapDepths(99998);
pattnwin_mc._visible = 0;
colorpallet_mc.swapDepths(99997);
sessionchk_mc.swapDepths(99999);
showaction = [];
swomanarr = [];
var _local2 = 1;
while (_local2 <= showwomannum) {
_local1["cloth" + _local2] = [];
_local2++;
}
clothposinit();
clothinit();
initnum = 1;
chkautopos_fn();
bg_mc.onPress = function () {
if (colorpallet_mc._visible == 1) {
setTint(bg_mc, tintnum);
}
};
bg_mc.useHandCursor = 0;
Array.prototype.shuffle = function () {
var _local2 = this;
var _local1 = _local2.length;
while (_local1--) {
var _local3 = random(_local1 + 1);
var t = _local2[_local1];
_local2[_local1] = _local2[_local3];
_local2[_local3] = t;
}
};
starray_fn();
}
function sndattach(sndname) {
if (sndon == 1) {
snd = new Sound();
snd.attachSound(sndname);
snd.start();
}
}
function clothposinit() {
xclothinit = [];
yclothinit = [];
depclothinit = [];
imsidep = [];
var k = 0;
while (k < clothnum) {
xclothinit[k] = eval (cloth_arr[k])._x;
yclothinit[k] = eval (cloth_arr[k])._y;
depclothinit[k] = eval (cloth_arr[k]).getDepth();
imsidep[k] = depclothinit[k];
k++;
}
var j = 0;
while (j < (clothnum - 1)) {
var i = (j + 1);
while (i < clothnum) {
if (imsidep[j] > imsidep[i]) {
tmp = imsidep[j];
imsidep[j] = imsidep[i];
imsidep[i] = tmp;
}
i++;
}
j++;
}
depnum = 0;
k = 0;
while (k < clothnum) {
i = 0;
while (i < clothnum) {
if (depclothinit[i] == imsidep[k]) {
depnum++;
depclothinit[i] = depnum;
break;
}
i++;
}
k++;
}
}
function clothinit() {
rcolor = undefined;
gcolor = undefined;
bcolor = undefined;
var k = 0;
while (k < clothnum) {
eval (cloth_arr[k]).clicknum = 0;
eval (cloth_arr[k])._visible = 1;
eval (cloth_arr[k]).num = k;
eval (cloth_arr[k])._x = xclothinit[k];
eval (cloth_arr[k])._y = yclothinit[k];
if (cover_mc._currentframe == 2) {
var xpos = eval (cloth_arr[k])._x;
var ypos = eval (cloth_arr[k])._y;
eval (cloth_arr[k])._x = eval (cloth_arr[k])._x - ((ptx - xpos) * zmnum);
eval (cloth_arr[k])._y = eval (cloth_arr[k])._y - ((pty - ypos) * zmnum);
}
if (eval (cloth_arr[k]).getDepth() != depclothinit[k]) {
eval (cloth_arr[k]).swapDepths(depclothinit[k]);
}
setTint(cloth_arr[k], 0);
if (eval (cloth_arr[k]).mask_mc) {
eval (cloth_arr[k] + ".ptn_mc").removeMovieClip();
}
k++;
}
woman._visible = 1;
cover_mc._visible = 1;
clothexe();
}
function hitwoman() {
womannum++;
hitnum = 0;
var k = 0;
while (k < clothnum) {
clothnm = cloth_arr[k];
if (woman.hitTest(eval (clothnm)) and (eval (clothnm).clicknum == 1)) {
hitnum++;
eval ("cloth" + womannum)[hitnum] = [];
eval ("cloth" + womannum)[hitnum].push(clothnm);
pt = new Object();
pt.x = eval (clothnm)._x;
pt.y = eval (clothnm)._y;
woman.globalToLocal(pt);
eval ("cloth" + womannum)[hitnum].push(pt.x);
eval ("cloth" + womannum)[hitnum].push(pt.y);
eval ("cloth" + womannum)[hitnum].push(eval (clothnm).depth);
eval ("cloth" + womannum)[hitnum].push(eval (clothnm).r);
eval ("cloth" + womannum)[hitnum].push(eval (clothnm).g);
eval ("cloth" + womannum)[hitnum].push(eval (clothnm).b);
eval ("cloth" + womannum)[hitnum].push(eval (clothnm).t);
if (eval (clothnm).mask_mc and (eval (clothnm).ptnnm != undefined)) {
eval ("cloth" + womannum)[hitnum].push(eval (clothnm).ptnnm);
eval ("cloth" + womannum)[hitnum].push(eval (clothnm + ".ptn_mc")._width);
eval ("cloth" + womannum)[hitnum].push(eval (clothnm + ".ptn_mc")._height);
eval ("cloth" + womannum)[hitnum].push(eval (clothnm + ".ptn_mc")._alpha);
eval ("cloth" + womannum)[hitnum].push(eval (clothnm + ".ptn_mc")._x);
eval ("cloth" + womannum)[hitnum].push(eval (clothnm + ".ptn_mc")._y);
}
}
k++;
}
}
function poscloth() {
womanpos = womanposinit - ((womannum - 1) * 75);
var k = 1;
while (k <= womannum) {
attachMovie("woman", "swoman" + k, k + 80000);
var j = 1;
while (j < eval ("cloth" + k).length) {
eval ("swoman" + k).attachMovie(eval ("cloth" + k)[j][0], eval ("cloth" + k)[j][0], eval ("cloth" + k)[j][3]);
var clothmc = ((("swoman" + k) + ".") + eval ("cloth" + k)[j][0]);
eval (clothmc)._x = eval ("cloth" + k)[j][1];
eval (clothmc)._y = eval ("cloth" + k)[j][2];
rcolor = eval ("cloth" + k)[j][4];
gcolor = eval ("cloth" + k)[j][5];
bcolor = eval ("cloth" + k)[j][6];
setTint(clothmc, eval ("cloth" + k)[j][7]);
if (eval ("cloth" + k)[j][8] != undefined) {
ptnjpg = eval ("cloth" + k)[j][8];
ptnapply_fn((("swoman" + k) + ".") + eval ("cloth" + k)[j][0], eval ("cloth" + k)[j][9], eval ("cloth" + k)[j][10], eval ("cloth" + k)[j][12], eval ("cloth" + k)[j][13]);
}
j++;
}
eval ("swoman" + k)._x = womanpos + (k * 150);
eval ("swoman" + k)._y = womanypos;
eval ("swoman" + k).x = eval ("swoman" + k)._x;
eval ("swoman" + k).y = eval ("swoman" + k)._y;
eval ("swoman" + k)._xscale = showscale;
eval ("swoman" + k)._yscale = showscale;
swomandrag("swoman" + k);
k++;
}
k = 0;
while (k < clothnum) {
eval (cloth_arr[k])._visible = 0;
k++;
}
}
function attachbtn() {
womanpos = womanposinit - ((womannum - 1) * 75);
var k = 1;
while (k <= womannum) {
attachMovie("delbtn_mc", "delbtn" + k, k + 80010);
if (eval ("actionbtn" + k)) {
eval ("actionbtn" + k).swapDepths(k + 80020);
} else {
attachMovie("actioncomp", "actionbtn" + k, k + 80020);
}
eval ("delbtn" + k)._x = womanpos + (k * 150);
eval ("delbtn" + k)._y = 530;
eval ("delbtn" + k).num = k;
eval ("actionbtn" + k)._x = womanpos + (k * 150);
eval ("actionbtn" + k)._y = 550;
eval ("actionbtn" + k).num = k;
k++;
}
}
function swomandrag(mvname) {
var _local1 = this;
_local1[mvname].onPress = function () {
this.startDrag("");
this.setMask("wmask_mc");
};
_local1[mvname].onRelease = function () {
if (womannum == 1) {
swoman1._x = womanposinit + 150;
swoman1._y = womanypos;
}
if (womannum >= 2) {
_root.reposition();
}
};
}
function reposition() {
var k = 1;
while (k <= womannum) {
swomanarr[k] = "swoman" + k;
k++;
}
k = womannum;
while (k >= 1) {
maxwoman = choosemax(k);
this[maxwoman].order = k;
k--;
}
k = 1;
while (k <= womannum) {
this["swoman" + k]._name = "sw" + k;
this["i_cloth" + k] = eval ("cloth" + k);
k++;
}
k = 1;
while (k <= womannum) {
ordernum = this["sw" + k].order;
this["sw" + k].orinum = k;
this["sw" + k]._name = "swoman" + ordernum;
k++;
}
k = 1;
while (k <= womannum) {
ordernum = this["swoman" + k].orinum;
this["cloth" + k] = eval ("i_cloth" + ordernum);
k++;
}
k = 1;
while (k <= womannum) {
setProperty("swoman" + k, _x , womanpos + (k * 150));
setProperty("swoman" + k, _y , womanypos);
eval ("swoman" + k).x = eval ("swoman" + k)._x;
eval ("swoman" + k).y = eval ("swoman" + k)._y;
k++;
}
}
function choosemax(lnum) {
maxval = -500;
var k = 1;
while (k <= lnum) {
maxval = Math.max(eval (swomanarr[k])._x, maxval);
k++;
}
k = 1;
while (k <= lnum) {
if (eval (swomanarr[k])._x == maxval) {
returnval = swomanarr[k];
swomanarr.splice(k, 1);
return(returnval);
}
k++;
}
}
function removeswoman(dnum) {
removeMovieClip("actionbtn" + womannum);
var k = dnum;
while (k < womannum) {
this["cloth" + k] = [];
var j = 1;
while (j < eval ("cloth" + (k + 1)).length) {
this["cloth" + k][j] = this["cloth" + (k + 1)][j];
j++;
}
showaction[k] = showaction[k + 1];
k++;
}
this["cloth" + womannum] = [];
showaction.pop();
womannum--;
workroom_fn();
}
function womanshow(shownum) {
var _local1 = shownum;
if (showaction[_local1] != undefined) {
rndnum = showaction[_local1];
if (rndnum == 0) {
rndnum = 9;
}
} else {
rndnum = 9;
}
shwoman = "swoman" + _local1;
showinit(rndnum);
}
function showinit(n) {
eval (shwoman).actnum = n;
eval (shwoman).setMask("wmask_mc");
switch (n) {
case 1 :
eval (shwoman)._xscale = 5;
eval (shwoman)._yscale = 5;
eval (shwoman)._alpha = 100;
eval (shwoman).onEnterFrame = function () {
var _local1 = this;
if (_local1._xscale < showscale) {
_local1._xscale = _local1._xscale + 5;
_local1._yscale = _local1._yscale + 5;
} else {
_local1._xscale = showscale;
_local1._yscale = showscale;
_local1._alpha = _local1._alpha + 5;
}
if (_local1._alpha > 180) {
delete _local1.onEnterFrame;
if (autoplay == 1) {
nextplay_fn();
}
}
};
return;
case 2 :
eval (shwoman)._y = eval (shwoman)._y - 500;
speed = 0.3;
eval (shwoman).onEnterFrame = function () {
var _local1 = this;
diffy = _local1.y - _local1._y;
_local1._y = _local1._y + (diffy * speed);
if (Math.abs(diffy) < 0.5) {
delete _local1.onEnterFrame;
_local1._y = _local1.y;
if (autoplay == 1) {
nextplay_fn();
}
}
};
return;
case 3 :
eval (shwoman)._y = eval (shwoman)._y + 500;
speed = 0.3;
eval (shwoman).onEnterFrame = function () {
var _local1 = this;
diffy = _local1.y - _local1._y;
_local1._y = _local1._y + (diffy * speed);
if (Math.abs(diffy) < 0.5) {
delete _local1.onEnterFrame;
_local1._y = _local1.y;
if (autoplay == 1) {
nextplay_fn();
}
}
};
return;
case 4 :
eval (shwoman)._x = eval (shwoman)._x - 500;
speed = 0.3;
eval (shwoman).onEnterFrame = function () {
var _local1 = this;
diffx = _local1.x - _local1._x;
_local1._x = _local1._x + (diffx * speed);
if (Math.abs(diffx) < 0.5) {
delete _local1.onEnterFrame;
_local1._x = _local1.x;
if (autoplay == 1) {
nextplay_fn();
}
}
};
return;
case 5 :
eval (shwoman)._x = eval (shwoman)._x + 500;
speed = 0.3;
eval (shwoman).onEnterFrame = function () {
var _local1 = this;
diffx = _local1.x - _local1._x;
_local1._x = _local1._x + (diffx * speed);
if (Math.abs(diffx) < 0.5) {
delete _local1.onEnterFrame;
_local1._x = _local1.x;
if (autoplay == 1) {
nextplay_fn();
}
}
};
return;
case 6 :
eval (shwoman)._xscale = 1;
eval (shwoman)._yscale = 1;
eval (shwoman)._alpha = 5;
eval (shwoman)._rotation = 20;
eval (shwoman).onEnterFrame = function () {
var _local1 = this;
if (_local1._xscale < showscale) {
_local1._xscale = _local1._xscale + 3;
_local1._yscale = _local1._yscale + 3;
}
_local1._alpha = _local1._alpha + 5;
if (_local1._rotation != 0) {
_local1._rotation = _local1._rotation + 20;
}
if (_local1._alpha > 200) {
delete _local1.onEnterFrame;
if (autoplay == 1) {
nextplay_fn();
}
}
};
return;
case 7 :
eval (shwoman)._alpha = 0;
eval (shwoman).onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha + 5;
if (_local1._alpha >= 180) {
delete _local1.onEnterFrame;
if (autoplay == 1) {
nextplay_fn();
}
}
};
return;
case 8 :
eval (shwoman)._xscale = showscale;
addnum = 8;
eval (shwoman)._alpha = 100;
eval (shwoman).onEnterFrame = function () {
var _local1 = this;
if (_local1._xscale <= (showscale * -1)) {
addnum = -8;
}
_local1._xscale = _local1._xscale - addnum;
if (_local1._xscale >= showscale) {
_local1._xscale = showscale;
_local1._alpha = _local1._alpha + 5;
if (_local1._alpha > 180) {
delete _local1.onEnterFrame;
if (autoplay == 1) {
nextplay_fn();
}
}
}
};
return;
default :
eval (shwoman)._alpha = 80;
eval (shwoman).onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha + 5;
if (_local1._alpha >= 180) {
delete _local1.onEnterFrame;
if (autoplay == 1) {
nextplay_fn();
}
}
};
}
}
function nextplay_fn() {
womanshow(pwoman);
pwoman++;
if (pwoman > womannum) {
pwoman = 1;
}
}
function clothexe() {
var k = 0;
while (k < clothnum) {
eval (cloth_arr[k]).onPress = function () {
btdown(this._name);
};
eval (cloth_arr[k]).onRelease = function () {
btup(this._name);
};
k++;
}
}
function btdown(name) {
eval (name).clicknum = 1;
startDrag (name);
swnum++;
this[name].swapDepths(swnum);
this[name].depth = swnum;
clothname = name;
if (colorpallet_mc._visible == 1) {
setTint(clothname, tintnum);
}
}
function btup(mname) {
if (styleon == 1) {
stylecheck(clothname);
if (eval (clothname).hitTest(woman)) {
} else {
var k = eval (clothname).num;
eval (clothname)._x = xclothinit[k];
eval (clothname)._y = yclothinit[k];
eval (clothname).swapDepths(depclothinit[k]);
}
} else if (eval (clothname).hitTest(woman)) {
} else if (autopos == 1) {
var k = eval (clothname).num;
eval (clothname).clicknum = 0;
eval (clothname)._x = xclothinit[k];
eval (clothname)._y = yclothinit[k];
if (cover_mc._currentframe == 2) {
var xpos = eval (clothname)._x;
var ypos = eval (clothname)._y;
eval (clothname)._x = eval (clothname)._x - ((ptx - xpos) * zmnum);
eval (clothname)._y = eval (clothname)._y - ((pty - ypos) * zmnum);
}
eval (clothname).clicknum = 0;
eval (clothname).swapDepths(depclothinit[k]);
}
}
function stylecheck(name) {
var k = 0;
while (k <= stylecloth.length) {
if (name == stylecloth[k]) {
stylename = "stylewoman." + name;
pt = new Object();
pt.x = eval (stylename)._x + eval (stylewoman)._x;
pt.y = eval (stylename)._y + eval (stylewoman)._y;
if ((Math.abs(this[name]._x - pt.x) < 10) and (Math.abs(this[name]._y - pt.y) < 10)) {
this[name]._x = pt.x;
this[name]._y = pt.y;
if (eval (stylename).righton != 1) {
eval (stylename)._visible = 1;
this[name]._visible = 0;
sndattach("dingdong");
strightnum++;
eval (stylename).righton = 1;
}
if (strightnum == (stylecloth.length - 1)) {
sndattach("sucwav");
resultattmv("sucess");
st_sucesson = 1;
minus_st_arr_fn();
}
} else if (eval (stylename).righton == 1) {
strightnum--;
eval (stylename).righton = 0;
}
}
k++;
}
}
function attachtip() {
k = 0;
while (k < clothnum) {
eval (cloth_arr[k])._visible = 0;
k++;
}
cover_mc._visible = 0;
woman._visible = 0;
stage_mc._visible = 0;
attachMovie("tip", "tip", 30001);
tip._x = cover_mc._x;
tip._y = cover_mc._y;
tip.bg_mc.onPress = function () {
};
tip.bg_mc.usehandcursor = 0;
}
function doumiend_fn() {
k = 0;
while (k < clothnum) {
eval (cloth_arr[k])._visible = 1;
k++;
}
woman._visible = 1;
cover_mc._visible = 1;
if (cover_mc._currentframe == 1) {
stage_mc._visible = 1;
}
removeMovieClip("tip");
}
function replay_fn() {
var i = 1;
while (i <= womannum) {
removeMovieClip("swoman" + i);
removeMovieClip("actionbtn" + i);
removeMovieClip("delbtn" + i);
i++;
}
removeMovieClip("bgfile");
removeMovieClip("stylewoman");
removeMovieClip("workroom_mc");
removeMovieClip("tip");
removeMovieClip("st_cover");
gotoAndStop ("dressup");
var k = 0;
while (k < clothnum) {
eval (cloth_arr[k])._visible = 1;
eval (cloth_arr[k]).clicknum = 0;
k++;
}
setTint(bg_mc, 0);
swnum = 200;
styleon = 0;
clothinit();
}
function textfocus() {
var _local2 = this;
var _local1 = 1;
while (_local1 <= 2) {
_local2["t" + _local1].tabIndex = _local1;
_local1++;
}
selection.setFocus("t1");
}
function etextfocus() {
var _local2 = this;
var _local1 = 1;
while (_local1 <= 7) {
_local2["e" + _local1].tabIndex = _local1;
_local1++;
}
}
function storysend() {
var _local1 = 0;
while (_local1 < cmt.length) {
if (cmt.charCodeAt(_local1) == 13) {
c = c + "<br>";
} else {
c = c + cmt.charAt(_local1);
}
_local1++;
}
comment = c;
if ((title == undefined) or (title == "")) {
getURL ("javascript:alert('\uC81C\uBAA9 \uC785\uB825\uC740 \uD544\uC218\uC785\uB825\uC0AC\uD56D\uC785\uB2C8\uB2E4')");
return(0);
}
if ((comment == undefined) or (cmt == "")) {
getURL ("javascript:alert('\uC791\uD488\uC758 \uB0B4\uC6A9\uC744 \uAC04\uB2E8\uD788 \uC785\uB825\uD574 \uC8FC\uC138\uC694')");
return(0);
}
return(1);
}
function stylestart() {
clothinit();
k = 0;
while (k < clothnum) {
eval (cloth_arr[k])._visible = 1;
k++;
}
st_cover.timer_mc.timer_fn();
styleon = 1;
strightnum = 0;
st_sucesson = 0;
st_startTime = getTimer();
clothexe();
attachMovie(style, "stylewoman", 199, {_x:woman._x, _y:woman._y});
pt = new Object();
pt.x = stylewoman.woman._x;
pt.y = stylewoman.woman._y;
stylewoman.localToglobal(pt);
stylewoman._x = stylewoman._x + (woman._x - pt.x);
stylewoman._y = stylewoman._y + (woman._y - pt.y);
stylecloth = [];
for (mm in stylewoman) {
stylecloth.push(mm);
eval ("stylewoman." + mm)._visible = 0;
}
}
function resultattmv(filename) {
if (filename != "hint_mc") {
delete st_cover.timer_mc.onEnterFrame;
}
attachMovie(filename, "result", 12000);
setProperty("result", _x , 480);
setProperty("result", _y , 350);
}
function attachbg(bnum) {
bgnum = bnum;
attfile = "bg" + bnum;
attachMovie(attfile, "bgfile", workroom_mc.getDepth() - 1);
bgfile._x = workroom_mc._x + workroom_mc.bg_mc._x;
bgfile._y = workroom_mc._y + workroom_mc.bg_mc._y;
bgfile._width = 773;
bgfile._height = 480;
}
function chcolorfn(colornum, r, g, b) {
sndattach("button_snd");
rcolor = r;
gcolor = g;
bcolor = b;
rgbcolor = colornum;
changecolor("colorpallet_mc.selcolor_mc");
}
function changecolor(filename) {
myColor = new Color(filename);
myColor.setRGB(rgbcolor);
delete myColor;
}
function setTint(mc, t) {
myColor = new Color(mc);
var r = rcolor;
var g = gcolor;
var b = bcolor;
var p = (100 - t);
eval (mc).r = r;
eval (mc).g = g;
eval (mc).b = b;
eval (mc).t = t;
myColor.setTransform({ra:p, rb:r * ((t = t / 100)), ga:p, gb:g * t, ba:p, bb:b * t});
delete myColor;
}
function callptnwin_fn() {
if (pattnwin_mc._visible == 1) {
pattnwin_mc._visible = 0;
} else {
pattnwin_mc._visible = 1;
pattnwin_mc._alpha = 100;
}
}
function ptnapply_fn(selmc, w, h, x, y) {
ptnapmc = selmc;
eval (ptnapmc).createEmptyMovieClip("ptn_mc", 1);
eval (ptnapmc).ptn_mc.loadMovie(ptnfolder + ptnjpg);
eval (ptnapmc).up_mc.swapDepths(10);
eval (ptnapmc).ptnnm = ptnjpg;
eval (ptnapmc).onEnterFrame = function () {
var _local1 = this;
if ((_local1.ptn_mc.getBytesLoaded() > 0) and (_local1.ptn_mc.getBytesLoaded() == _local1.ptn_mc.getBytesTotal())) {
_local1.ptn_mc._width = w;
_local1.ptn_mc._height = h;
_local1.ptn_mc._alpha = _root.ptnalpha;
_local1.ptn_mc._x = x;
_local1.ptn_mc._y = y;
_local1.ptn_mc.setMask(_local1.mask_mc);
delete _local1.onEnterFrame;
}
};
}
function restart_fn() {
replay_fn();
var k = 1;
while (k <= 4) {
eval ("cloth" + womannum)[hitnum] = [];
k++;
}
hitnum = 0;
womannum = 0;
}
function st_start() {
stnum = st_arr[random(st_arr.length)];
style = "woman" + stnum;
attachMovie(style, "stwoman", 20005);
stwoman._x = (stwoman._width / 2) + 250;
var _local1 = stwoman._height;
stwoman._y = ((_local1 / 2) + ((632 - _local1) / 2)) + 30;
startTime = getTimer();
imsi_c_arr = [];
for (mc in stwoman) {
if (mc.substr(0, 6) == "cloth_") {
stwoman[mc]._visible = 0;
imsi_c_arr.push(mc);
}
}
cnt = 3;
cnum = 0;
stwoman.onEnterFrame = function () {
if ((getTimer() - startTime) > 8000) {
removeMovieClip("stwoman");
stnote_mc._visible = 0;
st_cover.hint_btn._visible = 1;
st_cover.streplay_btn._visible = 1;
stylestart();
delete this.onEnterFrame;
} else {
cnt++;
if (cnt > 6) {
cnt = 0;
cnum++;
var _local1 = imsi_c_arr.length - cnum;
stwoman[imsi_c_arr[_local1]]._visible = 1;
}
}
};
}
function stylelist_fn() {
k = 0;
while (k < clothnum) {
eval (cloth_arr[k])._visible = 0;
k++;
}
cover_mc._visible = 0;
st_cover.hint_btn._visible = 0;
st_cover.streplay_btn._visible = 0;
stnote_mc._visible = 1;
stnote_mc.gotoAndStop(1);
}
function gostilist_fn() {
if (largemode == 1) {
viewsmall_fn();
imsilargemode = 1;
} else {
imsilargemode = 0;
}
removeMovieClip("stylewoman");
gotoAndStop ("stylelist");
stylelist_fn();
stcover.timer_mc.timerinit();
}
function minus_st_arr_fn() {
if (st_arr.length == 1) {
starray_fn();
resultattmv("allsucess");
} else {
var _local1 = 0;
while (_local1 < st_arr.length) {
if (stnum == st_arr[_local1]) {
st_arr.splice(_local1, 1);
}
_local1++;
}
}
}
function starray_fn() {
st_arr = [1, 2, 3, 4, 5];
st_arr.shuffle();
}
function hint_fn() {
resultattmv("hint_mc");
}
function storysend_fn() {
clothnm_arr = [];
xcloth_arr = [];
ycloth_arr = [];
dcloth_arr = [];
rcloth_arr = [];
gcloth_arr = [];
bcloth_arr = [];
tcloth_arr = [];
ptncloth_arr = [];
ptnwidth_arr = [];
ptnheight_arr = [];
ptnalpha_arr = [];
ptnx_arr = [];
ptny_arr = [];
cleng_arr = [];
mdact_arr = [];
var k = 1;
while (k <= womannum) {
cleng_arr.push(eval ("cloth" + k).length);
mdact_arr.push(eval ("swoman" + k).actnum);
var j = 1;
while (j < cleng_arr[k - 1]) {
clothnm_arr.push(eval ("cloth" + k)[j][0]);
xcloth_arr.push(eval ("cloth" + k)[j][1]);
ycloth_arr.push(eval ("cloth" + k)[j][2]);
dcloth_arr.push(eval ("cloth" + k)[j][3]);
rcloth_arr.push(eval ("cloth" + k)[j][4]);
gcloth_arr.push(eval ("cloth" + k)[j][5]);
bcloth_arr.push(eval ("cloth" + k)[j][6]);
tcloth_arr.push(eval ("cloth" + k)[j][7]);
ptncloth_arr.push(eval ("cloth" + k)[j][8]);
ptnwidth_arr.push(eval ("cloth" + k)[j][9]);
ptnheight_arr.push(eval ("cloth" + k)[j][10]);
ptnalpha_arr.push(eval ("cloth" + k)[j][11]);
ptnx_arr.push(eval ("cloth" + k)[j][12]);
ptny_arr.push(eval ("cloth" + k)[j][13]);
j++;
}
k++;
}
savevar = (((((((((((((((((((((("&wnum=" + womannum) + "&dcloth=") + dcloth_arr) + "&rcloth=") + rcloth_arr) + "&gcloth=") + gcloth_arr) + "&bcloth=") + bcloth_arr) + "&tcloth=") + tcloth_arr) + "&ptncloth=") + ptncloth_arr) + "&ptnwidth=") + ptnwidth_arr) + "&ptnheight=") + ptnheight_arr) + "&ptnalpha=") + ptnalpha_arr) + "&ptnx=") + ptnx_arr) + "&ptny=") + ptny_arr;
savevar2 = (((((((((((("&cleng=" + cleng_arr) + "&moviename=") + moviename) + "&clothnm=") + clothnm_arr) + "&xcloth=") + xcloth_arr) + "&ycloth=") + ycloth_arr) + "&mdact=") + mdact_arr) + "&bgnum=") + bgnum;
LdVar = new LoadVars();
LdVar.clothnum = cleng_arr;
LdVar.moviename = moviename;
LdVar.clothname = clothnm_arr;
LdVar.xcloth = xcloth_arr;
LdVar.ycloth = ycloth_arr;
LdVar.depcloth = savevar;
LdVar.mdact = mdact_arr;
LdVar.bgnum = bgnum;
LdVar.title = title;
LdVar.cmt = comment;
LdVar.m_id = m_id;
LdVar.m_name = m_name;
LdVar.send("../story/load_fsn.asp", "_self", "post");
this._visible = false;
}
function ptnshow_fn() {
var cnt = 0;
eval (maskcloth_arr[0]).onEnterFrame = function () {
if (cnt == 4) {
var _local2 = 0;
while (_local2 < maskcloth_arr.length) {
myColor = new Color(maskcloth_arr[_local2]);
var _local1 = 60;
_local1 = _local1 / 100;
myColor.setTransform({ra:p, rb:0 * _local1, ga:p, gb:0 * _local1, ba:p, bb:0 * _local1});
delete myColor;
_local2++;
}
}
if (cnt >= 7) {
cnt = 0;
var _local2 = 0;
while (_local2 < maskcloth_arr.length) {
setTint(maskcloth_arr[_local2], 0);
_local2++;
}
}
cnt++;
};
}
function ptnshowout_fn() {
delete myColor;
delete eval (maskcloth_arr[0]).onEnterFrame;
var k = 0;
while (k < maskcloth_arr.length) {
setTint(maskcloth_arr[k], 0);
k++;
}
}
function clothmove_fn(dir) {
switch (dir) {
case "l" :
eval (clothname)._x = eval (clothname)._x - 1;
return;
case "u" :
eval (clothname)._y = eval (clothname)._y - 1;
return;
case "r" :
eval (clothname)._x = eval (clothname)._x + 1;
return;
case "d" :
eval (clothname)._y = eval (clothname)._y + 1;
}
}
function viewlarge_fn() {
if (woman._xscale < 110) {
largemode = 1;
stage_mc._visible = 0;
cover_mc.gotoAndStop(2);
ptx = 1000;
pty = 250;
zmnum = 0.06;
zmscale = 100 + (100 * zmnum);
var k = 0;
while (k < clothnum) {
eval (cloth_arr[k])._xscale = zmscale;
eval (cloth_arr[k])._yscale = zmscale;
var xpos = eval (cloth_arr[k])._x;
var ypos = eval (cloth_arr[k])._y;
eval (cloth_arr[k])._x = eval (cloth_arr[k])._x - ((ptx - xpos) * zmnum);
eval (cloth_arr[k])._y = eval (cloth_arr[k])._y - ((pty - ypos) * zmnum);
k++;
}
woman._xscale = zmscale;
woman._yscale = zmscale;
woman.mvx = (ptx - woman._x) * zmnum;
woman.mvy = (pty - woman._y) * zmnum;
woman._x = woman._x - woman.mvx;
woman._y = woman._y - woman.mvy;
myLSO = SharedObject.getLocal("sh_autopos", soldepdir);
myLSO.data.largemode = largemode;
myLSO.flush();
delete myLSO;
}
}
function viewsmall_fn() {
if (woman._xscale > 100) {
largemode = 0;
smnum = 1 - (100 / zmscale);
stage_mc._visible = 1;
cover_mc.gotoAndStop(1);
var k = 0;
while (k < clothnum) {
eval (cloth_arr[k])._xscale = 100;
eval (cloth_arr[k])._yscale = 100;
var xpos = eval (cloth_arr[k])._x;
var ypos = eval (cloth_arr[k])._y;
eval (cloth_arr[k])._x = eval (cloth_arr[k])._x + ((ptx - xpos) * smnum);
eval (cloth_arr[k])._y = eval (cloth_arr[k])._y + ((pty - ypos) * smnum);
k++;
}
woman._xscale = 100;
woman._yscale = 100;
woman._x = woman._x + woman.mvx;
woman._y = woman._y + woman.mvy;
myLSO = SharedObject.getLocal("sh_autopos", soldepdir);
myLSO.data.largemode = largemode;
myLSO.flush();
delete myLSO;
}
}
function testtip_fn() {
ptnnumld = "../newfashion/ptnnum.txt";
ptnfolder = "../newfashion/pattnjpg/";
trace("***\uD654\uBA74\uC5D0 \uC778\uC2A4\uD134\uC2A4\uBA85\uC774 \uC81C\uB300\uB85C \uBD99\uC5B4 \uC788\uB294\uC9C0 \uD14C\uC2A4\uD2B8***");
ernum = 0;
for (mc in _root) {
if ((typeof(this[mc]) == "movieclip") and (mc.substr(0, 5) == "cloth")) {
if (mc.length != 8) {
trace((" \u2663\u2663\u2663\u2663- \uC778\uC2A4\uD134\uC2A4 \uBA85(\uC2A4\uD398\uC774\uC2A4 \uD655\uC778)Error-\u2663\u2663\u2663\u2663 " + mc) + "\uC758 \uC774\uB984\uC774 \uC798 \uBABB \uC9C0\uC815\uB418\uC5B4 \uC788\uB124\uC694");
ernum = 1;
}
}
}
var k = 1;
while (k <= clothnum) {
if (k < 10) {
var cnum = ("0" + k);
} else {
var cnum = k;
}
if (eval ("cloth_" + cnum)) {
} else {
trace((" \u2663\u2663\u2663\u2663-\uC778\uC2A4\uD134\uC2A4 \uBA85 Error-\u2663\u2663\u2663\u2663 cloth_" + cnum) + "\uC758 \uC778\uC2A4\uD134\uC2A4\uBA85\uC774 \uC798 \uBABB \uBD99\uC5EC\uC84C\uAC70\uB098 \uC5C6\uC2B5\uB2C8\uB2E4");
ernum = 1;
}
if ((Math.abs(eval ("cloth_" + cnum)._xscale - 100) > 1) or (Math.abs(eval ("cloth_" + cnum)._yscale - 100) > 1)) {
errmsg = (((((" \u2663\u2663\u2663\u2663-\uC0AC\uC774\uC988 \uC9C0\uC815 \uC5D0\uB7EC -\u2663\u2663\u2663\u2663 cloth_" + cnum) + " xscale : ") + eval ("cloth_" + cnum)._xscale) + ", yscale : ") + eval ("cloth_" + cnum)._yscale) + " --> \uC218\uC815\uC694\uB9DD";
trace(errmsg);
ernum = 1;
}
k++;
}
if (ernum == 0) {
trace(" -\uD654\uBA74\uC758 \uC778\uC2A4\uD134\uC2A4\uBA85\uC740 \uC81C\uB300\uB85C \uC798 \uBD99\uC5EC\uC84C\uB124\uC694^^");
trace((" -\uD654\uBA74\uC5D0 \uC788\uB294 \uC637\uC758 \uAC2F\uC218\uB294 \uCD1D " + clothnum) + "\uAC1C \uC785\uB2C8\uB2E4. \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0 \uC788\uB294 \uC637\uC758 \uAC2F\uC218\uC640 \uB9DE\uB294\uC9C0 \uBE44\uAD50\uD574 \uC8FC\uC138\uC694^^\n");
}
trace("\n***\uB9C1\uD0A4\uC9C0 \uC774\uB984\uC774 \uC81C\uB300\uB85C \uBD99\uC5B4 \uC788\uB294\uC9C0 \uD14C\uC2A4\uD2B8***");
ernum = 0;
var k = 1;
while (k <= clothnum) {
if (k < 10) {
var cnum = ("0" + k);
} else {
var cnum = k;
}
removeMovieClip("cloth_mc");
attachMovie("cloth_" + cnum, "cloth_mc", 50002);
if (cloth_mc) {
} else {
trace((" \u2663\u2663\u2663\u2663-\uB9C1\uD0A4\uC9C0 \uBA85 Error-\u2663\u2663\u2663\u2663 cloth_" + cnum) + " \uC758 linkage \uC774\uB984\uC774 \uC798 \uBABB \uC9C0\uC815\uB418\uC5B4 \uC788\uAC70\uB098 \uC5C6\uB294 \uAC83 \uAC19\uC544\uC694");
ernum = 1;
}
k++;
}
if (ernum == 0) {
trace(" - \uC637\uC758 linkage \uC774\uB984\uC740 \uC81C\uB300\uB85C \uC798 \uBD99\uC5B4 \uC788\uC2B5\uB2C8\uB2E4^^");
}
trace("\n\n***\uB3C4\uC804 \uC2A4\uD0C0\uC77C\uB9AC\uC2A4\uD2B8 \uD14C\uC2A4\uD2B8***");
ernum = 0;
attachMovie("tip", "tip", 50002);
if (eval (tip)) {
} else {
trace(" \u2663\u2663\u2663\u2663-\uD301 \uB9C1\uD0A4\uC9C0 Error-\u2663\u2663\u2663\u2663 tip\uC758 likage \uC774\uB984\uC774 \uC5C6\uAC70\uB098 \uC798 \uBABB \uC9C0\uC815\uB418\uC5B4 \uC788\uC5B4\uC694");
ernum = 1;
}
for (mc in tip) {
if (mc.substr(0, 5) == "woman") {
this[mc + "_arr"] = [];
if (mc.length != 6) {
trace((" \u2663\u2663\u2663\u2663-Error-\u2663\u2663\u2663\u2663 " + mc) + "\uC758 \uC774\uB984\uC774 \uC798\uBABB \uC9C0\uC815\uB418\uC5B4 \uC788\uB124\uC694");
ernum = 1;
}
womanok = 0;
cmcnum = 0;
for (cmc in tip[mc]) {
if (cmc == "woman") {
womanok = 1;
} else if (cmc.length != 8) {
trace((((" \u2663\u2663\u2663\u2663-Error-\u2663\u2663\u2663\u2663 " + mc) + " \uBB34\uBE44\uD074\uB9BD\uC548\uC758 ") + cmc) + "\uC758 \uC774\uB984\uC774 \uC798 \uBABB \uC9C0\uC815\uB418\uC5B4 \uC788\uB124\uC694");
ernum = 1;
} else {
eval (mc + "_arr").push(cmc);
if (eval (cmc)) {
} else {
trace(((("\u2663\u2663\u2663\u2663-Error-\u2663\u2663\u2663\u2663 \uC9C0\uAE08 \uD654\uBA74\uC5D0\uB294 " + mc) + "\uBB34\uBE44\uD074\uB9BD\uC548\uC5D0 \uC788\uB294 ") + cmc) + " \uBB34\uBE44\uD074\uB9BD\uC774 \uC5C6\uC2B5\uB2C8\uB2E4");
ernum = 0;
}
}
cmcnum++;
}
if (cmcnum < 5) {
trace((" \u2663\u2663\u2663\u2663-Error-\u2663\u2663\u2663\u2663 " + mc) + " \uBB34\uBE44\uD074\uB9BD\uC548\uC758 \uC637\uC758 \uAC1C\uC218\uAC00 4\uAC1C\uB3C4 \uC548\uB418\uB124\uC694. \uD655\uC778\uBC14\uB78D\uB2C8\uB2E4.");
ernum = 1;
}
if (womanok == 0) {
trace((" \u2663\u2663\u2663\u2663-Error-\u2663\u2663\u2663\u2663 " + mc) + "\uBB34\uBE44\uD074\uB9BD\uC548\uC758 woman\uC758 \uC774\uB984\uC774 \uC81C\uB300\uB85C \uC9C0\uC815\uB418\uC5B4 \uC788\uC9C0 \uC54A\uB124\uC694");
ernum = 1;
}
}
}
tip._visible = 0;
if (ernum == 0) {
trace(" - \uB3C4\uC804\uC2A4\uD0C0\uC77C \uB9AC\uC2A4\uD2B8\uC5D0\uC11C \uC778\uC2A4\uD134\uC2A4\uBA85\uC774\uB098 \uB9C1\uD0A4\uC9C0\uB97C \uC81C\uB300\uB85C \uC798 \uBD99\uC774\uC2E0 \uAC83 \uAC19\uB124\uC694^^");
}
removeMovieClip("tip");
trace(("\uD328\uD134 \uC801\uC6A9\uD560 \uC218 \uC788\uB294 \uC637\uC740 \uC544\uB798\uC640 \uAC19\uC774 \uCD1D " + maskcloth_arr.length) + "\uAC1C \uC785\uB2C8\uB2E4. \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC640 \uBE44\uAD50\uD574 \uBCF4\uC138\uC694");
var k = 0;
while (k < maskcloth_arr.length) {
if (eval (maskcloth_arr[k]).up_mc) {
trace((" - " + maskcloth_arr[k]) + " : up_mc \uC774\uB984 \uC798 \uBD99\uC5B4\uC838 \uC788\uC74C");
} else {
trace((" - " + maskcloth_arr[k]) + " : up_mc \uC774\uB984 \uC81C\uB300\uB85C \uC548 \uBD99\uC5B4 \uC788\uC74C");
}
k++;
}
if (woman.eye_mc) {
} else {
trace("woman \uBB34\uBE44\uD074\uB9BD\uB0B4\uC758 eye_mc \uAC00 \uC774\uB984 \uBD99\uC5EC\uC9C0\uC9C0 \uC54A\uC558\uB124\uC694");
}
}
System.useCodepage = true;
clothnum = 0;
cloth_arr = [];
maskcloth_arr = [];
for (var mc in _root) {
if ((typeof(_root[mc]) == "movieclip") and (mc.substr(0, 5) == "cloth")) {
cloth_arr.push(mc);
if (eval (mc).mask_mc) {
maskcloth_arr.push(mc);
eval (mc).mask_mc._visible = 0;
}
clothnum++;
}
}
stop();
if (myLoadVars.m_id == undefined) {
session_fn();
}
this.onMouseUp = function () {
stopDrag();
};
Instance of Symbol 538 MovieClip "cover_mc" in Frame 1
onClipEvent (keyDown) {
switch (Key.getCode()) {
case 37 :
_parent.clothmove_fn("l");
break;
case 38 :
_parent.clothmove_fn("u");
break;
case 39 :
_parent.clothmove_fn("r");
break;
case 40 :
_parent.clothmove_fn("d");
}
}
Frame 2
pattnwin_mc.init_fn();
removeMovieClip("stylewoman");
if (cover_mc.getDepth() != 99999) {
removeMovieClip("sessionchk_mc");
cover_mc.swapDepths(99999);
}
stop();
Frame 3
stop();
removeMovieClip("cover_mc");
removeMovieClip("stylewoman");
st_cover.swapDepths(99999);
stylelist_fn();
Frame 4
function workroom_fn() {
var _local1 = womannum;
while (_local1 <= 4) {
removeMovieClip("swoman" + _local1);
removeMovieClip("delbtn" + _local1);
_local1++;
}
if (womannum < 1) {
replay_fn();
} else {
poscloth();
woman._visible = 0;
cover_mc._visible = 0;
workroom_mc._visible = 1;
attachbg(random(5) + 1);
attachbtn();
}
}
workroom_fn();
removeMovieClip("cover_mc");
wmask_mc._visible = 0;
autoplay = 0;
stop();
Frame 5
delete eval (shwoman).onEnterFrame;
autoplay = 1;
pwoman = 1;
nextplay_fn();
var k = 1;
while (k <= womannum) {
removeMovieClip("actionbtn" + k);
removeMovieClip("delbtn" + k);
k++;
}
textfocus();
Instance of Symbol 332 MovieClip [bg1] in Frame 5
on (release) {
_root.bgnum = 1;
_root.attachbg(_root.bgnum);
_root.sndattach("click3");
}
Instance of Symbol 327 MovieClip [bg2] in Frame 5
on (release) {
_root.bgnum = 2;
_root.attachbg(_root.bgnum);
_root.sndattach("click3");
}
Instance of Symbol 321 MovieClip [bg3] in Frame 5
on (release) {
_root.bgnum = 3;
_root.attachbg(_root.bgnum);
_root.sndattach("click3");
}
Instance of Symbol 316 MovieClip [bg4] in Frame 5
on (release) {
_root.bgnum = 4;
_root.attachbg(_root.bgnum);
_root.sndattach("click3");
}
Instance of Symbol 310 MovieClip [bg5] in Frame 5
on (release) {
_root.bgnum = 5;
_root.attachbg(_root.bgnum);
_root.sndattach("click3");
}
Symbol 25 Button
on (release) {
_parent.clothinit();
_parent.gostilist_fn();
removeMovieClip("");
}
Symbol 29 Button
on (release) {
_parent.clothinit();
_parent.replay_fn();
removeMovieClip("");
}
Symbol 30 MovieClip [fail] Frame 1
_parent.sndattach("failwav");
attachMovie(_root.style, "stylewoman", 1);
setProperty("stylewoman", _x , -200);
setProperty("stylewoman", _y , 0);
setProperty("stylewoman", _xscale , 65);
setProperty("stylewoman", _yscale , 65);
setProperty("stylewoman", _alpha , 100);
stop();
Symbol 34 MovieClip Frame 1
i = 1;
while (i < 50) {
duplicateMovieClip ("fire", "fire" + i, i);
setProperty("fire" + i, _rotation , random(360));
percent = random(50) + 50;
setProperty("fire" + i, _xscale , percent);
setProperty("fire" + i, _yscale , percent);
i++;
}
Symbol 36 Button
on (release) {
_root.clothinit();
_root.replay_fn();
removeMovieClip("");
}
Symbol 37 MovieClip [sucess] Frame 1
attachMovie(_root.style, "stylewoman", 1);
setProperty("stylewoman", _x , -200);
setProperty("stylewoman", _y , 0);
setProperty("stylewoman", _xscale , 65);
setProperty("stylewoman", _yscale , 65);
Symbol 41 MovieClip [hint_mc] Frame 1
_parent.sndattach("bong");
attachMovie(_root.style, "stylewoman", 1);
setProperty("stylewoman", _x , -200);
setProperty("stylewoman", _y , 0);
setProperty("stylewoman", _xscale , 65);
setProperty("stylewoman", _yscale , 65);
setProperty("stylewoman", _alpha , 100);
cnt = 0;
this.onEnterFrame = function () {
cnt++;
if (cnt == 36) {
delete this.onEnterFrame;
removeMovieClip(this);
}
};
stop();
Symbol 44 MovieClip [FLabelSymbol] Frame 1
#initclip 4
_global.FLabelClass = function () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 47 MovieClip [FHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 47 MovieClip [FHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 47 MovieClip [FHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 48 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 61 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 71 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 80 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 81 MovieClip [UpArrow] Frame 1
stop();
Symbol 81 MovieClip [UpArrow] Frame 2
stop();
Symbol 81 MovieClip [UpArrow] Frame 3
stop();
Symbol 88 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 95 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 100 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 101 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 109 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 117 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 125 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 126 MovieClip [DownArrow] Frame 1
stop();
Symbol 126 MovieClip [DownArrow] Frame 2
stop();
Symbol 126 MovieClip [DownArrow] Frame 3
stop();
Symbol 129 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 130 MovieClip [FScrollBarSymbol] Frame 1
#initclip 6
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 131 MovieClip [DataProviderSymbol] Frame 1
#initclip 2
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
var _local1 = this;
_local1.items = new Array();
_local1.uniqueID = 0;
_local1.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local1 = {event:"updateAll"};
viewRef.modelChanged(_local1);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
var _local1 = index;
var _local2 = this;
var _local3 = value;
if (_local1 < _local2.getLength()) {
_local2.items.splice(_local1, 0, "tmp");
}
_local2.items[_local1] = new Object();
if (typeof(_local3) == "object") {
_local2.items[_local1] = _local3;
} else {
_local2.items[_local1].label = _local3;
}
_local2.items[_local1].__ID__ = _local2.uniqueID++;
var eventObj = {event:"addRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(eventObj);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var _local1 = index;
var _local2 = this;
var tmpItm = _local2.items[_local1];
_local2.items.splice(_local1, 1);
var _local3 = {event:"deleteRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(_local3);
return(tmpItm);
};
DataProviderClass.prototype.removeAll = function () {
var _local1 = this;
_local1.items = new Array();
_local1.updateViews({event:"deleteRows", firstRow:0, lastRow:_local1.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
var _local3 = _local2.getItemID(_local1);
if (typeof(itemObj) == "object") {
_local2.items[_local1] = itemObj;
} else {
_local2.items[_local1].label = itemObj;
}
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews({event:"updateRows", firstRow:_local1, lastRow:_local1});
}
};
DataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
DataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
DataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
DataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
var _local1 = this;
_local1.items.sortOn(fieldName);
if (order == "DESC") {
_local1.items.reverse();
}
_local1.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = this;
var _local3 = eventObj;
var _local1 = 0;
while (_local1 < _local2.views.length) {
_local2.views[_local1].modelChanged(_local3);
_local1++;
}
};
#endinitclip
Symbol 132 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 8
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
FSelectableItemClass.prototype.init = function () {
var _local1 = this;
if (_local1._name != "itemAsset") {
_local1.highlighted = false;
_local1.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
var _local1 = this;
var _local2 = selected;
_local1.displayContent(itmObj, _local2);
if ((_local1.highlighted != _local2) || ((_local1.controller.focused != _local1.oldFocus) && (_local2))) {
_local1.setHighlighted(_local2);
}
_local1.oldFocus = _local1.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var _local1 = this;
var _local3 = width;
var _local2 = -16384;
_local1.width = _local3;
_local1.layoutContent(_local3);
_local1.attachMovie("FHighlightSymbol", "highlight_mc", _local2);
_local1.highlight_mc._x = 0.5;
_local1.highlight_mc._width = _local3 - 0.5;
_local1.highlight_mc._height = height;
_local1.highlight_mc.controller = _local1;
_local1.highlight_mc._alpha = 0;
_local1.highlight_mc.trackAsMenu = true;
_local1.highlight_mc.onPress = function () {
var _local1 = this;
if (_local1.controller.enable) {
_local1.controller.controller.clickHandler(_local1.controller.itemNum);
}
};
_local1.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
_local1.highlight_mc.useHandCursor = false;
_local1.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
_local1.enable = _local2;
_local1.fLabel_mc.setEnabled(_local2);
_local1.highlight_mc.gotoAndStop((_local2 ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
var _local1 = this;
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:_local1.controller});
_local1.fLabel_mc._x = 2;
_local1.fLabel_mc._y = 0;
_local1.fLabel_mc.setSize(width - 2);
_local1.fLabel_mc.labelField.selectable = false;
};
FSelectableItemClass.prototype.displayContent = function (itmObj, selected) {
var _local2 = itmObj;
var _local1 = "";
if (_local2.label != undefined) {
_local1 = _local2.label;
} else if (typeof(_local2) == "object") {
for (var _local3 in _local2) {
if (_local3 != "__ID__") {
_local1 = (_local2[_local3] + ", ") + _local1;
}
}
_local1 = _local1.substring(0, _local1.length - 2);
} else {
_local1 = _local2;
}
if (this.fLabel_mc.labelField.text != _local1) {
this.fLabel_mc.setLabel(_local1);
}
var clr = (selected ? (this.controller.styleTable.textSelected.value) : (this.controller.styleTable.textColor.value));
if (clr == undefined) {
clr = (selected ? 16777215 : 0);
}
this.fLabel_mc.setColor(clr);
};
FSelectableItemClass.prototype.getItemIndex = function () {
return(this.controller.getScrollPosition() + this.itemNum);
};
FSelectableItemClass.prototype.getItemModel = function () {
return(this.controller.getItemAt(this.getItemIndex()));
};
FSelectableItemClass.prototype.getHostDataProvider = function () {
return(this.controller.dataProvider);
};
FSelectableItemClass.prototype.setHighlighted = function (flag) {
var _local1 = this;
var _local2 = flag;
fade = _local1.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!_local2)) {
_local1.highlight_mc._alpha = (_local2 ? 100 : 0);
delete _local1.onEnterFrame;
} else {
_local1.fadeN = fade;
_local1.fadeX = 1;
_local1.highLight_mc._alpha = 20;
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.highLight_mc._alpha = (60 * Math.sqrt((_local1.fadeX++) / _local1.fadeN)) + 40;
if (_local1.fadeX > _local1.fadeN) {
delete _local1.onEnterFrame;
}
};
}
_local1.highlighted = _local2;
};
#endinitclip
Symbol 133 MovieClip [FSelectableListSymbol] Frame 1
#initclip 5
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
var _local1 = this;
super.init();
_local1.enable = true;
_local1.selected = new Array();
_local1.topDisplayed = (_local1.numDisplayed = 0);
_local1.lastSelected = 0;
_local1.tabChildren = false;
if (_local1._name != undefined) {
_local1.dataProvider = new DataProviderClass();
_local1.dataProvider.addView(_local1);
}
};
FSelectableListClass.prototype.addItemAt = function (index, label, data) {
if ((index < 0) || (!this.enable)) {
return(undefined);
}
this.dataProvider.addItemAt(index, {label:label, data:data});
};
FSelectableListClass.prototype.addItem = function (label, data) {
if (!this.enable) {
return(undefined);
}
this.dataProvider.addItem({label:label, data:data});
};
FSelectableListClass.prototype.removeItemAt = function (index) {
var _local1 = this;
_local1.selectHolder = _local1.getSelectedIndex();
var _local2 = _local1.getItemAt(index);
_local1.dataProvider.removeItemAt(index);
return(_local2);
};
FSelectableListClass.prototype.removeAll = function () {
this.dataProvider.removeAll();
};
FSelectableListClass.prototype.replaceItemAt = function (index, newLabel, newData) {
this.dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
};
FSelectableListClass.prototype.sortItemsBy = function (fieldName, order) {
var _local1 = this;
_local1.lastSelID = _local1.dataProvider.getItemID(_local1.lastSelected);
_local1.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
var _local2 = this;
for (var _local3 in _local2.selected) {
var _local1 = _local2.selected[_local3].sIndex;
if (_local1 != undefined) {
return(_local1);
}
}
return(undefined);
};
FSelectableListClass.prototype.getSelectedItem = function () {
return(this.getItemAt(this.getSelectedIndex()));
};
FSelectableListClass.prototype.getItemAt = function (index) {
return(this.dataProvider.getItemAt(index));
};
FSelectableListClass.prototype.getEnabled = function () {
return(this.enable);
};
FSelectableListClass.prototype.getValue = function () {
var _local1 = this.getSelectedItem();
if (_local1.data != undefined) {
return(_local1.data);
}
return(_local1.label);
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
var _local1 = this;
var _local2 = index;
if (((_local2 >= 0) && (_local2 < _local1.getLength())) && (_local1.enable)) {
_local1.clearSelected();
_local1.selectItem(_local2, true);
_local1.lastSelected = _local2;
_local1.invalidate("updateControl");
if (flag != false) {
_local1.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
var _local2 = obj;
this.setScrollPosition(0);
this.clearSelected();
if (_local2 instanceof Array) {
this.dataProvider = new DataProviderClass();
var _local1 = 0;
while (_local1 < _local2.length) {
var _local3 = ((typeof(_local2[_local1]) == "string") ? ({label:_local2[_local1]}) : (_local2[_local1]));
this.dataProvider.addItem(_local3);
_local1++;
}
} else {
this.dataProvider = _local2;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
var _local1 = this;
_local1.tmpPos = _local1.getScrollPosition();
_local1.itemSymbol = linkID;
_local1.invalidate("setSize");
_local1.setScrollPosition(_local1.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
var _local2 = this;
_local2.cleanUI();
super.setEnabled(enabledFlag);
_local2.enable = enabledFlag;
_local2.boundingBox_mc.gotoAndStop((_local2.enable ? "enabled" : "disabled"));
var _local3 = Math.min(_local2.numDisplayed, _local2.getLength());
var _local1 = 0;
while (_local1 < _local3) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].setEnabled(_local2.enable);
_local1++;
}
if (_local2.enable) {
_local2.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].drawItem(_local2.getItemAt(_local2.topDisplayed + _local1), _local2.isSelected(_local2.topDisplayed + _local1));
_local1++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
var _local1 = this;
super.setSize(w, h);
_local1.boundingBox_mc._xscale = (_local1.boundingBox_mc._yscale = 100);
_local1.boundingBox_mc._xscale = (_local1.width * 100) / _local1.boundingBox_mc._width;
_local1.boundingBox_mc._yscale = (_local1.height * 100) / _local1.boundingBox_mc._height;
var _local2 = 0;
while (_local2 < _local1.numDisplayed) {
_local1.container_mc.attachMovie(_local1.itemSymbol, ("fListItem" + _local2) + "_mc", 10 + _local2, {controller:_local1, itemNum:_local2});
var _local3 = _local1.container_mc[("fListItem" + _local2) + "_mc"];
var offset = ((_local1.scrollOffset == undefined) ? 0 : (_local1.scrollOffset));
_local3.setSize(_local1.width - offset, _local1.itmHgt);
_local3._y = (_local1.itmHgt - 2) * _local2;
_local2++;
}
_local1.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var _local1 = this;
var firstRow = eventObj.firstRow;
var lastRow = eventObj.lastRow;
var event = eventObj.event;
if (event == "addRows") {
for (var _local2 in _local1.selected) {
if ((_local1.selected[_local2].sIndex != undefined) && (_local1.selected[_local2].sIndex >= firstRow)) {
_local1.selected[_local2].sIndex = _local1.selected[_local2].sIndex + ((lastRow - firstRow) + 1);
_local1.setSelectedIndex(_local1.selected[_local2].sIndex, false);
}
}
} else if (event == "deleteRows") {
if (firstRow == lastRow) {
var index = firstRow;
if (_local1.selectHolder == index) {
_local1.selectionDeleted = true;
}
if (((_local1.topDisplayed + _local1.numDisplayed) >= _local1.getLength()) && (_local1.topDisplayed > 0)) {
_local1.topDisplayed--;
if (_local1.selectionDeleted && ((index - 1) >= 0)) {
_local1.setSelectedIndex(index - 1, false);
}
} else if (_local1.selectionDeleted) {
var len = _local1.getLength();
if (((index == (len - 1)) && (len > 1)) || (index > (len / 2))) {
_local1.setSelectedIndex(index - 1, false);
} else {
_local1.setSelectedIndex(index, false);
}
}
for (var _local2 in _local1.selected) {
if (_local1.selected[_local2].sIndex > firstRow) {
_local1.selected[_local2].sIndex--;
}
}
} else {
_local1.clearSelected();
_local1.topDisplayed = 0;
}
} else if (event == "sort") {
var len = _local1.getLength();
var _local2 = 0;
while (_local2 < len) {
if (_local1.isSelected(_local2)) {
var _local3 = _local1.dataProvider.getItemID(_local2);
if (_local3 == _local1.lastSelID) {
_local1.lastSelected = _local2;
}
_local1.selected[String(_local3)].sIndex = _local2;
}
_local2++;
}
}
_local1.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
var _local1 = this;
_local1.attachMovie(_local1.itemSymbol, "tmpItem_mc", 0, {controller:_local1});
_local1.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
_local1.itmHgt = _local1.tmpItem_mc._height;
_local1.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
var _local1 = this;
var _local2 = index;
if (selectedFlag && (!_local1.isSelected(_local2))) {
_local1.selected[String(_local1.dataProvider.getItemID(_local2))] = {sIndex:_local2};
} else if (!selectedFlag) {
delete _local1.selected[String(_local1.dataProvider.getItemID(_local2))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
var _local1 = this;
for (var _local3 in _local1.selected) {
var _local2 = _local1.selected[_local3].sIndex;
if (((_local2 != undefined) && (_local1.topDisplayed <= _local2)) && (_local2 < (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.container_mc[("fListItem" + (_local2 - _local1.topDisplayed)) + "_mc"].drawItem(_local1.getItemAt(_local2), false);
}
}
delete _local1.selected;
_local1.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var _local1 = this;
var _local2 = _local1.topDisplayed + itemNum;
if (_local1.getItemAt(_local2 == undefined)) {
_local1.changeFlag = false;
} else {
_local1.changeFlag = true;
_local1.clearSelected();
_local1.selectItem(_local2, true);
_local1.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local1.getItemAt(_local2), _local1.isSelected(_local2));
}
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var _local1 = this;
var _local3 = _local1.getSelectedIndex();
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(_local1.getLength() - 1, _local2);
if (_local2 == _local3) {
} else {
if ((_local3 < _local1.topDisplayed) || (_local3 >= (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.setScrollPosition(_local3);
}
if ((_local2 >= (_local1.topDisplayed + _local1.numDisplayed)) || (_local2 < _local1.topDisplayed)) {
_local1.setScrollPosition(_local1.topDisplayed + incr);
}
_local1.selectionHandler(_local2 - _local1.topDisplayed);
}
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
_local1.focusRect.removeMovieClip();
if (!_local1.focused) {
_local1.pressFocus();
}
_local1.selectionHandler(itmNum);
_local1.onMouseUp = _local1.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
var _local1 = this;
if (_local1.changeFlag) {
_local1.executeCallBack();
}
_local1.changeFlag = false;
_local1.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
var _local2 = this;
super.myOnSetFocus();
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].highlight_mc.gotoAndStop("enabled");
_local1++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
var _local2 = this;
super.myOnKillFocus();
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].highlight_mc.gotoAndStop("unfocused");
_local1++;
}
};
#endinitclip
Instance of Symbol 131 MovieClip [DataProviderSymbol] "dPAsset" in Symbol 133 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 132 MovieClip [FSelectableItemSymbol] "ItemAsset" in Symbol 133 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 134 MovieClip [FScrollSelectListSymbol] Frame 1
#initclip 7
function FScrollSelectListClass() {
this.init();
}
FScrollSelectListClass.prototype = new FSelectableListClass();
FScrollSelectListClass.prototype.getScrollPosition = function () {
return(this.topDisplayed);
};
FScrollSelectListClass.prototype.setScrollPosition = function (pos) {
var _local1 = pos;
var _local2 = this;
if (_local2.enable) {
_local1 = Math.min(_local1, _local2.getLength() - _local2.numDisplayed);
_local1 = Math.max(_local1, 0);
_local2.scrollBar_mc.setScrollPosition(_local1);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
var _local1 = this;
_local1.permaScrollBar = !flag;
_local1.setSize(_local1.width, _local1.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = _local1.getScrollPosition();
super.setSize(w, h);
if (_local1.scrollBar_mc != undefined) {
_local1.removed = true;
}
_local1.scrollBar_mc = undefined;
_local1.initScrollBar();
_local1.setScrollPosition(_local2);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
var _local1 = this;
if ((!_local1.permaScrollBar) && (_local1.getLength() <= _local1.numDisplayed)) {
if (_local1.removed) {
_local1.scrollBar_mc.removeMovieClip();
_local1.scrollBar_mc = undefined;
_local1.scrollOffset = undefined;
_local1.invalidate("setSize");
}
} else {
if (_local1.scrollBar_mc == undefined) {
_local1.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:_local1.styleTable});
_local1.scrollBar_mc = _local1.container_mc.scrollBar_mc;
_local1.scrollBar_mc.setChangeHandler("scrollHandler", _local1);
_local1.scrollBar_mc.setSize(_local1.height);
_local1.scrollBar_mc._x = _local1.width - _local1.scrollBar_mc._width;
_local1.scrollBar_mc._y = 0;
_local1.scrollBar_mc.setLargeScroll(_local1.numDisplayed - 1);
_local1.scrollOffset = _local1.scrollBar_mc._width;
_local1.invalidate("setSize");
}
_local1.scrollBar_mc.setScrollProperties(_local1.numDisplayed, 0, _local1.getLength() - _local1.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var _local2 = this;
var _local1 = scrollBar.getScrollPosition();
_local2.topDisplayed = _local1;
if (_local2.lastPosition != _local1) {
_local2.updateControl();
}
_local2.lastPosition = _local1;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
super.clickHandler(itmNum);
if ((_local1.dragScrolling == undefined) && (_local1.scrollBar_mc != undefined)) {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
var _local1 = this;
clearInterval(_local1.dragScrolling);
if (_local1.container_mc._ymouse < 0) {
_local1.setScrollPosition(_local1.getScrollPosition() - 1);
_local1.selectionHandler(0);
_local1.scrollInterval = Math.max(25, (-23.8 * (-_local1.container_mc._ymouse)) + 500);
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
} else if (_local1.container_mc._ymouse > ((_local1.itmHgt - 2) * _local1.numDisplayed)) {
_local1.setScrollPosition(_local1.getScrollPosition() + 1);
_local1.selectionHandler(_local1.numDisplayed - 1);
_local1.scrollInterval = Math.max(25, (-23.8 * Math.abs((_local1.container_mc._ymouse - ((_local1.itmHgt - 2) * _local1.numDisplayed)) - 2)) + 500);
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
} else {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
var _local2 = this;
if (_local2.focused) {
_local2.keyCodes = new Array(40, 38, 34, 33, 36, 35);
_local2.keyIncrs = new Array(1, -1, _local2.numDisplayed - 1, -(_local2.numDisplayed - 1), -_local2.getLength(), _local2.getLength());
var _local1 = 0;
while (_local1 < _local2.keyCodes.length) {
if (Key.isDown(_local2.keyCodes[_local1])) {
_local2.moveSelBy(_local2.keyIncrs[_local1]);
return;
}
_local1++;
}
_local2.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var _local1 = Key.getAscii();
if ((_local1 >= 33) && (_local1 <= 126)) {
this.findString(String.fromCharCode(_local1));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
} else {
var _local3 = this.getSelectedIndex();
var jump = 0;
var _local1 = _local3 + 1;
while (_local1 != _local3) {
var _local2 = this.getItemAt(_local1).label.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
var jump = (_local1 - _local3);
break;
}
if (_local1 >= (this.getLength() - 1)) {
_local1 = -1;
}
_local1++;
}
if (jump != 0) {
this.moveSelBy(jump);
}
}
};
#endinitclip
Instance of Symbol 130 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 134 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
onClipEvent (load) {
this._width = (this._height = 1);
}
Instance of Symbol 133 MovieClip [FSelectableListSymbol] "superClassAsset" in Symbol 134 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 135 MovieClip [FComboBoxItemSymbol] Frame 1
#initclip 9
function FComboBoxItemClass() {
this.init();
}
FComboBoxItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FComboBoxItemSymbol", FComboBoxItemClass);
FComboBoxItemClass.prototype.setSize = function (w, h) {
var _local1 = this;
super.setSize(w, h);
_local1.highlight_mc.onRollOver = function () {
this.controller.controller.selectionHandler(this.controller.itemNum);
};
};
#endinitclip
Symbol 138 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 138 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 141 MovieClip [FComboBoxSymbol] Frame 1
#initclip 10
function FComboBoxClass() {
var _local1 = this;
_global._popUpLevel = ((_global._popUpLevel == undefined) ? 20000 : (_global._popUpLevel + 1));
_local1.superHolder = _root.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
var _local3 = _local1.superHolder.createEmptyMovieClip("testCont", 20000);
var testBox = _local3.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
if (testBox._name == undefined) {
_local1.superHolder.removeMovieClip();
_local1.superHolder = _local1._parent.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
} else {
_local3.removeMovieClip();
}
if (_local1.rowCount == undefined) {
_local1.rowCount = 8;
_local1.editable = false;
}
_local1.itemSymbol = "FComboBoxItemSymbol";
_local1.init();
_local1.permaScrollBar = false;
_local1.proxyBox_mc.gotoAndStop(1);
_local1.width = _local1._width;
_local1.height = (_local1.proxyBox_mc._height * _local1._yscale) / 100;
var _local2 = 0;
while (_local2 < _local1.labels.length) {
_local1.addItem(_local1.labels[_local2], _local1.data[_local2]);
_local2++;
}
_local1.lastSelected = 0;
_local1.selectItem(0);
_local1._xscale = (_local1._yscale = 100);
_local1.opened = false;
_local1.setSize(_local1.width);
_local1.highlightTop(false);
if (_local1.changeHandler.length > 0) {
_local1.setChangeHandler(_local1.changeHandler);
}
_local1.onUnload = function () {
this.superHolder.removeMovieClip();
};
_local1.setSelectedIndex(0, false);
_local1.value = "";
_local1.focusEnabled = true;
_local1.changeFlag = false;
}
FComboBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FComboBoxSymbol", FComboBoxClass);
FComboBoxClass.prototype.modelChanged = function (eventObj) {
var _local1 = this;
super.modelChanged(eventObj);
var _local2 = eventObj.event;
if ((_local2 == "addRows") || (_local2 == "deleteRows")) {
var diff = ((eventObj.lastRow - eventObj.firstRow) + 1);
var mode = ((_local2 == "addRows") ? 1 : -1);
var _local3 = _local1.getLength();
var lenBefore = (_local3 - (mode * diff));
if ((_local1.rowCount > lenBefore) || (_local1.rowCount > _local3)) {
_local1.invalidate("setSize");
}
if (_local1.getSelectedIndex() == undefined) {
_local1.setSelectedIndex(0, false);
}
} else if (_local2 == "updateAll") {
_local1.invalidate("setSize");
}
};
FComboBoxClass.prototype.removeAll = function () {
var _local1 = this;
if (!_local1.enable) {
} else {
super.removeAll();
if (_local1.editable) {
_local1.value = "";
}
_local1.invalidate("setSize");
}
};
FComboBoxClass.prototype.setSize = function (w) {
var _local1 = this;
var _local2 = w;
if ((((_local2 == undefined) || (typeof(_local2) != "number")) || (_local2 <= 0)) || (!_local1.enable)) {
} else {
_local1.proxyBox_mc._width = _local2;
_local1.container_mc.removeMovieClip();
_local1.measureItmHgt();
_local1.container_mc = _local1.superHolder.createEmptyMovieClip("container", 3);
_local1.container_mc.tabChildren = false;
_local1.setPopUpLocation(_local1.container_mc);
_local1.container_mc.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
_local1.boundingBox_mc = _local1.container_mc.boundingBox_mc;
_local1.boundingBox_mc.component = _local1;
_local1.registerSkinElement(_local1.boundingBox_mc.boundingBox, "background");
_local1.proxyBox_mc._height = _local1.itmHgt;
_local1.numDisplayed = Math.min(_local1.rowCount, _local1.getLength());
if (_local1.numDisplayed < 3) {
_local1.numDisplayed = Math.min(3, _local1.getLength());
}
_local1.height = (_local1.numDisplayed * (_local1.itmHgt - 2)) + 2;
super.setSize(_local2, _local1.height);
_local1.attachMovie("DownArrow", "downArrow", 10);
_local1.downArrow._y = 0;
_local1.downArrow._width = _local1.itmHgt;
_local1.downArrow._height = _local1.itmHgt;
_local1.downArrow._x = _local1.proxyBox_mc._width - _local1.downArrow._width;
_local1.setEditable(_local1.editable);
_local1.container_mc._visible = _local1.opened;
_local1.highlightTop(false);
_local1.fader = _local1.superHolder.attachMovie("FBoundingBoxSymbol", "faderX", 4);
_local1.registerSkinElement(_local1.fader.boundingBox, "background");
_local1.fader._width = _local1.width;
_local1.fader._height = _local1.height;
_local1.fader._visible = false;
}
};
FComboBoxClass.prototype.setDataProvider = function (dp) {
super.setDataProvider(dp);
this.invalidate("setSize");
this.setSelectedIndex(0);
};
FComboBoxClass.prototype.getValue = function () {
if (this.editable) {
return(this.fLabel_mc.getLabel());
}
return(super.getValue());
};
FComboBoxClass.prototype.getRowCount = function () {
return(this.rowCount);
};
FComboBoxClass.prototype.setRowCount = function (count) {
var _local1 = this;
var _local3 = count;
_local1.rowCount = ((_local1.getLength() > _local3) ? (Math.max(_local3, 3)) : (_local3));
_local1.setSize(_local1.width);
var _local2 = _local1.getLength();
if ((_local2 - _local1.getScrollPosition()) < _local1.rowCount) {
_local1.setScrollPosition(_local2 - Math.min(_local1.rowCount, _local2));
_local1.invalidate("updateControl");
}
};
FComboBoxClass.prototype.setEditable = function (editableFlag) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.editable = editableFlag;
if (!_local1.editable) {
_local1.onPress = _local1.pressHandler;
_local1.useHandCursor = false;
_local1.trackAsMenu = true;
_local1.attachMovie("FComboBoxItemSymbol", "fLabel_mc", 5, {controller:_local1, itemNum:-1});
_local1.fLabel_mc.onRollOver = undefined;
_local1.fLabel_mc.setSize((_local1.width - _local1.itmHgt) + 1, _local1.itmHgt);
_local1.topLabel = _local1.getSelectedItem();
_local1.fLabel_mc.drawItem(_local1.topLabel, false);
_local1.highlightTop(false);
} else {
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 5);
_local1.fLabel_txt = _local1.fLabel_mc.labelField;
_local1.fLabel_txt.type = "input";
_local1.fLabel_txt._x = 4;
_local1.fLabel_txt.onSetFocus = _local1.onLabelFocus;
_local1.fLabel_mc.setSize((_local1.width - _local1.itmHgt) - 3);
delete _local1.onPress;
_local1.fLabel_txt.onKillFocus = function () {
this._parent._parent.myOnKillFocus();
};
_local1.fLabel_mc.setLabel(_local1.value);
_local1.fLabel_txt.onChanged = function () {
this._parent._parent.findInputText();
};
_local1.downArrow.onPress = _local1.buttonPressHandler;
_local1.downArrow.useHandCursor = false;
_local1.downArrow.trackAsMenu = true;
}
}
};
FComboBoxClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
_local2 = (((_local2 == undefined) || (typeof(_local2) != "boolean")) ? true : (_local2));
super.setEnabled(_local2);
_local1.registerSkinElement(_local1.boundingBox_mc.boundingBox, "background");
_local1.proxyBox_mc.gotoAndStop((_local1.enable ? "enabled" : "disabled"));
_local1.downArrow.gotoAndStop((_local1.enable ? 1 : 3));
if (_local1.editable) {
_local1.fLabel_txt.type = (_local2 ? "input" : "dynamic");
_local1.fLabel_txt.selectable = _local2;
} else if (_local2) {
_local1.fLabel_mc.drawItem(_local1.topLabel, false);
_local1.setSelectedIndex(_local1.getSelectedIndex(), false);
}
_local1.fLabel_mc.setEnabled(_local1.enable);
_local1.fLabel_txt.onSetFocus = (_local2 ? (_local1.onLabelFocus) : undefined);
};
FComboBoxClass.prototype.setSelectedIndex = function (index, flag) {
var _local1 = this;
super.setSelectedIndex(index, flag);
if (!_local1.editable) {
_local1.topLabel = _local1.getSelectedItem();
_local1.fLabel_mc.drawItem(_local1.topLabel, false);
} else {
_local1.value = ((flag != undefined) ? "" : (_local1.getSelectedItem().label));
_local1.fLabel_mc.setLabel(_local1.value);
}
_local1.invalidate("updateControl");
};
FComboBoxClass.prototype.setValue = function (value) {
var _local1 = this;
if (_local1.editable) {
_local1.fLabel_mc.setLabel(value);
_local1.value = value;
}
};
FComboBoxClass.prototype.pressHandler = function () {
var _local1 = this;
_local1.focusRect.removeMovieClip();
if (_local1.enable) {
if (!_local1.opened) {
_local1.onMouseUp = _local1.releaseHandler;
} else {
_local1.onMouseUp = undefined;
}
_local1.changeFlag = false;
if (!_local1.focused) {
_local1.pressFocus();
_local1.clickFilter = (_local1.editable ? false : true);
}
if (!_local1.clickFilter) {
_local1.openOrClose(!_local1.opened);
} else {
_local1.clickFilter = false;
}
}
};
FComboBoxClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
if (!_local1.focused) {
if (_local1.editable) {
_local1.fLabel_txt.onKillFocus = undefined;
}
_local1.pressFocus();
}
super.clickHandler(itmNum);
_local1.selectionHandler(itmNum);
_local1.onMouseUp = _local1.releaseHandler;
};
FComboBoxClass.prototype.highlightTop = function (flag) {
var _local1 = this;
if (!_local1.editable) {
_local1.fLabel_mc.drawItem(_local1.topLabel, flag);
}
};
FComboBoxClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
this.fLabel_mc.highlight_mc.gotoAndStop("enabled");
this.highlightTop(true);
};
FComboBoxClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1._height + 4);
};
FComboBoxClass.prototype.myOnKillFocus = function () {
var _local1 = this;
if (Selection.getFocus().indexOf("labelField") != -1) {
} else {
super.myOnKillFocus();
delete _local1.fLabel_txt.onKeyDown;
_local1.openOrClose(false);
_local1.highlightTop(false);
}
};
FComboBoxClass.prototype.setPopUpLocation = function (mcRef) {
var _local1 = this;
var _local3 = mcRef;
_local3._x = _local1._x;
var _local2 = {x:_local1._x, y:_local1._y + _local1.proxyBox_mc._height};
_local1._parent.localToGlobal(_local2);
_local3._parent.globalToLocal(_local2);
_local3._x = _local2.x;
_local3._y = _local2.y;
if ((_local1.height + _local3._y) >= Stage.height) {
_local1.upward = true;
_local3._y = (_local2.y - _local1.height) - _local1.proxyBox_mc._height;
} else {
_local1.upward = false;
}
};
FComboBoxClass.prototype.openOrClose = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.getLength() == 0) {
} else {
_local1.setPopUpLocation(_local1.container_mc);
if ((_local1.lastSelected != -1) && ((_local1.lastSelected < _local1.topDisplayed) || (_local1.lastSelected > (_local1.topDisplayed + _local1.numDisplayed)))) {
super.moveSelBy(_local1.lastSelected - _local1.getSelectedIndex());
}
if (!_local2) {
(_local1.downArrow.gotoAndStop(1));// not popped
} else {
(_local1.downArrow.gotoAndStop(2));// not popped
}
if (_local2 == _local1.opened) {
} else {
_local1.highlightTop(!_local2);
_local1.fadeRate = _local1.styleTable.popUpFade.value;
if (((!_local2) || (_local1.fadeRate == undefined)) || (_local1.fadeRate == 0)) {
_local1.opened = (_local1.container_mc._visible = _local2);
} else {
_local1.setPopUpLocation(_local1.fader);
_local1.time = 0;
_local1.const = 85 / Math.sqrt(_local1.fadeRate);
_local1.fader._alpha = 85;
_local1.container_mc._visible = (_local1.fader._visible = true);
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.fader._alpha = 100 - ((_local1.const * Math.sqrt(++_local1.time)) + 15);
if (_local1.time >= _local1.fadeRate) {
_local1.fader._visible = false;
delete _local1.onEnterFrame;
_local1.opened = true;
}
};
}
}
}
};
FComboBoxClass.prototype.fireChange = function () {
var _local1 = this;
_local1.lastSelected = _local1.getSelectedIndex();
if (!_local1.editable) {
_local1.topLabel = _local1.getSelectedItem();
_local1.fLabel_mc.drawItem(_local1.topLabel, true);
} else {
_local1.value = _local1.getSelectedItem().label;
_local1.fLabel_mc.setLabel(_local1.value);
}
_local1.executeCallback();
};
FComboBoxClass.prototype.releaseHandler = function () {
var _local1 = this;
var _local2 = _root;
var _local3 = _local1.boundingBox_mc.hitTest(_local2._xmouse, _local2._ymouse);
if (_local1.changeFlag) {
if (_local3) {
_local1.fireChange();
}
_local1.openOrClose(!_local1.opened);
} else if (_local3) {
_local1.openOrClose(false);
} else {
_local1.onMouseDown = function () {
var _local1 = this;
var _local2 = _root;
if ((!_local1.boundingBox_mc.hitTest(_local2._xmouse, _local2._ymouse)) && (!_local1.hitTest(_local2._xmouse, _local2._ymouse))) {
_local1.onMouseDown = undefined;
_local1.openOrClose(false);
}
};
}
_local1.changeFlag = false;
_local1.onMouseUp = undefined;
clearInterval(_local1.dragScrolling);
_local1.dragScrolling = undefined;
};
FComboBoxClass.prototype.moveSelBy = function (itemNum) {
var _local1 = this;
if (itemNum != 0) {
super.moveSelBy(itemNum);
if (_local1.editable) {
_local1.setValue(_local1.getSelectedItem().label);
}
if (!_local1.opened) {
if (_local1.changeFlag && (!_local1.isSelected(_local1.lastSelected))) {
_local1.fireChange();
}
}
}
};
FComboBoxClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if (!_local1.focused) {
} else {
if (_local1.editable && (Key.isDown(13))) {
_local1.setValue(_local1.fLabel_mc.getLabel());
_local1.executeCallback();
_local1.openOrClose(false);
} else if ((Key.isDown(13) || (Key.isDown(32) && (!_local1.editable))) && (_local1.opened)) {
if (_local1.getSelectedIndex() != _local1.lastSelected) {
_local1.fireChange();
}
_local1.openOrClose(false);
_local1.fLabel_txt.hscroll = 0;
}
super.myOnKeyDown();
}
};
FComboBoxClass.prototype.findInputText = function () {
if (!this.editable) {
super.findInputText();
}
};
FComboBoxClass.prototype.onLabelFocus = function () {
var _local1 = this;
_local1._parent._parent.tabFocused = false;
_local1._parent._parent.focused = true;
_local1.onKeyDown = function () {
this._parent._parent.myOnKeyDown();
};
Key.addListener(_local1);
};
FComboBoxClass.prototype.buttonPressHandler = function () {
this._parent.pressHandler();
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 134 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 141 MovieClip [FComboBoxSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 142 MovieClip [actioncomp] Frame 1
if (_root.showaction[num] != undefined) {
cmpt.setSelectedIndex(_root.showaction[num]);
} else {
cmpt.setSelectedIndex(0);
}
modelaction = function (componet) {
var _local1 = _root;
_local1.sndattach("click1_snd");
_local1.showaction[num] = componet.getvalue();
_local1.stopsignnum = 0;
_local1.playstop_mc.gotoAndStop("stop_lb");
_local1.womanshow(num);
};
Instance of Symbol 141 MovieClip [FComboBoxSymbol] "cmpt" in Symbol 142 MovieClip [actioncomp] Frame 1
//component parameters
onClipEvent (initialize) {
editable = false;
labels = [];
labels[0] = "\uC560\uB2C8\uBA54\uC774\uC158 \uD6A8\uACFC";
labels[1] = "\uBA40\uB9AC\uC11C\uBD80\uD130";
labels[2] = "\uC704\uC5D0\uC11C \uB0B4\uB824\uC624\uAE30";
labels[3] = "\uC544\uB798\uC5D0\uC11C \uC62C\uB77C\uAC00\uAE30";
labels[4] = "\uC67C\uCABD\uC5D0\uC11C \uB098\uD0C0\uB098\uAE30";
labels[5] = "\uC624\uB978\uCABD\uC5D0\uC11C \uB098\uD0C0\uB098\uAE30";
labels[6] = "\uBA40\uB9AC\uC11C \uD68C\uC804\uD558\uBA74\uC11C";
labels[7] = "\uC810\uC810\uC120\uBA85\uD558\uAC8C";
labels[8] = "\uB4A4\uC9D1\uC5B4 \uB3CC\uB9AC\uAE30";
labels[9] = "\uC81C\uC790\uB9AC\uC5D0 \uAC00\uB9CC\uD788";
data = [];
data[0] = 0;
data[1] = 1;
data[2] = 2;
data[3] = 3;
data[4] = 4;
data[5] = 5;
data[6] = 6;
data[7] = 7;
data[8] = 8;
data[9] = 9;
rowCount = 8;
changeHandler = "modelaction";
}
Symbol 148 Button
on (release) {
_root.sndattach("bong");
_root.removeswoman(num);
removeMovieClip("");
}
Symbol 155 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (random(70) == 1) {
delete this.onEnterFrame;
play();
}
};
Symbol 284 Button
on (press) {
m_id = _root.m_id;
this.getURL("../story/session_id.asp", "_self", "post");
}
Symbol 299 Button
on (release) {
_root.doumiend_fn();
}
Symbol 334 MovieClip [SPICK] Frame 1
#initclip 3
if (_global.superclass == undefined) {
_global.superclass = function () {
};
_global.superclass.prototype = new MovieClip();
_global.superclass.prototype.PressAdd = function () {
var _local2 = arguments;
var _local3 = this;
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.colorp[String(_local2[_local1])] = new Color(String(_local2[_local1]));
_local1++;
}
};
_global.superclass.prototype.RemoveAdd = function () {
var _local2 = arguments;
var _local3 = this;
var _local1 = 0;
while (_local1 < _local2.length) {
delete _local3.colorp[_local2[_local1]];
delete _local3.colorr[_local2[_local1]];
_local1++;
}
};
_global.superclass.prototype.PressNew = function () {
var _local2 = arguments;
var _local3 = this;
_local3.colorp = undefined;
_local3.colorp = {};
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.colorp[_local2[_local1]] = new Color(_local2[_local1]);
_local1++;
}
};
}
_global.superclass.prototype.ReleaseAdd = function () {
var _local2 = arguments;
var _local3 = this;
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.colorr[_local2[_local1]] = new Color(_local2[_local1]);
_local1++;
}
};
_global.superclass.prototype.ReleaseNew = function () {
var _local2 = arguments;
var _local3 = this;
_local3.colorr = undefined;
_local3.colorr = {};
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.colorr[_local2[_local1]] = new Color(_local2[_local1]);
_local1++;
}
};
spicker = function () {
this.createEmptyMovieClip("under", 1);
with (this.under) {
colors = [16711680, 16776960, 65280, 65535, 255, 16711935, 16711680];
alphas = [100, 100, 100, 100, 100, 100, 100];
ratios = [];
var i = 0;
while (i < 7) {
ratios[ratios.length] = 42.5 * i;
i++;
}
matrix = {matrixType:"box", x:0, y:100, w:255, h:200, r:0};
beginGradientFill("linear", colors, alphas, ratios, matrix);
moveto(0, 0);
lineto(0, 255);
lineto(255, 255);
lineto(255, 0);
lineto(0, 0);
endFill();
colors = [16777215, 16777215, 0, 0];
alphas = [100, 0, 0, 100];
ratios = [0, 63.75, 127.5, 255];
matrix = {matrixType:"box", x:0, y:0, w:255, h:255, r:(Math.PI/2)};
beginGradientFill("linear", colors, alphas, ratios, matrix);
moveto(0, 0);
lineto(0, 255);
lineto(255, 255);
lineto(255, 0);
lineto(0, 0);
endFill();
}
this.colorr = {};
this.colorp = {};
this.w = (this.under._width = 133);
this.h = (this.under._height = 60);
this.h2 = this.h / 2;
this.perx = this.w / 6;
this.cperx = Math.round(255000 / this.perx) / 1000;
};
spicker.prototype = new superclass();
spicker.prototype.checked = function () {
var _local1 = this;
var _local2 = _local1._xmouse;
var _local3 = _local1._ymouse;
var n = Math.floor(_local2 / _local1.perx);
switch (n) {
case 0 :
_local1.r = 255;
_local1.g = _local1.cperx * _local2;
_local1.b = 0;
break;
case 1 :
_local1.r = _local1.cperx * ((2 * _local1.perx) - _local2);
_local1.g = 255;
_local1.b = 0;
break;
case 2 :
_local1.r = 0;
_local1.g = 255;
_local1.b = _local1.cperx * (_local2 - (2 * _local1.perx));
break;
case 3 :
_local1.r = 0;
_local1.g = _local1.cperx * ((4 * _local1.perx) - _local2);
_local1.b = 255;
break;
case 4 :
_local1.r = _local1.cperx * (_local2 - (4 * _local1.perx));
_local1.g = 0;
_local1.b = 255;
break;
case 5 :
_local1.r = 255;
_local1.g = 0;
_local1.b = _local1.cperx * (_local1.w - _local2);
break;
case 6 :
_local1.r = 255;
_local1.g = 0;
_local1.b = 0;
}
if (_local3 > _local1.h2) {
var hp = ((_local1.h - _local3) / _local1.h2);
_local1.r = _local1.r * hp;
_local1.g = _local1.g * hp;
_local1.b = _local1.b * hp;
} else if (_local3 < _local1.h2) {
var temp = ((_local1.h2 - _local3) / _local1.h2);
_local1.r = _local1.r + (temp * (255 - _local1.r));
_local1.g = _local1.g + (temp * (255 - _local1.g));
_local1.b = _local1.b + (temp * (255 - _local1.b));
}
_local1.output = ((_local1.r << 16) | (_local1.g << 8)) | _local1.b;
_local1._r = _local1.r;
_local1._g = _local1.g;
_local1._b = _local1.b;
return(_local1.output);
};
spicker.prototype.lin = function () {
var _local1 = this;
_local1.linkname.cur2._rotation = (-_local1._xmouse) * _local1.rl;
_local1.linkname.checkedround(_local1._xmouse * _local1.rl);
if (_local1._ymouse < _local1.h2) {
_local1.linkname.cur._x = (_local1._ymouse * _local1.yl) - _local1.linkname.w2;
_local1.linkname.cur._y = -_local1.linkname.h2;
} else {
_local1.linkname.cur._x = _local1.linkname.w2;
_local1.linkname.cur._y = ((_local1._ymouse - _local1.h2) * _local1.yl) - _local1.linkname.h2;
}
_local1.linkname.makeall(_local1.linkname.colorr);
_local1.linkname.makeall(_local1.linkname.colorp);
};
spicker.prototype.LinkTo = function () {
this.linkname = eval (String(arguments[0]));
this.rl = 360 / this.w;
this.yl = this.linkname.h / this.h2;
};
Object.registerClass("SPICK", spicker);
#endinitclip
under.useHandCursor = false;
if (Link != "") {
LinkTo(Link);
}
var a = 0;
while (a < mcv.length) {
if ((substring(mcv[a], 0, 5)) == "_root") {
PressAdd(mcv[a]);
} else {
PressAdd((_parent + ".") + mcv[a]);
}
a++;
}
var a = 0;
while (a < mcv2.length) {
if ((substring(mcv2[a], 0, 5)) == "_root") {
ReleaseAdd(mcv2[a]);
} else {
PressAdd((_parent + ".") + mcv2[a]);
}
a++;
}
under.onRollOver = function () {
var _local1 = _root;
_local1.attachMovie("cur", "cur", 100000, {_x:_local1._xmouse, _y:_local1._ymouse});
Mouse.hide();
_local1.cur.startDrag();
};
under.onDragOver = function () {
under.onRollOver();
under.onPress();
};
under.onPress = function () {
var _local1 = _root;
output = checked();
_local1.chcolorfn(output, int(_r), int(_g), int(_b));
_parent.rg_color.rerange_fn(int(_r), int(_g), int(_b));
for (var _local2 in colorp) {
colorp[_local2].setRGB(output);
}
under.onMouseMove = function () {
var _local1 = _root;
_local1.cur._x = _local1._xmouse;
_local1.cur._y = _local1._ymouse;
if (under.hitTest(_local1._xmouse, _local1._ymouse, true)) {
for (var _local2 in colorp) {
colorp[_local2].setRGB(checked());
}
} else {
delete under.onMouseMove;
_local1.cur.removeMovieClip();
Mouse.show();
}
updateAfterEvent();
};
};
under.onRelease = function () {
if (linkname != "undefined") {
lin();
}
for (var _local1 in colorr) {
colorr[_local1].setRGB(checked());
}
delete under.onMouseMove;
};
under.onRollOut = function () {
delete under.onMouseMove;
_root.cur.removeMovieClip();
Mouse.show();
};
under.onReleaseOutside = function () {
for (var _local1 in colorr) {
colorr[_local1].setRGB(output);
}
delete under.onMouseMove;
_root.cur.removeMovieClip();
Mouse.show();
};
delete mcv;
delete mcv2;
Symbol 437 MovieClip Frame 1
stop();
_parent.light_mc.go._visible = true;
Symbol 437 MovieClip Frame 2
stop();
_parent.light_mc.go._visible = false;
Symbol 439 Button
on (release) {
lighton_fn();
}
Symbol 445 Button
on (release) {
_parent.gostilist_fn();
}
Symbol 452 Button
on (release) {
_parent.callptnwin_fn();
}
Symbol 457 Button
on (release) {
_parent.colorpallet_mc.visi_fn();
}
Symbol 485 Button
on (release) {
_parent.attachtip();
}
Symbol 497 Button
on (release) {
_parent.hitwoman();
_parent.gotoAndStop("workroom");
}
Symbol 503 Button
on (release) {
_parent.replay_fn();
}
Symbol 509 Button
on (release) {
gotoAndStop (2);
_parent.autopos_fn(0);
}
Symbol 514 Button
on (release) {
gotoAndStop (1);
_parent.autopos_fn(1);
}
Symbol 515 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 2
stop();
Symbol 524 Button
on (release) {
_root.viewlarge_fn();
}
Symbol 528 Button
on (release) {
_parent.callptnwin_fn();
}
Symbol 534 Button
on (release) {
_parent.colorpallet_mc.visi_fn();
}
Symbol 537 Button
on (release) {
_root.viewsmall_fn();
}
Symbol 538 MovieClip Frame 1
function init_fn() {
var _local1 = _root;
initnum = 1;
snd_mc.onRelease = function () {
var _local1 = _root;
if (_local1.sndon == 1) {
_local1.sndon = 0;
this.stop();
} else {
_local1.sndon = 1;
this.play();
}
};
ptn_btn.onRollOver = function () {
_root.ptnshow_fn();
};
ptn_btn.onRollOut = function () {
_root.ptnshowout_fn();
};
if (_local1.autopos == 0) {
autopos_ch.gotoAndStop(2);
} else {
autopos_ch.gotoAndStop(1);
}
if (_local1.lightonnum == 1) {
onlight.gotoAndStop(1);
light_mc.go._visible = 1;
} else {
onlight.gotoAndStop(2);
light_mc.go._visible = 0;
}
if (_local1.largemode == 1) {
gotoAndStop (2);
_parent.viewlarge_fn();
}
}
function lighton_fn() {
var _local1 = _parent;
if (onlight._currentframe == 1) {
onlight.gotoAndStop(2);
light_mc.go._visible = false;
_local1.lightonnum = 0;
} else {
onlight.gotoAndStop(1);
_local1.lightonnum = 1;
light_mc.go._visible = true;
}
myLSO = SharedObject.getLocal("sh_autopos", _local1.soldepdir);
myLSO.data.lightonnum = _local1.lightonnum;
myLSO.flush();
delete myLSO;
}
function autopos_fn(ap) {
_root.autopos = ap;
myLSO = SharedObject.getLocal("sh_autopos", _parent.soldepdir);
myLSO.data.autoposnum = ap;
myLSO.flush();
delete myLSO;
}
stop();
init_fn();
Instance of Symbol 285 MovieClip in Symbol 538 MovieClip Frame 1
on (press) {
m_id = _root.m_id;
this.getURL("../story/session_id.asp", "_self", "post");
}
Symbol 538 MovieClip Frame 2
stop();
ptn1_btn.onRollOver = function () {
_root.ptnshow_fn();
};
ptn1_btn.onRollOut = function () {
_root.ptnshowout_fn();
};
if (_root.autopos == 1) {
autopos_ch.gotoAndStop(1);
} else {
autopos_ch.gotoAndStop(2);
}
Symbol 555 Button
on (press) {
slidemove_fn();
startDrag ("", false, left, top, right, bottom);
}
on (release) {
stopDrag();
ptnalpha = Math.ceil((_x - left) / term);
_parent.ptnalpha_fn(ptnalpha);
delete this.onMouseMove;
}
Symbol 556 MovieClip Frame 1
function slidemove_fn() {
this.onMouseMove = function () {
ptnalpha = Math.ceil((_x - left) / term);
_parent.ptnalpha_fn(ptnalpha);
};
}
term = (right - left) / 100;
Symbol 565 Button
on (release) {
prvptn_fn();
}
Symbol 567 Button
on (release) {
nxtptn_fn();
}
Symbol 570 Button
on (release) {
ptnapply_fn();
}
Symbol 574 Button
on (release) {
prvcloth_fn();
}
Symbol 575 Button
on (release) {
nxtcloth_fn();
}
Symbol 592 Button
on (release) {
_parent.callptnwin_fn();
}
Symbol 593 MovieClip Frame 1
function init_fn() {
myLoadVars = new LoadVars();
myLoadVars.load(_root.ptnnumld);
myLoadVars.onLoad = function () {
ptnpgnum = this.ptnpgnum;
selptn = ptnpgnum;
createEmptyMovieClip("pattn" + selptn, selptn);
eval ("pattn" + selptn).loadMovie(((_root.ptnfolder + "pattn") + selptn) + ".swf");
ptnpg = 1;
ptnalpha = 50;
ptnxpos = prev_btn._x - 7;
ptnypos = prev_btn._y - 118;
eval ("pattn" + selptn)._x = ptnxpos;
eval ("pattn" + selptn)._y = ptnypos;
eval ("pattn" + selptn).num = ptnpg;
ldchk_fn("pattn" + selptn);
};
pattnwinbg.onPress = function () {
this._parent.startDrag();
};
pattnwinbg.useHandCursor = 0;
clothtotnum = _root.maskcloth_arr.length;
clothnum = 0;
var k = 0;
while (k < _root.maskcloth_arr.length) {
attachMovie(_root.maskcloth_arr[k], _root.maskcloth_arr[k], 9999 - k, {_x:-190, _y:-30});
eval (_root.maskcloth_arr[k]).mask_mc._visible = 0;
k++;
}
attselmc_fn();
}
function attselmc_fn() {
selmc = _root.maskcloth_arr[clothnum];
var k = 0;
while (k < _root.maskcloth_arr.length) {
eval (_root.maskcloth_arr[k])._visible = 0;
k++;
}
eval (selmc)._visible = 1;
}
function ldchk_fn(mcnm) {
var cnt = 0;
this.onEnterFrame = function () {
if ((eval (mcnm).getBytesLoaded() > 0) and (eval (mcnm).getBytesLoaded() == eval (mcnm).getBytesTotal())) {
if (cnt > 1) {
delete this.onEnterFrame;
breakon = 0;
ptnnum = ((selptn - 1) * 20) + 1;
var i = 0;
while (i < 4) {
var k = 1;
while (k <= 5) {
eval (mcnm).createEmptyMovieClip("p" + ptnnum, ptnnum);
eval ((mcnm + ".p") + ptnnum)._x = k * 56;
eval ((mcnm + ".p") + ptnnum)._y = i * 84;
eval ((mcnm + ".p") + ptnnum).num = ptnnum;
eval ((mcnm + ".p") + ptnnum).attachMovie("p" + ptnnum, "ptnjpg", 2);
eval (((mcnm + ".p") + ptnnum) + ".ptnjpg")._alpha = 80;
if (eval (((mcnm + ".p") + ptnnum) + ".ptnjpg") == undefined) {
breakon = 1;
break;
}
eval ((mcnm + ".p") + ptnnum).attachMovie("ptnframe_mc", "ptnframe_mc", 1);
eval ((mcnm + ".p") + ptnnum).onRollOver = function () {
this.ptnjpg._alpha = 100;
};
eval ((mcnm + ".p") + ptnnum).onRollOut = function () {
this.ptnjpg._alpha = 80;
};
eval ((mcnm + ".p") + ptnnum).onPress = function () {
pattn_fn(this.num);
this.ptnframe_mc._visible = 0;
};
eval ((mcnm + ".p") + ptnnum).onRelease = function () {
this.ptnframe_mc._visible = 1;
};
ptnnum++;
k++;
}
if (breakon == 1) {
break;
}
i++;
}
}
cnt++;
}
};
}
function nxtcloth_fn() {
clothnum++;
if (clothtotnum == clothnum) {
clothnum = 0;
}
attselmc_fn();
}
function prvcloth_fn() {
clothnum--;
if (clothnum == -1) {
clothnum = clothtotnum - 1;
}
selmc = _root.maskcloth_arr[clothnum];
attselmc_fn();
}
function nxtptn_fn() {
if (ptnpg < ptnpgnum) {
eval ("pattn" + selptn)._visible = 0;
ptnpg++;
selptn = (ptnpgnum - ptnpg) + 1;
if (eval ("pattn" + selptn)) {
eval ("pattn" + selptn)._visible = 1;
} else {
createEmptyMovieClip("pattn" + selptn, selptn);
eval ("pattn" + selptn).loadMovie(((_root.ptnfolder + "pattn") + selptn) + ".swf");
eval ("pattn" + selptn)._x = ptnxpos;
eval ("pattn" + selptn)._y = ptnypos;
ldchk_fn("pattn" + selptn);
}
}
}
function prvptn_fn() {
if (ptnpg > 1) {
eval ("pattn" + selptn)._visible = 0;
ptnpg--;
selptn = (ptnpgnum - ptnpg) + 1;
eval ("pattn" + selptn)._visible = 1;
}
}
function pattn_fn(ptnnum) {
with (eval (selmc)) {
createEmptyMovieClip("pattn_mc", 1);
up_mc.swapDepths(10);
eval (selmc).ptnjpg = ("p" + ptnnum) + ".jpg";
pattn_mc.loadMovie(_root.ptnfolder + eval (selmc).ptnjpg);
eval (selmc).onEnterFrame = function () {
if ((pattn_mc.getBytesLoaded() > 0) and (pattn_mc.getBytesLoaded() == pattn_mc.getBytesTotal())) {
if ((mask_mc._height / mask_mc._width) < 1.6) {
pattn_mc._width = mask_mc._width + 50;
pattn_mc._height = (400 * mask_mc._width) / 250;
} else {
pattn_mc._height = mask_mc._height + 50;
pattn_mc._width = (250 * mask_mc._height) / 400;
}
pattn_mc._alpha = _parent.ptnalpha;
pattn_mc._x = mask_mc._x - (pattn_mc._width / 2);
pattn_mc._y = mask_mc._y - (pattn_mc._height / 2);
pattn_mc.setMask(mask_mc);
delete this.onEnterFrame;
}
};
}
}
function ptnalpha_fn(ap) {
ptnalpha = int(ap);
eval (selmc + ".pattn_mc")._alpha = ap;
}
function ptnapply_fn() {
_root.ptnalpha = eval (selmc + ".pattn_mc")._alpha;
var w = eval (selmc).pattn_mc._width;
var h = eval (selmc).pattn_mc._height;
var x = eval (selmc).pattn_mc._x;
var y = eval (selmc).pattn_mc._y;
_root.ptnjpg = eval (selmc).ptnjpg;
_parent.ptnapply_fn(selmc, w, h, x, y);
this.onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha - 30;
if (_local1._alpha <= 0) {
_parent.callptnwin_fn();
delete _local1.onEnterFrame;
}
};
}
Instance of Symbol 556 MovieClip "horizFader" in Symbol 593 MovieClip Frame 1
onClipEvent (load) {
initx = _x;
rulerbnds = _parent.ruler_mc.getBounds(_parent);
left = rulerbnds.xmin;
right = rulerbnds.xmax;
top = _y;
bottom = _y;
this._x = initx;
_parent.ptnalpha_fn(int((_x - initx) + 100) / 2);
}
Symbol 617 MovieClip Frame 1
function init_fn() {
var k = 0;
while (k <= 15) {
var mcolor = ((((((k * 1048576) + (k * 65536)) + (k * 4096)) + (k * 256)) + (k * 16)) + k);
attachMovie("crect_mc", "c" + k, k + 1);
eval ("c" + k)._x = 0;
eval ("c" + k)._y = c0._height - (c0._height * k);
eval ("c" + k).mcolor = mcolor;
eval ("c" + k).mcolornum = (k * 16) + k;
eval ("c" + k).onPress = function () {
var _local1 = this;
_root.chcolorfn(_local1.mcolor, _local1.mcolornum, _local1.mcolornum, _local1.mcolornum);
};
mycolor = new Color("c" + k);
mycolor.setRGB(mcolor);
k++;
}
}
function rerange_fn(r, g, b) {
var _local3 = 8;
var r1_rg = (r / _local3);
var r2_rg = ((255 - r) / _local3);
var g1_rg = (g / _local3);
var g2_rg = ((255 - g) / _local3);
var b1_rg = (b / _local3);
var b2_rg = ((255 - b) / _local3);
var _local1 = 0;
while (_local1 < _local3) {
rr = int(r1_rg * _local1);
gg = int(g1_rg * _local1);
bb = int(b1_rg * _local1);
recolorbtn_fn(_local1, rr, gg, bb);
_local1++;
}
_local1 = _local3;
while (_local1 <= 15) {
var _local2 = _local1 - _local3;
rr = int(r + (r2_rg * _local2));
gg = int(g + (g2_rg * _local2));
bb = int(b + (b2_rg * _local2));
recolorbtn_fn(_local1, rr, gg, bb);
_local1++;
}
}
function recolorbtn_fn(k, r, g, b) {
var mcolor = (((r * 65536) + (g * 256)) + b);
eval ("c" + k).mcolor = mcolor;
eval ("c" + k).onPress = function () {
_root.chcolorfn(this.mcolor, r, g, b);
};
mycolor = new Color("c" + k);
mycolor.setRGB(mcolor);
delete mycolor;
}
init_fn();
Symbol 622 Button
on (release) {
visi_fn(0);
}
Symbol 625 Button
on (press) {
slidemove_fn();
startDrag ("", false, left, top, right, bottom);
}
on (release) {
stopDrag();
delete this.onMouseMove;
}
Symbol 626 MovieClip Frame 1
function slidemove_fn() {
this.onMouseMove = function () {
_root.tintnum = Math.ceil((_x - left) / term);
_roott.sndattach("bong");
};
}
term = (right - left) / 100;
Symbol 630 MovieClip Frame 1
function init_fn() {
var _local1 = _parent;
pallbg_btn.onPress = function () {
drag_fn();
};
_local1.rcolor = 255;
_local1.gcolor = 255;
_local1.bcolor = 255;
_root.tintnum = 50;
}
function drag_fn() {
this.startDrag();
}
function visi_fn() {
var _local1 = this;
if (_local1._visible == 1) {
_local1._visible = 0;
} else {
_local1._visible = 1;
}
}
this._visible = 0;
init_fn();
Instance of Symbol 334 MovieClip [SPICK] "pallet_mc" in Symbol 630 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
Link = "undefined";
}
Instance of Symbol 626 MovieClip "horizFader" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
initx = _x;
left = _x - 50;
right = _x + 50;
top = _y;
bottom = _y;
this._x = initx;
}
Symbol 703 MovieClip Frame 1
function st_start() {
gotoAndStop (2);
_parent.st_start();
}
stop();
_parent.timer_mc.timerinit();
Instance of Symbol 701 MovieClip in Symbol 703 MovieClip Frame 1
on (release) {
_parent.st_start();
}
Symbol 703 MovieClip Frame 2
stop();
Symbol 707 MovieClip Frame 1
function timer_fn() {
var _local1 = this;
tm = 0;
stTime = getTimer();
_local1._xscale = 0;
addscal = 100 / tot_time;
oldtime = tm;
_local1.onEnterFrame = function () {
var _local1 = this;
tm = int((getTimer() - stTime) / 1000);
if (tm >= tot_time) {
_root.resultattmv("fail");
delete _local1.onEnterFrame;
_local1._xscale = 100;
} else if (tm != oldtime) {
_root.sndattach("clock");
_local1._xscale = _local1._xscale + addscal;
}
oldtime = tm;
};
}
tot_time = 30;
tm = 0;
Symbol 715 Button
on (release) {
_parent.clothinit();
removeMovieClip("stwoman");
removeMovieClip("result");
_parent.gostilist_fn();
}
Symbol 716 Button
on (release) {
_parent.clothinit();
if (_parent.imsilargemode == 1) {
_parent.largemode = 1;
}
_parent.replay_fn();
removeMovieClip("stwoman");
removeMovieClip("result");
_root.gotoAndStop("dressup");
}
Symbol 725 Button
on (release) {
_parent.hint_fn();
}
Symbol 830 Button
on (release) {
if (_parent.womannum < 4) {
_parent.replay_fn();
} else {
getURL ("javascript:alert('\uCF54\uB514\uB294 4\uAC1C\uAE4C\uC9C0\uB9CC \uAC00\uB2A5\uD569\uB2C8\uB2E4')");
}
}
Symbol 836 Button
on (release) {
_parent.gotoAndStop("lb_write");
}
Symbol 842 Button
on (release) {
_parent.restart_fn();
}
Instance of Symbol 332 MovieClip [bg1] in Symbol 855 MovieClip Frame 1
on (release) {
_root.bgnum = 1;
_root.attachbg(_root.bgnum);
_root.sndattach("click3");
}
Instance of Symbol 327 MovieClip [bg2] in Symbol 855 MovieClip Frame 1
on (release) {
_root.bgnum = 2;
_root.attachbg(_root.bgnum);
_root.sndattach("click3");
}
Instance of Symbol 321 MovieClip [bg3] in Symbol 855 MovieClip Frame 1
on (release) {
_root.bgnum = 3;
_root.attachbg(_root.bgnum);
_root.sndattach("click3");
}
Instance of Symbol 316 MovieClip [bg4] in Symbol 855 MovieClip Frame 1
on (release) {
_root.bgnum = 4;
_root.attachbg(_root.bgnum);
_root.sndattach("click3");
}
Instance of Symbol 310 MovieClip [bg5] in Symbol 855 MovieClip Frame 1
on (release) {
_root.bgnum = 5;
_root.attachbg(_root.bgnum);
_root.sndattach("click3");
}
Instance of Symbol 814 MovieClip in Symbol 855 MovieClip Frame 1
on (release) {
_root.bgnum = 2;
_root.attachbg(_root.bgnum);
_root.sndattach("click3");
}
Instance of Symbol 817 MovieClip in Symbol 855 MovieClip Frame 1
on (release) {
_root.bgnum = 3;
_root.attachbg(_root.bgnum);
_root.sndattach("click3");
}
Instance of Symbol 820 MovieClip in Symbol 855 MovieClip Frame 1
on (release) {
_root.bgnum = 4;
_root.attachbg(_root.bgnum);
_root.sndattach("click3");
}
Instance of Symbol 823 MovieClip "room5" in Symbol 855 MovieClip Frame 1
on (release) {
_root.bgnum = 5;
_root.attachbg(_root.bgnum);
_root.sndattach("click3");
}
Instance of Symbol 854 MovieClip in Symbol 855 MovieClip Frame 1
on (release) {
_root.bgnum = 1;
_root.attachbg(_root.bgnum);
_root.sndattach("click3");
}
Symbol 868 Button
on (release) {
gotoAndStop ("workroom");
}
Symbol 870 Button
on (release) {
restart_fn();
}
Symbol 892 Button
on (release) {
title = undefined;
cmt = undefined;
}
Symbol 901 Button
on (release) {
if (_root.storysend() == 1) {
_root.storysend_fn();
}
}