Frame 1
Stage.showMenu = false;
System.useCodepage = true;
DEFINE_DEBUG = false;
debugText._visible = false;
var MAX_Y = 31;
var MAX_CNT_Y = (MAX_Y + 6);
var MAX_CNT_X = 15;
var OFFSET_Y = -12.1;
var OFFSET_X = 21.2;
var MAX_NEWBLOCK_Y = 5;
var MAX_NEWBLOCK_X = 3;
var MAX_NEW_BLOCK = 7;
var MAX_BLOCK_TYPE = 6;
var MIN_REMOVE_BLOCK = 4;
var MAX_STAGE = 5;
var MAX_ROUND = 5;
var SCORE_PER_BLOCK = 10;
var BLOCK_TYPE_ITEM = -1;
var GOAL_BLOCK_CNT_ARR = [50, 100, 150, 200, 250, 300];
var ITEM_GEN_FACTOR = 6;
var MAX_ONE_ITEM = 10;
var MAX_SLOW_ITEM = 10;
var BLOCK_RANGE_ARR_1 = [30, 55, 70, 82, 90, 96, 100];
var BLOCK_RANGE_ARR_2 = [15, 30, 50, 75, 85, 94, 100];
var BLOCK_RANGE_ARR_3 = [10, 20, 30, 50, 75, 90, 100];
var BLOCK_RANGE_ARR_4 = [8, 16, 25, 45, 70, 90, 100];
var BLOCK_RANGE_ARR_5 = [4, 10, 20, 40, 65, 85, 100];
Frame 3
if (this.getBytesLoaded() < this.getBytesTotal()) {
this.gotoAndPlay(_currentframe - 1);
}
Frame 5
gotoAndPlay(_currentframe + 1);
Instance of Symbol 622 MovieClip "helpWnd" in Frame 5
onClipEvent (load) {
_visible = false;
}
Frame 6
var m_pUtil = CUtil.Instance();
var m_pGameProc = CGameProc.Instance();
var _TIME_LINE = this;
var mGameMC = null;
mGameMC = gameMC;
m_pUtil.Init();
m_pGameProc.Init();
Frame 8
this.stop();
Symbol 623 MovieClip [__Packages.CBaseClass] Frame 0
class CBaseClass
{
var mEffSnd, _TIME_LINE, m_pGameProc, m_pUtil, mGameMC;
function CBaseClass () {
mEffSnd = new Sound();
}
function MemberDef() {
_TIME_LINE = _root;
m_pGameProc = CGameProc.Instance();
m_pUtil = CUtil.Instance();
mGameMC = _TIME_LINE.mGameMC;
}
function toNumber(str, noticeMsg, debugInfo) {
return(m_pUtil.toNumber(str, noticeMsg, debugInfo));
}
function traceDebug(msg) {
if (_TIME_LINE.DEFINE_DEBUG) {
}
}
function traceRelease(msg) {
trace(msg);
_TIME_LINE.debug003 = (msg + newline) + _TIME_LINE.debug003;
}
function SetError(msg) {
m_pUtil.SetError(msg);
}
function ShowMsgBox(msg) {
m_pUtil.ShowUserMsg(msg);
}
function AttSound(sndNum) {
mEffSnd.attachSound("SND_" + sndNum);
mEffSnd.start();
}
function StopSound() {
mEffSnd.stop();
}
var MAX_Y = 31;
var MAX_CNT_Y = CBaseClass.prototype.MAX_Y + 6;
var MAX_CNT_X = 15;
var OFFSET_Y = -12.1;
var OFFSET_X = 21.2;
var MAX_NEWBLOCK_Y = 5;
var MAX_NEWBLOCK_X = 3;
var MAX_NEW_BLOCK = 7;
var MAX_BLOCK_TYPE = 6;
var MIN_REMOVE_BLOCK = 4;
var MAX_STAGE = 5;
var MAX_ROUND = 5;
var SCORE_PER_BLOCK = 10;
var BLOCK_TYPE_ITEM = -1;
var GOAL_BLOCK_CNT_ARR = [50, 100, 150, 200, 250, 300];
var ITEM_GEN_FACTOR = 6;
var MAX_ONE_ITEM = 10;
var MAX_SLOW_ITEM = 10;
var BLOCK_RANGE_ARR_1 = [30, 55, 70, 82, 90, 96, 100];
var BLOCK_RANGE_ARR_2 = [15, 30, 50, 75, 85, 94, 100];
var BLOCK_RANGE_ARR_3 = [10, 20, 30, 50, 75, 90, 100];
var BLOCK_RANGE_ARR_4 = [8, 16, 25, 45, 70, 90, 100];
var BLOCK_RANGE_ARR_5 = [4, 10, 20, 40, 65, 85, 100];
}
Symbol 624 MovieClip [__Packages.CUtil] Frame 0
class CUtil extends CBaseClass
{
var MemberDef, mDate, _TIME_LINE;
function CUtil () {
super();
}
function Init() {
MemberDef();
mDate = new Date();
var _local2 = 0;
while (_local2 < 10) {
clearInterval(m_hTimerArr[_local2]);
m_hTimerArr[_local2] = null;
_local2++;
}
String.prototype.splitInt = function (c, callerInfo) {
var _local3 = this.split(c);
var _local4 = _local3.length;
var _local2 = 0;
while (_local2 < _local4) {
_local3[_local2] = (CUtil.Instance()._TIME_LINE.DEFINE_DEBUG ? (CUtil.Instance().toNumber(_local3[_local2], ("CUTIL::splitInt(" + callerInfo) + ")")) : (Number(_local3[_local2])));
_local2++;
}
return(_local3);
};
String.prototype.replace = function (orgStr, newStr) {
var _local5 = orgStr.length;
var _local11 = newStr.length;
var _local8 = _local11 - _local5;
var _local7 = 0;
var _local6 = 0;
while (true) {
var _local2 = this.indexOf(orgStr, _local6);
if (_local2 == -1) {
break;
}
var _local4 = this.substr(0, _local2);
var _local3 = this.slice(_local2 + _local5);
this=(_local4 + newStr) + _local3;//parameter overwritten
(_local4 + newStr) + _local3;
_local6 = (_local2 + _local5) + _local8;
}
return(this);
};
}
function DelayedCall(instance, funcName, dTime) {
var _local3 = 0;
while (_local3 < 10) {
if (m_hTimerArr[_local3] == null) {
m_hTimerArr[_local3] = setInterval(this, "__callFunc", dTime, _local3, instance, funcName, arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]);
return(_local3);
}
_local3++;
}
}
function __callFunc(hTimerIdx, instance, funcName) {
instance[funcName](arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]);
clearInterval(m_hTimerArr[hTimerIdx]);
m_hTimerArr[hTimerIdx] = null;
}
function ClearDelayedCall(timerIndex) {
if (m_hTimerArr[timerIndex] == null) {
SetError("CUtil::ClearDelayedCall - \u2248\u220F\u00BF\u00C3\u220F\u201D \u03C0\u00CB\u00F8\u2260\u00F8\u00B0\u00BA\u2260 \u00BF\u0152\u00BF\u2044\u2211\u0152 \u2265\u2014\u00B1\u2030 \u00BF\u0152\u00B5\u00B6\u03A9\u222B \u00BF\u00DF\u0192\u00B0\u00A5\u00AC null \u00BF\u2018\u00A5\u0153\u00A5\u0178");
return(false);
}
clearInterval(m_hTimerArr[timerIndex]);
m_hTimerArr[timerIndex] = null;
return(true);
}
function SetError(msg) {
trace(msg);
_TIME_LINE.dlgBox.ShowDlgBox("ERROR", msg);
_TIME_LINE.debugText._visible = true;
}
function ShowUserMsg(msg) {
_TIME_LINE.dlgBox.ShowDlgBox("USER_MSG", msg);
}
function toNumber(str, noticeMsg, debugInfo) {
var _local3 = 10;
var _local2 = parseInt(str, _local3);
if (isNaN(_local2)) {
SetError(((("toNumber NaN(\u00A1\u00A7\u00BA\u02C6\u2248\u220F\u00BF\u2018\u00BF\u220F\u2211\u0152 \u222B\u00D8\u00BB\u00D8\u00B5\u2026\u00BA\u02C6 \u00E6\u00AF\u00A5\u00AC \u03C0\u00C6\u00BF\u2044\u221E\u00B0 \u00BF\u00F7\u00BF\u03A9) : " + str) + "/") + "caller = ") + noticeMsg);
return(null);
}
return(_local2);
}
function AddComma(num) {
var _local2 = String(num);
var _local3 = _local2.split("");
var _local1 = 0;
while (_local1 < (Math.ceil(_local2.length / 3) - 1)) {
_local3.splice(-((4 * _local1) + 3), 0, ",");
_local1++;
}
return(_local3.join(""));
}
function TransMoney(num) {
var _local7 = ["", "\u220F\u220F", "\u00E6\u00D4", "\u00A1\u2202"];
var _local3 = new Array();
var _local2 = String(num);
var _local6 = _local2.length;
var _local4 = "";
var _local1 = 0;
while (_local1 < Math.ceil(_local6 / 4)) {
_local3[_local1] = _local2.substr(-4);
_local2 = _local2.substr(0, _local6 - (4 * (_local1 + 1)));
_local1++;
}
var _local5 = 0;
_local4 = "";
_local1 = 0;
while (_local1 < _local3.length) {
_local5 = parseInt(_local3[_local1], 10);
if (_local5 != 0) {
_local4 = (_local5 + _local7[_local1]) + _local4;
}
_local1++;
}
if (_local4 == "") {
_local4 = "0";
}
return(_local4);
}
function SetImgDigit(mc, money, isAni) {
var _local5 = money.toString();
var numArr = _local5.split("");
numArr.reverse();
var len = numArr.length;
if (len <= 0) {
SetError("CUtil.SetImgDigit - \u00BA\u02DD\u00BF\u2044\u221E\u00B0 \u00A1\u02C6\u00A1\u00A7\u00B5\u00AB\u00A1\u02C6 \u00E6\u00A0\u00BF\u03A9");
return(undefined);
}
var _local2 = 0;
while (_local2 < len) {
numArr[_local2] = toNumber(numArr[_local2], "CUtil.SetImgDigit");
_local2++;
}
if (isAni) {
if (mc.onEnterFrame) {
return(undefined);
}
var aniOrder = 0;
var curFrame = -1;
var startOffset = 3;
mc.onEnterFrame = function () {
if (curFrame == -1) {
mc["digit" + aniOrder]._visible = true;
curFrame = (numArr[aniOrder] + startOffset) % 10;
}
curFrame = (((curFrame + 1) > 9) ? 0 : (curFrame + 1));
mc["digit" + aniOrder].gotoAndStop(curFrame + 1);
if (curFrame == numArr[aniOrder]) {
aniOrder++;
curFrame = -1;
}
if (aniOrder >= len) {
delete mc.onEnterFrame;
var _local1 = len;
while (_local1 < 20) {
mc["digit" + _local1]._visible = false;
_local1++;
}
}
};
} else {
_local2 = 0;
while (_local2 < 20) {
mc["digit" + _local2]._visible = false;
mc["comma" + _local2]._visible = false;
var _local3 = numArr[_local2];
if (!isNaN(_local3)) {
mc["digit" + _local2]._visible = true;
mc["digit" + _local2].gotoAndStop(_local3 + 1);
}
_local2++;
}
var _local4 = Math.floor((len - 1) / 3);
_local2 = 0;
while (_local2 < _local4) {
mc["comma" + _local2]._visible = true;
_local2++;
}
}
}
function GetChipInfo(money, isExcept5) {
var _local4 = new Array();
var _local5 = String(money).split("");
_local5.reverse();
var _local6 = _local5.length;
var _local1 = new Array();
var _local2 = 0;
while (_local2 < _local6) {
var _local3 = Number(_local5[_local2]);
if (_local3 == 0) {
} else if ((_local3 < 5) || (isExcept5)) {
_local1[0] = Math.pow(10, _local2);
_local1[1] = _local3;
_local4.push(_local1.concat());
} else {
_local1[0] = Math.pow(10, _local2) * 5;
_local1[1] = 1;
_local4.push(_local1.concat());
_local1[0] = Math.pow(10, _local2);
_local1[1] = _local3 - 5;
_local4.push(_local1.concat());
}
_local2++;
}
return(_local4);
}
function Local2Global(mc) {
var _local1 = {x:0, y:0};
mc.localToGlobal(_local1);
return(new POINT(_local1.x, _local1.y));
}
function Global2Local(mc, pPoint) {
var _local1 = {x:pPoint.mX, y:pPoint.mY};
mc._parent.globalToLocal(_local1);
pPoint.mX = _local1.x;
pPoint.mY = _local1.y;
}
function Encode(str) {
var _local1 = str.split(",");
str = _local1.join("!u002c");
_local1 = str.split("<");
str = _local1.join("<");
return(str);
}
function Decode(str) {
var _local3 = str.length;
var _local4;
var _local1 = 0;
while (_local1 < _local3) {
if ((((((((_local1 + 5) < _local3) && (str.charAt(_local1) == "!")) && (str.charAt(_local1 + 1) == "u")) && (str.charAt(_local1 + 2) == "0")) && (str.charAt(_local1 + 3) == "0")) && (str.charAt(_local1 + 4) == "2")) && (str.charAt(_local1 + 5) == "c")) {
_local4 = _local4 + ",";
_local1 = _local1 + 5;
} else {
_local4 = _local4 + str.charAt(_local1);
}
_local1++;
}
return(_local4);
}
function EncodeBase64(input) {
var _local9 = "";
var _local7;
var _local5;
var _local4;
var _local11;
var _local10;
var _local8;
var _local3;
var _local2 = 0;
do {
_local7 = input.charCodeAt(_local2++);
_local5 = input.charCodeAt(_local2++);
_local4 = input.charCodeAt(_local2++);
_local11 = _local7 >> 2;
_local10 = ((_local7 & 3) << 4) | (_local5 >> 4);
_local8 = ((_local5 & 15) << 2) | (_local4 >> 6);
_local3 = _local4 & 63;
if (isNaN(_local5)) {
_local3 = 64;
_local8 = _local3;
} else if (isNaN(_local4)) {
_local3 = 64;
}
_local9 = (((_local9 + BASE64_KEY_STR.charAt(_local11)) + BASE64_KEY_STR.charAt(_local10)) + BASE64_KEY_STR.charAt(_local8)) + BASE64_KEY_STR.charAt(_local3);
} while (_local2 < input.length);
return(_local9);
}
function DecodeBase64(input) {
var _local2 = "";
var _local8;
var _local11;
var _local10;
var _local9;
var _local7;
var _local5;
var _local6;
var _local3 = 0;
do {
_local9 = BASE64_KEY_STR.indexOf(input.charAt(_local3++));
_local7 = BASE64_KEY_STR.indexOf(input.charAt(_local3++));
_local5 = BASE64_KEY_STR.indexOf(input.charAt(_local3++));
_local6 = BASE64_KEY_STR.indexOf(input.charAt(_local3++));
_local8 = (_local9 << 2) | (_local7 >> 4);
_local11 = ((_local7 & 15) << 4) | (_local5 >> 2);
_local10 = ((_local5 & 3) << 6) | _local6;
_local2 = _local2 + String.fromCharCode(_local8);
if (_local5 != 64) {
_local2 = _local2 + String.fromCharCode(_local11);
}
if (_local6 != 64) {
_local2 = _local2 + String.fromCharCode(_local10);
}
} while (_local3 < input.length);
return(_local2);
}
function FindInArray(arr, findVal) {
var _local2 = arr.length;
var _local1 = 0;
while (_local1 < _local2) {
if (arr[_local1] == findVal) {
return(_local1);
}
_local1++;
}
return(-1);
}
function ArrayRandSel(arr, pickNum) {
if (pickNum > arr.length) {
trace("ArrayRandSel() : \u2211\u00A3\u00A5\u02DD\u00AB\u0153\u221E\u2018 \u00AA\u00C3\u00BF\u00AA \u221E\u03C0\u00BA\u02C6\u221E\u00B0 \u03C0\u00CB\u00F8\u2260\u00B1\u00CA\u00BF\u00C3\u222B\u220F\u00A5\u0178 \u2248\u00C6\u00A5\u0153\u00A5\u0178.");
}
var _local5 = arr.length;
var _local2 = new Array();
var _local1 = 0;
while (_local1 < _local5) {
_local2[_local1] = _local1;
_local1++;
}
var _local4 = new Array();
_local1 = 0;
while (_local1 < pickNum) {
var _local3 = Math.floor(Math.random() * _local2.length);
_local4.push(arr[_local2[_local3]]);
_local2.splice(_local3, 1);
_local1++;
}
return(_local4);
}
function Sort(arr) {
var _local4;
var _local5 = arr.length;
var _local3 = _local5 - 1;
while (_local3 >= 0) {
var _local1 = 1;
while (_local1 <= _local3) {
if (arr[_local1 - 1] > arr[_local1]) {
_local4 = arr[_local1 - 1];
arr[_local1 - 1] = arr[_local1];
arr[_local1] = _local4;
}
_local1++;
}
_local3--;
}
}
function FillArr(targetArr, fillCnt, fillValue) {
var _local1 = 0;
while (_local1 < fillCnt) {
targetArr[_local1] = fillValue;
_local1++;
}
}
function ShuffleArr(arr) {
var _local1 = new Array();
var _local5 = new Array();
var _local4 = arr.length;
var _local2 = 0;
while (_local2 < _local4) {
_local1[_local2] = _local2;
_local2++;
}
var _local3;
_local2 = 0;
while (_local2 < _local4) {
_local3 = Math.floor(Math.random() * _local1.length);
_local5.push(arr[_local1[_local3]]);
_local1.splice(_local3, 1);
_local2++;
}
return(_local5);
}
function RmInArray(arr) {
var _local4 = 1;
while (_local4 < arguments.length) {
var _local2 = 0;
while (_local2 < arr.length) {
if (arr[_local2] == arguments[_local4]) {
arr.splice(_local2, 1);
break;
}
_local2++;
}
_local4++;
}
}
static function Instance() {
if (mInstance == null) {
mInstance = new CUtil();
}
return(mInstance);
}
var m_hTimerArr = new Array();
var BASE64_KEY_STR = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
static var mInstance = null;
}
Symbol 625 MovieClip [__Packages.POINT] Frame 0
class POINT
{
var mX, mY;
function POINT (y, x) {
mX = x;
mY = y;
}
function SetPos(y, x) {
mX = x;
mY = y;
}
function Copy(pPoint) {
mX = pPoint.mX;
mY = pPoint.mY;
}
function toString() {
return(((("{" + mY) + ",") + mX) + "}");
}
}
Symbol 626 MovieClip [__Packages.CGameProc] Frame 0
class CGameProc extends CBaseClass
{
var mHiveArr, MAX_CNT_Y, MAX_CNT_X, mCurBlockInfo, mNextBlockQue, mMatchCheckArr, mMatchChkOffsetArr, mItemChkOffsetArr0, mItemChkOffsetArr1, mItemChkOffsetArr2, mItemChkOffsetArr3, mItemChkOffsetArr4, mItemChkOffsetArr5, mRemoveBlockArr, mDropBlockArr, mOffsetArr, mInitPos, MemberDef, mIsBGSndOn, mIsEffSndOn, mBgSnd, _TIME_LINE, mSndObj, mGameMC, mCurChar, mCurStage, mCurRound, mCurLevel, mCurScore, mBlockDep, mTicCount, mGoalCnt, mProcCnt, mRemovedCnt, mComboCnt, mItemFactor, mItemGenTic, mSlowCount, mOneItemCount, mGoalAchieved, mTicState, MAX_ROUND, MAX_STAGE, GOAL_BLOCK_CNT_ARR, ITEM_GEN_FACTOR, mTempCnt, mGameTimer, MAX_NEW_BLOCK, MAX_BLOCK_TYPE, MIN_REMOVE_BLOCK, MAX_Y, MAX_ONE_ITEM, MAX_SLOW_ITEM, OFFSET_Y, OFFSET_X, m_pGameProc;
function CGameProc () {
super();
mHiveArr = new Array(MAX_CNT_Y);
var _local3 = 0;
while (_local3 < MAX_CNT_Y) {
mHiveArr[_local3] = new Array(MAX_CNT_X);
_local3++;
}
mCurBlockInfo = new CBlockInfo();
mNextBlockQue = new Array();
mMatchCheckArr = new Array();
mMatchChkOffsetArr = new Array();
mItemChkOffsetArr0 = new Array();
mItemChkOffsetArr1 = new Array();
mItemChkOffsetArr2 = new Array();
mItemChkOffsetArr3 = new Array();
mItemChkOffsetArr4 = new Array();
mItemChkOffsetArr5 = new Array();
mRemoveBlockArr = new Array();
mDropBlockArr = new Array();
mOffsetArr = [new POINT(0, 0), new POINT(2, 0), new POINT(1, 1), new POINT(-1, 1), new POINT(-2, 0), new POINT(-1, -1), new POINT(1, -1)];
mMatchChkOffsetArr = [new POINT(2, 0), new POINT(1, 1), new POINT(-1, 1), new POINT(-2, 0), new POINT(-1, -1), new POINT(1, -1)];
mItemChkOffsetArr0 = [new POINT(2, 0), new POINT(1, 1), new POINT(-1, 1), new POINT(-2, 0), new POINT(-1, -1), new POINT(1, -1)];
mItemChkOffsetArr1 = [new POINT(-2, 0)];
mItemChkOffsetArr2 = [new POINT(2, 0), new POINT(1, 1), new POINT(-1, 1), new POINT(-2, 0), new POINT(-1, -1), new POINT(1, -1), new POINT(4, 0), new POINT(3, 1), new POINT(2, 2), new POINT(0, 2), new POINT(-2, 2), new POINT(-3, 1), new POINT(-4, 0), new POINT(-3, -1), new POINT(-2, -2), new POINT(0, -2), new POINT(2, -2), new POINT(3, -1), new POINT(6, 0), new POINT(5, 1), new POINT(4, 2), new POINT(3, 3), new POINT(1, 3), new POINT(-1, 3), new POINT(-3, 3), new POINT(-4, 2), new POINT(-5, 1), new POINT(-6, 0), new POINT(-5, -1), new POINT(-4, -2), new POINT(-3, -3), new POINT(-1, -3), new POINT(1, -3), new POINT(3, -3), new POINT(4, -2), new POINT(5, -1)];
mItemChkOffsetArr3 = [new POINT(-2, 0)];
mItemChkOffsetArr4 = [new POINT(-2, 0), new POINT(-4, 0), new POINT(-6, 0), new POINT(-8, 0), new POINT(-10, 0), new POINT(-12, 0), new POINT(-14, 0), new POINT(-16, 0), new POINT(-18, 0), new POINT(-20, 0), new POINT(-22, 0), new POINT(-24, 0), new POINT(-26, 0), new POINT(-28, 0), new POINT(-30, 0)];
mItemChkOffsetArr5 = [];
mInitPos = new POINT(33, 7);
}
function Init() {
MemberDef();
mIsBGSndOn = true;
mIsEffSndOn = true;
mBgSnd = new Sound(_TIME_LINE);
mSndObj = new Sound(mGameMC);
Key.addListener(_TIME_LINE);
_TIME_LINE.onKeyDown = OnKeyProc;
ShowMainWnd();
mCurChar = 0;
RetryInit();
}
function RetryInit() {
if (!_TIME_LINE.TEST_MODE) {
mCurStage = 0;
}
mCurRound = 0;
mCurLevel = 0;
mCurScore = 0;
_TIME_LINE.g_score = 0;
GameInit();
}
function GameInit() {
mBlockDep = 0;
mTicCount = 0;
mGoalCnt = 0;
mProcCnt = 0;
mRemovedCnt = 0;
mComboCnt = 0;
mItemFactor = 0;
mItemGenTic = 0;
mSlowCount = 0;
mOneItemCount = 0;
mGoalAchieved = false;
mTicState = "NULL";
var _local3 = 0;
while (_local3 < MAX_CNT_Y) {
var _local2 = 0;
while (_local2 < MAX_CNT_X) {
if (mHiveArr[_local3][_local2].mRealMC) {
mHiveArr[_local3][_local2].mRealMC.removeMovieClip();
}
mHiveArr[_local3][_local2] = 1;
_local2++;
}
_local3++;
}
mCurBlockInfo = null;
mNextBlockQue = [];
mMatchCheckArr = [];
mRemoveBlockArr = [];
mDropBlockArr = [];
}
function RetryGame() {
RetryInit();
StartGame();
}
function ShowMainWnd(isCharSel) {
if (isCharSel) {
_TIME_LINE.introWnd.gotoAndStop("CHAR_SEL");
PlayBG("SND_BG_SELECT");
} else {
_TIME_LINE.introWnd.gotoAndStop(1);
PlayBG("SND_MAINBG");
}
_TIME_LINE.introWnd._visible = true;
}
function StartGame() {
GameInit();
_TIME_LINE.nextWnd._visible = false;
if (mCurStage <= 0) {
mCurStage = 1;
}
_TIME_LINE.backMC.gotoAndStop(mCurChar + 1);
_TIME_LINE.charAni.gotoAndStop(mCurChar + 1);
if (mCurRound < MAX_ROUND) {
mCurRound++;
} else {
mCurRound = 1;
if (mCurStage < MAX_STAGE) {
mCurStage++;
} else {
GameOverProc();
return(undefined);
}
}
_TIME_LINE.g_curStage.SetDigit(mCurStage);
_TIME_LINE.g_curRound.SetDigit(mCurRound);
var _local2 = Math.round((GOAL_BLOCK_CNT_ARR[mCurStage] - GOAL_BLOCK_CNT_ARR[mCurStage - 1]) / 5) * (mCurRound - 1);
mGoalCnt = GOAL_BLOCK_CNT_ARR[mCurStage - 1] + _local2;
_TIME_LINE.g_goalCnt = mGoalCnt;
_TIME_LINE.g_procCnt = mRemovedCnt;
mItemFactor = ITEM_GEN_FACTOR;
PrepareNextBlock();
mTempCnt = 0;
mTicState = "NEW_BLOCK";
mCurLevel = ((mCurStage - 1) * 5) + mCurRound;
StartTic(false);
PlayBG("SND_BG_" + mCurChar);
}
function StartTic(isSlow) {
clearInterval(mGameTimer);
var _local2 = (isSlow ? 1000 : (1000 - (mCurLevel * 38)));
mGameTimer = setInterval(this, "GameTic", _local2);
}
function PauseGame() {
clearInterval(mGameTimer);
}
function GameTic() {
if (mTicState == "NEW_BLOCK") {
CreateBlock();
PrepareNextBlock();
} else if (mTicState == "REMOVE_BLOCK") {
RemoveBlock();
} else if (mTicState == "DROP_BLOCK") {
DropDown();
} else if (mTicState == "MOVE_DOWN") {
MoveDown();
}
mTicCount++;
}
function MoveDown() {
var _local3 = 0;
while (_local3 < MAX_NEW_BLOCK) {
if (mCurBlockInfo.mBlockArr[_local3]) {
mCurBlockInfo.mBlockArr[_local3].mIsMovable = false;
mCurBlockInfo.mBlockArr[_local3].mIsDownCheck = false;
}
_local3++;
}
var _local5 = [3, 4, 5, 0, 2, 6, 1];
_local3 = 0;
while (_local3 < MAX_NEW_BLOCK) {
var _local4 = _local5[_local3];
var _local2 = mCurBlockInfo.mBlockArr[_local4];
if ((_local2 != null) && (!_local2.mIsDownCheck)) {
if (mHiveArr[IsValidY(_local2.mY - 2)][IsValidX(_local2.mX)]) {
if (mHiveArr[IsValidY(_local2.mY - 2)][IsValidX(_local2.mX)] == 1) {
SetDownMovable(_local4, true);
} else if (!mHiveArr[IsValidY(_local2.mY - 2)][IsValidX(_local2.mX)].mIsOnMove) {
SetDownMovable(_local4, false);
}
} else {
SetDownMovable(_local4, false);
}
}
_local3++;
}
var _local6 = 0;
_local3 = 0;
while (_local3 < MAX_NEW_BLOCK) {
var _local4 = _local5[_local3];
var _local2 = mCurBlockInfo.mBlockArr[_local4];
if (_local2 != null) {
if (_local2.mIsMovable) {
mHiveArr[IsValidY(_local2.mY)][IsValidX(_local2.mX)] = 1;
_local2.mY = _local2.mY - 2;
mHiveArr[IsValidY(_local2.mY)][IsValidX(_local2.mX)] = _local2;
SetBlockPos(_local2);
_local6++;
} else {
mCurBlockInfo.mSideMovable = false;
mCurBlockInfo.mRotatable = false;
mCurBlockInfo.mBlockArr[_local4] = null;
mCurBlockInfo.mBlockCnt--;
_local2.mIsOnMove = false;
}
}
_local3++;
}
mCurBlockInfo.mMoveSideCnt = 0;
if (_local6 <= 0) {
if (mMatchCheckArr[0].mItemType >= 0) {
CheckItem();
} else {
CheckMatch();
}
}
}
function DropDown(isDirectDrop) {
mTicState = "NULL";
var thisObj = this;
var exeCnt = 0;
var dropCnt = 0;
var isDropDone = false;
var delayCnt = 0;
var len = mDropBlockArr.length;
var biggest = mDropBlockArr[0].mDropCnt;
var _local3 = 1;
while (_local3 < len) {
if (mDropBlockArr[_local3].mDropCnt > biggest) {
biggest = mDropBlockArr[_local3].mDropCnt;
}
_local3++;
}
mGameMC.onEnterFrame = function () {
if (!isDropDone) {
var _local3 = 0;
while (_local3 < len) {
var _local2 = thisObj.mDropBlockArr[_local3];
if (_local2.mDropCnt > 0) {
thisObj.mHiveArr[thisObj.IsValidY(_local2.mY)][thisObj.IsValidX(_local2.mX)] = 1;
_local2.mY = _local2.mY - 2;
thisObj.mHiveArr[thisObj.IsValidY(_local2.mY)][thisObj.IsValidX(_local2.mX)] = _local2;
thisObj.SetBlockPos(_local2);
_local2.mDropCnt--;
}
_local3++;
}
if ((++dropCnt) >= biggest) {
isDropDone = true;
thisObj.PlaySound("SND_DROP");
}
}
if (isDropDone) {
if ((delayCnt++) >= 15) {
delete this.onEnterFrame;
if (!isDirectDrop) {
thisObj.RefreshMatched(thisObj.mDropBlockArr);
}
thisObj.mMatchCheckArr = thisObj.mDropBlockArr.concat();
if (thisObj.mMatchCheckArr[0].mItemType >= 0) {
thisObj.CheckItem();
} else {
thisObj.CheckMatch();
}
thisObj.mDropBlockArr = [];
}
}
exeCnt++;
};
}
function RefreshMatched(dropBlockArr) {
var _local7 = dropBlockArr.length;
var _local5 = 0;
while (_local5 < _local7) {
var _local6 = dropBlockArr[_local5];
var _local2 = _local6.mMatchArr.concat();
var _local4 = 0;
while (_local4 < _local2.length) {
var _local3 = 0;
while (_local3 < _local7) {
if (_local2[_local4].mDepth == dropBlockArr[_local3].mDepth) {
var _local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1].RemoveMatchBlock(_local2[_local4]);
_local1++;
}
}
_local3++;
}
_local4++;
}
_local6.mMatchArr = [_local6];
_local5++;
}
}
function MoveSide(dir) {
var _local4 = (((mCurBlockInfo.mMoveSideCnt % 2) == 0) ? 1 : -1);
var _local5 = ((dir == "RIGHT") ? 1 : -1);
var _local3 = 0;
while (_local3 < mCurBlockInfo.mBlockArr.length) {
if (mCurBlockInfo.mBlockArr[_local3]) {
var _local2 = mCurBlockInfo.mBlockArr[_local3];
if ((mHiveArr[IsValidY(_local2.mY + _local4)][IsValidX(_local2.mX + _local5)] != 1) && (!mHiveArr[IsValidY(_local2.mY + _local4)][IsValidX(_local2.mX + _local5)].mIsOnMove)) {
return(undefined);
}
}
_local3++;
}
var _local6 = ((dir == "RIGHT") ? ([2, 3, 1, 0, 4, 6, 5]) : ([6, 5, 1, 0, 4, 2, 3]));
_local3 = 0;
while (_local3 < MAX_NEW_BLOCK) {
if (mCurBlockInfo.mBlockArr[_local6[_local3]]) {
var _local2 = mCurBlockInfo.mBlockArr[_local6[_local3]];
mHiveArr[_local2.mY][_local2.mX] = 1;
_local2.mY = _local2.mY + _local4;
_local2.mX = _local2.mX + _local5;
mHiveArr[_local2.mY][_local2.mX] = _local2;
SetBlockPos(_local2);
}
_local3++;
}
mCurBlockInfo.mMoveSideCnt++;
}
function Rotate(dir) {
if (mCurBlockInfo.mBlockCnt == 1) {
return(undefined);
}
if (!mCurBlockInfo.mBlockArr[0]) {
return(undefined);
}
var _local2 = ((dir == "CW") ? ([[0, 0], [-1, 1], [-2, 0], [-1, -1], [1, -1], [2, 0], [1, 1]]) : ([[0, 0], [-1, -1], [1, -1], [2, 0], [1, 1], [-1, 1], [-2, 0]]));
var _local3 = 1;
while (_local3 < MAX_NEW_BLOCK) {
if (mCurBlockInfo.mBlockArr[_local3]) {
var _local4 = mCurBlockInfo.mBlockArr[_local3];
if ((mHiveArr[IsValidY(_local4.mY + _local2[_local3][0])][IsValidX(_local4.mX + _local2[_local3][1])] != 1) && (!mHiveArr[IsValidY(_local4.mY + _local2[_local3][0])][IsValidX(_local4.mX + _local2[_local3][1])].mIsOnMove)) {
return(undefined);
}
}
_local3++;
}
if (dir == "CW") {
var _local5 = mCurBlockInfo.mBlockArr[6];
mCurBlockInfo.mBlockArr[6] = null;
mHiveArr[_local5.mY][_local5.mX] = 1;
_local3 = MAX_NEW_BLOCK - 2;
while (_local3 > 0) {
if (mCurBlockInfo.mBlockArr[_local3]) {
var _local4 = mCurBlockInfo.mBlockArr[_local3];
mCurBlockInfo.mBlockArr[_local3 + 1] = _local4;
mCurBlockInfo.mBlockArr[_local3] = null;
mHiveArr[_local4.mY][_local4.mX] = 1;
_local4.mY = _local4.mY + _local2[_local3][0];
_local4.mX = _local4.mX + _local2[_local3][1];
_local4.mNbPos++;
mHiveArr[_local4.mY][_local4.mX] = _local4;
}
_local3--;
}
if (_local5) {
mCurBlockInfo.mBlockArr[1] = _local5;
_local5.mY = _local5.mY + _local2[6][0];
_local5.mX = _local5.mX + _local2[6][1];
_local5.mNbPos = 1;
mHiveArr[_local5.mY][_local5.mX] = _local5;
}
} else {
var _local5 = mCurBlockInfo.mBlockArr[1];
mCurBlockInfo.mBlockArr[1] = null;
mHiveArr[_local5.mY][_local5.mX] = 1;
_local3 = 1;
while (_local3 < (MAX_NEW_BLOCK - 1)) {
if (mCurBlockInfo.mBlockArr[_local3 + 1]) {
var _local4 = mCurBlockInfo.mBlockArr[_local3 + 1];
mCurBlockInfo.mBlockArr[_local3] = _local4;
mCurBlockInfo.mBlockArr[_local3 + 1] = null;
mHiveArr[_local4.mY][_local4.mX] = 1;
_local4.mY = _local4.mY + _local2[_local3 + 1][0];
_local4.mX = _local4.mX + _local2[_local3 + 1][1];
_local4.mNbPos--;
mHiveArr[_local4.mY][_local4.mX] = _local4;
}
_local3++;
}
mCurBlockInfo.mBlockArr[6] = _local5;
_local5.mY = _local5.mY + _local2[1][0];
_local5.mX = _local5.mX + _local2[1][1];
_local5.mNbPos = 6;
mHiveArr[_local5.mY][_local5.mX] = _local5;
}
_local3 = 1;
while (_local3 < MAX_NEW_BLOCK) {
if (mCurBlockInfo.mBlockArr[_local3]) {
var _local4 = mCurBlockInfo.mBlockArr[_local3];
SetBlockPos(_local4);
}
_local3++;
}
PlaySound("SND_ROTATE");
}
function DropDirect() {
mDropBlockArr = [];
var _local4 = [[5, 6], [4, 0, 1], [3, 2]];
var _local2 = 0;
while (_local2 < 3) {
var _local9 = false;
var _local7 = null;
var _local5 = [];
var _local6 = 0;
while (_local6 < _local4[_local2].length) {
if (mCurBlockInfo.mBlockArr[_local4[_local2][_local6]]) {
_local9 = true;
if (!_local7) {
_local7 = _local4[_local2][_local6];
}
_local5.push(_local4[_local2][_local6]);
mDropBlockArr.push(mCurBlockInfo.mBlockArr[_local4[_local2][_local6]]);
mCurBlockInfo.mBlockArr[_local4[_local2][_local6]].mIsOnMove = false;
}
_local6++;
}
if (_local9) {
var _local8 = mCurBlockInfo.mBlockArr[_local7];
var _local10 = _local8.mY;
var _local11 = (((_local8.mX % 2) == 0) ? 0 : 1);
_local6 = _local10;
while (_local6 > _local11) {
if (mHiveArr[IsValidY(_local6 - 2)][_local8.mX] == 1) {
var _local3 = 0;
while (_local3 < _local5.length) {
mCurBlockInfo.mBlockArr[_local5[_local3]].mDropCnt++;
_local3++;
}
}
_local6 = _local6 - 2;
}
}
_local2++;
}
DropDown(true);
}
function RemoveBlock() {
mTicState = "NULL";
var thisObj = this;
var exeCnt = 0;
mGameMC.onEnterFrame = function () {
if (exeCnt <= 0) {
var _local2 = 0;
while (_local2 < thisObj.mRemoveBlockArr.length) {
if (thisObj.mRemoveBlockArr[_local2].mRealMC.marker._currentframe == 1) {
thisObj.mRemoveBlockArr[_local2].mRealMC.marker.gotoAndStop(2);
}
_local2++;
}
} else if (exeCnt == 5) {
var _local4 = 0;
var _local3 = [];
var _local2 = 0;
while (_local2 < thisObj.mRemoveBlockArr.length) {
if (thisObj.mRemoveBlockArr[_local2].mRealMC) {
var _local8 = thisObj.mRemoveBlockArr[_local2];
if (_local3[0] == null) {
_local3[0] = _local8.mRealMC._x;
_local3[1] = _local8.mRealMC._y;
}
if (_local8.mItemType == 2) {
_local8.mRealMC.inBlock.rangeMark._visible = false;
}
_local8.mRealMC.gotoAndPlay("REMOVE");
_local8.mRealMC = null;
_local4++;
thisObj.mHiveArr[_local8.mY][_local8.mX] = 1;
}
_local2++;
}
thisObj.mRemovedCnt = thisObj.mRemovedCnt + _local4;
var _local6 = thisObj.SCORE_PER_BLOCK * _local4;
thisObj.mCurScore = thisObj.mCurScore + _local6;
var _local5 = "";
if (thisObj.mComboCnt >= 2) {
var _local7 = _local6 * Math.pow(2, thisObj.mComboCnt - 1);
thisObj.mCurScore = thisObj.mCurScore + _local7;
thisObj._TIME_LINE.comboDisp._x = _local3[0] + 44;
thisObj._TIME_LINE.comboDisp._y = _local3[1] + 409;
thisObj._TIME_LINE.comboDisp.comboCnt = thisObj.mComboCnt;
thisObj._TIME_LINE.comboDisp.comboScore = _local7;
thisObj._TIME_LINE.comboDisp.gotoAndPlay(2);
if (thisObj.mComboCnt == 2) {
_local5 = "SND_COMBO2";
} else if (thisObj.mComboCnt == 3) {
_local5 = "SND_COMBO3";
} else {
_local5 = "SND_COMBO4";
}
} else {
_local5 = "SND_BLOCK_DEL";
}
thisObj.PlaySound(_local5);
thisObj._TIME_LINE.g_score = thisObj.mCurScore;
thisObj._TIME_LINE.g_procCnt = thisObj.mRemovedCnt;
} else if (exeCnt == 10) {
if (thisObj.mRemoveBlockArr[0].mItemType == 5) {
var _local8 = thisObj.mRemoveBlockArr[0];
thisObj.CreateByItem(_local8);
} else {
thisObj.FindDropBlock();
}
delete this.onEnterFrame;
}
exeCnt++;
};
}
function CreateByItem(nb) {
mMatchCheckArr = [];
var _local3 = new POINT(nb.mY, nb.mX);
if (mHiveArr[IsValidY(nb.mY - 3)][IsValidX(nb.mX - 1)] != 1) {
if (mHiveArr[IsValidY(nb.mY - 1)][IsValidX(nb.mX - 1)] == 1) {
var _local4 = [new POINT(-1, -1), new POINT(1, -1)];
var _local2 = 0;
while (_local2 < _local4.length) {
CreateByItem2(_local3, _local4[_local2]);
_local2++;
}
} else if (mHiveArr[IsValidY(nb.mY + 1)][IsValidX(nb.mX - 1)] == 1) {
CreateByItem2(_local3, new POINT(1, -1));
}
}
if (mHiveArr[IsValidY(nb.mY - 3)][IsValidX(nb.mX + 1)] != 1) {
if (mHiveArr[IsValidY(nb.mY - 1)][IsValidX(nb.mX + 1)] == 1) {
var _local4 = [new POINT(-1, 1), new POINT(1, 1)];
var _local2 = 0;
while (_local2 < _local4.length) {
CreateByItem2(_local3, _local4[_local2]);
_local2++;
}
} else if (mHiveArr[IsValidY(nb.mY + 1)][IsValidX(nb.mX + 1)] == 1) {
CreateByItem2(_local3, new POINT(1, 1));
}
}
CreateByItem2(_local3, new POINT(2, 0));
CreateByItem2(_local3, new POINT(0, 0));
CheckMatch();
}
function CreateByItem2(orgPos, offsetPos) {
var _local2 = new CBlock();
_local2.mType = random(MAX_BLOCK_TYPE);
_local2.mItemType = -1;
_local2.mNbPos = 0;
_local2.mIsOnMove = false;
_local2.mMatchArr.push(_local2);
CreateBlockEach(_local2, orgPos, offsetPos);
}
function FindDropBlock() {
mDropBlockArr = [];
var _local4 = 0;
while (_local4 < MAX_CNT_X) {
var _local5 = 0;
var _local6 = (((_local4 % 2) == 0) ? 0 : 1);
var _local3 = _local6;
while (_local3 < MAX_CNT_Y) {
var _local2 = mHiveArr[_local3][_local4];
if (_local2 == 1) {
_local5++;
} else {
_local2.mDropCnt = _local5;
if (_local2.mDropCnt > 0) {
mDropBlockArr.push(_local2);
}
}
_local3 = _local3 + 2;
}
_local4++;
}
if (!mDropBlockArr.length) {
ShowComboAni("FindDropBlock");
if (mRemovedCnt >= mGoalCnt) {
mGoalAchieved = true;
}
mCurBlockInfo = null;
mTicState = "NEW_BLOCK";
} else {
mTicState = "DROP_BLOCK";
}
}
function CheckMatch() {
var _local9 = 0;
while (_local9 < mMatchCheckArr.length) {
var _local10 = mMatchCheckArr[_local9];
var _local4 = 0;
while (_local4 < 6) {
var _local6 = mMatchChkOffsetArr[_local4];
var _local7 = _local10.mY + _local6.mY;
var _local8 = _local10.mX + _local6.mX;
if (mHiveArr[IsValidY(_local7)][IsValidX(_local8)].mRealMC) {
var _local5 = mHiveArr[_local7][_local8];
if ((_local10.mType == _local5.mType) && (!_local10.IsIncludeMe(_local5))) {
var _local3 = _local10.mMatchArr.concat(_local5.mMatchArr);
var _local2 = 0;
while (_local2 < _local3.length) {
_local3[_local2].mMatchArr = _local3.concat();
_local2++;
}
}
}
_local4++;
}
_local9++;
}
mRemoveBlockArr = [];
_local9 = 0;
while (_local9 < mMatchCheckArr.length) {
var _local10 = mMatchCheckArr[_local9];
if (_local10.mMatchArr.length >= MIN_REMOVE_BLOCK) {
mRemoveBlockArr = mRemoveBlockArr.concat(_local10.mMatchArr);
mTicState = "REMOVE_BLOCK";
}
_local9++;
}
if (mTicState == "REMOVE_BLOCK") {
mComboCnt++;
}
if (mRemoveBlockArr.length < MIN_REMOVE_BLOCK) {
ShowComboAni();
if (mRemovedCnt >= mGoalCnt) {
mGoalAchieved = true;
}
if (!mGoalAchieved) {
_local9 = 0;
while (_local9 < mMatchCheckArr.length) {
if (mMatchCheckArr[_local9].mY >= MAX_Y) {
GameOverProc();
return(undefined);
}
_local9++;
}
}
mCurBlockInfo = null;
mTicState = "NEW_BLOCK";
}
}
function CheckItem() {
var _local7 = mMatchCheckArr[0];
var _local8 = new Array();
_local8.push(_local7);
var _local9 = this["mItemChkOffsetArr" + _local7.mItemType];
var _local3 = 0;
while (_local3 < _local9.length) {
var _local4 = _local9[_local3];
var _local5 = _local7.mY + _local4.mY;
var _local6 = _local7.mX + _local4.mX;
if (mHiveArr[IsValidY(_local5)][IsValidX(_local6)].mRealMC) {
var _local2 = mHiveArr[_local5][_local6];
if (_local7.mItemType == 2) {
if (_local2.mType == 2) {
_local8.push(_local2);
}
} else {
_local8.push(_local2);
}
}
_local3++;
}
RefreshMatched(_local8);
mRemoveBlockArr = _local8;
mTicState = "REMOVE_BLOCK";
}
function ShowComboAni(callFunc) {
if (mComboCnt >= 2) {
var _local2 = 2;
if ((mComboCnt >= 2) && (mComboCnt <= 3)) {
_local2 = 2;
} else if ((mComboCnt >= 4) && (mComboCnt <= 5)) {
_local2 = 3;
} else {
_local2 = 4;
}
_TIME_LINE.charAni.char.gotoAndStop(_local2);
}
}
function SetDownMovable(checkOrder, isMovable) {
if (checkOrder == 3) {
var _local3 = [3, 2];
} else if (checkOrder == 4) {
var _local3 = [4, 0, 1];
} else if (checkOrder == 5) {
var _local3 = [5, 6];
} else if (checkOrder == 0) {
var _local3 = [0, 1];
} else {
var _local3 = [checkOrder];
}
var _local2 = 0;
while (_local2 < _local3.length) {
if (mCurBlockInfo.mBlockArr[_local3[_local2]]) {
mCurBlockInfo.mBlockArr[_local3[_local2]].mIsMovable = isMovable;
mCurBlockInfo.mBlockArr[_local3[_local2]].mIsDownCheck = true;
}
_local2++;
}
}
function PrepareNextBlock() {
if (mGoalAchieved) {
ShowNextBlock(true);
return(undefined);
}
if ((mItemGenTic++) >= mItemFactor) {
var _local10 = ((random(mItemFactor) == 0) ? true : false);
var _local9 = ((random(3) == 0) ? true : false);
}
var _local8 = 1;
if (_local10) {
mItemGenTic = 0;
} else if (mOneItemCount > 0) {
mOneItemCount--;
_local8 = 1;
} else {
var _local11 = this["BLOCK_RANGE_ARR_" + mCurStage];
var _local5 = random(100) + 1;
var _local3 = 0;
while (_local3 < MAX_NEW_BLOCK) {
if (_local5 <= _local11[_local3]) {
_local8 = _local3 + 1;
break;
}
_local3++;
}
}
var _local6 = [1, 2, 3, 4, 5, 6];
var _local7 = new CBlockInfo();
var _local3 = 0;
while (_local3 < _local8) {
var _local2 = new CBlock();
if (_local3 == 0) {
var _local4 = 0;
} else {
var _local5 = random(_local6.length);
var _local4 = _local6[_local5];
_local6.splice(_local5, 1);
}
if (_local10) {
_local2.mType = (_local9 ? 11 : (mCurChar + 6));
_local2.mItemType = (_local9 ? 5 : (mCurChar));
} else {
_local2.mType = random(MAX_BLOCK_TYPE);
_local2.mItemType = -1;
}
_local2.mNbPos = _local4;
_local2.mIsOnMove = true;
_local2.mMatchArr.push(_local2);
_local7.mBlockArr[_local4] = _local2;
_local7.mBlockCnt++;
_local3++;
}
mNextBlockQue.push(_local7);
ShowNextBlock();
if ((_local7.mBlockCnt == 1) && (_local7.mBlockArr[0].mItemType == 1)) {
mOneItemCount = MAX_ONE_ITEM;
}
}
function CreateBlock() {
if (mGoalAchieved) {
GameOverProc(true);
return(undefined);
}
if (mSlowCount > 0) {
if ((--mSlowCount) == 0) {
StartTic(false);
}
}
mCurBlockInfo = CBlockInfo(mNextBlockQue.shift());
mMatchCheckArr = [];
mComboCnt = 0;
var _local2 = 0;
while (_local2 < MAX_NEW_BLOCK) {
if (mCurBlockInfo.mBlockArr[_local2] != null) {
var _local3 = mCurBlockInfo.mBlockArr[_local2];
var _local4 = mOffsetArr[_local3.mNbPos];
CreateBlockEach(_local3, mInitPos, _local4);
}
_local2++;
}
if ((mCurBlockInfo.mBlockCnt == 1) && (mCurBlockInfo.mBlockArr[0].mItemType == 3)) {
StartTic(true);
mSlowCount = MAX_SLOW_ITEM;
}
mProcCnt++;
mTicState = "MOVE_DOWN";
}
function CreateBlockEach(nb, initPos, offSetPos) {
nb.mY = initPos.mY + offSetPos.mY;
nb.mX = initPos.mX + offSetPos.mX;
if (mHiveArr[IsValidY(nb.mY)][IsValidX(nb.mX)].mRealMC) {
mHiveArr[nb.mY][nb.mX].mRealMC.removeMovieClip();
}
var _local3 = "block" + mBlockDep;
nb.mRealMC = mGameMC.block.duplicateMovieClip(_local3, mBlockDep);
SetBlockPos(nb);
nb.mDepth = mBlockDep;
nb.mRealMC.inBlock.gotoAndStop(nb.mType + 1);
mMatchCheckArr.push(nb);
mHiveArr[IsValidY(nb.mY)][IsValidX(nb.mX)] = nb;
mBlockDep++;
if (mBlockDep >= 90000) {
mBlockDep = 0;
}
nb.mRealMC.mObj = nb;
}
function GameOverProc(isClear) {
clearInterval(mGameTimer);
if (isClear) {
if ((mCurRound < MAX_ROUND) || (mCurStage < MAX_STAGE)) {
_TIME_LINE.gameOverMC.gotoAndStop(2);
} else {
ShowClearAni();
}
} else {
_TIME_LINE.gameOverMC.gotoAndStop(3);
}
mBgSnd.stop();
}
function ShowClearAni() {
PlayBG("SND_EVENT_BG");
_TIME_LINE.clearAni.img.gotoAndStop(mCurStage);
_TIME_LINE.clearAni.gotoAndStop(mCurRound);
_TIME_LINE.clearAni._visible = true;
if (mCurRound == 1) {
_TIME_LINE.clearAni.cover.play();
}
}
function SetBlockPos(nb) {
nb.mRealMC._y = nb.mY * OFFSET_Y;
nb.mRealMC._x = nb.mX * OFFSET_X;
}
function ShowNextBlock(isNone) {
var _local3 = mNextBlockQue[0];
var _local2 = 0;
while (_local2 < MAX_NEW_BLOCK) {
if (isNone) {
_TIME_LINE.nextDisp["block" + _local2]._visible = false;
} else if (_local3.mBlockArr[_local2] != null) {
_TIME_LINE.nextDisp["block" + _local2]._visible = true;
_TIME_LINE.nextDisp["block" + _local2].gotoAndStop(_local3.mBlockArr[_local2].mType + 1);
} else {
_TIME_LINE.nextDisp["block" + _local2]._visible = false;
}
_local2++;
}
}
function OnKeyProc() {
var _local2 = Key.getCode();
if (m_pGameProc.mTicState == "MOVE_DOWN") {
if (_local2 == 32) {
m_pGameProc.DropDirect();
} else if (_local2 == 38) {
m_pGameProc.Rotate("CW");
} else if (_local2 == 40) {
m_pGameProc.Rotate("CCW");
} else if (_local2 == 37) {
m_pGameProc.MoveSide("LEFT");
} else if (_local2 == 39) {
m_pGameProc.MoveSide("RIGHT");
}
}
}
function IsValidY(idx) {
if ((idx > MAX_CNT_Y) || (idx < 0)) {
return(100);
}
return(idx);
}
function IsValidX(idx) {
if ((idx > MAX_CNT_X) || (idx < 0)) {
return(100);
}
return(idx);
}
function PlaySound(snd) {
if (mIsEffSndOn) {
mSndObj.attachSound(snd);
mSndObj.start();
}
}
function PlayBG(snd) {
mBgSnd.stop();
if (mIsBGSndOn) {
mBgSnd.attachSound(snd);
mBgSnd.start(0, 1000);
}
}
function SoundOnOff() {
if (mIsBGSndOn) {
mIsBGSndOn = false;
PlayBG(null);
_TIME_LINE.sndBtn.gotoAndStop("OFF");
} else {
mIsBGSndOn = true;
PlayBG("SND_BG_" + mCurChar);
_TIME_LINE.sndBtn.gotoAndStop("ON");
}
}
static function Instance() {
if (mInstance == null) {
mInstance = new CGameProc();
}
return(mInstance);
}
static var mInstance = null;
}
Symbol 627 MovieClip [__Packages.BASE_STRUCT] Frame 0
class BASE_STRUCT
{
function BASE_STRUCT () {
}
function GetStrData() {
var _local5 = ",";
var _local3 = [];
var _local8 = 0;
for (var _local2 in this) {
_local8++;
_local3.push(_local2);
}
_local3.reverse();
var _local9 = "";
var _local4 = "";
var _local2 = 0;
while (_local2 < _local8) {
if (typeof(this[_local3[_local2]]) == "string") {
_local4 = this[_local3[_local2]] + ((_local2 == (_local8 - 1)) ? "" : (_local5));
} else if (this[_local3[_local2]].length != undefined) {
_local4 = "";
var _local6 = this[_local3[_local2]].length;
if ((this[_local3[_local2]][0].length != undefined) && (typeof(this[_local3[_local2]][0]) != "string")) {
var _local7 = 0;
while (_local7 < _local6) {
_local4 = _local4 + (this[_local3[_local2]][_local7].join(_local5) + ((_local7 == (_local6 - 1)) ? "" : (_local5)));
_local7++;
}
_local4 = _local4 + ((_local2 == (_local8 - 1)) ? "" : (_local5));
} else if (typeof(this[_local3[_local2]][0]) == "object") {
var _local7 = 0;
while (_local7 < _local6) {
_local4 = _local4 + (this[_local3[_local2]][_local7].GetStrData() + ((_local7 == (_local6 - 1)) ? "" : (_local5)));
_local7++;
}
_local4 = _local4 + ((_local2 == (_local8 - 1)) ? "" : (_local5));
} else {
var _local7 = 0;
while (_local7 < _local6) {
_local4 = _local4 + (this[_local3[_local2]][_local7] + ((_local7 == (_local6 - 1)) ? "" : (_local5)));
_local7++;
}
_local4 = _local4 + ((_local2 == (_local8 - 1)) ? "" : (_local5));
}
} else if (typeof(this[_local3[_local2]]) == "object") {
_local4 = this[_local3[_local2]].GetStrData() + ((_local2 == (_local8 - 1)) ? "" : (_local5));
} else {
_local4 = this[_local3[_local2]] + ((_local2 == (_local8 - 1)) ? "" : (_local5));
}
_local9 = _local9 + _local4;
_local2++;
}
return(_local9);
}
function Serialize(recvdArr, startIdx, debugInfo) {
if (startIdx == null) {
var _local19 = recvdArr.length;
startIdx = 0;
}
var _local14 = 0;
var _local3 = [];
var _local17 = [];
var _local16 = [];
var _local6 = [];
for (var _local2 in this) {
_local3.push(_local2);
_local16.push(false);
_local17.push(false);
var _local15 = typeof(this[_local2]);
_local6.push(typeof(this[_local2]));
if ((this[_local2].length != undefined) && (_local15 != "string")) {
_local17[_local14] = true;
if ((this[_local2][0].length != undefined) && (typeof(this[_local2][0]) != "string")) {
_local6[_local6.length - 1] = ((typeof(this[_local2][0][0]) == "string") ? "string" : "number");
} else if (typeof(this[_local2][0]) == "object") {
_local6[_local6.length - 1] = "object";
} else {
_local6[_local6.length - 1] = ((typeof(this[_local2][0]) == "string") ? "string" : "number");
}
} else if (_local15 == "object") {
_local16[_local14] = true;
}
_local14++;
}
_local3.reverse();
_local17.reverse();
_local16.reverse();
_local6.reverse();
var _local5 = 0;
var _local2 = 0;
while (_local2 < _local14) {
if (_local17[_local2]) {
var _local10 = _local5;
var _local12 = this[_local3[_local2]].length;
if ((this[_local3[_local2]][0].length != undefined) && (typeof(this[_local3[_local2]][0]) != "string")) {
var _local11 = this[_local3[_local2]][0].length;
var _local9 = 0;
while (_local9 < _local12) {
var _local4 = 0;
while (_local4 < _local11) {
this[_local3[_local2]][_local9][_local4] = ((_local6[_local2] == "number") ? (CUtil.Instance().toNumber(recvdArr[(((_local2 + (_local9 * _local11)) + _local4) + _local10) + startIdx], "BASE_STRUCT::Serialize - " + _local3[_local2], debugInfo)) : (recvdArr[(((_local2 + (_local9 * _local11)) + _local4) + _local10) + startIdx]));
_local5++;
_local4++;
}
_local9++;
}
_local5--;
} else if (_local6[_local2] == "object") {
var _local9 = 0;
while (_local9 < _local12) {
var _local18 = this[_local3[_local2]][_local9].Serialize(recvdArr, ((_local2 + _local9) + startIdx) + _local5);
_local5 = _local5 + _local18;
_local9++;
}
_local5 = _local5 + (_local12 - 1);
} else {
var _local9 = 0;
while (_local9 < _local12) {
this[_local3[_local2]][_local9] = ((_local6[_local2] == "number") ? (CUtil.Instance().toNumber(recvdArr[((_local2 + _local9) + _local10) + startIdx], "BASE_STRUCT::Serialize - " + _local3[_local2], debugInfo)) : (recvdArr[((_local2 + _local9) + _local10) + startIdx]));
_local5++;
_local9++;
}
_local5--;
}
} else if (_local16[_local2]) {
var _local18 = this[_local3[_local2]].Serialize(recvdArr, (_local2 + startIdx) + _local5);
_local5 = _local5 + _local18;
} else if (_local6[_local2] == "string") {
this[_local3[_local2]] = recvdArr[(_local2 + _local5) + startIdx];
} else if (_local6[_local2] == "number") {
this[_local3[_local2]] = CUtil.Instance().toNumber(recvdArr[(_local2 + _local5) + startIdx], "BASE_STRUCT::Serialize - " + _local3[_local2], debugInfo);
}
_local2++;
}
var _local20 = _local5 + _local2;
if (_local19) {
if (_local19 != _local20) {
CUtil.Instance().SetError(((("BASE_STRUCT::Serialize - \u03C0\uFB01\u00BF\u222B \u00B5\u2022\u00BF\u00C3\u2248\u220F\u00BF\u00AB \u00B1\u00CA\u00BF\u00C3\u00F8\u00D5 \u00A1\u02DC\u2211\u0192\u00BB\u2260 \u00BF\u20AC\u00E6\u02DC \u00BB\u03A9\u00BA\u02C6\u00F8\u00D5 \u00BF\u0153\u0192\u00B0\u00AB\u0153\u00A1\u02C6 \u00E6\u00A0\u00BF\u03A9(\u03C0\uFB01\u00BF\u222B \u00B1\u00CA\u00BF\u00C3=" + _local19) + " != \u00A1\u00AF\u00AB\u2021\u00BB\u03A9\u00BA\u02C6=") + _local20) + ")");
}
}
return(_local20 - 1);
}
function toString(depth) {
if (depth == null) {
depth = 0;
}
var _local14 = "";
var _local9 = "";
var _local2 = 0;
while (_local2 < (depth + 1)) {
if (_local2 < depth) {
_local14 = _local14 + "\t";
}
_local9 = _local9 + "\t";
_local2++;
}
var _local15 = (_local14 + "{") + newline;
var _local3 = [];
var _local13 = 0;
for (var _local16 in this) {
_local13++;
_local3.push(_local16);
}
_local3.reverse();
var _local6 = "";
_local2 = 0;
while (_local2 < _local13) {
if (typeof(this[_local3[_local2]]) == "string") {
_local6 = ((((_local9 + _local3[_local2]) + " = \"") + this[_local3[_local2]]) + "\";") + newline;
} else if (this[_local3[_local2]].length != undefined) {
if ((this[_local3[_local2]][0].length != undefined) && (typeof(this[_local3[_local2]][0]) != "string")) {
var _local12 = typeof(this[_local3[_local2]][0][0]);
_local6 = (_local9 + _local3[_local2]) + " = [[";
var _local8 = this[_local3[_local2]].length;
var _local5 = 0;
while (_local5 < _local8) {
var _local10 = "";
var _local7 = this[_local3[_local2]][_local5].length;
var _local4 = 0;
while (_local4 < _local7) {
if (_local12 == "string") {
_local10 = _local10 + ((("\"" + this[_local3[_local2]][_local5][_local4]) + "\"") + ((_local4 == (_local7 - 1)) ? "" : ","));
} else {
_local10 = _local10 + (this[_local3[_local2]][_local5][_local4] + ((_local4 == (_local7 - 1)) ? "" : ","));
}
_local4++;
}
_local6 = _local6 + (_local10 + ((_local5 == (_local8 - 1)) ? "]" : "],["));
_local5++;
}
_local6 = _local6 + "];\r";
} else if (typeof(this[_local3[_local2]][0]) == "object") {
_local6 = (_local9 + _local3[_local2]) + " = [";
var _local8 = this[_local3[_local2]].length;
var _local5 = 0;
while (_local5 < _local8) {
_local6 = _local6 + (this[_local3[_local2]][_local5].toString(depth + 1) + ((_local5 == (_local8 - 1)) ? newline : ",\r"));
_local5++;
}
_local6 = _local6 + "];\r";
} else {
var _local8 = this[_local3[_local2]].length;
var _local12 = typeof(this[_local3[_local2]][0]);
var _local10 = "";
var _local5 = 0;
while (_local5 < _local8) {
if (_local12 == "string") {
_local10 = _local10 + ((("\"" + this[_local3[_local2]][_local5]) + "\"") + ((_local5 == (_local8 - 1)) ? "" : ","));
} else {
_local10 = _local10 + (this[_local3[_local2]][_local5] + ((_local5 == (_local8 - 1)) ? "" : ","));
}
_local5++;
}
_local6 = ((((_local9 + _local3[_local2]) + " = [") + _local10) + "];") + newline;
}
} else if (typeof(this[_local3[_local2]]) == "object") {
_local6 = (_local9 + _local3[_local2]) + newline;
_local6 = _local6 + (this[_local3[_local2]].toString(depth + 1) + newline);
} else {
_local6 = ((((_local9 + _local3[_local2]) + " = ") + this[_local3[_local2]]) + ";") + newline;
}
_local15 = _local15 + _local6;
_local2++;
}
_local15 = _local15 + (_local14 + "}");
return(_local15);
}
function Copy(desObj) {
}
function ArrZero(arr) {
var _local1 = 0;
while (_local1 < arr.length) {
arr[_local1] = 0;
_local1++;
}
}
function ArrNull(arr) {
var _local1 = 0;
while (_local1 < arr.length) {
arr[_local1] = null;
_local1++;
}
}
function ArrNullStr(arr) {
var _local1 = 0;
while (_local1 < arr.length) {
arr[_local1] = "";
_local1++;
}
}
}
Symbol 628 MovieClip [__Packages.CBlockInfo] Frame 0
class CBlockInfo extends BASE_STRUCT
{
var mBlockArr, mBlockCnt, mMoveSideCnt, mSideMovable, mRotatable;
function CBlockInfo () {
super();
mBlockArr = new Array();
mBlockCnt = 0;
mMoveSideCnt = 0;
mSideMovable = true;
mRotatable = true;
}
}
Symbol 629 MovieClip [__Packages.CBlock] Frame 0
class CBlock extends BASE_STRUCT
{
var mY, mX, mType, mDepth, mIsOnMove, mIsMovable, mIsDownCheck, mMatchArr, mRealMC, mNbPos, mDropCnt, mItemType;
function CBlock () {
super();
mY = 0;
mX = 0;
mType = 0;
mDepth = 0;
mIsOnMove = true;
mIsMovable = false;
mIsDownCheck = false;
mMatchArr = new Array();
mRealMC = null;
mNbPos = 0;
mDropCnt = 0;
mItemType = 0;
}
function IsIncludeMe(tarNB) {
var _local2 = 0;
while (_local2 < tarNB.mMatchArr.length) {
if (tarNB.mMatchArr[_local2].mDepth == mDepth) {
return(true);
}
_local2++;
}
return(false);
}
function RemoveMatchBlock(tarNB) {
var _local3 = mMatchArr.length;
var _local2 = _local3 - 1;
while (_local2 >= 0) {
if (mMatchArr[_local2].mDepth == tarNB.mDepth) {
mMatchArr.splice(_local2, 1);
}
_local2--;
}
}
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 9
if (_name == "block0") {
rangeMark._visible = false;
}
Symbol 103 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 24
stop();
this.removeMovieClip();
Symbol 117 MovieClip Frame 30
stop();
_parent._parent.m_pGameProc.ShowClearAni();
_parent.gotoAndStop(1);
Symbol 123 Button
on (release) {
_parent.m_pGameProc.ShowMainWnd();
gotoAndStop (1);
}
Symbol 128 Button
on (release) {
_parent.m_pGameProc.ShowMainWnd(true);
gotoAndStop (1);
}
Symbol 129 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 1
function SetDigit(num) {
num = num.toString();
var _local4 = num.split("");
_local4.reverse();
var _local6 = 0;
var _local2 = 0;
while (_local2 < 6) {
this["digit" + _local2]._visible = true;
var _local3 = Number(_local4[_local2]);
if (isNaN(_local3)) {
this["digit" + _local2]._visible = false;
}
this["digit" + _local2].gotoAndStop(_local3 + 1);
_local2++;
}
}
Symbol 147 MovieClip Frame 1
score = "+ " + _parent.comboScore;
comboCnt = _parent.comboCnt;
Symbol 148 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 1
function SetDigit(num) {
num = num.toString();
var _local4 = num.split("");
_local4.reverse();
var _local6 = 0;
var _local2 = 0;
while (_local2 < 6) {
this["digit" + _local2]._visible = true;
var _local3 = Number(_local4[_local2]);
if (isNaN(_local3)) {
this["digit" + _local2]._visible = false;
}
this["digit" + _local2].gotoAndStop(_local3 + 1);
_local2++;
}
}
Symbol 166 MovieClip Frame 35
stop();
Symbol 168 MovieClip Frame 75
_parent._parent.AniDone();
Symbol 174 MovieClip Frame 35
stop();
Symbol 181 MovieClip Frame 65
_parent._parent.AniDone();
Symbol 188 MovieClip Frame 23
stop();
Symbol 200 MovieClip Frame 65
_parent._parent.AniDone();
Symbol 201 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 13
stop();
Symbol 226 MovieClip Frame 75
stop();
Symbol 227 MovieClip Frame 77
_parent._parent.AniDone();
Symbol 230 MovieClip Frame 13
stop();
Symbol 256 MovieClip Frame 80
stop();
Symbol 271 MovieClip Frame 80
_parent._parent.AniDone();
Symbol 284 MovieClip Frame 13
stop();
Symbol 290 MovieClip Frame 91
_parent._parent.AniDone();
Symbol 291 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 41
stop();
Symbol 307 MovieClip Frame 41
stop();
Symbol 312 MovieClip Frame 75
_parent._parent.AniDone();
Symbol 321 MovieClip Frame 32
stop();
Symbol 322 MovieClip Frame 34
stop();
Symbol 323 MovieClip Frame 55
_parent._parent.AniDone();
Symbol 326 MovieClip Frame 35
stop();
Symbol 328 MovieClip Frame 51
stop();
Symbol 335 MovieClip Frame 32
stop();
Symbol 336 MovieClip Frame 34
stop();
Symbol 357 MovieClip Frame 58
_parent._parent.AniDone();
stop();
Symbol 358 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 26
stop();
Symbol 386 MovieClip Frame 25
stop();
Symbol 387 MovieClip Frame 75
stop();
_parent._parent.AniDone();
Symbol 392 MovieClip Frame 26
stop();
Symbol 393 MovieClip Frame 25
stop();
Symbol 400 MovieClip Frame 56
_parent._parent.AniDone();
Symbol 412 MovieClip Frame 25
stop();
Symbol 415 MovieClip Frame 26
stop();
Symbol 417 MovieClip Frame 76
_parent._parent.AniDone();
Symbol 418 MovieClip Frame 1
stop();
Symbol 434 MovieClip Frame 75
stop();
Symbol 437 MovieClip Frame 20
stop();
Symbol 439 MovieClip Frame 75
_parent._parent.AniDone();
Symbol 440 MovieClip Frame 75
stop();
Symbol 441 MovieClip Frame 75
stop();
Symbol 442 MovieClip Frame 20
stop();
Symbol 446 MovieClip Frame 75
_parent._parent.AniDone();
Symbol 447 MovieClip Frame 75
stop();
Symbol 448 MovieClip Frame 75
stop();
Symbol 450 MovieClip Frame 20
stop();
Symbol 451 MovieClip Frame 72
_parent._parent.AniDone();
Symbol 452 MovieClip Frame 1
stop();
Symbol 453 MovieClip Frame 1
function AniDone() {
char.gotoAndStop(1);
}
stop();
Symbol 455 Button
on (release) {
_parent.m_pGameProc.SoundOnOff();
}
Symbol 457 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 1
stop();
Symbol 474 MovieClip Frame 285
stop();
_parent.AniDone();
Symbol 480 MovieClip Frame 285
stop();
_parent.AniDone();
Symbol 486 MovieClip Frame 285
stop();
_parent.AniDone();
Symbol 491 MovieClip Frame 285
stop();
_parent.AniDone();
Symbol 497 MovieClip Frame 285
stop();
_parent.AniDone();
Symbol 498 MovieClip Frame 1
function AniDone() {
_visible = false;
_parent.m_pGameProc.StartGame();
}
stop();
if (!flag) {
flag = true;
_visible = false;
}
if (!flag2) {
flag2 = true;
cover.stop();
}
Symbol 507 Button
on (release) {
_parent.helpWnd.gotoAndStop(1);
_parent.helpWnd._visible = true;
}
Symbol 516 Button
on (release) {
gotoAndStop ("CHAR_SEL");
_parent.m_pGameProc.PlayBG("SND_BG_SELECT");
}
Symbol 521 Button
on (release) {
_parent.m_pGameProc.RetryGame();
gotoAndStop (1);
_visible = false;
}
Symbol 524 MovieClip Frame 1
stop();
this.onRelease = function () {
_parent.SelectLevel(Number(_name.slice(8)));
};
Symbol 532 MovieClip Frame 1
function SelectLevel(level) {
var _local3 = 0;
while (_local3 < 5) {
this["levelBtn" + _local3].gotoAndStop(1);
_local3++;
}
this["levelBtn" + level].nextFrame();
_parent._parent.m_pGameProc.mCurStage = level + 1;
}
if (!_parent._parent.TEST_MODE) {
_visible = false;
}
SelectLevel(0);
Symbol 536 MovieClip Frame 1
stop();
btn.useHandCursor = false;
Symbol 536 MovieClip Frame 10
function SelChar(num) {
selMarker._x = this["char" + num]._x;
_parent.m_pGameProc.mCurChar = num;
}
stop();
SelChar(_parent.m_pGameProc.mCurChar);
Instance of Symbol 164 MovieClip "char0" in Symbol 536 MovieClip Frame 10
onClipEvent (load) {
stop();
this.onRelease = function () {
_parent.SelChar(0);
};
this.onRollOver = function () {
this.gotoAndPlay(1);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 432 MovieClip "char4" in Symbol 536 MovieClip Frame 10
onClipEvent (load) {
stop();
this.onRelease = function () {
_parent.SelChar(4);
};
this.onRollOver = function () {
this.gotoAndPlay(1);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 217 MovieClip "char1" in Symbol 536 MovieClip Frame 10
onClipEvent (load) {
stop();
this.onRelease = function () {
_parent.SelChar(1);
};
this.onRollOver = function () {
this.gotoAndPlay(1);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 303 MovieClip "char2" in Symbol 536 MovieClip Frame 10
onClipEvent (load) {
stop();
this.onRelease = function () {
_parent.SelChar(2);
};
this.onRollOver = function () {
this.gotoAndPlay(1);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 373 MovieClip "char3" in Symbol 536 MovieClip Frame 10
onClipEvent (load) {
stop();
this.onRelease = function () {
_parent.SelChar(3);
};
this.onRollOver = function () {
this.gotoAndPlay(1);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
}
Symbol 567 Button
on (release) {
nextFrame();
}
Symbol 572 Button
on (release) {
_visible = false;
}
Symbol 602 Button
on (release) {
prevFrame();
}
Symbol 622 MovieClip Frame 1
stop();
btn.useHandCursor = false;