Frame 1
function awCLASS(class, num) {
var _local2 = null;
var _local1;
if (num > 0) {
_local2 = new Array();
_local1 = 0;
while (_local1 < num) {
_local2[_local1] = new class[undefined]();
_local1++;
}
} else {
_local2 = new class[undefined]();
}
return(_local2);
}
function awRand(int_MaxNum) {
var _local1 = Math.floor(Math.random() * int_MaxNum);
if (_local1 >= int_MaxNum) {
_local1 = int_MaxNum - 1;
}
return(_local1);
}
function awCheckVersion() {
var _local2;
var _local3 = getVersion();
if (_local3 == null) {
return(4);
}
_local2 = _local3.split(" ");
_root.AW_OS = _local2[0];
var _local4 = _local2[1];
_local2 = _local4.split(",");
_root.AW_VER = Number(_local2[0]);
_root.AW_MESSAGE = (("MACHINE [" + AW_OS) + "] / FLASH VERSION ") + _root.AW_VER;
return(_root.AW_VER);
}
function awLineCrossTest(ax1, ay1, ax2, ay2, bx1, by1, bx2, by2) {
ra1 = (ay1 + (((ay2 - ay1) / (ax2 - ax1)) * (bx1 - ax1))) - by1;
ra2 = (ay1 + (((ay2 - ay1) / (ax2 - ax1)) * (bx2 - ax1))) - by2;
rb1 = (by1 + (((by2 - by1) / (bx2 - bx1)) * (ax1 - bx1))) - ay1;
rb2 = (by1 + (((by2 - by1) / (bx2 - bx1)) * (ax2 - bx1))) - ay2;
if ((0 >= (ra1 * ra2)) && (0 >= (rb1 * rb2))) {
return(true);
}
return(false);
}
function awRotateZ(vx, vy, rot) {
var _local2 = (rot * Math.PI) / 180;
_root.AW_GETROTATEZ_X = (Math.cos(_local2) * vx) + (Math.sin(_local2) * vy);
_root.AW_GETROTATEZ_Y = ((-Math.sin(_local2)) * vx) + (Math.cos(_local2) * vy);
}
function awGetRotateX(VOID) {
return(_root.AW_GETROTATEZ_X);
}
function awGetRotateY(VOID) {
return(_root.AW_GETROTATEZ_Y);
}
function _AWSOUNDBUFFER() {
var _local2;
var _local3;
var _local1;
}
function awSndInit() {
var _local2;
if (_root.bSnd) {
return(false);
}
_local2 = 0;
while (_local2 < AWMAXSOUNDBUFFER) {
_root.mSnd[_local2].bFlag = false;
_root.mSnd[_local2].mSBuf = new Sound();
_root.mSnd[_local2].mName = "";
_local2++;
}
_root.bSnd = true;
return(true);
}
function awSndAdd(id, name) {
if (!_root.bSnd) {
return(false);
}
if ((id < 0) || (id > (_root.AWMAXSOUNDBUFFER - 1))) {
return(false);
}
if (_root.mSnd[id].bFlag) {
return(false);
}
_root.mSnd[id].mName = name;
_root.mSnd[id].mSBuf.attachSound(name);
_root.mSnd[id].bFlag = true;
return(true);
}
function awSndPlay(id, loop) {
if (!_root.bSnd) {
return(false);
}
if ((id < 0) || (id > (AWMAXSOUNDBUFFER - 1))) {
return(false);
}
if (!_root.mSnd[id].bFlag) {
return(false);
}
if (loop) {
_root.mSnd[id].mSBuf.start(0, loop);
} else {
_root.mSnd[id].mSBuf.start();
}
}
function awSndStop(id) {
if (!_root.bSnd) {
return(false);
}
if ((id < 0) || (id > (AWMAXSOUNDBUFFER - 1))) {
return(false);
}
if (!_root.mSnd[id].bFlag) {
return(false);
}
_root.mSnd[id].mSBuf.stop(_root.mSnd[id].mName);
}
function awSndStopAll(VOID) {
var _local2;
if (!bSnd) {
return(undefined);
}
_local2 = 0;
while (_local2 < _root.AWMAXSOUNDBUFFER) {
if (_root.mSnd[_local2].bFlag) {
_root.mSnd[_local2].mSBuf.stop(_root.mSnd[_local2].mName);
}
_local2++;
}
}
function awImgInit(body) {
var _local2;
if (_root.D_INIT) {
awImgFlash();
return(true);
}
_local2 = 0;
while (_local2 < D_MAXOBJECT) {
_root.D_USED[_local2] = false;
_root.D_DEPTH[_local2] = _local2;
_local2++;
}
if (body != null) {
D_BODY = body;
}
_root.D_INIT = true;
return(true);
}
function awImgFlash() {
var i;
i = 0;
while (i < _root.D_MAXOBJECT) {
if (_root.D_USED[i]) {
var obj = eval ((D_BODY + ".D") + i);
removeMovieClip(obj);
_root.D_USED[i] = false;
}
i++;
}
return(true);
}
function awImgDel(id) {
if (!_root.D_USED[i]) {
return(false);
}
var obj = eval ((D_BODY + ".D") + i);
removeMovieClip(obj);
_root.D_USED[i] = false;
return(true);
}
function awImgAdd(id, image) {
if ((id < 0) && (id > (_root.D_MAXOBJECT - 1))) {
return(false);
}
if (_root.D_USED[id]) {
return(false);
}
D_BODY.attachMovie(image, "D" + id, id);
var obj = eval ((D_BODY + ".D") + id);
if (!obj) {
return(false);
}
obj._visible = false;
_root.D_USED[id] = true;
_root.D_DEPTH[id] = id;
return(true);
}
function awImgAddURL(id, url) {
if ((id < 0) && (id > (_root.D_MAXOBJECT - 1))) {
return(false);
}
if (_root.D_USED[id]) {
return(false);
}
if (url) {
D_BODY.createEmptyMovieClip("D" + id, id);
loadMovie (url, eval ((D_BODY + ".D") + id));
}
var obj = eval ((D_BODY + ".D") + id);
obj._visible = false;
_root.D_USED[id] = true;
_root.D_DEPTH[id] = id;
return(true);
}
function awImgClear() {
var i;
i = 0;
while (i < _root.D_MAXOBJECT) {
if (_root.D_USED[i]) {
var obj = eval ((D_BODY + ".D") + i);
obj._visible = false;
}
i++;
}
return(true);
}
function awImgPut(id, x, y) {
if (!_root.D_USED[id]) {
return(false);
}
var obj = eval ((D_BODY + ".D") + id);
obj._visible = true;
obj._x = x;
obj._y = y;
}
function awImgDrawEnd() {
return(true);
}
function awImgGet(id) {
if (!_root.D_USED[id]) {
return(null);
}
return(eval ((D_BODY + ".D") + id));
}
function awImgGetPercent(id) {
if (!_root.D_USED[id]) {
return(null);
}
var m = eval ((D_BODY + ".D") + id);
if (m.getBytesTotal() < 1) {
return(0);
}
return(Math.floor((m.getBytesLoaded() / m.getBytesTotal()) * 100));
}
function awImgSwapDepthForTarget(id1, id2) {
var m1 = eval ((D_BODY + ".D") + id1);
var m2 = eval ((D_BODY + ".D") + id2);
m1.swapDepths(m2);
var n = _root.D_DEPTH[id1];
_root.D_DEPTH[id1] = _root.D_DEPTH[id2];
_root.D_DEPTH[id2] = n;
return(true);
}
function awImgGetDepth(id) {
return(_root.D_DEPTH[id]);
}
function awImgSetDepth(id, depth) {
var m = eval ((D_BODY + ".D") + id);
m.swapDepths(depth);
_root.D_DEPTH[id] = depth;
return(true);
}
function awImgAutoDepthForYAxis(start_id, end_id) {
var _local3;
var _local4;
var _local5;
var _local6 = (end_id - start_id) + 1;
_local3 = 0;
while (_local3 < _local6) {
_root.D_DEPTH[_local3 + start_id] = _local3 + start_id;
_local3++;
}
_local4 = 0;
while (_local4 < _local6) {
_local3 = 0;
while (_local3 < _local6) {
if (_local3 == _local4) {
} else if (_root.awImgGet(_local4 + start_id)._y > _root.awImgGet(_local3 + start_id)._y) {
if (_root.D_DEPTH[_local4 + start_id] < _root.D_DEPTH[_local3 + start_id]) {
_local5 = _root.D_DEPTH[_local4 + start_id];
_root.D_DEPTH[_local4 + start_id] = _root.D_DEPTH[_local3 + start_id];
_root.D_DEPTH[_local3 + start_id] = _local5;
}
} else if (_root.D_DEPTH[_local4 + start_id] > _root.D_DEPTH[_local3 + start_id]) {
_local5 = _root.D_DEPTH[_local4 + start_id];
_root.D_DEPTH[_local4 + start_id] = _root.D_DEPTH[_local3 + start_id];
_root.D_DEPTH[_local3 + start_id] = _local5;
}
_local3++;
}
_local4++;
}
_local3 = 0;
while (_local3 < _local6) {
_root.awImgSetDepth(_local3 + start_id, _root.D_DEPTH[_local3 + start_id]);
_local3++;
}
return(true);
}
function awStrLen(str) {
var _local1 = new String(str);
return(_local1.length);
}
function awStrMid(str, start, n) {
var _local1 = new String(str);
return(_local1.slice(start - 1, (start + n) - 1));
}
function awStrLeft(str, n) {
var _local1 = new String(str);
return(_local1.slice(0, n));
}
function awStrRight(str, n) {
var _local1 = new String(str);
return(_local1.slice(_local1.length - n, _local1.length));
}
function awStrToNum(str) {
return(Number(str));
}
function HITPOINT() {
var _local1;
var _local3;
var _local2;
}
function HITAREA() {
var _local2;
var _local1;
var _local3;
var _local4;
}
function STONEPOINT() {
var _local1;
var _local4;
var _local3;
var _local2;
}
function Init() {
var _local2;
if (_root.iDbgNailSet < 0) {
_root.iType = _root.awRand(6);
} else {
_root.iType = _root.iDbgNailSet;
_root.iDbgNailSet = -1;
_root.bDbgFlag = true;
}
if (_root.cCanvas) {
_root.cCanvas.dispose();
_root.cCanvas = null;
}
_root.cCanvas = new flash.display.BitmapData(400, 320, true, 16777215);
_root.fRad = 4;
if (_root.PAINTTYPE[_root.iType]) {
_root.fRad = 5;
}
_root.iScrubCount = 0;
_root.iScrubUpDownCount = 0;
_root.bScrubUp = false;
_root.iScrubOldX = 0;
_root.iColorCount = 0;
_root.iColorAnim = 0;
_root.bChangeBrush = false;
_root.bChangeBrush2 = false;
_root.bPaint = false;
_root.iMissAreaCount = 0;
_root.iHint = 3;
_root.iHintCount = 0;
_root.iSelStone = -1;
_root.iSetStoneCount = 0;
_local2 = 0;
while (_local2 < _root.STONEMAX) {
_root.mResStone[_local2] = -1;
_local2++;
}
_root.iChangeCount = 0;
_root.iRes_Base = 0;
_root.iRes_Paint = 0;
_root.iRes_Stone = 0;
_root.iRes_All = 0;
_local2 = 0;
while (_local2 < _root.MAXHITDATA[_root.iType]) {
_root.mHit[_local2].bFlag = false;
_root.mHit[_local2].iX = _root.NAILHIT_X[_root.iType][_local2];
_root.mHit[_local2].iY = _root.NAILHIT_Y[_root.iType][_local2];
_local2++;
}
_local2 = 0;
while (_local2 < _root.MAXBADDATA[_root.iType]) {
_root.mBad[_local2].bFlag = false;
_root.mBad[_local2].iX = _root.NAILBAD_X[_root.iType][_local2];
_root.mBad[_local2].iY = _root.NAILBAD_Y[_root.iType][_local2];
_local2++;
}
_local2 = 0;
while (_local2 < _root.MAXAREADATA[_root.iType]) {
_root.mArea[_local2].iX = _root.NAILAREA_X[_root.iType][_local2];
_root.mArea[_local2].iY = _root.NAILAREA_Y[_root.iType][_local2];
_root.mArea[_local2].iW = _root.NAILAREA_W[_root.iType][_local2];
_root.mArea[_local2].iH = _root.NAILAREA_H[_root.iType][_local2];
_local2++;
}
_local2 = 0;
while (_local2 < _root.MAXSTONEDATA[_root.iType]) {
_root.mStone[_local2].iID = _root.STONE_ID[_root.iType][_local2];
_root.mStone[_local2].iX = _root.STONE_X[_root.iType][_local2];
_root.mStone[_local2].iY = _root.STONE_Y[_root.iType][_local2];
_root.mStone[_local2].iParam = -1;
_local2++;
}
_local2 = 0;
while (_local2 < _root.MAXSTONEDATA[_root.iType]) {
_root.mStoneCheck[_local2].iID = -1;
_root.mStoneCheck[_local2].iX = 0;
_root.mStoneCheck[_local2].iY = 0;
_root.mStoneCheck[_local2].iParam = false;
_local2++;
}
if (_root.bDebug) {
_root.awImgInit();
var _local3 = 0;
_local2 = 0;
while (_local2 < _root.MAXHITDATA[_root.iType]) {
_root.awImgAdd(_local3, "M_DBG_CIRCLE_OK");
_root.awImgGet(_local3)._x = _root.mHit[_local2].iX;
_root.awImgGet(_local3)._y = _root.mHit[_local2].iY;
_root.awImgGet(_local3)._xscale = _root.fRad * 2;
_root.awImgGet(_local3)._yscale = _root.fRad * 2;
_local3++;
_local2++;
}
_local2 = 0;
while (_local2 < _root.MAXBADDATA[_root.iType]) {
_root.awImgAdd(_local3, "M_DBG_CIRCLE_NG");
_root.awImgGet(_local3)._x = _root.mBad[_local2].iX;
_root.awImgGet(_local3)._y = _root.mBad[_local2].iY;
_root.awImgGet(_local3)._xscale = _root.fRad * 2;
_root.awImgGet(_local3)._yscale = _root.fRad * 2;
_local3++;
_local2++;
}
_local2 = 0;
while (_local2 < _root.MAXAREADATA[_root.iType]) {
_root.awImgAdd(_local3, "M_DBG_AREA");
_root.awImgGet(_local3)._x = _root.mArea[_local2].iX;
_root.awImgGet(_local3)._y = _root.mArea[_local2].iY;
_root.awImgGet(_local3)._xscale = _root.mArea[_local2].iW;
_root.awImgGet(_local3)._yscale = _root.mArea[_local2].iH;
_local3++;
_local2++;
}
_local2 = 0;
while (_local2 < _root.MAXSTONEDATA[_root.iType]) {
_root.awImgAdd(_local3, "M_DBG_STONE");
_root.awImgGet(_local3).NUM = _root.mStone[_local2].iID;
_root.awImgGet(_local3)._x = _root.mStone[_local2].iX;
_root.awImgGet(_local3)._y = _root.mStone[_local2].iY;
_local3++;
_local2++;
}
}
}
function SetFace(type) {
switch (type) {
case _root.FACETYPE_NORMAL :
_root.M_CHARA.gotoAndStop("NORMAL");
break;
case _root.FACETYPE_PLEASURE :
_root.M_CHARA.gotoAndStop("PLEASURE");
}
}
function SetStage(stg) {
switch (stg) {
case 1 :
_root.M_STAGE.gotoAndPlay("STAGE1");
break;
case 2 :
_root.M_STAGE.gotoAndPlay("STAGE2");
break;
case 3 :
_root.M_STAGE.gotoAndPlay("STAGE3");
break;
case 4 :
_root.M_STAGE.gotoAndPlay("STAGE4");
break;
case 5 :
_root.M_STAGE.gotoAndPlay("STAGE5");
break;
case 6 :
_root.M_STAGE.gotoAndPlay("END");
}
}
function CheckNailArea() {
if ((((_root._xmouse >= 136) && (_root._xmouse <= 264)) && (_root._ymouse >= 59)) && (_root._ymouse <= 238)) {
return(true);
}
return(false);
}
function CursorTest() {
if (_root.iColorAnim > 0) {
return(undefined);
}
if (_root.CheckNailArea()) {
if (!_root.bChangeBrush) {
Mouse.hide();
_root.M_BRUSH._visible = true;
_root.bChangeBrush = true;
}
_root.M_BRUSH._x = _root._xmouse;
_root.M_BRUSH._y = _root._ymouse;
} else if (_root.bChangeBrush) {
Mouse.show();
_root.M_BRUSH._visible = false;
_root.bChangeBrush = false;
}
}
function AddBaseColor() {
_root.iColorCount++;
var _local4 = (_root.mBaseColorClick[_root.iType] + _root.mOverColorClick[_root.iType]) + _root.mBlackColorClick[_root.iType];
if (_root.iColorCount > _local4) {
_root.iColorCount = _local4;
return(undefined);
}
_root.M_BRUSH.gotoAndStop("PAINT");
_root.iColorAnim = 16;
_root.awSndPlay(3);
var _local2 = _root.mBaseColorClick[_root.iType];
var _local3 = _root.mBaseColorClick[_root.iType] + _root.mOverColorClick[_root.iType];
if (_root.iColorCount < _root.mBaseColorClick[_root.iType]) {
var _local5 = Math.floor((_root.iColorCount * 100) / _root.mBaseColorClick[_root.iType]);
_root.M_NAIL_L.M_BASECOLOR.M_P_COLOR._alpha = _local5;
_root.M_NAIL_L.M_C_NAILSHADOW._alpha = _local5;
} else if (_root.iColorCount == _root.mBaseColorClick[_root.iType]) {
_root.M_NAIL_L.M_BASECOLOR.M_P_COLOR._alpha = 100;
_root.M_NAIL_L.M_C_NAILSHADOW._alpha = 100;
} else if ((_root.iColorCount - _local2) < _root.mOverColorClick[_root.iType]) {
var _local5 = Math.floor(((_root.iColorCount - _local2) * 100) / _root.mOverColorClick[_root.iType]);
_root.M_NAIL_L.M_BASECOLOR.M_P_OVER._alpha = _local5;
} else if ((_root.iColorCount - _local2) == _root.mOverColorClick[_root.iType]) {
_root.M_NAIL_L.M_BASECOLOR.M_P_OVER._alpha = 100;
} else if ((_root.iColorCount - _local3) < _root.mBlackColorClick[_root.iType]) {
var _local5 = Math.floor(((_root.iColorCount - _local3) * 100) / _root.mBlackColorClick[_root.iType]);
_root.M_NAIL_L.M_BASECOLOR.M_P_BLACK._alpha = _local5;
_root.M_NAIL_L.M_C_NAILSHADOW._alpha = 100 - _local5;
} else {
_root.M_NAIL_L.M_BASECOLOR.M_P_BLACK._alpha = 100;
_root.M_NAIL_L.M_C_NAILSHADOW._alpha = 0;
}
}
function DebugOn(stone) {
if (!_root.bDebug) {
return(undefined);
}
var _local2 = 0;
if (!stone) {
i = 0;
while (i < _root.MAXHITDATA[_root.iType]) {
if (!_root.mHit[i].bFlag) {
_root.awImgGet(_local2)._visible = true;
}
_local2++;
i++;
}
i = 0;
while (i < _root.MAXBADDATA[_root.iType]) {
if (!_root.mBad[i].bFlag) {
_root.awImgGet(_local2)._visible = true;
}
_local2++;
i++;
}
i = 0;
while (i < _root.MAXAREADATA[_root.iType]) {
_root.awImgGet(_local2)._visible = true;
_local2++;
i++;
}
} else {
_local2 = (_root.MAXHITDATA[_root.iType] + _root.MAXBADDATA[_root.iType]) + _root.MAXAREADATA[_root.iType];
i = 0;
while (i < _root.MAXSTONEDATA[_root.iType]) {
_root.awImgGet(_local2)._visible = true;
_local2++;
i++;
}
}
}
function DebugOff() {
if (!_root.bDebug) {
return(undefined);
}
var _local2 = 0;
i = 0;
while (i < _root.MAXHITDATA[_root.iType]) {
_root.awImgGet(_local2)._visible = false;
_local2++;
i++;
}
i = 0;
while (i < _root.MAXBADDATA[_root.iType]) {
_root.awImgGet(_local2)._visible = false;
_local2++;
i++;
}
i = 0;
while (i < _root.MAXAREADATA[_root.iType]) {
_root.awImgGet(_local2)._visible = false;
_local2++;
i++;
}
i = 0;
while (i < _root.MAXSTONEDATA[_root.iType]) {
_root.awImgGet(_local2)._visible = false;
_local2++;
i++;
}
}
function CursorTest2() {
if (_root.CheckNailArea()) {
if (!_root.bChangeBrush2) {
Mouse.hide();
_root.M_BRUSH2._visible = true;
_root.bChangeBrush2 = true;
}
_root.M_BRUSH2._x = _root._xmouse;
_root.M_BRUSH2._y = _root._ymouse;
} else if (_root.bChangeBrush2) {
Mouse.show();
_root.M_BRUSH2._visible = false;
_root.bChangeBrush2 = false;
}
}
function PSet(x, y) {
if (!_root.bPaint) {
return(undefined);
}
var _local7 = new flash.geom.Matrix();
_local7.identity();
if (_root.PAINTTYPE[_root.iType]) {
_local7.translate(x - 6, y - 6);
_root.cCanvas.draw(_root.cPen10, _local7);
} else {
_local7.translate(x - 5, y - 5);
_root.cCanvas.draw(_root.cPen8, _local7);
}
var _local2;
var _local4;
var _local3;
_local2 = 0;
while (_local2 < _root.MAXHITDATA[_root.iType]) {
if (_root.mHit[_local2].bFlag) {
} else {
_local4 = _root.mHit[_local2].iX - x;
_local3 = _root.mHit[_local2].iY - y;
if (Math.sqrt((_local4 * _local4) + (_local3 * _local3)) <= _root.fRad) {
_root.mHit[_local2].bFlag = true;
if (_root.bDebug) {
_root.awImgGet(_local2)._visible = false;
}
}
}
_local2++;
}
_local2 = 0;
while (_local2 < _root.MAXBADDATA[_root.iType]) {
if (_root.mBad[_local2].bFlag) {
} else {
_local4 = _root.mBad[_local2].iX - x;
_local3 = _root.mBad[_local2].iY - y;
if (Math.sqrt((_local4 * _local4) + (_local3 * _local3)) < _root.fRad) {
_root.mBad[_local2].bFlag = true;
if (_root.bDebug) {
_root.awImgGet(_local2 + _root.MAXHITDATA[_root.iType])._visible = false;
}
}
}
_local2++;
}
if (_root.iMissAreaCount < 200) {
_local2 = 0;
while (_local2 < _root.MAXAREADATA[_root.iType]) {
if ((((_root.mArea[_local2].iX <= x) && (x < (_root.mArea[_local2].iX + _root.mArea[_local2].iW))) && (_root.mArea[_local2].iY <= y)) && (y < (_root.mArea[_local2].iY + _root.mArea[_local2].iH))) {
_root.iMissAreaCount++;
return(undefined);
}
_local2++;
}
}
}
function SetHintCount() {
switch (_root.iHint) {
case 0 :
_root.M_HINT.gotoAndStop("NO");
break;
case 1 :
_root.M_HINT.gotoAndStop("G1");
break;
case 2 :
_root.M_HINT.gotoAndStop("G2");
break;
case 3 :
_root.M_HINT.gotoAndStop("G3");
}
}
function CheckHintArea() {
if ((((_root._xmouse >= 100) && (_root._xmouse <= 398)) && (_root._ymouse >= 68)) && (_root._ymouse <= 106)) {
return(true);
}
return(false);
}
function SelStone(st) {
_root.iSelStone = st;
_root.awSndPlay(6);
if (_root.iSelStone < 0) {
Mouse.show();
_root.M_CURSTONE._visible = false;
} else {
Mouse.hide();
_root.M_CURSTONE._visible = true;
_root.M_CURSTONE._x = _root._xmouse;
_root.M_CURSTONE._y = _root._ymouse;
_root.M_CURSTONE.gotoAndStop(_root.iSelStone + 1);
}
}
function PutStone(x, y) {
if ((_root.iSelStone < 0) || (_root.iSelStone > 7)) {
return(false);
}
if (!_root.CheckNailArea()) {
return(false);
}
if (_root.iSetStoneCount >= _root.MAXSTONEDATA[_root.iType]) {
return(true);
}
_root.awSndPlay(7);
var obj = eval ((("_root.M_NAIL_L.M_STONE" + _root.iSelStone) + "_") + _root.iSetStoneCount);
obj._visible = true;
obj._x = x;
obj._y = y;
_root.mStoneCheck[_root.iSetStoneCount].iID = _root.iSelStone;
_root.mStoneCheck[_root.iSetStoneCount].iX = x;
_root.mStoneCheck[_root.iSetStoneCount].iY = y;
_root.SelStone(8);
_root.iSetStoneCount++;
if (_root.iSetStoneCount >= _root.MAXSTONEDATA[_root.iType]) {
return(true);
}
return(false);
}
function CalcStone() {
var _local2;
_local2 = 0;
while (_local2 < _root.MAXSTONEDATA[_root.iType]) {
_root.mStone[_local2].iParam = -1;
_root.mStoneCheck[_local2].iParam = false;
_local2++;
}
var _local9 = 0;
var _local3;
_local2 = 0;
while (_local2 < _root.MAXSTONEDATA[_root.iType]) {
var _local6 = 100;
var _local5 = -1;
_local3 = 0;
while (_local3 < _root.MAXSTONEDATA[_root.iType]) {
if (_root.mStoneCheck[_local3].iParam) {
} else if (_root.mStone[_local2].iID != _root.mStoneCheck[_local3].iID) {
} else {
var _local8 = _root.mStoneCheck[_local3].iX - _root.mStone[_local2].iX;
var _local7 = _root.mStoneCheck[_local3].iY - _root.mStone[_local2].iY;
var _local4 = Math.sqrt((_local8 * _local8) + (_local7 * _local7));
if (_local4 >= _root.STONERADIUSMAX) {
} else if (_local5 == -1) {
_local5 = _local3;
_local6 = _local4;
} else if (_local6 > _local4) {
_local5 = _local3;
_local6 = _local4;
}
}
_local3++;
}
if (_local5 != -1) {
_root.mStone[_local2].iParam = _local5;
_root.mStoneCheck[_local5].iParam = true;
}
_local2++;
}
_local2 = 0;
while (_local2 < _root.MAXSTONEDATA[_root.iType]) {
if (_root.mStone[_local2].iParam == -1) {
_root.mResStone[_local2] = 0;
} else {
var _local8 = _root.mStoneCheck[_root.mStone[_local2].iParam].iX - _root.mStone[_local2].iX;
var _local7 = _root.mStoneCheck[_root.mStone[_local2].iParam].iY - _root.mStone[_local2].iY;
var _local6 = Math.sqrt((_local8 * _local8) + (_local7 * _local7));
if (_local6 < _root.STONERADIUSMIN) {
_root.mResStone[_local2] = 2;
} else {
_root.mResStone[_local2] = 1;
}
}
_local2++;
}
}
function CalcResult() {
var _local2 = ((_root.iRes_Base + _root.iRes_Paint) + _root.iRes_Stone) / 3;
if (_local2 >= 2) {
if (_root.iRes_Base == 3) {
_root.iRes_All = 4;
} else {
_root.iRes_All = 3;
}
} else if (_local2 >= 1.5) {
_root.iRes_All = 2;
} else if (_local2 >= 1) {
_root.iRes_All = 1;
} else {
_root.iRes_All = 0;
}
}
play();
_root.NULL = 0;
_root.UP = 1;
_root.RIGHT = 2;
_root.DOWN = 3;
_root.LEFT = 4;
_root.A = 10;
_root.B = 11;
_root.C = 12;
_root.D = 13;
_root.E = 14;
_root.F = 15;
AW_OS = "";
AW_VER = 4;
AW_MESSAGE = "YOUR MACHINE [ UNKNOW ] / FLASH VERSION 4";
AW_GETROTATEZ_X = 0;
AW_GETROTATEZ_Y = 0;
awCheckVersion(0);
Stage.scaleMode = "exactFit";
Stage.showMenu = "false";
_root.awSndStopAll();
AWMAXSOUNDBUFFER = 64;
bSnd = false;
mSnd = awCLASS(_AWSOUNDBUFFER, AWMAXSOUNDBUFFER);
if (!_root.D_INIT) {
_root.D_MAXOBJECT = 1024;
_root.D_BODY = _root;
_root.D_USED = new Array();
_root.D_DEPTH = new Array();
_root.D_INIT = false;
}
var MAXSCRUBUPDOWN = 10;
var MAXSCRUBMOVE = 3200;
var FACETYPE_NORMAL = 0;
var FACETYPE_PLEASURE = 1;
var PAINTTYPE = [1, 1, 1, 0, 1, 1];
var MAXHITDATA = [246, 206, 237, 86, 267, 157];
var MAXBADDATA = [177, 195, 171, 222, 159, 209];
var MAXAREADATA = [2, 0, 1, 4, 1, 2];
var MAXSTONEDATA = [1, 1, 3, 2, 1, 3];
var HITMAX = 267;
var BADMAX = 222;
var AREAMAX = 4;
var STONEMAX = 3;
var STONERADIUSMAX = 16;
var STONERADIUSMIN = 8;
var _HIT_X1 = [206, 211, 216, 221, 225, 203, 208, 213, 218, 223, 228, 200, 205, 210, 215, 220, 225, 230, 198, 202, 207, 212, 217, 222, 227, 232, 199, 204, 209, 214, 219, 224, 229, 234, 249, 244, 201, 206, 211, 216, 221, 226, 231, 241, 246, 251, 203, 208, 213, 218, 223, 228, 233, 238, 243, 248, 252, 205, 210, 215, 220, 225, 230, 235, 240, 245, 250, 207, 212, 217, 222, 227, 232, 237, 242, 247, 252, 214, 219, 224, 229, 234, 239, 244, 249, 253, 191, 196, 201, 206, 211, 216, 221, 226, 231, 236, 241, 246, 251, 148, 188, 193, 198, 203, 208, 213, 218, 223, 228, 233, 238, 243, 248, 253, 150, 153, 185, 190, 195, 200, 205, 210, 215, 220, 225, 230, 235, 240, 245, 250, 147, 152, 155, 182, 187, 192, 197, 202, 207, 212, 217, 222, 227, 232, 237, 242, 247, 252, 149, 154, 184, 189, 194, 199, 204, 209, 214, 219, 224, 229, 234, 239, 244, 249, 252, 151, 182, 186, 191, 196, 201, 206, 211, 216, 221, 226, 231, 236, 241, 246, 251, 149, 153, 158, 163, 184, 188, 193, 198, 203, 208, 213, 218, 223, 228, 233, 238, 243, 251, 150, 155, 160, 165, 186, 190, 195, 200, 205, 210, 215, 220, 225, 230, 235, 240, 245, 250, 152, 157, 162, 167, 192, 197, 202, 207, 212, 217, 222, 227, 232, 237, 242, 247, 159, 164, 199, 204, 219, 224, 229, 234, 239, 231, 217, 221, 226];
var _HIT_Y1 = [146, 146, 146, 146, 146, 150, 150, 150, 150, 150, 150, 154, 154, 154, 154, 154, 154, 154, 158, 158, 158, 158, 158, 158, 158, 158, 162, 162, 162, 162, 162, 162, 162, 162, 162, 163, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 182, 182, 182, 182, 182, 182, 182, 182, 182, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 222, 222, 222, 222, 222, 222, 222, 222, 222, 225, 226, 226, 226];
var _BAD_X1 = [190, 195, 200, 205, 210, 215, 220, 225, 230, 235, 240, 245, 250, 187, 192, 197, 202, 207, 212, 217, 222, 227, 232, 237, 242, 247, 251, 214, 219, 189, 194, 199, 204, 209, 224, 229, 234, 239, 244, 249, 228, 186, 191, 196, 201, 231, 236, 241, 246, 251, 188, 193, 198, 233, 238, 243, 248, 252, 190, 195, 235, 240, 245, 250, 187, 192, 195, 237, 242, 247, 252, 244, 189, 194, 239, 186, 191, 196, 236, 188, 193, 197, 190, 195, 199, 147, 152, 157, 162, 167, 172, 177, 182, 187, 192, 197, 201, 199, 203, 194, 149, 154, 159, 164, 169, 174, 179, 184, 189, 147, 151, 156, 161, 166, 171, 176, 181, 185, 153, 158, 163, 168, 173, 178, 182, 156, 160, 165, 170, 175, 179, 157, 162, 167, 172, 177, 159, 164, 169, 174, 179, 156, 161, 166, 171, 176, 179, 168, 173, 178, 181, 170, 175, 180, 183, 172, 177, 182, 187, 169, 174, 179, 184, 189, 214, 194, 209, 168, 171, 176, 181, 186, 191, 196, 201, 206, 211];
var _BAD_Y1 = [134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 141, 141, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 145, 146, 146, 146, 146, 146, 146, 146, 146, 146, 150, 150, 150, 150, 150, 150, 150, 150, 154, 154, 154, 154, 154, 154, 158, 158, 158, 158, 158, 158, 158, 160, 162, 162, 162, 166, 166, 166, 166, 170, 170, 170, 174, 174, 174, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 180, 180, 181, 182, 182, 182, 182, 182, 182, 182, 182, 182, 186, 186, 186, 186, 186, 186, 186, 186, 186, 190, 190, 190, 190, 190, 190, 190, 194, 194, 194, 194, 194, 194, 198, 198, 198, 198, 198, 202, 202, 202, 202, 202, 206, 206, 206, 206, 206, 206, 210, 210, 210, 210, 214, 214, 214, 214, 218, 218, 218, 218, 222, 222, 222, 222, 222, 222, 223, 223, 225, 226, 226, 226, 226, 226, 226, 226, 226, 226];
var _AREA_X1 = [145, 145];
var _AREA_Y1 = [67, 131];
var _AREA_W1 = [111, 41];
var _AREA_H1 = [64, 44];
var _STONE_ID1 = [0];
var _STONE_X1 = [233];
var _STONE_Y1 = [197];
var _HIT_X2 = [194, 207, 214, 219, 199, 189, 202, 209, 214, 194, 184, 197, 204, 209, 189, 179, 192, 199, 204, 184, 174, 187, 194, 199, 179, 169, 182, 189, 194, 247, 174, 164, 177, 184, 189, 243, 169, 247, 159, 172, 179, 184, 238, 164, 243, 154, 167, 174, 247, 179, 233, 159, 238, 162, 169, 242, 174, 228, 154, 247, 233, 157, 164, 237, 169, 223, 242, 228, 247, 152, 159, 232, 164, 218, 237, 223, 242, 154, 227, 159, 213, 232, 218, 237, 149, 222, 154, 208, 227, 213, 232, 217, 149, 203, 222, 208, 227, 212, 198, 217, 203, 222, 207, 193, 212, 198, 217, 202, 188, 207, 193, 212, 197, 183, 202, 188, 207, 192, 178, 197, 183, 202, 187, 253, 173, 192, 178, 197, 249, 182, 168, 187, 253, 173, 192, 244, 177, 163, 249, 182, 168, 187, 239, 172, 252, 158, 244, 177, 163, 182, 234, 248, 167, 153, 239, 172, 158, 251, 177, 229, 243, 162, 148, 234, 167, 153, 246, 172, 224, 238, 250, 157, 229, 162, 148, 241, 167, 219, 233, 245, 152, 224, 157, 236, 162, 214, 228, 240, 219, 152, 231, 157, 209, 223, 235, 214, 206, 226, 218, 230, 202, 209, 222, 213, 198, 205];
var _HIT_Y2 = [72, 72, 72, 73, 74, 77, 77, 77, 78, 79, 82, 82, 82, 83, 84, 87, 87, 87, 88, 89, 92, 92, 92, 93, 94, 97, 97, 97, 98, 98, 99, 102, 102, 102, 103, 103, 104, 105, 107, 107, 107, 108, 108, 109, 110, 112, 112, 112, 112, 113, 113, 114, 115, 117, 117, 117, 118, 118, 119, 119, 120, 122, 122, 122, 123, 123, 124, 125, 126, 127, 127, 127, 128, 128, 129, 130, 131, 132, 132, 133, 133, 134, 135, 136, 137, 137, 138, 138, 139, 140, 141, 142, 143, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 172, 173, 174, 175, 176, 176, 177, 178, 179, 179, 180, 181, 181, 182, 183, 183, 184, 185, 186, 186, 187, 187, 188, 188, 189, 190, 191, 191, 191, 192, 193, 193, 194, 195, 195, 196, 196, 196, 197, 198, 198, 199, 200, 200, 201, 201, 201, 201, 202, 203, 204, 205, 205, 206, 206, 206, 206, 207, 208, 209, 210, 211, 211, 211, 211, 213, 214, 215, 216, 216, 216, 216, 218, 220, 220, 221, 221, 223, 223, 224, 226, 227, 227];
var _BAD_X2 = [179, 172, 175, 162, 229, 167, 232, 170, 223, 237, 157, 162, 242, 227, 154, 165, 232, 158, 219, 246, 237, 222, 160, 213, 240, 153, 227, 232, 217, 155, 222, 209, 236, 227, 212, 203, 230, 217, 222, 207, 212, 199, 226, 217, 202, 193, 220, 207, 212, 197, 202, 189, 216, 207, 192, 183, 210, 197, 202, 187, 192, 179, 206, 197, 182, 173, 200, 187, 192, 177, 182, 169, 196, 250, 187, 172, 163, 190, 244, 177, 182, 248, 167, 252, 172, 159, 186, 240, 177, 243, 162, 153, 180, 234, 247, 167, 252, 172, 238, 157, 242, 162, 149, 176, 230, 247, 167, 233, 152, 250, 170, 224, 237, 157, 242, 162, 228, 147, 232, 152, 246, 166, 220, 237, 157, 223, 240, 160, 214, 227, 147, 232, 152, 218, 222, 236, 156, 210, 227, 147, 213, 230, 150, 204, 217, 222, 208, 212, 147, 226, 200, 217, 203, 220, 194, 207, 212, 198, 202, 216, 190, 207, 193, 210, 184, 197, 202, 188, 192, 206, 180, 197, 183, 200, 174, 187, 251, 192, 178, 182, 247, 196, 170, 187, 173, 190, 243, 164, 177, 182, 168, 239, 172, 177, 186];
var _BAD_Y2 = [72, 74, 77, 78, 78, 79, 80, 81, 81, 82, 83, 84, 84, 85, 87, 87, 87, 88, 88, 88, 89, 90, 91, 91, 91, 92, 92, 94, 95, 97, 97, 98, 98, 99, 100, 101, 101, 102, 104, 105, 107, 108, 108, 109, 110, 111, 111, 112, 114, 115, 117, 118, 118, 119, 120, 121, 121, 122, 124, 125, 127, 128, 128, 129, 130, 131, 131, 132, 134, 135, 137, 138, 138, 138, 139, 140, 141, 141, 141, 142, 144, 144, 145, 146, 147, 148, 148, 148, 149, 149, 150, 151, 151, 151, 151, 152, 153, 154, 154, 155, 156, 157, 158, 158, 158, 158, 159, 159, 160, 160, 161, 161, 161, 162, 163, 164, 164, 165, 166, 167, 167, 168, 168, 168, 169, 169, 170, 171, 171, 171, 172, 173, 174, 174, 176, 177, 178, 178, 178, 179, 179, 180, 181, 181, 181, 183, 184, 186, 187, 187, 188, 188, 189, 190, 191, 191, 193, 194, 196, 197, 198, 198, 199, 200, 201, 201, 203, 204, 206, 207, 208, 208, 209, 210, 211, 211, 212, 213, 214, 216, 216, 217, 218, 218, 219, 220, 220, 221, 221, 223, 224, 224, 226, 227, 227];
var _AREA_X2 = [0];
var _AREA_Y2 = [0];
var _AREA_W2 = [0];
var _AREA_H2 = [0];
var _STONE_ID2 = [4];
var _STONE_X2 = [215];
var _STONE_Y2 = [116];
var _HIT_X3 = [193, 198, 203, 208, 183, 188, 213, 218, 178, 170, 175, 180, 185, 190, 195, 200, 205, 210, 215, 220, 225, 230, 166, 162, 167, 172, 177, 182, 187, 192, 197, 202, 207, 212, 217, 222, 227, 232, 237, 158, 154, 159, 164, 169, 174, 179, 184, 189, 194, 199, 204, 209, 214, 219, 224, 229, 234, 239, 244, 156, 161, 166, 171, 176, 181, 186, 191, 196, 201, 206, 211, 216, 221, 226, 231, 236, 241, 246, 153, 158, 163, 168, 173, 178, 183, 188, 193, 198, 203, 208, 213, 218, 223, 228, 233, 238, 243, 155, 160, 165, 170, 175, 180, 185, 190, 195, 200, 205, 210, 215, 220, 225, 230, 235, 240, 245, 152, 157, 162, 167, 172, 177, 182, 187, 192, 197, 202, 207, 212, 217, 222, 227, 232, 237, 242, 247, 154, 159, 164, 169, 174, 179, 184, 189, 194, 199, 204, 209, 214, 219, 224, 229, 234, 239, 244, 248, 152, 156, 161, 166, 171, 176, 181, 186, 191, 196, 201, 206, 211, 216, 221, 226, 231, 236, 241, 246, 153, 158, 163, 168, 173, 178, 183, 188, 193, 198, 203, 208, 213, 218, 223, 228, 233, 238, 243, 248, 151, 155, 160, 165, 170, 175, 180, 185, 190, 195, 200, 205, 210, 215, 220, 225, 230, 235, 240, 245, 249, 167, 172, 177, 182, 187, 192, 197, 202, 207, 212, 217, 222, 227, 232, 157, 162, 237, 242, 247, 152];
var _HIT_Y3 = [70, 70, 70, 70, 71, 71, 71, 71, 72, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 76, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 119];
var _BAD_X3 = [169, 174, 179, 184, 189, 194, 199, 204, 209, 214, 219, 224, 229, 159, 164, 234, 239, 150, 154, 244, 249, 196, 201, 206, 171, 176, 181, 186, 191, 211, 216, 221, 226, 231, 151, 156, 161, 166, 236, 241, 246, 250, 193, 198, 203, 208, 149, 153, 158, 163, 168, 173, 178, 183, 188, 213, 218, 223, 228, 233, 238, 243, 248, 150, 155, 160, 165, 170, 175, 180, 185, 190, 195, 200, 205, 210, 215, 220, 225, 230, 235, 240, 245, 250, 149, 152, 157, 162, 167, 172, 177, 182, 187, 192, 197, 202, 207, 212, 217, 222, 227, 232, 237, 242, 247, 251, 149, 154, 159, 164, 169, 174, 179, 184, 189, 194, 199, 204, 209, 214, 219, 224, 229, 234, 239, 244, 249, 148, 151, 156, 161, 166, 171, 176, 181, 186, 191, 196, 201, 206, 211, 216, 221, 226, 231, 236, 241, 246, 251, 148, 153, 158, 163, 168, 173, 178, 183, 188, 193, 198, 203, 208, 213, 218, 223, 228, 233, 238, 243, 248, 252];
var _BAD_Y3 = [121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 122, 122, 122, 122, 123, 123, 123, 123, 125, 125, 125, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 127, 127, 127, 127, 127, 127, 127, 127, 130, 130, 130, 130, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151];
var _AREA_X3 = [145];
var _AREA_Y3 = [154];
var _AREA_W3 = [111];
var _AREA_H3 = [77];
var _STONE_ID3 = [5, 1, 1];
var _STONE_X3 = [175, 211, 236];
var _STONE_Y3 = [118, 210, 189];
var _HIT_X4 = [157, 160, 157, 160, 165, 168, 162, 165, 168, 171, 162, 165, 168, 171, 165, 168, 186, 189, 186, 189, 173, 176, 173, 176, 191, 194, 188, 191, 194, 197, 188, 191, 194, 197, 211, 214, 191, 194, 211, 214, 198, 201, 220, 223, 198, 201, 220, 223, 206, 209, 233, 236, 206, 209, 233, 236, 220, 223, 220, 223, 244, 247, 244, 247, 210, 213, 210, 213, 230, 233, 230, 233, 242, 245, 212, 215, 242, 245, 212, 215, 225, 228, 225, 228, 205, 208];
var _HIT_Y4 = [104, 104, 107, 107, 117, 117, 120, 120, 120, 120, 123, 123, 123, 123, 126, 126, 132, 132, 135, 135, 138, 138, 141, 141, 143, 143, 146, 146, 146, 146, 149, 149, 149, 149, 150, 150, 152, 152, 153, 153, 162, 162, 164, 164, 165, 165, 167, 167, 176, 176, 177, 177, 179, 179, 180, 180, 184, 184, 187, 187, 190, 190, 193, 193, 195, 195, 198, 198, 199, 199, 202, 202, 208, 208, 211, 211, 211, 211, 214, 214, 217, 217, 220, 220, 228, 228];
var _BAD_X4 = [153, 159, 165, 171, 177, 183, 168, 174, 180, 152, 165, 171, 177, 183, 156, 162, 168, 174, 180, 153, 159, 177, 183, 189, 195, 201, 207, 150, 156, 175, 180, 186, 192, 198, 204, 210, 153, 159, 177, 183, 189, 195, 201, 207, 150, 156, 162, 168, 174, 180, 198, 204, 210, 153, 159, 165, 183, 195, 201, 207, 150, 156, 162, 168, 180, 185, 204, 210, 216, 222, 228, 234, 240, 246, 153, 159, 165, 171, 177, 183, 202, 207, 219, 225, 231, 237, 243, 249, 150, 156, 162, 168, 174, 180, 185, 204, 222, 228, 234, 240, 246, 153, 159, 165, 171, 177, 183, 189, 195, 201, 207, 213, 219, 225, 231, 237, 243, 249, 192, 205, 210, 216, 228, 234, 240, 246, 252, 207, 213, 231, 237, 243, 249, 192, 198, 204, 210, 216, 222, 228, 234, 240, 246, 252, 195, 201, 213, 219, 225, 243, 249, 192, 198, 216, 228, 240, 246, 252, 195, 201, 207, 213, 231, 237, 192, 198, 204, 216, 222, 228, 234, 239, 252, 195, 201, 219, 225, 237, 243, 249, 192, 198, 204, 210, 216, 222, 240, 246, 252, 213, 195, 201, 207, 219, 225, 231, 237, 249, 192, 198, 204, 222, 228, 234, 195, 201, 207, 219, 237, 243, 192, 198, 204, 210, 216, 221, 234, 240, 195, 200, 213, 219];
var _BAD_Y4 = [97, 97, 97, 97, 97, 97, 102, 102, 102, 107, 107, 107, 107, 107, 112, 112, 112, 112, 112, 117, 117, 117, 117, 117, 117, 117, 117, 122, 122, 122, 122, 122, 122, 122, 122, 122, 127, 127, 127, 127, 127, 127, 127, 127, 132, 132, 132, 132, 132, 132, 132, 132, 132, 137, 137, 137, 137, 137, 137, 137, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 162, 162, 162, 162, 162, 162, 162, 162, 162, 167, 167, 167, 167, 167, 167, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 177, 177, 177, 177, 177, 177, 177, 182, 182, 182, 182, 182, 182, 182, 187, 187, 187, 187, 187, 187, 192, 192, 192, 192, 192, 192, 192, 192, 192, 197, 197, 197, 197, 197, 197, 197, 202, 202, 202, 202, 202, 202, 202, 202, 202, 206, 207, 207, 207, 207, 207, 207, 207, 207, 212, 212, 212, 212, 212, 212, 217, 217, 217, 217, 217, 217, 222, 222, 222, 222, 222, 222, 222, 222, 227, 227, 227, 227];
var _AREA_X4 = [145, 186, 213, 145];
var _AREA_Y4 = [67, 95, 115, 162];
var _AREA_W4 = [111, 70, 43, 45];
var _AREA_H4 = [28, 20, 24, 69];
var _STONE_ID4 = [2, 3];
var _STONE_X4 = [175, 226];
var _STONE_Y4 = [193, 115];
var _HIT_X5 = [250, 246, 242, 247, 251, 239, 244, 249, 204, 197, 201, 206, 211, 236, 241, 246, 251, 215, 194, 198, 203, 208, 213, 217, 228, 235, 238, 243, 248, 252, 223, 195, 200, 205, 210, 215, 220, 225, 230, 235, 240, 245, 250, 192, 197, 202, 207, 212, 217, 222, 227, 232, 237, 242, 247, 252, 184, 189, 194, 199, 204, 209, 214, 219, 224, 229, 234, 239, 244, 250, 147, 151, 156, 181, 186, 191, 148, 153, 158, 163, 173, 183, 188, 193, 196, 201, 206, 211, 216, 221, 226, 231, 236, 241, 246, 251, 169, 147, 153, 159, 165, 171, 177, 183, 189, 195, 201, 207, 213, 219, 225, 231, 237, 243, 249, 150, 156, 162, 168, 174, 180, 186, 192, 198, 204, 210, 216, 222, 228, 234, 240, 246, 252, 147, 153, 159, 165, 171, 177, 183, 189, 195, 201, 207, 213, 219, 225, 231, 237, 243, 249, 150, 156, 162, 168, 174, 180, 186, 192, 198, 204, 210, 216, 222, 228, 234, 240, 246, 252, 147, 153, 159, 165, 171, 177, 183, 189, 195, 201, 207, 213, 219, 225, 231, 237, 243, 249, 150, 156, 162, 168, 174, 180, 186, 192, 198, 204, 210, 216, 222, 228, 234, 240, 246, 252, 153, 159, 165, 171, 177, 183, 189, 195, 201, 207, 213, 219, 225, 231, 237, 243, 249, 150, 156, 162, 168, 174, 180, 186, 192, 198, 204, 210, 216, 222, 228, 234, 240, 246, 153, 159, 165, 171, 177, 183, 189, 195, 201, 207, 213, 219, 225, 231, 237, 243, 168, 174, 180, 186, 192, 198, 204, 210, 216, 222, 228, 234];
var _HIT_Y5 = [135, 136, 138, 138, 138, 142, 142, 142, 144, 146, 146, 146, 146, 146, 146, 146, 146, 147, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 151, 154, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 158, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 162, 162, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 166, 166, 166, 166, 166, 166, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 171, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224];
var _BAD_X5 = [151, 156, 161, 166, 171, 176, 181, 186, 191, 196, 201, 206, 211, 216, 221, 226, 231, 236, 241, 246, 250, 149, 153, 158, 163, 168, 173, 178, 183, 188, 193, 198, 203, 208, 213, 218, 223, 228, 233, 238, 243, 248, 250, 150, 155, 160, 165, 170, 175, 180, 185, 190, 195, 200, 205, 210, 215, 220, 225, 230, 235, 240, 245, 149, 152, 157, 162, 167, 172, 177, 182, 187, 192, 197, 202, 207, 212, 217, 222, 227, 232, 237, 149, 154, 159, 164, 169, 174, 179, 184, 189, 194, 199, 204, 209, 214, 219, 224, 229, 234, 216, 148, 151, 156, 161, 166, 171, 176, 181, 186, 191, 194, 221, 226, 231, 219, 223, 232, 148, 153, 158, 163, 168, 173, 178, 183, 188, 191, 150, 155, 160, 165, 170, 175, 180, 185, 190, 147, 152, 157, 162, 167, 172, 177, 182, 187, 149, 154, 159, 164, 169, 174, 179, 161, 166, 171, 176, 168, 177];
var _BAD_Y5 = [124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 131, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 143, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 146, 146, 147, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 152, 152, 152, 152, 152, 152, 152, 152, 152, 156, 156, 156, 156, 156, 156, 156, 156, 156, 160, 160, 160, 160, 160, 160, 160, 164, 164, 164, 164, 166, 167];
var _AREA_X5 = [145];
var _AREA_Y5 = [67];
var _AREA_W5 = [111];
var _AREA_H5 = [56];
var _STONE_ID5 = [7];
var _STONE_X5 = [176];
var _STONE_Y5 = [104];
var _HIT_X6 = [189, 195, 201, 207, 213, 219, 210, 216, 222, 228, 234, 226, 231, 237, 243, 235, 240, 246, 242, 246, 153, 159, 165, 171, 177, 183, 189, 195, 201, 207, 151, 156, 162, 168, 174, 180, 186, 192, 198, 204, 210, 216, 153, 159, 165, 171, 177, 183, 189, 195, 201, 207, 213, 219, 225, 151, 156, 162, 168, 174, 180, 186, 192, 198, 204, 210, 216, 222, 228, 234, 150, 153, 159, 165, 171, 177, 183, 189, 195, 201, 207, 213, 219, 225, 231, 237, 150, 156, 162, 168, 174, 180, 186, 192, 198, 204, 210, 216, 222, 228, 234, 240, 245, 177, 183, 189, 195, 201, 207, 213, 219, 225, 231, 237, 243, 249, 198, 204, 210, 216, 222, 228, 234, 240, 246, 252, 208, 213, 219, 225, 231, 237, 243, 249, 218, 222, 228, 234, 240, 246, 252, 227, 231, 237, 243, 249, 235, 240, 246, 252, 239, 243, 249, 246, 252, 249, 252];
var _HIT_Y6 = [70, 70, 70, 70, 70, 72, 73, 75, 75, 75, 76, 79, 80, 80, 81, 83, 83, 85, 87, 90, 110, 110, 110, 110, 110, 110, 110, 110, 111, 112, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, 138, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 144, 145, 145, 145, 145, 145, 145, 145, 145, 145, 148, 150, 150, 150, 150, 150, 150, 150, 153, 155, 155, 155, 155, 155, 155, 159, 160, 160, 160, 160, 165, 165, 165, 165, 169, 170, 170, 175, 175, 180, 185];
var _BAD_X6 = [183, 168, 174, 180, 186, 192, 198, 204, 159, 165, 171, 177, 183, 189, 195, 201, 207, 213, 219, 156, 162, 168, 174, 180, 186, 192, 198, 204, 210, 216, 222, 228, 233, 153, 159, 165, 171, 177, 183, 189, 195, 201, 207, 213, 219, 225, 231, 237, 242, 156, 162, 168, 174, 180, 186, 192, 198, 204, 210, 216, 222, 228, 234, 240, 246, 153, 159, 165, 171, 177, 183, 189, 195, 201, 207, 213, 219, 225, 231, 237, 243, 198, 204, 156, 162, 168, 174, 180, 186, 192, 210, 216, 222, 228, 234, 240, 246, 201, 207, 213, 219, 225, 231, 237, 243, 249, 222, 228, 234, 240, 246, 231, 237, 243, 249, 240, 246, 244, 249, 250, 148, 153, 159, 165, 171, 177, 150, 156, 162, 168, 174, 180, 186, 192, 198, 148, 153, 159, 165, 171, 177, 183, 189, 195, 201, 207, 150, 156, 162, 168, 174, 180, 186, 192, 198, 204, 210, 216, 147, 153, 159, 165, 171, 177, 183, 189, 195, 201, 207, 213, 219, 225, 216, 222, 228, 232, 213, 219, 225, 231, 237, 216, 222, 228, 234, 240, 213, 219, 225, 231, 237, 243, 216, 222, 228, 234, 240, 246, 213, 219, 225, 231, 237, 243, 249, 252, 249, 252, 249];
var _BAD_Y6 = [72, 75, 75, 75, 75, 75, 75, 75, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 104, 104, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 108, 109, 110, 110, 110, 110, 110, 110, 110, 115, 115, 115, 115, 115, 120, 120, 120, 120, 125, 125, 129, 130, 134, 141, 141, 141, 141, 141, 142, 146, 146, 146, 146, 146, 146, 146, 146, 148, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 152, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 162, 166, 166, 166, 167, 171, 171, 171, 171, 172, 176, 176, 176, 176, 176, 181, 181, 181, 181, 181, 181, 186, 186, 186, 186, 186, 186, 191, 191, 191, 191, 191, 191, 191, 196, 201, 206, 211];
var _AREA_X6 = [145, 145];
var _AREA_Y6 = [162, 192];
var _AREA_W6 = [67, 103];
var _AREA_H6 = [30, 39];
var _STONE_ID6 = [4, 6, 6];
var _STONE_X6 = [177, 198, 225];
var _STONE_Y6 = [190, 150, 198];
var NAILHIT_X = new Array(_HIT_X1, _HIT_X2, _HIT_X3, _HIT_X4, _HIT_X5, _HIT_X6);
var NAILHIT_Y = new Array(_HIT_Y1, _HIT_Y2, _HIT_Y3, _HIT_Y4, _HIT_Y5, _HIT_Y6);
var NAILBAD_X = new Array(_BAD_X1, _BAD_X2, _BAD_X3, _BAD_X4, _BAD_X5, _BAD_X6);
var NAILBAD_Y = new Array(_BAD_Y1, _BAD_Y2, _BAD_Y3, _BAD_Y4, _BAD_Y5, _BAD_Y6);
var NAILAREA_X = new Array(_AREA_X1, _AREA_X2, _AREA_X3, _AREA_X4, _AREA_X5, _AREA_X6);
var NAILAREA_Y = new Array(_AREA_Y1, _AREA_Y2, _AREA_Y3, _AREA_Y4, _AREA_Y5, _AREA_Y6);
var NAILAREA_W = new Array(_AREA_W1, _AREA_W2, _AREA_W3, _AREA_W4, _AREA_W5, _AREA_W6);
var NAILAREA_H = new Array(_AREA_H1, _AREA_H2, _AREA_H3, _AREA_H4, _AREA_H5, _AREA_H6);
var STONE_ID = new Array(_STONE_ID1, _STONE_ID2, _STONE_ID3, _STONE_ID4, _STONE_ID5, _STONE_ID6);
var STONE_X = new Array(_STONE_X1, _STONE_X2, _STONE_X3, _STONE_X4, _STONE_X5, _STONE_X6);
var STONE_Y = new Array(_STONE_Y1, _STONE_Y2, _STONE_Y3, _STONE_Y4, _STONE_Y5, _STONE_Y6);
var bDebug = false;
var mDbgX = [17, 386, 61, 343, 66, 318];
var mDbgY = [270, 318, 285, 281, 317, 318];
var iDbgCount = 0;
var bDbgOffFlag = false;
var iDbgNailSet = -1;
var bDbgFlag = true;
var mBaseColorClick = [3, 4, 3, 3, 4, 3];
var mOverColorClick = [3, 3, 4, 4, 3, 4];
var mBlackColorClick = [10, 10, 10, 10, 10, 10];
var iType = 0;
var fRad = 0;
var iScrubCount = 0;
var iScrubUpDownCount = 0;
var bScrubUp = false;
var iScrubOldX = 0;
var iColorCount = 0;
var iColorAnim = 0;
var bChangeBrush = false;
var bChangeBrush2 = false;
var bPaint = false;
var iMissAreaCount = 0;
var iHint = 3;
var iHintCount = 0;
var iSelStone = -1;
var iSetStoneCount = 0;
var mResStone = new Array(STONEMAX);
var iChangeCount = 0;
var iRes_Base = 0;
var iRes_Paint = 0;
var iRes_Stone = 0;
var iRes_All = 0;
var cCanvas = null;
var cPen8 = flash.display.BitmapData.loadBitmap("pen8");
var cPen10 = flash.display.BitmapData.loadBitmap("pen10");
var mHit = _root.awCLASS(HITPOINT, HITMAX);
var mBad = _root.awCLASS(HITPOINT, BADMAX);
var mArea = _root.awCLASS(HITAREA, AREAMAX);
var mStone = _root.awCLASS(STONEPOINT, STONEMAX);
var mStoneCheck = _root.awCLASS(STONEPOINT, STONEMAX);
if (DEBUGMODE == "1") {
_root.bDebug = true;
}
_root.awSndInit();
_root.awSndAdd(0, "BGM");
_root.awSndAdd(1, "BOTTON");
_root.awSndAdd(2, "BALOON");
_root.awSndAdd(3, "COLOR");
_root.awSndAdd(4, "TITLE");
_root.awSndAdd(5, "SKIP");
_root.awSndAdd(6, "STONESEL");
_root.awSndAdd(7, "STONESET");
_root.awSndAdd(8, "CHANGE");
_root.awSndAdd(9, "SE1");
_root.awSndAdd(10, "SE2");
_root.awSndAdd(11, "OK");
_root.awSndAdd(12, "NG");
_root.awSndAdd(13, "OK2");
_root.awSndAdd(14, "LIGHT");
Instance of Symbol 37 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.PERCENT = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.DATASIZE = (_root.getBytesLoaded() + "\uFF0F") + _root.getBytesTotal();
_root.M_PERCENT_MATER._width = _root.PERCENT * 1.28;
}
Frame 4
if (_framesloaded < _totalframes) {
_root.gotoAndPlay(2);
} else if (_root.AW_VER < 8) {
_root.gotoAndPlay(5);
} else {
_root.gotoAndPlay("START");
}
Frame 5
getURL ("flashget.htm", "_self");
Frame 8
stop();
Frame 9
gotoAndPlay (8);
Frame 10
_root.Init();
gotoAndStop ("TITLE");
Frame 15
if (!_root.bDebug) {
_root.M_DBGTEXT._visible = false;
}
stop();
Instance of Symbol 58 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
if (!_root.bDbgFlag) {
if (Key.isDown(49)) {
_root.awSndPlay(7);
_root.iDbgNailSet = 0;
_root.gotoAndPlay("START");
return(undefined);
}
if (Key.isDown(50)) {
_root.awSndPlay(7);
_root.iDbgNailSet = 1;
_root.gotoAndPlay("START");
return(undefined);
}
if (Key.isDown(51)) {
_root.awSndPlay(7);
_root.iDbgNailSet = 2;
_root.gotoAndPlay("START");
return(undefined);
}
if (Key.isDown(52)) {
_root.awSndPlay(7);
_root.iDbgNailSet = 3;
_root.gotoAndPlay("START");
return(undefined);
}
if (Key.isDown(53)) {
_root.awSndPlay(7);
_root.iDbgNailSet = 4;
_root.gotoAndPlay("START");
return(undefined);
}
if (Key.isDown(54)) {
_root.awSndPlay(7);
_root.iDbgNailSet = 5;
_root.gotoAndPlay("START");
return(undefined);
}
if (Key.isDown(55)) {
_root.awSndPlay(7);
_root.iDbgNailSet = 6;
_root.gotoAndPlay("START");
return(undefined);
}
if (Key.isDown(56)) {
_root.awSndPlay(7);
_root.iDbgNailSet = 7;
_root.gotoAndPlay("START");
return(undefined);
}
}
} else {
_root.bDbgFlag = false;
}
}
Frame 19
gotoAndStop ("TITLE");
Frame 20
stop();
Frame 24
gotoAndStop ("PROLOGUE");
Frame 25
stop();
Frame 29
gotoAndStop ("STARTMSG");
Frame 30
stop();
Frame 34
gotoAndStop ("NAILOPEN");
Frame 35
stop();
Frame 39
gotoAndStop ("BALOONOPEN");
Frame 40
stop();
Frame 44
gotoAndStop ("MSG1");
Frame 45
_root.M_SCRUB_BAR._x = (_root.iScrubOldX = _root._xmouse);
_root.M_SCRUB_BAR._y = _root._ymouse;
Mouse.hide();
stop();
Instance of Symbol 286 MovieClip in Frame 45
onClipEvent (mouseMove) {
var x = _root._xmouse;
var y = _root._ymouse;
_root.M_SCRUB_BAR._x = x;
_root.M_SCRUB_BAR._y = y;
if (_root.bScrubUp) {
if (y >= 180) {
_root.bScrubUp = false;
_root.iScrubUpDownCount++;
}
} else if (y <= 116) {
_root.bScrubUp = true;
_root.iScrubUpDownCount++;
}
if (_root.iScrubUpDownCount > _root.MAXSCRUBUPDOWN) {
_root.iScrubUpDownCount = _root.MAXSCRUBUPDOWN;
}
if ((y >= 42) && (y <= 264)) {
_root.iScrubCount = _root.iScrubCount + Math.abs(x - _root.iScrubOldX);
if (_root.iScrubCount > _root.MAXSCRUBMOVE) {
_root.iScrubCount = _root.MAXSCRUBMOVE;
}
_root.iScrubOldX = x;
}
_root.M_NAIL_L.M_C_NAILGROSS._alpha = Math.floor((_root.iScrubUpDownCount * 10) / _root.MAXSCRUBUPDOWN) + Math.floor((_root.iScrubCount * 90) / _root.MAXSCRUBMOVE);
if ((_root.iScrubUpDownCount >= _root.MAXSCRUBUPDOWN) && (_root.iScrubCount >= _root.MAXSCRUBMOVE)) {
_root.awSndPlay(14);
_root.M_NAIL_L.M_C_NAILGROSS._alpha = 100;
_root.M_NAIL_L.M_SCRUBFLASH.gotoAndPlay("START");
_root.SetFace(_root.FACETYPE_PLEASURE);
Mouse.show();
_root.gotoAndStop("RESULT1");
}
}
Frame 49
gotoAndStop ("STAGE1");
Frame 50
stop();
Frame 54
gotoAndStop ("RESULT1");
Frame 55
stop();
Frame 59
gotoAndStop ("MSG2");
Frame 60
_root.CursorTest();
stop();
Instance of Symbol 302 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (_root.iColorAnim > 0) {
_root.iColorAnim--;
if (_root.iColorAnim < 1) {
_root.M_BRUSH.gotoAndStop("NORMAL");
_root.CursorTest();
}
}
}
onClipEvent (mouseDown) {
if (_root.iColorAnim > 0) {
return(undefined);
}
if (_root.CheckNailArea()) {
_root.AddBaseColor();
}
}
onClipEvent (mouseMove) {
_root.CursorTest();
}
Frame 64
gotoAndStop ("STAGE2");
Frame 65
stop();
Frame 69
gotoAndStop ("RESULT2");
Frame 70
stop();
Frame 74
gotoAndStop ("MSG3");
Frame 75
if (_root.PAINTTYPE[_root.iType] == 1) {
_root.M_BRUSH2.gotoAndStop("LARGE");
} else {
_root.M_BRUSH2.gotoAndStop("SMALL");
}
_root.M_NAIL_L.M_C_CANVAS.attachBitmap(_root.cCanvas, 0, "auto", true);
_root.SetHintCount();
_root.CursorTest2();
_root.DebugOn(false);
stop();
Instance of Symbol 333 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (_root.iHintCount > 0) {
_root.iHintCount--;
if (_root.iHintCount > 108) {
_root.M_NAIL_L.M_P_HINT._alpha = 50 - Math.floor(((_root.iHintCount - 108) / 24) * 50);
}
if (_root.iHintCount < 24) {
_root.M_NAIL_L.M_P_HINT._alpha = Math.floor((_root.iHintCount * 50) / 24);
}
if (_root.iHintCount < 1) {
_root.M_NAIL_L.M_P_HINT._visible = false;
}
}
if (_root.bDebug) {
if (Key.isDown(32)) {
if (!_root.bDbgOffFlag) {
_root.bDbgOffFlag = true;
_root.DebugOff();
}
} else if (_root.bDbgOffFlag) {
_root.bDbgOffFlag = false;
_root.DebugOn(false);
}
}
}
onClipEvent (mouseMove) {
_root.CursorTest2();
if (_root.bPaint) {
_root.PSet(_root._xmouse, _root._ymouse);
}
}
onClipEvent (mouseDown) {
if (_root.CheckNailArea()) {
_root.bPaint = true;
_root.PSet(_root._xmouse, _root._ymouse);
return(undefined);
}
if (_root.iHintCount < 1) {
if (_root.CheckHintArea()) {
if (_root.iHint > 0) {
_root.iHint--;
_root.iHintCount = 120;
_root.SetHintCount();
_root.M_NAIL_L.M_P_HINT._visible = true;
_root.awSndPlay(1);
}
return(undefined);
}
}
}
onClipEvent (mouseUp) {
_root.bPaint = false;
}
Frame 79
gotoAndStop ("STAGE3");
Frame 80
stop();
Frame 84
gotoAndStop ("RESULT3");
Frame 85
stop();
Frame 89
gotoAndStop ("MSG4");
Frame 90
_root.DebugOn(true);
stop();
Instance of Symbol 370 MovieClip in Frame 90
onClipEvent (mouseMove) {
if (_root.iSelStone >= 0) {
_root.M_CURSTONE._x = _root._xmouse;
_root.M_CURSTONE._y = _root._ymouse;
}
}
onClipEvent (mouseDown) {
if (_root.PutStone(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("RESULT4");
}
}
Frame 94
gotoAndStop ("STAGE4");
Frame 95
_root.DebugOff();
Mouse.show();
stop();
Frame 99
gotoAndStop ("RESULT4");
Frame 100
stop();
Frame 104
gotoAndStop ("MSG5");
Frame 105
_root.M_NAILSAMPLE.gotoAndStop(_root.iType + 1);
stop();
Instance of Symbol 417 MovieClip in Frame 105
onClipEvent (enterFrame) {
_root.iChangeCount--;
if (_root.iChangeCount < 0) {
_root.iChangeCount = 47;
_root.awSndPlay(8);
}
if (_root.iChangeCount == 24) {
_root.awSndPlay(8);
}
if (_root.iChangeCount < 24) {
_root.M_RESSTR.gotoAndStop(1);
_root.M_NAIL_L._visible = true;
_root.M_NAILSAMPLE._visible = false;
} else {
_root.M_RESSTR.gotoAndStop(2);
_root.M_NAIL_L._visible = false;
_root.M_NAILSAMPLE._visible = true;
}
}
Frame 109
gotoAndStop ("STAGE5");
Frame 110
stop();
Frame 114
gotoAndStop ("FADEOUT");
Frame 115
stop();
Frame 119
gotoAndStop ("RESULT");
Symbol 89 Button
on (release) {
_root.awSndPlay(1);
gotoAndPlay ("NEXT");
}
Symbol 93 MovieClip Frame 14
_root.awSndPlay(10);
Symbol 93 MovieClip Frame 18
_root.awSndPlay(9);
Symbol 93 MovieClip Frame 32
_root.awSndPlay(6);
Symbol 93 MovieClip Frame 46
_root.awSndPlay(4);
Symbol 93 MovieClip Frame 73
stop();
Instance of Symbol 82 MovieClip in Symbol 93 MovieClip Frame 73
onClipEvent (mouseDown) {
if (_root.bDebug) {
return(undefined);
}
var w = (_root._xmouse - _root.mDbgX[_root.iDbgCount]);
var h = (_root._ymouse - _root.mDbgY[_root.iDbgCount]);
if (Math.sqrt((w * w) + (h * h)) < 8) {
_root.iDbgCount++;
if (_root.iDbgCount > 5) {
_root.bDebug = true;
_root.awSndPlay(4);
_root.gotoAndPlay("START");
}
} else {
_root.iDbgCount = 0;
}
}
Symbol 93 MovieClip Frame 86
_root.gotoAndStop("PROLOGUE");
Symbol 104 MovieClip Frame 1
play();
Symbol 104 MovieClip Frame 10
stop();
Symbol 104 MovieClip Frame 11
play();
Symbol 104 MovieClip Frame 19
stop();
Symbol 114 MovieClip Frame 33
_root.awSndPlay(0, 999);
_root.gotoAndStop("STARTMSG");
stop();
Symbol 114 MovieClip Frame 38
stop();
Symbol 114 MovieClip Frame 43
stop();
Symbol 128 MovieClip Frame 1
_root.awSndPlay(2);
Instance of Symbol 121 MovieClip in Symbol 128 MovieClip Frame 12
onClipEvent (mouseDown) {
_root.awSndPlay(5);
_parent.gotoAndPlay("NEXT1");
}
Instance of Symbol 121 MovieClip in Symbol 128 MovieClip Frame 86
onClipEvent (mouseDown) {
_root.awSndPlay(5);
_parent.gotoAndPlay("NEXT2");
}
Symbol 128 MovieClip Frame 161
_root.awSndPlay(2);
Symbol 128 MovieClip Frame 169
_root.gotoAndStop("NAILOPEN");
stop();
Symbol 141 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 1
M_P_COLOR.gotoAndStop(_root.iType + 1);
M_P_OVER.gotoAndStop(_root.iType + 1);
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 17
stop();
Symbol 235 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 1
M_C_NAIL_L.gotoAndStop(_root.iType + 1);
Symbol 236 MovieClip Frame 47
_root.gotoAndStop("BALOONOPEN");
Symbol 236 MovieClip Frame 67
_root.awSndPlay(10);
Symbol 236 MovieClip Frame 73
_root.awSndPlay(9);
Symbol 236 MovieClip Frame 95
M_C_NAILSHADOW.gotoAndStop(_root.iType + 1);
M_P_HINT.gotoAndStop(_root.iType + 1);
M_NAILSAMPLE._visible = false;
var i;
var j;
j = 0;
while (j < 3) {
i = 0;
while (i < 8) {
var obj = eval ((("M_STONE" + i) + "_") + j);
obj._visible = false;
i++;
}
j++;
}
_root.gotoAndStop("MSG1");
stop();
Symbol 258 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 20
M_C_NAIL_S.gotoAndStop(_root.iType + 1);
Symbol 262 MovieClip Frame 27
stop();
Symbol 262 MovieClip Frame 34
stop();
Symbol 278 MovieClip Frame 10
stop();
Symbol 278 MovieClip Frame 20
stop();
Symbol 278 MovieClip Frame 30
stop();
Symbol 278 MovieClip Frame 40
stop();
Symbol 278 MovieClip Frame 50
stop();
Symbol 278 MovieClip Frame 60
stop();
Symbol 285 MovieClip Frame 1
_root.awSndPlay(2);
Instance of Symbol 121 MovieClip in Symbol 285 MovieClip Frame 12
onClipEvent (mouseDown) {
_root.awSndPlay(5);
_parent.gotoAndPlay("NEXT1");
}
Instance of Symbol 121 MovieClip in Symbol 285 MovieClip Frame 86
onClipEvent (mouseDown) {
_root.awSndPlay(5);
_parent.gotoAndPlay("NEXT2");
}
Symbol 285 MovieClip Frame 161
_root.awSndPlay(2);
Symbol 285 MovieClip Frame 169
_root.gotoAndStop("STAGE1");
stop();
Symbol 294 MovieClip Frame 1
_root.awSndPlay(2);
Instance of Symbol 121 MovieClip in Symbol 294 MovieClip Frame 12
onClipEvent (mouseDown) {
_root.awSndPlay(5);
_parent.gotoAndPlay("NEXT1");
}
Symbol 294 MovieClip Frame 81
_root.awSndPlay(2);
Symbol 294 MovieClip Frame 90
_root.SetFace(_root.FACETYPE_NORMAL);
_root.SetStage(2);
_root.gotoAndStop("MSG2");
stop();
Symbol 301 MovieClip Frame 1
_root.awSndPlay(2);
Instance of Symbol 121 MovieClip in Symbol 301 MovieClip Frame 12
onClipEvent (mouseDown) {
_root.awSndPlay(5);
_parent.gotoAndPlay("NEXT1");
}
Instance of Symbol 121 MovieClip in Symbol 301 MovieClip Frame 86
onClipEvent (mouseDown) {
_root.awSndPlay(5);
_parent.gotoAndPlay("NEXT2");
}
Symbol 301 MovieClip Frame 161
_root.awSndPlay(2);
Symbol 301 MovieClip Frame 169
_root.gotoAndStop("STAGE2");
stop();
Symbol 307 MovieClip Frame 11
stop();
Symbol 308 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 6
stop();
Symbol 315 Button
on (release) {
if (_root.iColorAnim > 0) {
return(undefined);
}
_root.awSndPlay(1);
_root.gotoAndStop("RESULT2");
}
Symbol 324 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 1
if (_root.iColorCount < _root.mBaseColorClick[_root.iType]) {
M_C_SERIF2R.gotoAndStop(1);
if (_root.iColorCount < (_root.mBaseColorClick[_root.iType] - 1)) {
_root.iRes_Base = 0;
} else {
_root.iRes_Base = 1;
}
} else if (_root.iColorCount == _root.mBaseColorClick[_root.iType]) {
M_C_SERIF2R.gotoAndStop(2);
_root.SetFace(_root.FACETYPE_PLEASURE);
_root.iRes_Base = 2;
} else if (_root.iColorCount == ((_root.mBaseColorClick[_root.iType] + _root.mOverColorClick[_root.iType]) + _root.mBlackColorClick[_root.iType])) {
M_C_SERIF2R.gotoAndStop(4);
_root.iRes_Base = 3;
} else {
M_C_SERIF2R.gotoAndStop(3);
if (_root.iColorCount > (_root.mBaseColorClick[_root.iType] + 1)) {
_root.iRes_Base = 0;
} else {
_root.iRes_Base = 1;
}
}
_root.awSndPlay(2);
Instance of Symbol 121 MovieClip in Symbol 325 MovieClip Frame 13
onClipEvent (mouseDown) {
_root.awSndPlay(5);
_parent.gotoAndPlay("NEXT1");
}
Symbol 325 MovieClip Frame 83
_root.awSndPlay(2);
Symbol 325 MovieClip Frame 91
_root.SetFace(_root.FACETYPE_NORMAL);
_root.SetStage(3);
_root.gotoAndStop("MSG3");
stop();
Symbol 332 MovieClip Frame 1
_root.awSndPlay(2);
Instance of Symbol 121 MovieClip in Symbol 332 MovieClip Frame 12
onClipEvent (mouseDown) {
_root.awSndPlay(5);
_parent.gotoAndPlay("NEXT1");
}
Instance of Symbol 121 MovieClip in Symbol 332 MovieClip Frame 86
onClipEvent (mouseDown) {
_root.awSndPlay(5);
_parent.gotoAndPlay("NEXT2");
}
Symbol 332 MovieClip Frame 161
_root.awSndPlay(2);
Symbol 332 MovieClip Frame 169
_root.gotoAndStop("STAGE3");
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 6
stop();
Symbol 345 Button
on (release) {
_root.M_NAIL_L.M_P_HINT._visible = false;
_root.DebugOff();
_root.awSndPlay(1);
_root.gotoAndStop("RESULT3");
}
Symbol 354 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 6
stop();
Symbol 354 MovieClip Frame 11
stop();
Symbol 354 MovieClip Frame 16
stop();
Symbol 361 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 1
var hits = 0;
var bades = 0;
var i;
i = 0;
while (i < _root.MAXHITDATA[_root.iType]) {
if (_root.mHit[i].bFlag) {
hits++;
}
i++;
}
i = 0;
while (i < _root.MAXBADDATA[_root.iType]) {
if (_root.mBad[i].bFlag) {
bades++;
}
i++;
}
var h_per = Math.floor((hits / _root.MAXHITDATA[_root.iType]) * 100);
var b_per = Math.floor((bades / _root.MAXBADDATA[_root.iType]) * 100);
_root.M_DBGTEXT.HITPER = h_per;
_root.M_DBGTEXT.BADPER = b_per;
if (b_per >= 15) {
M_C_SERIF3R.gotoAndStop(1);
_root.iRes_Paint = 0;
} else if ((h_per >= 95) && (_root.iMissAreaCount < 1)) {
if (b_per <= 8) {
M_C_SERIF3R.gotoAndStop(3);
_root.SetFace(_root.FACETYPE_PLEASURE);
_root.iRes_Paint = 2;
} else {
M_C_SERIF3R.gotoAndStop(2);
_root.iRes_Paint = 1;
}
} else if ((h_per >= 90) && (_root.iMissAreaCount <= 3)) {
M_C_SERIF3R.gotoAndStop(2);
_root.iRes_Paint = 1;
} else {
M_C_SERIF3R.gotoAndStop(1);
_root.iRes_Paint = 0;
}
_root.awSndPlay(2);
Instance of Symbol 121 MovieClip in Symbol 362 MovieClip Frame 13
onClipEvent (mouseDown) {
_root.awSndPlay(5);
_parent.gotoAndPlay("NEXT1");
}
Symbol 362 MovieClip Frame 83
_root.awSndPlay(2);
Symbol 362 MovieClip Frame 92
_root.SetFace(_root.FACETYPE_NORMAL);
_root.SetStage(4);
_root.gotoAndStop("MSG4");
stop();
Symbol 369 MovieClip Frame 1
_root.awSndPlay(2);
Instance of Symbol 121 MovieClip in Symbol 369 MovieClip Frame 12
onClipEvent (mouseDown) {
_root.awSndPlay(5);
_parent.gotoAndPlay("NEXT1");
}
Instance of Symbol 121 MovieClip in Symbol 369 MovieClip Frame 86
onClipEvent (mouseDown) {
_root.awSndPlay(5);
_parent.gotoAndPlay("NEXT2");
}
Symbol 369 MovieClip Frame 161
_root.awSndPlay(2);
Symbol 369 MovieClip Frame 169
_root.gotoAndStop("STAGE4");
stop();
Symbol 375 Button
on (release) {
_root.SelStone(0);
}
Symbol 378 Button
on (release) {
_root.SelStone(1);
}
Symbol 381 Button
on (release) {
_root.SelStone(2);
}
Symbol 384 Button
on (release) {
_root.SelStone(3);
}
Symbol 387 Button
on (release) {
_root.SelStone(4);
}
Symbol 390 Button
on (release) {
_root.SelStone(5);
}
Symbol 393 Button
on (release) {
_root.SelStone(6);
}
Symbol 396 Button
on (release) {
_root.SelStone(7);
}
Symbol 401 MovieClip Frame 1
stop();
Symbol 408 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 1
_root.CalcStone();
var ave = 0;
var zero = 0;
var i;
i = 0;
while (i < _root.MAXSTONEDATA[_root.iType]) {
if (_root.mResStone[i] < 1) {
zero++;
}
ave = ave + _root.mResStone[i];
i++;
}
ave = ave / _root.MAXSTONEDATA[_root.iType];
if (zero < 1) {
if (ave > 1.5) {
M_C_SERIF4R.gotoAndStop(3);
_root.SetFace(_root.FACETYPE_PLEASURE);
_root.iRes_Stone = 2;
} else {
M_C_SERIF4R.gotoAndStop(2);
_root.iRes_Stone = 1;
}
} else {
M_C_SERIF4R.gotoAndStop(1);
_root.iRes_Stone = 0;
}
_root.awSndPlay(2);
Instance of Symbol 121 MovieClip in Symbol 409 MovieClip Frame 13
onClipEvent (mouseDown) {
_root.awSndPlay(5);
_parent.gotoAndPlay("NEXT1");
}
Symbol 409 MovieClip Frame 83
_root.awSndPlay(2);
Symbol 409 MovieClip Frame 92
_root.SetFace(_root.FACETYPE_NORMAL);
_root.SetStage(5);
_root.gotoAndStop("MSG5");
stop();
Symbol 416 MovieClip Frame 1
_root.awSndPlay(2);
Instance of Symbol 121 MovieClip in Symbol 416 MovieClip Frame 12
onClipEvent (mouseDown) {
_root.awSndPlay(5);
_parent.gotoAndPlay("NEXT1");
}
Instance of Symbol 121 MovieClip in Symbol 416 MovieClip Frame 86
onClipEvent (mouseDown) {
_root.awSndPlay(5);
_parent.gotoAndPlay("NEXT2");
}
Symbol 416 MovieClip Frame 161
_root.awSndPlay(2);
Symbol 416 MovieClip Frame 169
_root.M_SAMPLE.gotoAndPlay("CLOSE");
Symbol 416 MovieClip Frame 179
_root.gotoAndStop("STAGE5");
stop();
Symbol 418 MovieClip Frame 1
stop();
Symbol 425 Button
on (release) {
_root.awSndStop(0);
_root.awSndPlay(1);
_root.gotoAndStop("FADEOUT");
}
Symbol 430 MovieClip Frame 1
stop();
Symbol 432 MovieClip Frame 17
_root.gotoAndStop("RESULT");
stop();
Symbol 445 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 1
stop();
Symbol 478 Button
on (release) {
_root.awSndPlay(1);
gotoAndPlay ("NEXT");
}
Symbol 480 MovieClip Frame 27
_root.awSndPlay(9);
Symbol 480 MovieClip Frame 46
_root.CalcResult();
switch (_root.iRes_All) {
case 0 :
M_P_RESSTR.gotoAndStop(4);
break;
case 1 :
M_P_RESSTR.gotoAndStop(3);
break;
case 2 :
M_P_RESSTR.gotoAndStop(2);
break;
case 3 :
case 4 :
M_P_RESSTR.gotoAndStop(1);
}
_root.awSndPlay(9);
Symbol 480 MovieClip Frame 54
_root.awSndPlay(10);
Symbol 480 MovieClip Frame 69
if (_root.iRes_All >= 2) {
M_RESCHARA.gotoAndStop(2);
_root.awSndPlay(13);
} else if (_root.iRes_All >= 1) {
_root.awSndPlay(11);
} else {
_root.awSndPlay(12);
}
Symbol 480 MovieClip Frame 76
switch (_root.iRes_All) {
case 0 :
M_P_RESMSG.gotoAndStop(1);
break;
case 1 :
M_P_RESMSG.gotoAndStop(2);
break;
case 2 :
M_P_RESMSG.gotoAndStop(3);
break;
case 3 :
M_P_RESMSG.gotoAndStop(4);
break;
case 4 :
M_P_RESMSG.gotoAndStop(5);
}
Symbol 480 MovieClip Frame 97
stop();
Symbol 480 MovieClip Frame 109
_root.gotoAndPlay("START");
stop();