Frame 1
_global.mg = this;
stop();
System.useCodepage = true;
mg.chgangeVar = function (varX, numb) {
mg[varX] = mg[varX] + numb;
};
mg.startChk = function () {
mg.gotoAndStop("play");
};
mg.gotoGame = function () {
mg.gotoAndStop("play");
};
mg.viewErrorWindow = function (alertMsg) {
mg.MC_viewErrorBox.view(alertMsg);
mg.gameOverMc._visible = false;
mg.isPause = true;
};
mg.setVar = function (varN, initValue) {
mg[varN] = initValue;
};
mg.mySendScore = function () {
mg.changeVar("score", 0);
mg.msg1 = "\u7E3D\u5F97\u5206\u662F ";
mg.msg2 = "";
mg.ScoreSendingOk("LYJ", 1, mg.score);
};
mg.ScoreSending = function () {
mg.sendingResult = "\uC810\uC218 \uC804\uC1A1\uC911";
mg.gameOverMc.saving();
};
mg.ScoreSendingOk = function (use_name, ranking, score) {
mg.sendingResult = "\uC810\uC218 \uC804\uC1A1 \uC131\uACF5";
mg.ranking = ranking;
mg.gameOverMc.saveSucceed();
};
mg.ScoreSendingFailed = function () {
mg.sendingResult = "\uC810\uC218 \uC804\uC1A1 \uC2E4\uD328";
mg.gameOverMc.saveFailed();
};
Frame 2
gotoAndStop ("init");
Frame 8
attachMovie("introAniLink", "introAniMc", 998);
introAniMc._x = 0;
introAniMc._y = 0;
stop();
Frame 9
stop();
Frame 13
removeMovieClip(introAniMc);
attachMovie("howAniLink", "howAniMc", 998);
howAniMc._x = 0;
howAniMc._y = 0;
stop();
Frame 14
stop();
Frame 20
function initVariables(main) {
trace("init Variables");
var _local1;
_local1 = main;
_local1.vr = new Object();
_local1.score = 0;
_local1.pause = 0;
_local1.season = 0;
_local1.soundState = 0;
mg.setVar("score", 0);
mg.setVar("season", 0);
_local1.vr.accumulatedTime = getTimer();
_local1.vr.pauseStartTime = 0;
_local1.vr.pauseStopTime = 0;
_local1.vr.limitTime = 20;
mg.vr.limitTmFlag = 1;
_local1.vr.trialTime = 9;
mg.vr.depBaseZ1 = 0;
mg.vr.plLbefEnergy = 0;
_local1.vr.linkedHead = "n";
_local1.vr.linkedTail = "n";
_local1.vr.linkedTailTrace = "n";
_local1.vr.linkedHeadTrace = "n";
_local1.vr.frameCount = 0;
_local1.vr.bgSound = new Sound(_local1);
_local1.vr.bgSound.attachSound("BGM");
_local1.vr.dummySound = new Sound(_local1);
_local1.vr.gameoverS = new Sound(_local1);
_local1.vr.gameoverS.attachSound("gameoverSD");
_local1.vr.scoreS = new Sound(_local1);
_local1.vr.scoreS.attachSound("scoreSD");
_local1.vr.projectMtrx = new Object();
_local1.vr.worldInverseMtrx = new Object();
_local1.vr.worldMatrix = new Object();
_local1.vr.tempVector4 = new Object();
_local1.vr.tempVector4.x = 0;
_local1.vr.tempVector4.y = 0;
_local1.vr.tempVector4.z = 0;
_local1.vr.tempVector4.w = 1;
_local1.vr.pickVector = new Object();
_local1.vr.pickVector.x = 0;
_local1.vr.pickVector.y = 0;
_local1.vr.pickVector.z = 0;
_local1.vr.pickVector.w = 1;
_local1.vr.obj0Stack = new Array();
_local1.vr.obj0PushIndex = 0;
_local1.vr.obj0MaxIndex = 5;
_local1.vr.obj1Stack = new Array();
_local1.vr.obj1PushIndex = 0;
_local1.vr.obj1MaxIndex = 5;
_local1.vr.obj2Stack = new Array();
_local1.vr.obj2PushIndex = 0;
_local1.vr.obj2MaxIndex = 27;
_local1.vr.obj3Stack = new Array();
_local1.vr.obj3PushIndex = 0;
_local1.vr.obj3MaxIndex = 5;
_local1.vr.obj4Stack = new Array();
_local1.vr.obj4PushIndex = 0;
_local1.vr.obj4MaxIndex = 5;
_local1.vr.obj5Stack = new Array();
_local1.vr.obj5PushIndex = 0;
_local1.vr.obj5MaxIndex = 5;
mg.vr.thisLasrFlag = 0;
_local1.vr.whoPlayer = 0;
_local1.vr.whoKickPlayer = null;
_local1.vr.GKAIvr = -90;
_local1.vr.GKLRmoveDis = 6;
mg.vr.GKRNd = 3;
mg.vr.windEffectAg = 0;
mg.vr.windEffectPw = 0;
mg.vr.windPower = 10;
mg.vr.enemyAI = 10;
mg.vr.ITEMPREV = 10;
mg.vr.itemUfoCurve = 0;
mg.vr.itemFlag = 0;
mg.vr.headingFlag = 0;
mg.vr.enemyNMHitFlag = 0;
mg.vr.enemyGKHitFlag = 0;
mg.vr.postHitFlag = 0;
mg.vr.changPlayerFlag = 0;
mg.vr.changReactionFlag = 0;
_local1.vr.ballSpeed = 1;
_local1.vr.gameProcDatas = new Array();
_local1.vr.gameProcNum = -1;
mg.vr.x2ScoreFlag = 0;
mg.vr.recordeDataSet = new Array();
mg.vr.recordeDataSetNum = 0;
mg.vr.recordeDataSetFlag = 0;
mg.vr.tempPyPos = 0;
mg.vr.tempEyPos = 0;
mg.vr.tempEyDis = 0;
mg.vr.tempEyNUM = 0;
mg.vr.tempEyArr = new Array();
mg.vr.tempHdLeftNum = 0;
mg.vr.tempHdLeftArr = new Array();
mg.vr.tempHdRightNum = 0;
mg.vr.tempHdRightArr = new Array();
mg.vr.tempWindAg = 0;
mg.vr.tempWindPw = 0;
mg.vr.tempProbJArr = new Array();
mg.vr.tempPyLR = 0;
mg.vr.temppyUD = 0;
mg.vr.tempPyDS = 0;
mg.vr.tempPyRT = 0;
mg.vr.tempPyX = 0;
mg.vr.tempPyZ = 0;
mg.vr.tempPyWho = 0;
mg.vr.tempPyBCP = 0;
mg.vr.tempPyTemp0 = 0;
mg.vr.tempPyAniTime = 0;
mg.vr.tempGkX = 0;
mg.vr.tempGkLRVel = 0;
mg.vr.tempGkCatch = 0;
mg.vr.tempItem = 0;
mg.vr.tempEnergy = 0;
mg.vr.REPLAYFLAG = 0;
_local1.vr.hitPosrS = new Sound(_local1);
_local1.vr.hitPosrS.attachSound("hitPosrSD");
_local1.vr.punchingS = new Sound(_local1);
_local1.vr.punchingS.attachSound("punchingSD");
_local1.vr.timeAttS = new Sound(_local1);
_local1.vr.timeAttS.attachSound("timeAttSD");
_local1.vr.goalS = new Sound(_local1);
_local1.vr.goalS.attachSound("goalSD");
_local1.vr.enidngS = new Sound(_local1);
_local1.vr.enidngS.attachSound("endingSD");
_local1.vr.kickS = new Sound(_local1);
_local1.vr.kickS.attachSound("kickSD");
_local1.vr.goalInS = new Sound(_local1);
_local1.vr.goalInS.attachSound("goalInSD");
_local1.vr.headingS = new Sound(_local1);
_local1.vr.headingS.attachSound("headingSD");
_local1.vr.parkS = new Sound(_local1);
_local1.vr.parkS.attachSound("parkSD");
_local1.vr.whiS = new Sound(_local1);
_local1.vr.whiS.attachSound("whiSD");
_local1.vr.retryS = new Sound(_local1);
_local1.vr.retryS.attachSound("retrySD");
_local1.vr.hitBodyS = new Sound(_local1);
_local1.vr.hitBodyS.attachSound("hitBodySD");
_local1.vr.kickFireS = new Sound(_local1);
_local1.vr.kickFireS.attachSound("kickFireSD");
_local1.vr.kickPreS = new Sound(_local1);
_local1.vr.kickPreS.attachSound("kickPreSD");
_local1.vr.kickUfoS = new Sound(_local1);
_local1.vr.kickUfoS.attachSound("kickUfoSD");
_local1.setGameProcData();
_local1.getProcDataParsed(_local1.vr.gameProcDatas[0]);
_local1.viewMatrixSetting(_local1.vr.tempPyPos);
_local1.ctrlMatrixSettinf();
}
function deleteVariables(main) {
trace("delete Variables");
var _local1;
_local1 = main;
delete _local1.vr;
}
function viewMatrixSetting(po) {
var _local1 = Math.floor(po / 10);
switch (_local1) {
case 0 :
mg.vr.projectMtrx._11 = 1.81066;
mg.vr.projectMtrx._12 = 0;
mg.vr.projectMtrx._13 = 0;
mg.vr.projectMtrx._14 = 0;
mg.vr.projectMtrx._21 = 0;
mg.vr.projectMtrx._22 = 2.41421;
mg.vr.projectMtrx._23 = 0;
mg.vr.projectMtrx._24 = 0;
mg.vr.projectMtrx._31 = 0;
mg.vr.projectMtrx._32 = 0;
mg.vr.projectMtrx._33 = 1.00033;
mg.vr.projectMtrx._34 = 1;
mg.vr.projectMtrx._41 = 0;
mg.vr.projectMtrx._42 = 0;
mg.vr.projectMtrx._43 = -1.00033;
mg.vr.projectMtrx._44 = 0;
mg.vr.worldInverseMtrx._11 = 1;
mg.vr.worldInverseMtrx._12 = 0;
mg.vr.worldInverseMtrx._13 = 0;
mg.vr.worldInverseMtrx._14 = 0;
mg.vr.worldInverseMtrx._21 = 0;
mg.vr.worldInverseMtrx._22 = 0.707107;
mg.vr.worldInverseMtrx._23 = 0.707107;
mg.vr.worldInverseMtrx._24 = 0;
mg.vr.worldInverseMtrx._31 = 0;
mg.vr.worldInverseMtrx._32 = -0.707107;
mg.vr.worldInverseMtrx._33 = 0.707107;
mg.vr.worldInverseMtrx._34 = 0;
mg.vr.worldInverseMtrx._41 = 0;
mg.vr.worldInverseMtrx._42 = 1010.84;
mg.vr.worldInverseMtrx._43 = -1366.16;
mg.vr.worldInverseMtrx._44 = 1;
mg.vr.worldMatrix._11 = 452.665;
mg.vr.worldMatrix._12 = 0;
mg.vr.worldMatrix._13 = 0;
mg.vr.worldMatrix._14 = 0;
mg.vr.worldMatrix._21 = -250.316;
mg.vr.worldMatrix._22 = -452.665;
mg.vr.worldMatrix._23 = -0.707343;
mg.vr.worldMatrix._24 = -0.707107;
mg.vr.worldMatrix._31 = 250.316;
mg.vr.worldMatrix._32 = -187.5;
mg.vr.worldMatrix._33 = 0.707343;
mg.vr.worldMatrix._34 = 0.707107;
mg.vr.worldMatrix._41 = 595002 /* 0x09143A */;
mg.vr.worldMatrix._42 = 201418 /* 0x0312CA */;
mg.vr.worldMatrix._43 = 1680.36;
mg.vr.worldMatrix._44 = 1680.8;
break;
case 1 :
mg.vr.projectMtrx._11 = 1.81066;
mg.vr.projectMtrx._12 = 0;
mg.vr.projectMtrx._13 = 0;
mg.vr.projectMtrx._14 = 0;
mg.vr.projectMtrx._21 = 0;
mg.vr.projectMtrx._22 = 2.41421;
mg.vr.projectMtrx._23 = 0;
mg.vr.projectMtrx._24 = 0;
mg.vr.projectMtrx._31 = 0;
mg.vr.projectMtrx._32 = 0;
mg.vr.projectMtrx._33 = 1.00033;
mg.vr.projectMtrx._34 = 1;
mg.vr.projectMtrx._41 = 0;
mg.vr.projectMtrx._42 = 0;
mg.vr.projectMtrx._43 = -1.00033;
mg.vr.projectMtrx._44 = 0;
mg.vr.worldInverseMtrx._11 = 1;
mg.vr.worldInverseMtrx._12 = 0;
mg.vr.worldInverseMtrx._13 = 0;
mg.vr.worldInverseMtrx._14 = 0;
mg.vr.worldInverseMtrx._21 = 0;
mg.vr.worldInverseMtrx._22 = 0.707107;
mg.vr.worldInverseMtrx._23 = 0.707107;
mg.vr.worldInverseMtrx._24 = 0;
mg.vr.worldInverseMtrx._31 = 0;
mg.vr.worldInverseMtrx._32 = -0.707107;
mg.vr.worldInverseMtrx._33 = 0.707107;
mg.vr.worldInverseMtrx._34 = 0;
mg.vr.worldInverseMtrx._41 = 0;
mg.vr.worldInverseMtrx._42 = 1010.84;
mg.vr.worldInverseMtrx._43 = -1366.16;
mg.vr.worldInverseMtrx._44 = 1;
mg.vr.worldMatrix._11 = 452.665;
mg.vr.worldMatrix._12 = 0;
mg.vr.worldMatrix._13 = 0;
mg.vr.worldMatrix._14 = 0;
mg.vr.worldMatrix._21 = -176.777;
mg.vr.worldMatrix._22 = -452.665;
mg.vr.worldMatrix._23 = -0.707343;
mg.vr.worldMatrix._24 = -0.707107;
mg.vr.worldMatrix._31 = 176.777;
mg.vr.worldMatrix._32 = -187.5;
mg.vr.worldMatrix._33 = 0.707343;
mg.vr.worldMatrix._34 = 0.707107;
mg.vr.worldMatrix._41 = 420199 /* 0x066967 */;
mg.vr.worldMatrix._42 = 201418 /* 0x0312CA */;
mg.vr.worldMatrix._43 = 1680.36;
mg.vr.worldMatrix._44 = 1680.8;
break;
case 2 :
mg.vr.projectMtrx._11 = 1.81066;
mg.vr.projectMtrx._12 = 0;
mg.vr.projectMtrx._13 = 0;
mg.vr.projectMtrx._14 = 0;
mg.vr.projectMtrx._21 = 0;
mg.vr.projectMtrx._22 = 2.41421;
mg.vr.projectMtrx._23 = 0;
mg.vr.projectMtrx._24 = 0;
mg.vr.projectMtrx._31 = 0;
mg.vr.projectMtrx._32 = 0;
mg.vr.projectMtrx._33 = 1.00033;
mg.vr.projectMtrx._34 = 1;
mg.vr.projectMtrx._41 = 0;
mg.vr.projectMtrx._42 = 0;
mg.vr.projectMtrx._43 = -1.00033;
mg.vr.projectMtrx._44 = 0;
mg.vr.worldInverseMtrx._11 = 1;
mg.vr.worldInverseMtrx._12 = 0;
mg.vr.worldInverseMtrx._13 = 0;
mg.vr.worldInverseMtrx._14 = 0;
mg.vr.worldInverseMtrx._21 = 0;
mg.vr.worldInverseMtrx._22 = 0.707107;
mg.vr.worldInverseMtrx._23 = 0.707107;
mg.vr.worldInverseMtrx._24 = 0;
mg.vr.worldInverseMtrx._31 = 0;
mg.vr.worldInverseMtrx._32 = -0.707107;
mg.vr.worldInverseMtrx._33 = 0.707107;
mg.vr.worldInverseMtrx._34 = 0;
mg.vr.worldInverseMtrx._41 = 0;
mg.vr.worldInverseMtrx._42 = 1010.84;
mg.vr.worldInverseMtrx._43 = -1366.16;
mg.vr.worldInverseMtrx._44 = 1;
mg.vr.worldMatrix._11 = 452.665;
mg.vr.worldMatrix._12 = 0;
mg.vr.worldMatrix._13 = 0;
mg.vr.worldMatrix._14 = 0;
mg.vr.worldMatrix._21 = -103.238;
mg.vr.worldMatrix._22 = -452.665;
mg.vr.worldMatrix._23 = -0.707343;
mg.vr.worldMatrix._24 = -0.707107;
mg.vr.worldMatrix._31 = 103.238;
mg.vr.worldMatrix._32 = -187.5;
mg.vr.worldMatrix._33 = 0.707343;
mg.vr.worldMatrix._34 = 0.707107;
mg.vr.worldMatrix._41 = 245396 /* 0x03BE94 */;
mg.vr.worldMatrix._42 = 201418 /* 0x0312CA */;
mg.vr.worldMatrix._43 = 1680.36;
mg.vr.worldMatrix._44 = 1680.8;
}
}
function ctrlMatrixSettinf() {
mg.vr.ctrMatrix0 = new Object();
mg.vr.ctrMatrix1 = new Object();
mg.vr.ctrMatrix2 = new Object();
mg.vr.ctrMatrix3 = new Object();
mg.vr.ctrMatrix4 = new Object();
mg.vr.ctrMatrix5 = new Object();
mg.vr.ctrMatrix6 = new Object();
mg.vr.ctrMatrix7 = new Object();
mg.vr.ctrMatrix8 = new Object();
mg.vr.ctrMatrix9 = new Object();
mg.vr.ctrMatrixIv0 = new Object();
mg.vr.ctrMatrixIv1 = new Object();
mg.vr.ctrMatrixIv2 = new Object();
mg.vr.ctrMatrixIv3 = new Object();
mg.vr.ctrMatrixIv4 = new Object();
mg.vr.ctrMatrixIv5 = new Object();
mg.vr.ctrMatrixIv6 = new Object();
mg.vr.ctrMatrixIv7 = new Object();
mg.vr.ctrMatrixIv8 = new Object();
mg.vr.ctrMatrixIv9 = new Object();
mg.vr.ctrMatrix0._11 = 0.866025;
mg.vr.ctrMatrix0._12 = 0;
mg.vr.ctrMatrix0._13 = -0.5;
mg.vr.ctrMatrix0._14 = 0;
mg.vr.ctrMatrix0._21 = 0;
mg.vr.ctrMatrix0._22 = 1;
mg.vr.ctrMatrix0._23 = 0;
mg.vr.ctrMatrix0._24 = 0;
mg.vr.ctrMatrix0._31 = 0.5;
mg.vr.ctrMatrix0._32 = 0;
mg.vr.ctrMatrix0._33 = 0.866025;
mg.vr.ctrMatrix0._34 = 0;
mg.vr.ctrMatrix0._41 = -350;
mg.vr.ctrMatrix0._42 = 0;
mg.vr.ctrMatrix0._43 = -606.218;
mg.vr.ctrMatrix0._44 = 1;
mg.vr.ctrMatrix1._11 = 0.965926;
mg.vr.ctrMatrix1._12 = 0;
mg.vr.ctrMatrix1._13 = -0.258819;
mg.vr.ctrMatrix1._14 = 0;
mg.vr.ctrMatrix1._21 = 0;
mg.vr.ctrMatrix1._22 = 1;
mg.vr.ctrMatrix1._23 = 0;
mg.vr.ctrMatrix1._24 = 0;
mg.vr.ctrMatrix1._31 = 0.258819;
mg.vr.ctrMatrix1._32 = 0;
mg.vr.ctrMatrix1._33 = 0.965926;
mg.vr.ctrMatrix1._34 = 0;
mg.vr.ctrMatrix1._41 = -181.173;
mg.vr.ctrMatrix1._42 = 0;
mg.vr.ctrMatrix1._43 = -676.148;
mg.vr.ctrMatrix1._44 = 1;
mg.vr.ctrMatrix2._11 = 1;
mg.vr.ctrMatrix2._12 = 0;
mg.vr.ctrMatrix2._13 = 0;
mg.vr.ctrMatrix2._14 = 0;
mg.vr.ctrMatrix2._21 = 0;
mg.vr.ctrMatrix2._22 = 1;
mg.vr.ctrMatrix2._23 = 0;
mg.vr.ctrMatrix2._24 = 0;
mg.vr.ctrMatrix2._31 = 0;
mg.vr.ctrMatrix2._32 = 0;
mg.vr.ctrMatrix2._33 = 1;
mg.vr.ctrMatrix2._34 = 0;
mg.vr.ctrMatrix2._41 = 8.34742E-6;
mg.vr.ctrMatrix2._42 = 0;
mg.vr.ctrMatrix2._43 = -700;
mg.vr.ctrMatrix2._44 = 1;
mg.vr.ctrMatrix3._11 = 0.965926;
mg.vr.ctrMatrix3._12 = 0;
mg.vr.ctrMatrix3._13 = 0.258819;
mg.vr.ctrMatrix3._14 = 0;
mg.vr.ctrMatrix3._21 = 0;
mg.vr.ctrMatrix3._22 = 1;
mg.vr.ctrMatrix3._23 = 0;
mg.vr.ctrMatrix3._24 = 0;
mg.vr.ctrMatrix3._31 = -0.258819;
mg.vr.ctrMatrix3._32 = 0;
mg.vr.ctrMatrix3._33 = 0.965926;
mg.vr.ctrMatrix3._34 = 0;
mg.vr.ctrMatrix3._41 = 181.173;
mg.vr.ctrMatrix3._42 = 0;
mg.vr.ctrMatrix3._43 = -676.148;
mg.vr.ctrMatrix3._44 = 1;
mg.vr.ctrMatrix4._11 = 0.866025;
mg.vr.ctrMatrix4._12 = 0;
mg.vr.ctrMatrix4._13 = 0.5;
mg.vr.ctrMatrix4._14 = 0;
mg.vr.ctrMatrix4._21 = 0;
mg.vr.ctrMatrix4._22 = 1;
mg.vr.ctrMatrix4._23 = 0;
mg.vr.ctrMatrix4._24 = 0;
mg.vr.ctrMatrix4._31 = -0.5;
mg.vr.ctrMatrix4._32 = 0;
mg.vr.ctrMatrix4._33 = 0.866025;
mg.vr.ctrMatrix4._34 = 0;
mg.vr.ctrMatrix4._41 = 350;
mg.vr.ctrMatrix4._42 = 0;
mg.vr.ctrMatrix4._43 = -606.218;
mg.vr.ctrMatrix4._44 = 1;
mg.vr.ctrMatrix5._11 = 0.866025;
mg.vr.ctrMatrix5._12 = 0;
mg.vr.ctrMatrix5._13 = -0.5;
mg.vr.ctrMatrix5._14 = 0;
mg.vr.ctrMatrix5._21 = 0;
mg.vr.ctrMatrix5._22 = 1;
mg.vr.ctrMatrix5._23 = 0;
mg.vr.ctrMatrix5._24 = 0;
mg.vr.ctrMatrix5._31 = 0.5;
mg.vr.ctrMatrix5._32 = 0;
mg.vr.ctrMatrix5._33 = 0.866025;
mg.vr.ctrMatrix5._34 = 0;
mg.vr.ctrMatrix5._41 = -400;
mg.vr.ctrMatrix5._42 = 0;
mg.vr.ctrMatrix5._43 = -692.82;
mg.vr.ctrMatrix5._44 = 1;
mg.vr.ctrMatrix6._11 = 0.965926;
mg.vr.ctrMatrix6._12 = 0;
mg.vr.ctrMatrix6._13 = -0.258819;
mg.vr.ctrMatrix6._14 = 0;
mg.vr.ctrMatrix6._21 = 0;
mg.vr.ctrMatrix6._22 = 1;
mg.vr.ctrMatrix6._23 = 0;
mg.vr.ctrMatrix6._24 = 0;
mg.vr.ctrMatrix6._31 = 0.258819;
mg.vr.ctrMatrix6._32 = 0;
mg.vr.ctrMatrix6._33 = 0.965926;
mg.vr.ctrMatrix6._34 = 0;
mg.vr.ctrMatrix6._41 = -207.055;
mg.vr.ctrMatrix6._42 = 0;
mg.vr.ctrMatrix6._43 = -772.741;
mg.vr.ctrMatrix6._44 = 1;
mg.vr.ctrMatrix7._11 = 1;
mg.vr.ctrMatrix7._12 = 0;
mg.vr.ctrMatrix7._13 = 0;
mg.vr.ctrMatrix7._14 = 0;
mg.vr.ctrMatrix7._21 = 0;
mg.vr.ctrMatrix7._22 = 1;
mg.vr.ctrMatrix7._23 = 0;
mg.vr.ctrMatrix7._24 = 0;
mg.vr.ctrMatrix7._31 = 0;
mg.vr.ctrMatrix7._32 = 0;
mg.vr.ctrMatrix7._33 = 1;
mg.vr.ctrMatrix7._34 = 0;
mg.vr.ctrMatrix7._41 = 9.5399E-6;
mg.vr.ctrMatrix7._42 = 0;
mg.vr.ctrMatrix7._43 = -800;
mg.vr.ctrMatrix7._44 = 1;
mg.vr.ctrMatrix8._11 = 0.965926;
mg.vr.ctrMatrix8._12 = 0;
mg.vr.ctrMatrix8._13 = 0.258819;
mg.vr.ctrMatrix8._14 = 0;
mg.vr.ctrMatrix8._21 = 0;
mg.vr.ctrMatrix8._22 = 1;
mg.vr.ctrMatrix8._23 = 0;
mg.vr.ctrMatrix8._24 = 0;
mg.vr.ctrMatrix8._31 = -0.258819;
mg.vr.ctrMatrix8._32 = 0;
mg.vr.ctrMatrix8._33 = 0.965926;
mg.vr.ctrMatrix8._34 = 0;
mg.vr.ctrMatrix8._41 = 207.055;
mg.vr.ctrMatrix8._42 = 0;
mg.vr.ctrMatrix8._43 = -772.741;
mg.vr.ctrMatrix8._44 = 1;
mg.vr.ctrMatrix9._11 = 0.866025;
mg.vr.ctrMatrix9._12 = 0;
mg.vr.ctrMatrix9._13 = 0.5;
mg.vr.ctrMatrix9._14 = 0;
mg.vr.ctrMatrix9._21 = 0;
mg.vr.ctrMatrix9._22 = 1;
mg.vr.ctrMatrix9._23 = 0;
mg.vr.ctrMatrix9._24 = 0;
mg.vr.ctrMatrix9._31 = -0.5;
mg.vr.ctrMatrix9._32 = 0;
mg.vr.ctrMatrix9._33 = 0.866025;
mg.vr.ctrMatrix9._34 = 0;
mg.vr.ctrMatrix9._41 = 400;
mg.vr.ctrMatrix9._42 = 0;
mg.vr.ctrMatrix9._43 = -692.82;
mg.vr.ctrMatrix9._44 = 1;
mg.vr.ctrMatrixIv0._11 = 0.866025;
mg.vr.ctrMatrixIv0._12 = 0;
mg.vr.ctrMatrixIv0._13 = 0.5;
mg.vr.ctrMatrixIv0._14 = 0;
mg.vr.ctrMatrixIv0._21 = 0;
mg.vr.ctrMatrixIv0._22 = 1;
mg.vr.ctrMatrixIv0._23 = 0;
mg.vr.ctrMatrixIv0._24 = 0;
mg.vr.ctrMatrixIv0._31 = -0.5;
mg.vr.ctrMatrixIv0._32 = 0;
mg.vr.ctrMatrixIv0._33 = 0.866025;
mg.vr.ctrMatrixIv0._34 = 0;
mg.vr.ctrMatrixIv0._41 = -9.15527E-5;
mg.vr.ctrMatrixIv0._42 = 0;
mg.vr.ctrMatrixIv0._43 = 700;
mg.vr.ctrMatrixIv0._44 = 1;
mg.vr.ctrMatrixIv1._11 = 0.965926;
mg.vr.ctrMatrixIv1._12 = 0;
mg.vr.ctrMatrixIv1._13 = 0.258819;
mg.vr.ctrMatrixIv1._14 = 0;
mg.vr.ctrMatrixIv1._21 = 0;
mg.vr.ctrMatrixIv1._22 = 1;
mg.vr.ctrMatrixIv1._23 = 0;
mg.vr.ctrMatrixIv1._24 = 0;
mg.vr.ctrMatrixIv1._31 = -0.258819;
mg.vr.ctrMatrixIv1._32 = 0;
mg.vr.ctrMatrixIv1._33 = 0.965926;
mg.vr.ctrMatrixIv1._34 = 0;
mg.vr.ctrMatrixIv1._41 = -4.57764E-5;
mg.vr.ctrMatrixIv1._42 = 0;
mg.vr.ctrMatrixIv1._43 = 700;
mg.vr.ctrMatrixIv1._44 = 1;
mg.vr.ctrMatrixIv2._11 = 1;
mg.vr.ctrMatrixIv2._12 = 0;
mg.vr.ctrMatrixIv2._13 = 0;
mg.vr.ctrMatrixIv2._14 = 0;
mg.vr.ctrMatrixIv2._21 = 0;
mg.vr.ctrMatrixIv2._22 = 1;
mg.vr.ctrMatrixIv2._23 = 0;
mg.vr.ctrMatrixIv2._24 = 0;
mg.vr.ctrMatrixIv2._31 = 0;
mg.vr.ctrMatrixIv2._32 = 0;
mg.vr.ctrMatrixIv2._33 = 1;
mg.vr.ctrMatrixIv2._34 = 0;
mg.vr.ctrMatrixIv2._41 = -8.34742E-6;
mg.vr.ctrMatrixIv2._42 = 0;
mg.vr.ctrMatrixIv2._43 = 700;
mg.vr.ctrMatrixIv2._44 = 1;
mg.vr.ctrMatrixIv3._11 = 0.965926;
mg.vr.ctrMatrixIv3._12 = 0;
mg.vr.ctrMatrixIv3._13 = -0.258819;
mg.vr.ctrMatrixIv3._14 = 0;
mg.vr.ctrMatrixIv3._21 = 0;
mg.vr.ctrMatrixIv3._22 = 1;
mg.vr.ctrMatrixIv3._23 = 0;
mg.vr.ctrMatrixIv3._24 = 0;
mg.vr.ctrMatrixIv3._31 = 0.258819;
mg.vr.ctrMatrixIv3._32 = 0;
mg.vr.ctrMatrixIv3._33 = 0.965926;
mg.vr.ctrMatrixIv3._34 = 0;
mg.vr.ctrMatrixIv3._41 = 3.05176E-5;
mg.vr.ctrMatrixIv3._42 = 0;
mg.vr.ctrMatrixIv3._43 = 700;
mg.vr.ctrMatrixIv3._44 = 1;
mg.vr.ctrMatrixIv4._11 = 0.866025;
mg.vr.ctrMatrixIv4._12 = 0;
mg.vr.ctrMatrixIv4._13 = -0.5;
mg.vr.ctrMatrixIv4._14 = 0;
mg.vr.ctrMatrixIv4._21 = 0;
mg.vr.ctrMatrixIv4._22 = 1;
mg.vr.ctrMatrixIv4._23 = 0;
mg.vr.ctrMatrixIv4._24 = 0;
mg.vr.ctrMatrixIv4._31 = 0.5;
mg.vr.ctrMatrixIv4._32 = 0;
mg.vr.ctrMatrixIv4._33 = 0.866025;
mg.vr.ctrMatrixIv4._34 = 0;
mg.vr.ctrMatrixIv4._41 = 9.15527E-5;
mg.vr.ctrMatrixIv4._42 = 0;
mg.vr.ctrMatrixIv4._43 = 700;
mg.vr.ctrMatrixIv4._44 = 1;
mg.vr.ctrMatrixIv5._11 = 0.866025;
mg.vr.ctrMatrixIv5._12 = 0;
mg.vr.ctrMatrixIv5._13 = 0.5;
mg.vr.ctrMatrixIv5._14 = 0;
mg.vr.ctrMatrixIv5._21 = 0;
mg.vr.ctrMatrixIv5._22 = 1;
mg.vr.ctrMatrixIv5._23 = 0;
mg.vr.ctrMatrixIv5._24 = 0;
mg.vr.ctrMatrixIv5._31 = -0.5;
mg.vr.ctrMatrixIv5._32 = 0;
mg.vr.ctrMatrixIv5._33 = 0.866025;
mg.vr.ctrMatrixIv5._34 = 0;
mg.vr.ctrMatrixIv5._41 = -0.00012207;
mg.vr.ctrMatrixIv5._42 = 0;
mg.vr.ctrMatrixIv5._43 = 800;
mg.vr.ctrMatrixIv5._44 = 1;
mg.vr.ctrMatrixIv6._11 = 0.965926;
mg.vr.ctrMatrixIv6._12 = 0;
mg.vr.ctrMatrixIv6._13 = 0.258819;
mg.vr.ctrMatrixIv6._14 = 0;
mg.vr.ctrMatrixIv6._21 = 0;
mg.vr.ctrMatrixIv6._22 = 1;
mg.vr.ctrMatrixIv6._23 = 0;
mg.vr.ctrMatrixIv6._24 = 0;
mg.vr.ctrMatrixIv6._31 = -0.258819;
mg.vr.ctrMatrixIv6._32 = 0;
mg.vr.ctrMatrixIv6._33 = 0.965926;
mg.vr.ctrMatrixIv6._34 = 0;
mg.vr.ctrMatrixIv6._41 = -4.57764E-5;
mg.vr.ctrMatrixIv6._42 = 0;
mg.vr.ctrMatrixIv6._43 = 800;
mg.vr.ctrMatrixIv6._44 = 1;
mg.vr.ctrMatrixIv7._11 = 1;
mg.vr.ctrMatrixIv7._12 = 0;
mg.vr.ctrMatrixIv7._13 = 0;
mg.vr.ctrMatrixIv7._14 = 0;
mg.vr.ctrMatrixIv7._21 = 0;
mg.vr.ctrMatrixIv7._22 = 1;
mg.vr.ctrMatrixIv7._23 = 0;
mg.vr.ctrMatrixIv7._24 = 0;
mg.vr.ctrMatrixIv7._31 = 0;
mg.vr.ctrMatrixIv7._32 = 0;
mg.vr.ctrMatrixIv7._33 = 1;
mg.vr.ctrMatrixIv7._34 = 0;
mg.vr.ctrMatrixIv7._41 = -9.5399E-6;
mg.vr.ctrMatrixIv7._42 = 0;
mg.vr.ctrMatrixIv7._43 = 800;
mg.vr.ctrMatrixIv7._44 = 1;
mg.vr.ctrMatrixIv8._11 = 0.965926;
mg.vr.ctrMatrixIv8._12 = 0;
mg.vr.ctrMatrixIv8._13 = -0.258819;
mg.vr.ctrMatrixIv8._14 = 0;
mg.vr.ctrMatrixIv8._21 = 0;
mg.vr.ctrMatrixIv8._22 = 1;
mg.vr.ctrMatrixIv8._23 = 0;
mg.vr.ctrMatrixIv8._24 = 0;
mg.vr.ctrMatrixIv8._31 = 0.258819;
mg.vr.ctrMatrixIv8._32 = 0;
mg.vr.ctrMatrixIv8._33 = 0.965926;
mg.vr.ctrMatrixIv8._34 = 0;
mg.vr.ctrMatrixIv8._41 = 3.05176E-5;
mg.vr.ctrMatrixIv8._42 = 0;
mg.vr.ctrMatrixIv8._43 = 800;
mg.vr.ctrMatrixIv8._44 = 1;
mg.vr.ctrMatrixIv9._11 = 0.866025;
mg.vr.ctrMatrixIv9._12 = 0;
mg.vr.ctrMatrixIv9._13 = -0.5;
mg.vr.ctrMatrixIv9._14 = 0;
mg.vr.ctrMatrixIv9._21 = 0;
mg.vr.ctrMatrixIv9._22 = 1;
mg.vr.ctrMatrixIv9._23 = 0;
mg.vr.ctrMatrixIv9._24 = 0;
mg.vr.ctrMatrixIv9._31 = 0.5;
mg.vr.ctrMatrixIv9._32 = 0;
mg.vr.ctrMatrixIv9._33 = 0.866025;
mg.vr.ctrMatrixIv9._34 = 0;
mg.vr.ctrMatrixIv9._41 = 9.15527E-5;
mg.vr.ctrMatrixIv9._42 = 0;
mg.vr.ctrMatrixIv9._43 = 800;
mg.vr.ctrMatrixIv9._44 = 1;
}
function setGameProcData() {
mg.vr.gameProcDatas[0] = "11|6|45|111|0|0";
mg.vr.gameProcDatas[1] = "28|8|45|111|0|0";
mg.vr.gameProcDatas[2] = "0|5|45|1111|0|0";
mg.vr.gameProcDatas[3] = "29|14|45|1111|0|0";
mg.vr.gameProcDatas[4] = "19|14|45|1111|0|0";
mg.vr.gameProcDatas[5] = "24|9|45|11211|0|0";
mg.vr.gameProcDatas[6] = "12|7|51|11121|11|12";
mg.vr.gameProcDatas[7] = "19|14|51|12111|21|0";
mg.vr.gameProcDatas[8] = "5|10|45|11211|21|12";
mg.vr.gameProcDatas[9] = "11|6|45|1211|1|1";
mg.vr.gameProcDatas[10] = "28|8|45|11211|1|0";
mg.vr.gameProcDatas[11] = "0|5|45|1111|0|1";
mg.vr.gameProcDatas[12] = "29|14|45|1111|0|0";
mg.vr.gameProcDatas[13] = "19|14|45|1111|11|0";
mg.vr.gameProcDatas[14] = "24|9|45|11121|0|0";
mg.vr.gameProcDatas[15] = "12|7|51|12111|11|12";
mg.vr.gameProcDatas[16] = "19|14|51|11121|21|0";
mg.vr.gameProcDatas[17] = "16|6|45|121121|21|12";
mg.vr.gameProcDatas[18] = "11|6|45|1111|0|11";
mg.vr.gameProcDatas[19] = "28|8|45|12111|11|0";
mg.vr.gameProcDatas[20] = "0|5|45|1111|0|12";
mg.vr.gameProcDatas[21] = "29|14|45|1111|21|0";
mg.vr.gameProcDatas[22] = "19|14|45|11211|0|12";
mg.vr.gameProcDatas[23] = "24|9|45|11121|11|12";
mg.vr.gameProcDatas[24] = "12|7|51|11211|11|12";
mg.vr.gameProcDatas[25] = "19|14|51|11111|21|0";
mg.vr.gameProcDatas[26] = "5|10|45|11211|21|12";
mg.vr.gameProcDatas[27] = "11|6|45|11211|11|12";
mg.vr.gameProcDatas[28] = "28|8|45|1211|21|12";
mg.vr.gameProcDatas[29] = "0|5|45|1111|11|12";
mg.vr.gameProcDatas[30] = "29|14|45|1121|1|0";
mg.vr.gameProcDatas[31] = "19|14|45|1111|0|1";
mg.vr.gameProcDatas[32] = "24|9|45|11211|11|0";
mg.vr.gameProcDatas[33] = "12|7|51|11111|11|12";
mg.vr.gameProcDatas[34] = "19|14|51|12111|21|0";
mg.vr.gameProcDatas[35] = "5|10|45|11211|21|12";
mg.vr.gameProcDatas[36] = "11|6|45|11211|11|12";
mg.vr.gameProcDatas[37] = "28|8|45|1211|21|12";
mg.vr.gameProcDatas[38] = "0|5|45|1111|11|12";
mg.vr.gameProcDatas[39] = "29|14|45|1121|1|0";
mg.vr.gameProcDatas[40] = "19|14|45|1111|0|1";
mg.vr.gameProcDatas[41] = "24|9|45|11211|11|0";
mg.vr.gameProcDatas[42] = "12|7|51|11111|11|12";
mg.vr.gameProcDatas[43] = "19|14|51|12111|21|0";
mg.vr.gameProcDatas[44] = "5|10|45|11211|21|12";
mg.vr.gameProcDatas[45] = "11|6|45|11111|11|11";
mg.vr.gameProcDatas[46] = "28|8|45|1111|21|12";
mg.vr.gameProcDatas[47] = "0|5|45|11111|11|12";
mg.vr.gameProcDatas[48] = "29|14|45|11111|1|1";
mg.vr.gameProcDatas[49] = "19|14|45|1111|0|1";
mg.vr.gameProcDatas[50] = "24|9|45|11211|11|0";
mg.vr.gameProcDatas[51] = "12|7|51|11111|11|12";
mg.vr.gameProcDatas[52] = "19|14|51|11111|21|0";
mg.vr.gameProcDatas[53] = "5|10|45|11211|21|12";
mg.vr.gameProcDatas[54] = "11|6|45|11111|21|12";
mg.vr.gameProcDatas[55] = "28|8|45|11111|21|12";
mg.vr.gameProcDatas[56] = "0|5|45|11111|11|12";
mg.vr.gameProcDatas[57] = "29|14|45|11211|1|0";
mg.vr.gameProcDatas[58] = "19|14|45|11111|0|1";
mg.vr.gameProcDatas[59] = "24|9|45|11211|11|0";
mg.vr.gameProcDatas[60] = "12|7|51|11111|11|12";
mg.vr.gameProcDatas[61] = "19|14|51|12111|21|0";
mg.vr.gameProcDatas[62] = "5|10|45|11211|21|12";
mg.vr.gameProcDatas[63] = "11|6|45|11211|11|12";
mg.vr.gameProcDatas[64] = "28|8|45|11211|21|12";
mg.vr.gameProcDatas[65] = "0|5|45|11111|11|12";
mg.vr.gameProcDatas[66] = "29|14|45|11121|1|1";
mg.vr.gameProcDatas[67] = "19|14|45|1111|1|1";
mg.vr.gameProcDatas[68] = "24|9|45|112111|11|1";
mg.vr.gameProcDatas[69] = "12|7|51|11111|11|12";
mg.vr.gameProcDatas[70] = "19|14|51|12111|21|0";
mg.vr.gameProcDatas[71] = "5|10|45|11211|21|12";
mg.vr.gameProcDatas[72] = "11|6|45|11111|11|11";
mg.vr.gameProcDatas[73] = "28|8|45|11111|11|12";
mg.vr.gameProcDatas[74] = "0|5|45|11111|11|12";
mg.vr.gameProcDatas[75] = "29|14|45|11211|1|11";
mg.vr.gameProcDatas[76] = "19|14|45|11211|11|1";
mg.vr.gameProcDatas[77] = "24|9|45|11211|11|11";
mg.vr.gameProcDatas[78] = "12|7|51|11111|11|12";
mg.vr.gameProcDatas[79] = "19|14|51|12111|21|11";
mg.vr.gameProcDatas[80] = "5|10|45|11111|21|12";
}
function getProcDataParsed(st) {
var _local3 = String(st);
var _local2 = _local3.split("|");
var _local1;
mg.vr.tempPyPos = Number(_local2[0]);
mg.vr.tempEyPos = Number(_local2[1]);
mg.vr.tempEyDis = Number(_local2[2]);
mg.vr.tempEyNUM = _local2[3].length;
_local1 = 0;
while (_local1 < mg.vr.tempEyNUM) {
mg.vr.tempEyArr[_local1] = Number(_local2[3].charAt(_local1));
_local1++;
}
mg.vr.tempHdLeftNum = _local2[4].length;
_local1 = 0;
while (_local1 < mg.vr.tempHdLeftNum) {
mg.vr.tempHdLeftArr[_local1] = Number(_local2[4].charAt(_local1));
_local1++;
}
mg.vr.tempHdRightNum = _local2[5].length;
_local1 = 0;
while (_local1 < mg.vr.tempHdRightNum) {
mg.vr.tempHdRightArr[_local1] = Number(_local2[5].charAt(_local1));
_local1++;
}
}
function getProcDataParsedReplay(st) {
var str = String(st);
var _local2 = str.split("|");
var _local1;
var _local3 = 0;
mg.vr.tempPyPos = Number(_local2[0]);
trace("mg.vr.tempPyPos:" + mg.vr.tempPyPos);
mg.vr.tempEyPos = Number(_local2[1]);
trace("mg.vr.tempEyPos:" + mg.vr.tempEyPos);
mg.vr.tempEyDis = Number(_local2[2]);
trace("mg.vr.tempEyDis:" + mg.vr.tempEyDis);
mg.vr.tempEyNUM = _local2[3].length;
trace("mg.vr.tempEyNUM:" + mg.vr.tempEyNUM);
_local1 = 0;
while (_local1 < mg.vr.tempEyNUM) {
mg.vr.tempEyArr[_local1] = Number(_local2[3].charAt(_local1));
trace((("mg.vr.tempEyArr[" + _local1) + "]:") + mg.vr.tempEyArr[_local1]);
if (mg.vr.tempEyArr[_local1] == 1) {
_local3++;
}
_local1++;
}
mg.vr.tempHdLeftNum = _local2[4].length;
trace("mg.vr.tempHdLeftNum:" + mg.vr.tempHdLeftNum);
_local1 = 0;
while (_local1 < mg.vr.tempHdLeftNum) {
mg.vr.tempHdLeftArr[_local1] = Number(_local2[4].charAt(_local1));
trace((("mg.vr.tempHdLeftArr[" + _local1) + "]:") + mg.vr.tempHdLeftArr[_local1]);
_local1++;
}
mg.vr.tempHdRightNum = _local2[5].length;
trace("mg.vr.tempHdRightNum:" + mg.vr.tempHdRightNum);
_local1 = 0;
while (_local1 < mg.vr.tempHdRightNum) {
mg.vr.tempHdRightArr[_local1] = Number(_local2[5].charAt(_local1));
trace((("mg.vr.tempHdRightArr[" + _local1) + "]:") + mg.vr.tempHdRightArr[_local1]);
_local1++;
}
mg.vr.tempWindAg = Number(_local2[6]);
trace("mg.vr.tempWindAg:" + mg.vr.tempWindAg);
mg.vr.tempWindPw = Number(_local2[7]);
trace("mg.vr.tempWindPw:" + mg.vr.tempWindPw);
_local1 = 0;
while (_local1 < _local3) {
mg.vr.tempProbJArr[_local1] = Number(_local2[8].charAt(_local1));
trace("mg.vr.tempProbJArr:" + mg.vr.tempProbJArr[_local1]);
_local1++;
}
mg.vr.tempPyLR = Number(_local2[9]);
trace("mg.vr.tempPyLR:" + mg.vr.tempPyLR);
mg.vr.temppyUD = Number(_local2[10]);
trace("mg.vr.temppyUD:" + mg.vr.temppyUD);
mg.vr.tempPyDS = Number(_local2[11]);
trace("mg.vr.tempPyDS:" + mg.vr.tempPyDS);
mg.vr.tempPyRT = Number(_local2[12]);
trace("mg.vr.tempPyRT:" + mg.vr.tempPyRT);
mg.vr.tempPyX = Number(_local2[13]);
trace("mg.vr.tempPyX:" + mg.vr.tempPyX);
mg.vr.tempPyZ = Number(_local2[14]);
trace("mg.vr.tempPyZ:" + mg.vr.tempPyZ);
mg.vr.tempPyWho = Number(_local2[15]);
trace("mg.vr.tempPyWho:" + mg.vr.tempPyWho);
mg.vr.tempPyBCP = Number(_local2[16]);
trace("mg.vr.tempPyBCP:" + mg.vr.tempPyBCP);
mg.vr.tempPyTemp0 = Number(_local2[17]);
trace("mg.vr.tempPyTemp0:" + mg.vr.tempPyTemp0);
mg.vr.tempGkX = Number(_local2[18]);
trace("mg.vr.tempGkX:" + mg.vr.tempGkX);
mg.vr.tempGkLRVel = Number(_local2[19]);
trace("mg.vr.tempGkLRVel:" + mg.vr.tempGkLRVel);
mg.vr.tempGkCatch = Number(_local2[20]);
trace("mg.vr.tempGkCatch:" + mg.vr.tempGkCatch);
mg.vr.tempItem = Number(_local2[21]);
trace("mg.vr.tempItem:" + mg.vr.tempItem);
mg.vr.tempEnergy = Number(_local2[22]);
trace("mg.vr.tempEnergy:" + mg.vr.tempEnergy);
delete str;
}
function enemyClass() {
var _local1 = this;
enemyClass.prototype.oneTimeInit = function (id) {
var _local1 = this;
_local1._visible = 0;
_local1._x = 0;
_local1._y = 0;
_local1.next = "n";
_local1.prev = "n";
_local1.playerCd = new Object();
_local1.playerCd.x = 0;
_local1.playerCd.y = 0;
_local1.playerCd.z = 0;
_local1.playerCd.w = 1;
_local1.dummy = new Object();
_local1.dummy.x = 0;
_local1.dummy.y = 0;
_local1.dummy.z = 0;
_local1.dummy.w = 1;
_local1.playerShCd = new Object();
_local1.playerShCd.x = 0;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = 0;
_local1.playerShCd.w = 1;
_local1.dummy2 = new Object();
_local1.dummy2.x = 0;
_local1.dummy2.y = 0;
_local1.dummy2.z = 0;
_local1.dummy2.w = 1;
_local1.xscaleAd = 1;
_local1.frameCount = 0;
_local1.maxFrame = 24;
tellTarget (_local1) {
gotoAndStop (1);
};
_local1.state = 0;
_local1.id = Number(id);
_local1.temp0 = 0;
_local1.tanRt = 0;
_local1.refThetaUD = 0;
_local1.refThetaLR = 0;
_local1.aniFrame = 1;
_local1.direction = 0;
_local1.vel = 0;
_local1.headFlag = 0;
_local1.bodyFlag = 0;
_local1.legFlag = 0;
_local1.jumpFlag = 0;
_local1.sdFlag = 0;
_local1.starMc._visible = false;
_local1.jumpTimeCt = 0;
_local1.jumpTimeMax = 0;
_local1.playerCd.x = 0;
_local1.playerCd.y = 0;
_local1.playerCd.z = -710;
_local1.playerCd.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1.scaleAd = Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x);
mg.objInsertStack(_local1.id, 0);
trace("ok.....enemyClass:" + _local1.id);
};
enemyClass.prototype.deleteC = function () {
removeMovieClip(this);
};
enemyClass.prototype.link = function () {
var _local1 = this;
if (_local1.state == 1) {
} else {
_local1.state = 1;
mg.linkedListInsert(_local1);
}
};
enemyClass.prototype.delink = function () {
var _local1 = this;
if (_local1.state == 0) {
} else {
_local1.state = 0;
mg.linkedListDelink(_local1);
mg.objInsertStack(_local1.id, 0);
}
};
enemyClass.prototype.readyToRender = function (xx, zz, di, jm) {
var _local1 = this;
_local1.temp0 = 0;
_local1.tanRt = 0;
_local1.refThetaUD = 0;
_local1.refThetaLR = 0;
_local1.aniFrame = 1;
_local1.vel = 20;
_local1.headFlag = 0;
_local1.bodyFlag = 0;
_local1.legFlag = 0;
_local1.jumpFlag = 0;
_local1.sdFlag = 0;
_local1.jumpTimeCt = 1;
if (Number(jm) == 99) {
_local1.jumpTimeMax = random(mg.vr.enemyAI);
} else {
_local1.jumpTimeMax = Number(jm);
}
_local1.playerCd.x = Number(xx);
_local1.playerCd.y = 0;
_local1.playerCd.z = Number(zz);
_local1.playerCd.w = 1;
_local1.playerCd.x = Math.floor(_local1.playerCd.x * 100) / 100;
_local1.playerCd.y = Math.floor(_local1.playerCd.y * 100) / 100;
_local1.playerCd.z = Math.floor(_local1.playerCd.z * 100) / 100;
switch (di) {
case 2 :
case 7 :
case 12 :
_local1.direction = 0;
_local1.xscaleAd = 1;
break;
case 0 :
case 1 :
case 5 :
case 6 :
case 10 :
case 11 :
_local1.direction = 3;
_local1.xscaleAd = 1;
break;
case 3 :
case 4 :
case 8 :
case 9 :
case 13 :
case 14 :
_local1.direction = 3;
_local1.xscaleAd = -1;
}
_local1.playerShCd.x = _local1.playerCd.x;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = _local1.playerCd.z;
_local1.playerShCd.w = 1;
_local1.dummy2.x = _local1.playerShCd.x + 100;
_local1.dummy2.y = _local1.playerShCd.y;
_local1.dummy2.z = _local1.playerShCd.z;
_local1.dummy2.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1._xscale = ((Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x) / _local1.scaleAd) * 100) * _local1.xscaleAd;
_local1._yscale = Math.abs(_local1._xscale);
mg.FASVec4MatrixMultiply(_local1.playerShCd, mg.vr.worldMatrix);
mg.scr["enemyShadowMc" + _local1.id]._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr["enemyShadowMc" + _local1.id]._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr["enemyShadowMc" + _local1.id]._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr["enemyShadowMc" + _local1.id]._x) / _local1.scaleAd) * 100;
mg.scr["enemyShadowMc" + _local1.id]._yscale = mg.scr["enemyShadowMc" + _local1.id]._xscale;
_local1.link();
_local1.aniFrameR = _local1.direction + _local1.aniFrame;
if (_local1.aniFrame == 7) {
_local1.aniFrameR = 7;
}
tellTarget (_local1) {
gotoAndStop(_local1.aniFrameR);
};
_local1._visible = true;
_local1.starMc._visible = false;
mg.scr["enemyShadowMc" + _local1.id]._visible = true;
};
enemyClass.prototype.gogo = function () {
var _local1 = this;
if (((_local1.jumpTimeMax == 0) && (_local1.jumpFlag == 0)) && (mg.vr.whoKickPlayer.aniFrame == 14)) {
_local1.jumpFlag = 1;
_local1.jumpTimeCt = 0;
}
if (!(_local1.jumpFlag === 1)) {
} else {
_local1.playerCd.y = _local1.playerCd.y + _local1.vel;
_local1.vel = _local1.vel * 0.98;
_local1.vel = _local1.vel - 0.2;
if (_local1.playerCd.y >= 100) {
_local1.playerCd.y = 100;
_local1.vel = _local1.vel * -1;
}
if (_local1.playerCd.y <= 0) {
_local1.playerCd.y = 0;
_local1.vel = 20;
_local1.jumpFlag = 9;
}
}
_local1.temp0 = ((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if (_local1.temp0 < 10000) {
trace((((((((((("CHECK!_" + _local1) + " :") + _local1.jumpTimeCt) + " MAX:") + _local1.jumpTimeMax) + " LR:") + mg.ballClassObj.angleLR) + " mg.ballClassObj.frameCount:") + mg.ballClassObj.frameCount) + " this.temp0:") + _local1.temp0);
_local1.temp0 = (((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + (((_local1.playerCd.y + 150) - mg.ballClassObj.ballCd.y) * ((_local1.playerCd.y + 150) - mg.ballClassObj.ballCd.y))) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if ((_local1.temp0 <= 2500) && (_local1.headFlag == 0)) {
trace((("enemy HEAD HIT!" + _local1) + " :") + mg.ballClassObj.angleLR);
_local1.tanRt = ((mg.ballClassObj.ballCd.y - _local1.playerCd.y) - 150) / (mg.ballClassObj.ballCd.z - _local1.playerCd.z);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaUD = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleUD;
_local1.refThetaUD = Math.floor(_local1.refThetaUD * 100) / 100;
_local1.tanRt = (mg.ballClassObj.ballCd.z - _local1.playerCd.z) / (mg.ballClassObj.ballCd.x - _local1.playerCd.x);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleLR;
_local1.refThetaLR = Math.floor(_local1.refThetaLR * 100) / 100;
mg.ballClassObj.angleLR = (2 * _local1.refThetaLR) - mg.ballClassObj.angleLR;
mg.ballClassObj.angleUD = (2 * _local1.refThetaUD) - mg.ballClassObj.angleUD;
mg.ballClassObj.powerDis = mg.ballClassObj.powerDis * 0.96;
_local1.headFlag = 1;
mg.ballClassObj.angleLR = Math.floor(mg.ballClassObj.angleLR * 100) / 100;
mg.ballClassObj.angleUD = Math.floor(mg.ballClassObj.angleUD * 100) / 100;
trace((("\t\tmg.ballClassObj.ballCd.z:" + mg.ballClassObj.ballCd.z) + " mg.ballClassObj.ballCd.x:") + mg.ballClassObj.ballCd.x);
trace((("\t\tthis.playerCd.z:" + _local1.playerCd.z) + " this.playerCd.x:") + _local1.playerCd.x);
trace((("\t\tthis.tanRt!" + _local1) + " :") + _local1.tanRt);
trace((("\t\tthis.refThetaLR!" + _local1) + " :") + _local1.refThetaLR);
trace((("enemy HEAD HIT AFTER!" + _local1) + " :") + mg.ballClassObj.angleLR);
} else if (_local1.temp0 > 2500) {
if (_local1.headFlag == 1) {
_local1.headFlag = 0;
}
}
_local1.temp0 = ((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if (((((_local1.temp0 <= 625) && (mg.ballClassObj.ballCd.y >= 50)) && (mg.ballClassObj.ballCd.y < 100)) && (_local1.bodyFlag == 0)) && (_local1.headFlag == 0)) {
trace((("enemy BODY HIT!" + _local1) + " :") + mg.ballClassObj.angleLR);
_local1.tanRt = (mg.ballClassObj.ballCd.z - _local1.playerCd.z) / (mg.ballClassObj.ballCd.x - _local1.playerCd.x);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleLR;
_local1.refThetaLR = Math.floor(_local1.refThetaLR * 100) / 100;
mg.ballClassObj.angleLR = (2 * _local1.refThetaLR) - mg.ballClassObj.angleLR;
mg.ballClassObj.angleUD = 360 - mg.ballClassObj.angleUD;
mg.ballClassObj.powerDis = mg.ballClassObj.powerDis * 0.96;
_local1.bodyFlag = 1;
if (mg.vr.whoPlayer == 1) {
if (mg.ballClassObj.angleLR > 360) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR - 360;
}
if (mg.ballClassObj.angleLR < 0) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR + 360;
}
if (mg.ballClassObj.angleLR > 180) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR * -1;
}
mg.ballClassObj.angleLR = ((30 * mg.ballClassObj.angleLR) / 180) + 75;
}
mg.ballClassObj.angleLR = Math.floor(mg.ballClassObj.angleLR * 100) / 100;
mg.ballClassObj.angleUD = Math.floor(mg.ballClassObj.angleUD * 100) / 100;
trace((("\t\tmg.ballClassObj.ballCd.z:" + mg.ballClassObj.ballCd.z) + " mg.ballClassObj.ballCd.x:") + mg.ballClassObj.ballCd.x);
trace((("\t\tthis.playerCd.z:" + _local1.playerCd.z) + " this.playerCd.x:") + _local1.playerCd.x);
trace((("\t\tthis.tanRt!" + _local1) + " :") + _local1.tanRt);
trace((("\t\tthis.refThetaLR!" + _local1) + " :") + _local1.refThetaLR);
trace((("enemy BODY HIT!AFTER" + _local1) + " :") + mg.ballClassObj.angleLR);
} else if (((_local1.temp0 > 625) || (mg.ballClassObj.ballCd.y < 50)) || (mg.ballClassObj.ballCd.y >= 100)) {
if (_local1.bodyFlag == 1) {
_local1.bodyFlag = 0;
}
}
_local1.temp0 = ((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if (((((_local1.temp0 <= 400) && (mg.ballClassObj.ballCd.y >= 0)) && (mg.ballClassObj.ballCd.y < 50)) && (_local1.legFlag == 0)) && ((_local1.headFlag + _local1.bodyFlag) == 0)) {
trace((("enemy LEG HIT!" + _local1) + " :") + mg.ballClassObj.angleLR);
_local1.tanRt = (mg.ballClassObj.ballCd.z - _local1.playerCd.z) / (mg.ballClassObj.ballCd.x - _local1.playerCd.x);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleLR;
_local1.refThetaLR = Math.floor(_local1.refThetaLR * 100) / 100;
mg.ballClassObj.angleLR = (2 * _local1.refThetaLR) - mg.ballClassObj.angleLR;
mg.ballClassObj.angleUD = 360 - mg.ballClassObj.angleUD;
mg.ballClassObj.powerDis = mg.ballClassObj.powerDis * 0.96;
_local1.legFlag = 1;
if (mg.vr.whoPlayer == 1) {
if (mg.ballClassObj.angleLR > 360) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR - 360;
}
if (mg.ballClassObj.angleLR < 0) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR + 360;
}
if (mg.ballClassObj.angleLR > 180) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR * -1;
}
mg.ballClassObj.angleLR = ((30 * mg.ballClassObj.angleLR) / 180) + 75;
}
mg.ballClassObj.angleLR = Math.floor(mg.ballClassObj.angleLR * 100) / 100;
mg.ballClassObj.angleUD = Math.floor(mg.ballClassObj.angleUD * 100) / 100;
trace((("\t\tmg.ballClassObj.ballCd.z:" + mg.ballClassObj.ballCd.z) + " mg.ballClassObj.ballCd.x:") + mg.ballClassObj.ballCd.x);
trace((("\t\tthis.playerCd.z:" + _local1.playerCd.z) + " this.playerCd.x:") + _local1.playerCd.x);
trace((("\t\tthis.tanRt!" + _local1) + " :") + _local1.tanRt);
trace((("\t\tthis.refThetaLR!" + _local1) + " :") + _local1.refThetaLR);
trace((("enemy LEG HIT!AFTER" + _local1) + " :") + mg.ballClassObj.angleLR);
} else if (((_local1.temp0 > 225) || (mg.ballClassObj.ballCd.y < 0)) || (mg.ballClassObj.ballCd.y >= 50)) {
if (_local1.legFlag == 1) {
_local1.legFlag = 0;
}
}
}
_local1.playerShCd.x = _local1.playerCd.x;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = _local1.playerCd.z;
_local1.playerShCd.w = 1;
_local1.dummy2.x = _local1.playerShCd.x + 100;
_local1.dummy2.y = _local1.playerShCd.y;
_local1.dummy2.z = _local1.playerShCd.z;
_local1.dummy2.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1._xscale = ((Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x) / _local1.scaleAd) * 100) * _local1.xscaleAd;
_local1._yscale = Math.abs(_local1._xscale);
mg.FASVec4MatrixMultiply(_local1.playerShCd, mg.vr.worldMatrix);
mg.scr["enemyShadowMc" + _local1.id]._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr["enemyShadowMc" + _local1.id]._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr["enemyShadowMc" + _local1.id]._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr["enemyShadowMc" + _local1.id]._x) / _local1.scaleAd) * 100;
mg.scr["enemyShadowMc" + _local1.id]._yscale = mg.scr["enemyShadowMc" + _local1.id]._xscale;
if (_local1.headFlag == 1) {
_local1.starMc._visible = true;
_local1.aniFrame = 7;
mg.scr["starEMc" + mg.objExtractStack(1)].readyToRender(mg.ballClassObj.ballCd.x, mg.ballClassObj.ballCd.y, mg.ballClassObj.ballCd.z);
_local1.headFlag = 0;
if ((_local1.sdFlag == 0) && (mg.ballClassObj.replayFlag == 0)) {
mg.vr.hitBodyS.start(0, 1);
_local1.sdFlag = 1;
}
mg.vr.enemyNMHitFlag = 1;
}
if ((_local1.bodyFlag == 1) || (_local1.legFlag == 1)) {
_local1.aniFrame = 3;
mg.scr["starEMc" + mg.objExtractStack(1)].readyToRender(mg.ballClassObj.ballCd.x, mg.ballClassObj.ballCd.y, mg.ballClassObj.ballCd.z);
_local1.bodyFlag = 0;
_local1.legFlag = 0;
if ((_local1.sdFlag == 0) && (mg.ballClassObj.replayFlag == 0)) {
mg.vr.hitBodyS.start(0, 1);
_local1.sdFlag = 1;
}
mg.vr.enemyNMHitFlag = 1;
}
_local1.aniFrameR = _local1.direction + _local1.aniFrame;
if (_local1.aniFrame == 7) {
_local1.aniFrameR = 7;
}
tellTarget (_local1) {
gotoAndStop(_local1.aniFrameR);
};
};
enemyClass.prototype.disappear = function () {
var _local1 = this;
_local1._visible = 0;
mg.scr["enemyShadowMc" + _local1.id]._visible = false;
_local1._x = 0;
_local1._y = 0;
_local1.delink();
mg.vr.enemyNMHitFlag = 0;
};
}
function enemyHdClass() {
var _local1 = this;
enemyHdClass.prototype.oneTimeInit = function (id) {
var _local1 = this;
_local1._visible = 0;
_local1._x = 0;
_local1._y = 0;
_local1.next = "n";
_local1.prev = "n";
_local1.playerCd = new Object();
_local1.playerCd.x = 0;
_local1.playerCd.y = 0;
_local1.playerCd.z = 0;
_local1.playerCd.w = 1;
_local1.dummy = new Object();
_local1.dummy.x = 0;
_local1.dummy.y = 0;
_local1.dummy.z = 0;
_local1.dummy.w = 1;
_local1.playerShCd = new Object();
_local1.playerShCd.x = 0;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = 0;
_local1.playerShCd.w = 1;
_local1.dummy2 = new Object();
_local1.dummy2.x = 0;
_local1.dummy2.y = 0;
_local1.dummy2.z = 0;
_local1.dummy2.w = 1;
_local1.frameCount = 0;
_local1.maxFrame = 24;
tellTarget (_local1) {
gotoAndStop (1);
};
_local1.state = 0;
_local1.id = Number(id);
_local1.xscaleAd = 1;
_local1.temp0 = 0;
_local1.tanRt = 0;
_local1.refThetaUD = 0;
_local1.refThetaLR = 0;
_local1.aniFrame = 1;
_local1.direction = 0;
_local1.vel = 0;
_local1.headFlag = 0;
_local1.bodyFlag = 0;
_local1.legFlag = 0;
_local1.jumpFlag = 0;
_local1.starMc._visible = false;
_local1.playerCd.x = 0;
_local1.playerCd.y = 0;
_local1.playerCd.z = -710;
_local1.playerCd.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1.scaleAd = Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x);
mg.objInsertStack(_local1.id, 3);
trace("ok.....enemyHdClass:" + _local1.id);
};
enemyHdClass.prototype.deleteC = function () {
removeMovieClip(this);
};
enemyHdClass.prototype.link = function () {
var _local1 = this;
if (_local1.state == 1) {
} else {
_local1.state = 1;
mg.linkedListInsert(_local1);
}
};
enemyHdClass.prototype.delink = function () {
var _local1 = this;
if (_local1.state == 0) {
} else {
_local1.state = 0;
mg.linkedListDelink(_local1);
mg.objInsertStack(_local1.id, 3);
}
};
enemyHdClass.prototype.readyToRender = function (xx, zz) {
var _local1 = this;
_local1.temp0 = 0;
_local1.tanRt = 0;
_local1.refThetaUD = 0;
_local1.refThetaLR = 0;
_local1.aniFrame = 1;
_local1.direction = 0;
_local1.vel = 16;
_local1.headFlag = 0;
_local1.bodyFlag = 0;
_local1.legFlag = 0;
_local1.jumpFlag = 0;
_local1.playerCd.x = Number(xx);
_local1.playerCd.y = 0;
_local1.playerCd.z = Number(zz);
_local1.playerCd.w = 1;
_local1.playerCd.x = Math.floor(_local1.playerCd.x * 100) / 100;
_local1.playerCd.y = Math.floor(_local1.playerCd.y * 100) / 100;
_local1.playerCd.z = Math.floor(_local1.playerCd.z * 100) / 100;
if (_local1.playerCd.x >= 0) {
_local1.xscaleAd = 1;
} else {
_local1.xscaleAd = -1;
}
_local1.playerShCd.x = _local1.playerCd.x;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = _local1.playerCd.z;
_local1.playerShCd.w = 1;
_local1.dummy2.x = _local1.playerShCd.x + 100;
_local1.dummy2.y = _local1.playerShCd.y;
_local1.dummy2.z = _local1.playerShCd.z;
_local1.dummy2.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1._xscale = ((Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x) / _local1.scaleAd) * 100) * _local1.xscaleAd;
_local1._yscale = Math.abs(_local1._xscale);
mg.FASVec4MatrixMultiply(_local1.playerShCd, mg.vr.worldMatrix);
mg.scr["enemyHdShadowMc" + _local1.id]._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr["enemyHdShadowMc" + _local1.id]._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr["enemyHdShadowMc" + _local1.id]._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr["enemyHdShadowMc" + _local1.id]._x) / _local1.scaleAd) * 100;
mg.scr["enemyHdShadowMc" + _local1.id]._yscale = mg.scr["enemyHdShadowMc" + _local1.id]._xscale;
_local1.link();
_local1._visible = true;
mg.scr["enemyHdShadowMc" + _local1.id]._visible = true;
};
enemyHdClass.prototype.gogo = function () {
var _local1 = this;
if (!(_local1.jumpFlag === 1)) {
} else {
_local1.playerCd.y = _local1.playerCd.y + _local1.vel;
_local1.vel = _local1.vel * 0.98;
_local1.vel = _local1.vel - 0.2;
if (_local1.playerCd.y >= 100) {
_local1.playerCd.y = 100;
_local1.vel = _local1.vel * -1;
}
if (_local1.playerCd.y <= 0) {
_local1.playerCd.y = 0;
_local1.aniFrame = 1;
_local1.vel = 16;
_local1.jumpFlag = 9;
}
}
_local1.temp0 = ((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if (_local1.temp0 < 10000) {
trace("CHECK! ");
if (((_local1.jumpFlag == 0) && (mg.ballClassObj.ballCd.y > 200)) && (mg.ballClassObj.angleLR < 180)) {
_local1.aniFrame = 2;
_local1.jumpFlag = 1;
}
_local1.temp0 = (((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + (((_local1.playerCd.y + 150) - mg.ballClassObj.ballCd.y) * ((_local1.playerCd.y + 150) - mg.ballClassObj.ballCd.y))) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if ((_local1.temp0 <= 2500) && (_local1.headFlag == 0)) {
trace("enemyHd HEAD HIT!");
_local1.tanRt = ((mg.ballClassObj.ballCd.y - _local1.playerCd.y) - 150) / (mg.ballClassObj.ballCd.z - _local1.playerCd.z);
_local1.refThetaUD = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleUD;
_local1.tanRt = (mg.ballClassObj.ballCd.z - _local1.playerCd.z) / (mg.ballClassObj.ballCd.x - _local1.playerCd.x);
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleLR;
mg.ballClassObj.angleLR = (2 * _local1.refThetaLR) - mg.ballClassObj.angleLR;
mg.ballClassObj.angleUD = (2 * _local1.refThetaUD) - mg.ballClassObj.angleUD;
mg.ballClassObj.powerDis = mg.ballClassObj.powerDis * 0.99;
_local1.headFlag = 1;
} else if (_local1.temp0 > 2500) {
if (_local1.headFlag == 1) {
_local1.headFlag = 9;
}
}
_local1.temp0 = ((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if (((((_local1.temp0 <= 625) && (mg.ballClassObj.ballCd.y >= 50)) && (mg.ballClassObj.ballCd.y < 100)) && (_local1.bodyFlag == 0)) && (_local1.headFlag == 0)) {
trace("enemyHd BODY HIT!");
_local1.tanRt = (mg.ballClassObj.ballCd.z - _local1.playerCd.z) / (mg.ballClassObj.ballCd.x - _local1.playerCd.x);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleLR;
_local1.refThetaLR = Math.floor(_local1.refThetaLR * 100) / 100;
mg.ballClassObj.angleLR = (2 * _local1.refThetaLR) - mg.ballClassObj.angleLR;
mg.ballClassObj.angleUD = 360 - mg.ballClassObj.angleUD;
mg.ballClassObj.angleLR = Math.floor(mg.ballClassObj.angleLR * 100) / 100;
mg.ballClassObj.angleUD = Math.floor(mg.ballClassObj.angleUD * 100) / 100;
mg.ballClassObj.powerDis = mg.ballClassObj.powerDis * 0.96;
_local1.bodyFlag = 1;
} else if (((_local1.temp0 > 625) || (mg.ballClassObj.ballCd.y < 50)) || (mg.ballClassObj.ballCd.y >= 100)) {
if (_local1.bodyFlag == 1) {
_local1.bodyFlag = 9;
}
}
_local1.temp0 = ((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if (((((_local1.temp0 <= 400) && (mg.ballClassObj.ballCd.y >= 0)) && (mg.ballClassObj.ballCd.y < 50)) && (_local1.legFlag == 0)) && ((_local1.headFlag + _local1.bodyFlag) == 0)) {
trace("enemyHd LEG HIT!");
_local1.tanRt = (mg.ballClassObj.ballCd.z - _local1.playerCd.z) / (mg.ballClassObj.ballCd.x - _local1.playerCd.x);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleLR;
_local1.refThetaLR = Math.floor(_local1.refThetaLR * 100) / 100;
mg.ballClassObj.angleLR = (2 * _local1.refThetaLR) - mg.ballClassObj.angleLR;
mg.ballClassObj.angleUD = 360 - mg.ballClassObj.angleUD;
mg.ballClassObj.angleLR = Math.floor(mg.ballClassObj.angleLR * 100) / 100;
mg.ballClassObj.angleUD = Math.floor(mg.ballClassObj.angleUD * 100) / 100;
mg.ballClassObj.powerDis = mg.ballClassObj.powerDis * 0.96;
_local1.legFlag = 1;
} else if (((_local1.temp0 > 225) || (mg.ballClassObj.ballCd.y < 0)) || (mg.ballClassObj.ballCd.y >= 50)) {
if (_local1.legFlag == 1) {
_local1.legFlag = 9;
}
}
}
_local1.playerShCd.x = _local1.playerCd.x;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = _local1.playerCd.z;
_local1.playerShCd.w = 1;
_local1.dummy2.x = _local1.playerShCd.x + 100;
_local1.dummy2.y = _local1.playerShCd.y;
_local1.dummy2.z = _local1.playerShCd.z;
_local1.dummy2.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1._xscale = ((Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x) / _local1.scaleAd) * 100) * _local1.xscaleAd;
_local1._yscale = Math.abs(_local1._xscale);
mg.FASVec4MatrixMultiply(_local1.playerShCd, mg.vr.worldMatrix);
mg.scr["enemyHdShadowMc" + _local1.id]._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr["enemyHdShadowMc" + _local1.id]._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr["enemyHdShadowMc" + _local1.id]._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr["enemyHdShadowMc" + _local1.id]._x) / _local1.scaleAd) * 100;
mg.scr["enemyHdShadowMc" + _local1.id]._yscale = mg.scr["enemyHdShadowMc" + _local1.id]._xscale;
if (_local1.headFlag == 1) {
_local1.aniFrame = 2;
_local1.headFlag = 0;
mg.vr.enemyNMHitFlag = 1;
}
if ((_local1.bodyFlag == 1) || (_local1.legFlag == 1)) {
_local1.aniFrame = 1;
mg.scr["starEMc" + mg.objExtractStack(1)].readyToRender(mg.ballClassObj.ballCd.x, mg.ballClassObj.ballCd.y, mg.ballClassObj.ballCd.z);
_local1.bodyFlag = 0;
_local1.legFlag = 0;
mg.vr.enemyNMHitFlag = 1;
}
_local1.aniFrameR = _local1.aniFrame + _local1.direction;
tellTarget (_local1) {
gotoAndStop(_local1.aniFrameR);
};
};
enemyHdClass.prototype.disappear = function () {
var _local1 = this;
_local1._visible = 0;
mg.scr["enemyHdShadowMc" + _local1.id]._visible = false;
_local1._x = 0;
_local1._y = 0;
_local1.delink();
mg.vr.enemyNMHitFlag = 0;
};
}
function GKClass() {
GKClass.prototype.oneTimeInit = function () {
var _local1 = this;
mg.scr.GKMc._visible = 0;
mg.scr.GKShadowMc._visible = 0;
mg.scr.GKMc._x = 0;
mg.scr.GKMc._y = 0;
_local1.next = "n";
_local1.prev = "n";
mg.scr.GKMc.gotoAndStop(1);
_local1.playerCd = new Object();
_local1.playerCd.x = 0;
_local1.playerCd.y = 0;
_local1.playerCd.z = 0;
_local1.playerCd.w = 1;
_local1.dummy = new Object();
_local1.dummy.x = 0;
_local1.dummy.y = 0;
_local1.dummy.z = 0;
_local1.dummy.w = 1;
_local1.playerShCd = new Object();
_local1.playerShCd.x = 0;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = 0;
_local1.playerShCd.w = 1;
_local1.dummy2 = new Object();
_local1.dummy2.x = 0;
_local1.dummy2.y = 0;
_local1.dummy2.z = 0;
_local1.dummy2.w = 1;
_local1.frameCount = 0;
_local1.maxFrame = 24;
tellTarget (mg.scr.GKMc) {
gotoAndStop (1);
};
_local1.state = 0;
_local1.temp0 = 0;
_local1.temp1 = 0;
_local1.temp2 = 0;
_local1.tanRt = 0;
_local1.refThetaUD = 0;
_local1.refThetaLR = 0;
_local1.aniFrame = 1;
_local1.direction = 0;
_local1.vel = 0;
_local1.LRVel = 0;
_local1.LRVelC = 0;
_local1.headFlag = 0;
_local1.bodyFlag = 0;
_local1.legFlag = 0;
_local1.jumpFlag = 0;
_local1.specFlag = 0;
_local1.playerCd.x = 0;
_local1.playerCd.y = 0;
_local1.playerCd.z = -710;
_local1.playerCd.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
mg.scr.GKMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1.scaleAd = Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr.GKMc._x);
trace("ok.....GKClass");
};
GKClass.prototype.deleteC = function () {
removeMovieClip(this);
};
GKClass.prototype.link = function () {
if (this.state == 1) {
return(undefined);
}
this.state = 1;
with (mg.scr.GKMc) {
mg.linkedListInsert(this);
}
};
GKClass.prototype.delink = function () {
if (this.state == 0) {
return(undefined);
}
this.state = 0;
with (mg.scr.GKMc) {
mg.linkedListDelink(this);
}
};
GKClass.prototype.readyToRender = function (xx, zz) {
var _local1 = this;
_local1.temp0 = 0;
_local1.temp1 = 0;
_local1.temp2 = 0;
_local1.tanRt = 0;
_local1.refThetaUD = 0;
_local1.refThetaLR = 0;
_local1.aniFrame = 2;
_local1.direction = 0;
_local1.vel = 16;
_local1.LRVel = mg.vr.GKLRmoveDis;
_local1.LRVelC = 0;
_local1.headFlag = 0;
_local1.bodyFlag = 0;
_local1.legFlag = 0;
_local1.jumpFlag = 0;
_local1.specFlag = 0;
_local1.playerCd.x = Number(xx);
_local1.playerCd.y = 0;
_local1.playerCd.z = Number(zz);
_local1.playerCd.w = 1;
_local1.playerCd.x = Math.floor(_local1.playerCd.x * 100) / 100;
_local1.playerCd.y = Math.floor(_local1.playerCd.y * 100) / 100;
_local1.playerCd.z = Math.floor(_local1.playerCd.z * 100) / 100;
_local1.playerShCd.x = _local1.playerCd.x;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = _local1.playerCd.z;
_local1.playerShCd.w = 1;
_local1.dummy2.x = _local1.playerShCd.x + 100;
_local1.dummy2.y = _local1.playerShCd.y;
_local1.dummy2.z = _local1.playerShCd.z;
_local1.dummy2.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
mg.scr.GKMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr.GKMc._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
mg.scr.GKMc._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr.GKMc._x) / _local1.scaleAd) * 100;
mg.scr.GKMc._yscale = mg.scr.GKMc._xscale;
mg.FASVec4MatrixMultiply(_local1.playerShCd, mg.vr.worldMatrix);
mg.scr.GKShadowMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr.GKShadowMc._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr.GKShadowMc._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr.GKShadowMc._x) / _local1.scaleAd) * 100;
mg.scr.GKShadowMc._yscale = mg.scr.GKShadowMc._xscale;
_local1.link();
mg.scr.GKMc._visible = true;
mg.scr.GKShadowMc._visible = true;
};
GKClass.prototype.gogo = function () {
var _local1 = this;
if ((mg.ballClassObj.ballCd.z >= mg.vr.GKAIvr) && (_local1.jumpFlag == 0)) {
_local1.jumpFlag = 1;
}
if ((mg.ballClassObj.ballCd.z >= -100) && (_local1.jumpFlag == 1)) {
_local1.jumpFlag = 2;
_local1.vel = 0;
if ((mg.ballClassObj.ballCd.y > 200) || (Math.abs(mg.ballClassObj.ballCd.x - _local1.playerCd.x) > 30)) {
_local1.vel = mg.ballClassObj.ballCd.y / 16;
_local1.LRVel = (mg.ballClassObj.ballCd.x - _local1.playerCd.x) / 10;
if (_local1.LRVel >= 20) {
_local1.LRVel = 20;
}
if (_local1.LRVel <= -20) {
_local1.LRVel = -20;
}
_local1.LRVelC = Math.abs(_local1.LRVel);
_local1.vel = 16;
_local1.aniFrame = 6;
if (_local1.LRVel > 0) {
_local1.direction = 0;
} else {
_local1.direction = 4;
}
trace((("-----------------this.LRVel:" + _local1.LRVel) + "----------------------this.vel:") + _local1.vel);
}
}
switch (_local1.jumpFlag) {
case 0 :
_local1.playerCd.x = _local1.playerCd.x + _local1.LRVel;
if ((_local1.LRVel > 0) && (_local1.playerCd.x >= 180)) {
_local1.LRVel = _local1.LRVel * -1;
_local1.playerCd.x = 180;
} else if ((_local1.LRVel < 0) && (_local1.playerCd.x <= -180)) {
_local1.LRVel = _local1.LRVel * -1;
_local1.playerCd.x = -180;
}
break;
case 1 :
_local1.playerCd.x = _local1.playerCd.x + (_local1.LRVel * 1.5);
if ((_local1.LRVel > 0) && (_local1.playerCd.x >= 180)) {
_local1.playerCd.x = 180;
} else if ((_local1.LRVel < 0) && (_local1.playerCd.x <= -180)) {
_local1.playerCd.x = -180;
}
if (_local1.playerCd.x >= mg.ballClassObj.ballCd.x) {
_local1.LRVel = -1 * Math.abs(_local1.LRVel);
} else if (_local1.playerCd.x < mg.ballClassObj.ballCd.x) {
_local1.LRVel = Math.abs(_local1.LRVel);
}
break;
case 2 :
_local1.playerCd.x = _local1.playerCd.x + _local1.LRVel;
_local1.LRVel = _local1.LRVel * 0.98;
_local1.playerCd.y = _local1.playerCd.y + _local1.vel;
_local1.vel = _local1.vel * 0.98;
_local1.vel = _local1.vel - 0.2;
if (_local1.playerCd.y >= 100) {
_local1.playerCd.y = 100;
_local1.vel = _local1.vel * -1;
if (_local1.LRVelC > 5) {
_local1.aniFrame = 8;
}
}
if (_local1.playerCd.y <= 0) {
_local1.playerCd.y = 0;
_local1.vel = 16;
_local1.jumpFlag = 9;
}
if ((_local1.aniFrame == 6) && (_local1.playerCd.y >= 50)) {
if (_local1.LRVelC > 5) {
_local1.aniFrame = 7;
}
} else {
if (!((_local1.aniFrame == 8) && (_local1.playerCd.y < 50))) {
break;
}
if (_local1.LRVelC <= 5) {
break;
}
_local1.aniFrame = 9;
}
}
if (mg.ballClassObj.ballCd.z >= -100) {
_local1.temp0 = (((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + (((_local1.playerCd.y + 150) - mg.ballClassObj.ballCd.y) * ((_local1.playerCd.y + 150) - mg.ballClassObj.ballCd.y))) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if ((_local1.temp0 <= 2500) && (_local1.headFlag == 0)) {
trace("GK HEAD HIT!");
_local1.tanRt = ((mg.ballClassObj.ballCd.y - _local1.playerCd.y) - 150) / (mg.ballClassObj.ballCd.z - _local1.playerCd.z);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaUD = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleUD;
_local1.refThetaUD = Math.floor(_local1.refThetaUD * 100) / 100;
_local1.tanRt = (mg.ballClassObj.ballCd.z - _local1.playerCd.z) / (mg.ballClassObj.ballCd.x - _local1.playerCd.x);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleLR;
_local1.refThetaUD = Math.floor(_local1.refThetaUD * 100) / 100;
mg.ballClassObj.angleLR = (2 * _local1.refThetaLR) - mg.ballClassObj.angleLR;
mg.ballClassObj.angleUD = (2 * _local1.refThetaUD) - mg.ballClassObj.angleUD;
mg.ballClassObj.angleLR = Math.floor(mg.ballClassObj.angleLR * 100) / 100;
mg.ballClassObj.angleUD = Math.floor(mg.ballClassObj.angleUD * 100) / 100;
mg.ballClassObj.powerDis = mg.ballClassObj.powerDis * 0.96;
_local1.headFlag = 1;
} else if (_local1.temp0 > 2500) {
if (_local1.headFlag == 1) {
_local1.headFlag = 0;
}
}
_local1.temp0 = ((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if (((((_local1.temp0 <= 625) && (mg.ballClassObj.ballCd.y >= 50)) && (mg.ballClassObj.ballCd.y < 100)) && (_local1.bodyFlag == 0)) && (_local1.headFlag == 0)) {
trace("GK BODY HIT!");
_local1.tanRt = (mg.ballClassObj.ballCd.z - _local1.playerCd.z) / (mg.ballClassObj.ballCd.x - _local1.playerCd.x);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleLR;
_local1.refThetaLR = Math.floor(_local1.refThetaLR * 100) / 100;
mg.ballClassObj.angleLR = (2 * _local1.refThetaLR) - mg.ballClassObj.angleLR;
mg.ballClassObj.angleUD = 360 - mg.ballClassObj.angleUD;
mg.ballClassObj.angleLR = Math.floor(mg.ballClassObj.angleLR * 100) / 100;
mg.ballClassObj.angleUD = Math.floor(mg.ballClassObj.angleUD * 100) / 100;
if (mg.vr.gameProcNum >= 50) {
if (mg.ballClassObj.angleLR > 360) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR - 360;
}
if (mg.ballClassObj.angleLR < 0) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR + 360;
}
if (mg.ballClassObj.angleLR < 180) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR * -1;
}
}
mg.ballClassObj.powerDis = mg.ballClassObj.powerDis * 0.96;
_local1.bodyFlag = 1;
} else if (((_local1.temp0 > 625) || (mg.ballClassObj.ballCd.y < 50)) || (mg.ballClassObj.ballCd.y >= 100)) {
if (_local1.bodyFlag == 1) {
_local1.bodyFlag = 0;
}
}
_local1.temp0 = ((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if (((((_local1.temp0 <= 400) && (mg.ballClassObj.ballCd.y >= 0)) && (mg.ballClassObj.ballCd.y < 50)) && (_local1.legFlag == 0)) && ((_local1.headFlag + _local1.bodyFlag) == 0)) {
trace("GK LEG HIT!");
_local1.tanRt = (mg.ballClassObj.ballCd.z - _local1.playerCd.z) / (mg.ballClassObj.ballCd.x - _local1.playerCd.x);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleLR;
_local1.refThetaLR = Math.floor(_local1.refThetaLR * 100) / 100;
mg.ballClassObj.angleLR = (2 * _local1.refThetaLR) - mg.ballClassObj.angleLR;
mg.ballClassObj.angleUD = 360 - mg.ballClassObj.angleUD;
mg.ballClassObj.angleLR = Math.floor(mg.ballClassObj.angleLR * 100) / 100;
mg.ballClassObj.angleUD = Math.floor(mg.ballClassObj.angleUD * 100) / 100;
if (mg.vr.gameProcNum >= 50) {
if (mg.ballClassObj.angleLR > 360) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR - 360;
}
if (mg.ballClassObj.angleLR < 0) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR + 360;
}
if (mg.ballClassObj.angleLR < 180) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR * -1;
}
}
mg.ballClassObj.powerDis = mg.ballClassObj.powerDis * 0.96;
_local1.legFlag = 1;
} else if (((_local1.temp0 > 225) || (mg.ballClassObj.ballCd.y < 0)) || (mg.ballClassObj.ballCd.y >= 50)) {
if (_local1.legFlag == 1) {
_local1.legFlag = 0;
}
}
if ((((mg.ballClassObj.ballCd.z >= -10) && (mg.ballClassObj.ballCd.z <= 10)) && (mg.ballClassObj.hitTest(mg.scr.GKMc) == true)) && (_local1.specFlag == 0)) {
trace("GK SPECIAL HIT!");
mg.ballClassObj.angleLR = 360 - mg.ballClassObj.angleLR;
mg.ballClassObj.angleUD = 360 - mg.ballClassObj.angleUD;
if (mg.vr.gameProcNum >= 50) {
if (mg.ballClassObj.angleLR > 360) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR - 360;
}
if (mg.ballClassObj.angleLR < 0) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR + 360;
}
if (mg.ballClassObj.angleLR < 180) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR * -1;
}
}
mg.ballClassObj.powerDis = mg.ballClassObj.powerDis * 0.96;
_local1.specFlag = 1;
} else if (((mg.ballClassObj.ballCd.z < -10) && (mg.ballClassObj.ballCd.z > 10)) && (mg.ballClassObj.hitTest(mg.scr.GKMc) == false)) {
if (_local1.specFlag == 1) {
_local1.specFlag = 0;
}
}
}
_local1.playerShCd.x = _local1.playerCd.x;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = _local1.playerCd.z;
_local1.playerShCd.w = 1;
_local1.dummy2.x = _local1.playerShCd.x + 100;
_local1.dummy2.y = _local1.playerShCd.y;
_local1.dummy2.z = _local1.playerShCd.z;
_local1.dummy2.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
mg.scr.GKMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr.GKMc._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
mg.scr.GKMc._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr.GKMc._x) / _local1.scaleAd) * 100;
mg.scr.GKMc._yscale = mg.scr.GKMc._xscale;
mg.FASVec4MatrixMultiply(_local1.playerShCd, mg.vr.worldMatrix);
mg.scr.GKShadowMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr.GKShadowMc._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr.GKShadowMc._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr.GKShadowMc._x) / _local1.scaleAd) * 100;
mg.scr.GKShadowMc._yscale = mg.scr.GKShadowMc._xscale;
if (_local1.headFlag == 1) {
if (mg.vr.tempGkCatch == 1) {
mg.ballClassObj.disCatch();
mg.vr.tempGkCatch = 0;
_local1.headFlag = 9;
trace("GK HEAD 1:" + mg.ballClassObj.catchedFlag);
} else if ((random(mg.vr.GKRNd) == 0) && (mg.vr.tempGkCatch == 0)) {
mg.ballClassObj.disCatch();
_local1.headFlag = 9;
trace("GK HEAD 2:" + mg.ballClassObj.catchedFlag);
} else {
mg.scr["starEMc" + mg.objExtractStack(1)].readyToRender(mg.ballClassObj.ballCd.x, mg.ballClassObj.ballCd.y, mg.ballClassObj.ballCd.z);
_local1.headFlag = 10;
if (mg.ballClassObj.catchedFlag != 1) {
mg.ballClassObj.catchedFlag = 2;
}
trace("GK HEAD 3:" + mg.ballClassObj.catchedFlag);
mg.vr.punchingS.start(0, 1);
}
mg.vr.enemyGKHitFlag = 1;
} else if (_local1.bodyFlag == 1) {
if (mg.vr.tempGkCatch == 1) {
mg.ballClassObj.disCatch();
mg.vr.tempGkCatch = 0;
_local1.bodyFlag = 9;
trace("GK BODY 1:" + mg.ballClassObj.catchedFlag);
} else if ((random(mg.vr.GKRNd) == 0) && (mg.vr.tempGkCatch == 0)) {
mg.ballClassObj.disCatch();
_local1.bodyFlag = 9;
trace("GK BODY 2:" + mg.ballClassObj.catchedFlag);
} else {
mg.scr["starEMc" + mg.objExtractStack(1)].readyToRender(mg.ballClassObj.ballCd.x, mg.ballClassObj.ballCd.y, mg.ballClassObj.ballCd.z);
_local1.bodyFlag = 10;
if (mg.ballClassObj.catchedFlag != 1) {
mg.ballClassObj.catchedFlag = 2;
}
trace("GK BODY 3:" + mg.ballClassObj.catchedFlag);
mg.vr.punchingS.start(0, 1);
}
mg.vr.enemyGKHitFlag = 1;
} else if (_local1.legFlag == 1) {
mg.scr["starEMc" + mg.objExtractStack(1)].readyToRender(mg.ballClassObj.ballCd.x, mg.ballClassObj.ballCd.y, mg.ballClassObj.ballCd.z);
_local1.legFlag = 10;
if (mg.ballClassObj.catchedFlag != 1) {
mg.ballClassObj.catchedFlag = 2;
}
trace("GK LEG 3:" + mg.ballClassObj.catchedFlag);
mg.vr.enemyGKHitFlag = 1;
mg.vr.punchingS.start(0, 1);
} else if (_local1.specFlag == 1) {
if (mg.vr.tempGkCatch == 1) {
mg.ballClassObj.disCatch();
mg.vr.tempGkCatch = 0;
trace("GK SPEC 1:" + mg.ballClassObj.catchedFlag);
_local1.specFlag = 9;
} else if ((random(mg.vr.GKRNd) == 0) && (mg.vr.tempGkCatch == 0)) {
mg.ballClassObj.disCatch();
trace("GK SPEC 2:" + mg.ballClassObj.catchedFlag);
_local1.specFlag = 9;
} else {
mg.scr["starEMc" + mg.objExtractStack(1)].readyToRender(mg.ballClassObj.ballCd.x, mg.ballClassObj.ballCd.y, mg.ballClassObj.ballCd.z);
_local1.specFlag = 10;
if (mg.ballClassObj.catchedFlag != 1) {
mg.ballClassObj.catchedFlag = 2;
}
trace("GK SPEC 3:" + mg.ballClassObj.catchedFlag);
mg.vr.punchingS.start(0, 1);
}
mg.vr.enemyGKHitFlag = 1;
}
_local1.aniFrameR = _local1.direction + _local1.aniFrame;
mg.scr.GKMc.gotoAndStop(_local1.aniFrameR);
_local1.aniFrame++;
switch (_local1.aniFrame) {
case 2 :
_local1.aniFrame = 1;
return;
case 6 :
_local1.aniFrame = 2;
if ((((_local1.headFlag == 9) || (_local1.bodyFlag == 9)) || (_local1.legFlag == 9)) || (_local1.specFlag == 9)) {
_local1.aniFrame = 14;
}
return;
case 7 :
_local1.aniFrame = 6;
if ((((_local1.headFlag == 9) || (_local1.bodyFlag == 9)) || (_local1.legFlag == 9)) || (_local1.specFlag == 9)) {
_local1.aniFrame = 14;
}
return;
case 8 :
_local1.aniFrame = 7;
return;
case 9 :
_local1.aniFrame = 8;
return;
case 10 :
_local1.aniFrame = 9;
if ((((_local1.headFlag == 9) || (_local1.bodyFlag == 9)) || (_local1.legFlag == 9)) || (_local1.specFlag == 9)) {
_local1.aniFrame = 14;
}
return;
case 15 :
_local1.aniFrame = 14;
}
};
GKClass.prototype.disappear = function () {
mg.scr.GKMc._visible = 0;
mg.scr.GKShadowMc._visible = false;
mg.scr.GKMc._x = 0;
mg.scr.GKMc._y = 0;
this.delink();
mg.vr.enemyGKHitFlag = 0;
};
}
function starClass() {
var _local1 = this;
starClass.prototype.oneTimeInit = function (id) {
var _local1 = this;
_local1._visible = 0;
_local1._x = 0;
_local1._y = 0;
_local1.next = "n";
_local1.prev = "n";
_local1.frameCount = 0;
_local1.maxFrame = 8;
tellTarget (_local1) {
gotoAndStop (1);
};
_local1.state = 0;
_local1.id = Number(id);
_local1.playerCd = new Object();
_local1.playerCd.x = 0;
_local1.playerCd.y = 0;
_local1.playerCd.z = 0;
_local1.playerCd.w = 1;
_local1.dummy = new Object();
_local1.dummy.x = 0;
_local1.dummy.y = 0;
_local1.dummy.z = 0;
_local1.dummy.w = 1;
_local1.playerCd.x = 0;
_local1.playerCd.y = 0;
_local1.playerCd.z = -500;
_local1.playerCd.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1.scaleAd = Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x);
mg.objInsertStack(_local1.id, 1);
trace("ok.....starClass:" + _local1.id);
};
starClass.prototype.deleteC = function () {
removeMovieClip(this);
};
starClass.prototype.link = function () {
var _local1 = this;
if (_local1.state == 1) {
} else {
_local1.state = 1;
mg.linkedListInsert(_local1);
}
};
starClass.prototype.delink = function () {
var _local1 = this;
if (_local1.state == 0) {
} else {
_local1.state = 0;
mg.linkedListDelink(_local1);
mg.objInsertStack(_local1.id, 1);
trace("dis:" + _local1.id);
}
};
starClass.prototype.readyToRender = function (xx, yy, zz) {
var _local1 = this;
if (_local1.state == 1) {
} else {
_local1.frameCount = 0;
_local1._visible = true;
_local1.playerCd.x = Number(xx);
_local1.playerCd.y = Number(yy);
_local1.playerCd.z = Number(zz);
_local1.playerCd.w = 1;
_local1.link();
trace("ready:" + _local1.id);
}
};
starClass.prototype.gogo = function () {
var _local1 = this;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x) / _local1.scaleAd) * 100;
_local1._yscale = _local1._xscale;
_local1.frameCount++;
if (!(_local1.frameCount === _local1.maxFrame)) {
} else {
_local1.disappear();
}
};
starClass.prototype.disappear = function () {
var _local1 = this;
_local1._visible = 0;
_local1._x = 0;
_local1._y = 0;
_local1.delink();
};
}
function playerClass() {
var _local1 = this;
playerClass.prototype.oneTimeInit = function (types) {
var _local1 = this;
_local1._visible = 0;
_local1._x = 0;
_local1._y = 0;
_local1.next = "n";
_local1.prev = "n";
_local1.playerCd = new Object();
_local1.playerCd.x = 0;
_local1.playerCd.y = 0;
_local1.playerCd.z = 0;
_local1.playerCd.w = 1;
_local1.dummy = new Object();
_local1.dummy.x = 0;
_local1.dummy.y = 0;
_local1.dummy.z = 0;
_local1.dummy.w = 1;
_local1.playerShCd = new Object();
_local1.playerShCd.x = 0;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = 0;
_local1.playerShCd.w = 1;
_local1.dummy2 = new Object();
_local1.dummy2.x = 0;
_local1.dummy2.y = 0;
_local1.dummy2.z = 0;
_local1.dummy2.w = 1;
_local1.energy = 100;
_local1.frameCount = 0;
_local1.maxFrame = 24;
_local1.direction = 0;
_local1.angleBCP = 0;
_local1.temp0 = 0;
_local1.addpx = 0;
_local1.addpz = 0;
_local1.types = Number(types);
switch (_local1.types) {
case 0 :
_local1.powerDS = 0.98;
_local1.powerUD = 0.91;
_local1.gravityGS = 1.5;
_local1.curveDS = 1;
_local1.valueA = 0.01;
_local1.valueB = 200;
break;
case 1 :
_local1.powerDS = 0.99;
_local1.powerUD = 0.92;
_local1.gravityGS = 0.5;
_local1.curveDS = 1;
_local1.valueA = 0.02;
_local1.valueB = 250;
break;
case 2 :
_local1.powerDS = 0.98;
_local1.powerUD = 0.98;
_local1.gravityGS = 0.5;
_local1.curveDS = 1.1;
_local1.valueA = 0.005;
_local1.valueB = 200;
}
tellTarget (_local1) {
gotoAndStop (1);
};
_local1.state = 0;
_local1.playerState = 0;
_local1.LR = 0;
_local1.UD = 0;
_local1.DS = 0;
_local1.RT = 0;
_local1.pos;
_local1.temp = 0;
_local1.ctrlVec0 = new Object();
_local1.ctrlVec0.x = 0;
_local1.ctrlVec0.y = 0;
_local1.ctrlVec0.z = 0;
_local1.ctrlVec0.w = 1;
_local1.ctrlVec1 = new Object();
_local1.ctrlVec1.x = 0;
_local1.ctrlVec1.y = 0;
_local1.ctrlVec1.z = 0;
_local1.ctrlVec1.w = 1;
_local1.ctrlVec2 = new Object();
_local1.ctrlVec2.x = 0;
_local1.ctrlVec2.y = 0;
_local1.ctrlVec2.z = 0;
_local1.ctrlVec2.w = 1;
_local1.aniFrame = 1;
_local1.aniFrameR = 1;
_local1.befKickX = 0;
_local1.befKickZ = 0;
_local1.befKickAngleBCP = 0;
_local1.befKickTemp0 = 0;
_local1.befEnergy = 0;
};
playerClass.prototype.deleteC = function () {
removeMovieClip(this);
};
playerClass.prototype.link = function () {
var _local1 = this;
if (_local1.state == 1) {
} else {
_local1.state = 1;
mg.linkedListInsert(_local1);
}
};
playerClass.prototype.delink = function () {
var _local1 = this;
if (_local1.state == 0) {
} else {
_local1.state = 0;
mg.linkedListDelink(_local1);
}
};
playerClass.prototype.refillEnergy = function () {
var _local1 = this;
_local1.energy = 100;
switch (_local1.types) {
case 0 :
mg.interFaceMc.reduceEnergy(0, _local1.energy);
return;
case 1 :
mg.interFaceMc.reduceEnergy(2, _local1.energy);
return;
case 2 :
mg.interFaceMc.reduceEnergy(1, _local1.energy);
}
};
playerClass.prototype.reduceEnergy = function () {
var _local1 = this;
_local1.energy = _local1.energy - 20;
if (_local1.energy <= 20) {
_local1.energy = 10;
}
switch (_local1.types) {
case 0 :
mg.interFaceMc.reduceEnergy(0, _local1.energy);
mg.scr.player1Mc.energy = mg.scr.player1Mc.energy + 10;
mg.scr.player2Mc.energy = mg.scr.player2Mc.energy + 10;
if (mg.scr.player1Mc.energy >= 100) {
mg.scr.player1Mc.energy = 100;
}
if (mg.scr.player2Mc.energy >= 100) {
mg.scr.player2Mc.energy = 100;
}
mg.interFaceMc.reduceEnergy(2, mg.scr.player1Mc.energy);
mg.interFaceMc.reduceEnergy(1, mg.scr.player2Mc.energy);
return;
case 1 :
mg.interFaceMc.reduceEnergy(2, _local1.energy);
mg.scr.player0Mc.energy = mg.scr.player0Mc.energy + 10;
mg.scr.player2Mc.energy = mg.scr.player2Mc.energy + 10;
if (mg.scr.player0Mc.energy >= 100) {
mg.scr.player0Mc.energy = 100;
}
if (mg.scr.player2Mc.energy >= 100) {
mg.scr.player2Mc.energy = 100;
}
mg.interFaceMc.reduceEnergy(0, mg.scr.player0Mc.energy);
mg.interFaceMc.reduceEnergy(1, mg.scr.player2Mc.energy);
return;
case 2 :
mg.interFaceMc.reduceEnergy(1, _local1.energy);
mg.scr.player1Mc.energy = mg.scr.player1Mc.energy + 10;
mg.scr.player0Mc.energy = mg.scr.player0Mc.energy + 10;
if (mg.scr.player1Mc.energy >= 100) {
mg.scr.player1Mc.energy = 100;
}
if (mg.scr.player0Mc.energy >= 100) {
mg.scr.player0Mc.energy = 100;
}
mg.interFaceMc.reduceEnergy(2, mg.scr.player1Mc.energy);
mg.interFaceMc.reduceEnergy(0, mg.scr.player0Mc.energy);
}
};
playerClass.prototype.readyToRender = function (pos, rp) {
var _local1 = this;
mg.vr.whoKickPlayer = _local1;
trace((("WHO:" + mg.vr.whoKickPlayer) + " pos:") + pos);
if (rp == 0) {
_local1.playerState = 1;
}
_local1.pos = Number(pos) % 10;
switch (_local1.pos) {
case 0 :
_local1.direction = 0;
_local1.playerCd.x = 710 * Math.cos((Math.PI/180) * (270 + (15 * (_local1.pos - 2))));
_local1.playerCd.y = Number(0);
_local1.playerCd.z = 710 * Math.sin((Math.PI/180) * (270 + (15 * (_local1.pos - 2))));
_local1.playerCd.w = 1;
break;
case 1 :
_local1.direction = 21;
_local1.playerCd.x = 710 * Math.cos((Math.PI/180) * (270 + (15 * (_local1.pos - 2))));
_local1.playerCd.y = Number(0);
_local1.playerCd.z = 710 * Math.sin((Math.PI/180) * (270 + (15 * (_local1.pos - 2))));
_local1.playerCd.w = 1;
break;
case 2 :
_local1.direction = 42;
_local1.playerCd.x = 710 * Math.cos((Math.PI/180) * (270 + (15 * (_local1.pos - 2))));
_local1.playerCd.y = Number(0);
_local1.playerCd.z = 710 * Math.sin((Math.PI/180) * (270 + (15 * (_local1.pos - 2))));
_local1.playerCd.w = 1;
break;
case 3 :
_local1.direction = 63;
_local1.playerCd.x = 710 * Math.cos((Math.PI/180) * (270 + (15 * (_local1.pos - 2))));
_local1.playerCd.y = Number(0);
_local1.playerCd.z = 710 * Math.sin((Math.PI/180) * (270 + (15 * (_local1.pos - 2))));
_local1.playerCd.w = 1;
break;
case 4 :
_local1.direction = 84;
_local1.playerCd.x = 710 * Math.cos((Math.PI/180) * (270 + (15 * (_local1.pos - 2))));
_local1.playerCd.y = Number(0);
_local1.playerCd.z = 710 * Math.sin((Math.PI/180) * (270 + (15 * (_local1.pos - 2))));
_local1.playerCd.w = 1;
break;
case 5 :
_local1.direction = 0;
_local1.playerCd.x = 810 * Math.cos((Math.PI/180) * (270 + (15 * (_local1.pos - 7))));
_local1.playerCd.y = Number(0);
_local1.playerCd.z = 810 * Math.sin((Math.PI/180) * (270 + (15 * (_local1.pos - 7))));
_local1.playerCd.w = 1;
break;
case 6 :
_local1.direction = 21;
_local1.playerCd.x = 810 * Math.cos((Math.PI/180) * (270 + (15 * (_local1.pos - 7))));
_local1.playerCd.y = Number(0);
_local1.playerCd.z = 810 * Math.sin((Math.PI/180) * (270 + (15 * (_local1.pos - 7))));
_local1.playerCd.w = 1;
break;
case 7 :
_local1.direction = 42;
_local1.playerCd.x = 810 * Math.cos((Math.PI/180) * (270 + (15 * (_local1.pos - 7))));
_local1.playerCd.y = Number(0);
_local1.playerCd.z = 810 * Math.sin((Math.PI/180) * (270 + (15 * (_local1.pos - 7))));
_local1.playerCd.w = 1;
break;
case 8 :
_local1.direction = 63;
_local1.playerCd.x = 810 * Math.cos((Math.PI/180) * (270 + (15 * (_local1.pos - 7))));
_local1.playerCd.y = Number(0);
_local1.playerCd.z = 810 * Math.sin((Math.PI/180) * (270 + (15 * (_local1.pos - 7))));
_local1.playerCd.w = 1;
break;
case 9 :
_local1.direction = 84;
_local1.playerCd.x = 810 * Math.cos((Math.PI/180) * (270 + (15 * (_local1.pos - 7))));
_local1.playerCd.y = Number(0);
_local1.playerCd.z = 810 * Math.sin((Math.PI/180) * (270 + (15 * (_local1.pos - 7))));
_local1.playerCd.w = 1;
}
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1.scaleAd = Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x);
_local1._visible = true;
mg.scr.playerShadowMc._visible = true;
_local1.playerShCd.x = _local1.playerCd.x;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = _local1.playerCd.z;
_local1.playerShCd.w = 1;
_local1.dummy2.x = _local1.playerShCd.x + 100;
_local1.dummy2.y = _local1.playerShCd.y;
_local1.dummy2.z = _local1.playerShCd.z;
_local1.dummy2.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x) / _local1.scaleAd) * 100;
_local1._yscale = _local1._xscale;
mg.FASVec4MatrixMultiply(_local1.playerShCd, mg.vr.worldMatrix);
mg.scr.playerShadowMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr.playerShadowMc._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr.playerShadowMc._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr.playerShadowMc._x) / _local1.scaleAd) * 100;
mg.scr.playerShadowMc._yscale = mg.scr.playerShadowMc._xscale;
_local1.ctrlVec0.x = -1 * Math.sqrt(_local1.valueB / _local1.valueA);
_local1.ctrlVec0.y = 0;
_local1.ctrlVec0.z = 0;
mg.FASVec4MatrixMultiply(_local1.ctrlVec0, mg.vr["ctrMatrix" + _local1.pos]);
_local1.ctrlVec0.x = mg.vr.tempVector4.x;
_local1.ctrlVec0.y = mg.vr.tempVector4.y;
_local1.ctrlVec0.z = mg.vr.tempVector4.z;
_local1.ctrlVec1.x = Math.sqrt(_local1.valueB / _local1.valueA);
_local1.ctrlVec1.y = 0;
_local1.ctrlVec1.z = 0;
mg.FASVec4MatrixMultiply(_local1.ctrlVec1, mg.vr["ctrMatrix" + _local1.pos]);
_local1.ctrlVec1.x = mg.vr.tempVector4.x;
_local1.ctrlVec1.y = mg.vr.tempVector4.y;
_local1.ctrlVec1.z = mg.vr.tempVector4.z;
_local1.ctrlVec2.x = 0;
_local1.ctrlVec2.y = 0;
_local1.ctrlVec2.z = -1.7 * _local1.valueB;
mg.FASVec4MatrixMultiply(_local1.ctrlVec2, mg.vr["ctrMatrix" + _local1.pos]);
_local1.ctrlVec2.x = mg.vr.tempVector4.x;
_local1.ctrlVec2.y = mg.vr.tempVector4.y;
_local1.ctrlVec2.z = mg.vr.tempVector4.z;
_local1.aniFrame = 1;
if (rp == 0) {
mg.drawCrtLine(_local1.ctrlVec0, _local1.ctrlVec1, _local1.ctrlVec2);
_local1.awakeMouse();
}
_local1.aniFrameR = _local1.aniFrame + _local1.direction;
tellTarget (_local1) {
gotoAndStop(_local1.aniFrameR);
};
};
playerClass.prototype.setReplayData = function (tLR, tUD, tDS, tRT) {
var _local1 = this;
_local1.LR = tLR;
_local1.UD = tUD;
_local1.DS = tDS;
_local1.RT = tRT;
trace("---------------------------------------------------------this.LR:" + _local1.LR);
trace("---------------------------------------------------------this.UD:" + _local1.UD);
trace("---------------------------------------------------------this.DS:" + _local1.DS);
trace("---------------------------------------------------------this.RT:" + _local1.RT);
};
playerClass.prototype.setReplayPos = function (tX, tZ, tBCP, tTp, tGKX, tLRVel, tEn) {
var _local1 = this;
_local1.playerCd.x = tX;
_local1.playerCd.y = Number(0);
_local1.playerCd.z = tZ;
_local1.playerCd.w = 1;
_local1.temp = tTp;
_local1.angleBCP = tBCP;
if (_local1.angleBCP > 360) {
_local1.angleBCP = _local1.angleBCP - 360;
}
if (_local1.angleBCP < 0) {
_local1.angleBCP = _local1.angleBCP + 360;
}
if ((_local1.angleBCP >= 0) && (_local1.angleBCP < 36)) {
_local1.direction = 0;
} else if ((_local1.angleBCP >= 36) && (_local1.angleBCP < 72)) {
_local1.direction = 21;
} else if ((_local1.angleBCP >= 72) && (_local1.angleBCP < 108)) {
_local1.direction = 42;
} else if ((_local1.angleBCP >= 108) && (_local1.angleBCP < 144)) {
_local1.direction = 63;
} else if ((_local1.angleBCP >= 144) && (_local1.angleBCP < 216)) {
_local1.direction = 84;
} else if ((_local1.angleBCP >= 216) && (_local1.angleBCP < 252)) {
_local1.direction = 63;
} else if ((_local1.angleBCP >= 252) && (_local1.angleBCP < 288)) {
_local1.direction = 42;
} else if ((_local1.angleBCP >= 288) && (_local1.angleBCP < 324)) {
_local1.direction = 21;
} else if (_local1.angleBCP >= 324) {
_local1.direction = 0;
}
_local1.playerShCd.x = _local1.playerCd.x;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = _local1.playerCd.z;
_local1.playerShCd.w = 1;
_local1.dummy2.x = _local1.playerShCd.x + 100;
_local1.dummy2.y = _local1.playerShCd.y;
_local1.dummy2.z = _local1.playerShCd.z;
_local1.dummy2.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x) / _local1.scaleAd) * 100;
_local1._yscale = _local1._xscale;
mg.FASVec4MatrixMultiply(_local1.playerShCd, mg.vr.worldMatrix);
mg.scr.playerShadowMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr.playerShadowMc._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr.playerShadowMc._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr.playerShadowMc._x) / _local1.scaleAd) * 100;
mg.scr.playerShadowMc._yscale = mg.scr.playerShadowMc._xscale;
_local1.aniFrameR = _local1.aniFrame + _local1.direction;
tellTarget (_local1) {
gotoAndStop(_local1.aniFrameR);
};
_local1.aniFrame++;
switch (_local1.aniFrame) {
case 2 :
_local1.aniFrame = 1;
break;
case 22 :
_local1.aniFrame = 1;
}
mg.GKClassObj.playerCd.x = tGKX;
mg.GKClassObj.LRVel = tLRVel;
_local1.energy = tEn;
_local1.kick();
};
playerClass.prototype.awakeMouse = function () {
var _local1 = this;
mg.interFaceMc.aliveButton();
_local1.onMouseDown = function () {
var _local1 = this;
mg.FASPickingScreen(mg.scr._xmouse, mg.scr._ymouse);
trace((((("pickVector.x:" + mg.vr.pickVector.x) + " mg.scr._xmouse:") + mg.scr._xmouse) + " mg.scr._ymouse:") + mg.scr._ymouse);
trace("pickVector.y:" + mg.vr.pickVector.y);
trace("pickVector.z:" + mg.vr.pickVector.z);
if ((_local1.playerState == 0) || (_local1.playerState > 1)) {
} else if ((((Math.abs(_local1._x - mg.scr._xmouse) < 15) && ((_local1._y - mg.scr._ymouse) < 65)) && ((_local1._y - mg.scr._ymouse) > 0)) && (mg.interFaceMc.itemPopMc._visible == false)) {
_local1.playerState = 2;
mg.interFaceMc.downMove();
}
};
_local1.onMouseMove = function () {
var _local1 = this;
if (_local1.playerState != 2) {
} else {
mg.FASPickingScreen(mg.scr._xmouse, mg.scr._ymouse);
mg.FASVec4MatrixMultiply(mg.vr.pickVector, mg.vr["ctrMatrixIv" + _local1.pos]);
if (_local1.pos < 5) {
if ((mg.vr.tempVector4.z < (((mg.vr.tempVector4.x * mg.vr.tempVector4.x) * _local1.valueA) - _local1.valueB)) || (((mg.vr.pickVector.x * mg.vr.pickVector.x) + (mg.vr.pickVector.z * mg.vr.pickVector.z)) < 490000)) {
return;
}
} else if ((mg.vr.tempVector4.z < (((mg.vr.tempVector4.x * mg.vr.tempVector4.x) * _local1.valueA) - _local1.valueB)) || (((mg.vr.pickVector.x * mg.vr.pickVector.x) + (mg.vr.pickVector.z * mg.vr.pickVector.z)) < 640000)) {
} else {
_local1.playerCd.x = mg.vr.pickVector.x;
_local1.playerCd.y = mg.vr.pickVector.y;
_local1.playerCd.z = mg.vr.pickVector.z;
_local1.playerCd.w = 1;
_local1.playerShCd.x = _local1.playerCd.x;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = _local1.playerCd.z;
_local1.playerShCd.w = 1;
_local1.dummy2.x = _local1.playerShCd.x + 100;
_local1.dummy2.y = _local1.playerShCd.y;
_local1.dummy2.z = _local1.playerShCd.z;
_local1.dummy2.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x) / _local1.scaleAd) * 100;
_local1._yscale = _local1._xscale;
mg.FASVec4MatrixMultiply(_local1.playerShCd, mg.vr.worldMatrix);
mg.scr.playerShadowMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr.playerShadowMc._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr.playerShadowMc._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr.playerShadowMc._x) / _local1.scaleAd) * 100;
mg.scr.playerShadowMc._yscale = mg.scr.playerShadowMc._xscale;
mg.traceClassObj.readyToRender(_local1.pos);
_local1.temp = Math.sqrt(((mg.ballClassObj.ballCd.z - _local1.playerCd.z) * (mg.ballClassObj.ballCd.z - _local1.playerCd.z)) + ((mg.ballClassObj.ballCd.x - _local1.playerCd.x) * (mg.ballClassObj.ballCd.x - _local1.playerCd.x)));
_local1.LR = (Math.acos((mg.ballClassObj.ballCd.x - _local1.playerCd.x) / _local1.temp) * 180) / Math.PI;
switch (_local1.types) {
case 0 :
_local1.UD = ((-49 / _local1.valueB) * _local1.temp) + 80;
_local1.RT = -0.8 * ((_local1.LR / 30) - 3);
_local1.DS = ((_local1.temp * 30) / 200) + 20;
break;
case 1 :
_local1.UD = ((-49 / _local1.valueB) * _local1.temp) + 50;
_local1.RT = -0.7 * ((_local1.LR / 30) - 3);
_local1.DS = ((_local1.temp * 30) / 200) + 20;
break;
case 2 :
_local1.UD = ((-49 / _local1.valueB) * _local1.temp) + 50;
_local1.RT = -1 * ((_local1.LR / 30) - 3);
_local1.DS = ((_local1.temp * 30) / 200) + 20;
}
_local1.LR = Math.floor(_local1.LR * 100) / 100;
_local1.UD = Math.floor(_local1.UD * 100) / 100;
_local1.RT = Math.floor(_local1.RT * 100) / 100;
_local1.DS = Math.floor(_local1.DS * 100) / 100;
mg.traceClassObj.kick(_local1.LR, _local1.UD, _local1.DS, _local1.RT);
_local1.angleBCP = (Math.acos((mg.ballClassObj.ballCd.x - _local1.playerCd.x) / _local1.temp) * 180) / Math.PI;
if (mg.ballClassObj.ballCd.z < _local1.playerCd.z) {
_local1.angleBCP = _local1.angleBCP * -1;
}
if (_local1.angleBCP > 360) {
_local1.angleBCP = _local1.angleBCP - 360;
}
if (_local1.angleBCP < 0) {
_local1.angleBCP = _local1.angleBCP + 360;
}
if ((_local1.angleBCP >= 0) && (_local1.angleBCP < 36)) {
_local1.direction = 0;
} else if ((_local1.angleBCP >= 36) && (_local1.angleBCP < 72)) {
_local1.direction = 21;
} else if ((_local1.angleBCP >= 72) && (_local1.angleBCP < 108)) {
_local1.direction = 42;
} else if ((_local1.angleBCP >= 108) && (_local1.angleBCP < 144)) {
_local1.direction = 63;
} else if ((_local1.angleBCP >= 144) && (_local1.angleBCP < 216)) {
_local1.direction = 84;
} else if ((_local1.angleBCP >= 216) && (_local1.angleBCP < 252)) {
_local1.direction = 63;
} else if ((_local1.angleBCP >= 252) && (_local1.angleBCP < 288)) {
_local1.direction = 42;
} else if ((_local1.angleBCP >= 288) && (_local1.angleBCP < 324)) {
_local1.direction = 21;
} else if (_local1.angleBCP >= 324) {
_local1.direction = 0;
}
_local1.aniFrameR = _local1.aniFrame + _local1.direction;
tellTarget (_local1) {
gotoAndStop(_local1.aniFrameR);
};
_local1.aniFrame++;
switch (_local1.aniFrame) {
case 2 :
_local1.aniFrame = 1;
return;
case 22 :
_local1.aniFrame = 1;
}
}
_local1.playerCd.x = mg.vr.pickVector.x;
_local1.playerCd.y = mg.vr.pickVector.y;
_local1.playerCd.z = mg.vr.pickVector.z;
_local1.playerCd.w = 1;
_local1.playerShCd.x = _local1.playerCd.x;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = _local1.playerCd.z;
_local1.playerShCd.w = 1;
_local1.dummy2.x = _local1.playerShCd.x + 100;
_local1.dummy2.y = _local1.playerShCd.y;
_local1.dummy2.z = _local1.playerShCd.z;
_local1.dummy2.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x) / _local1.scaleAd) * 100;
_local1._yscale = _local1._xscale;
mg.FASVec4MatrixMultiply(_local1.playerShCd, mg.vr.worldMatrix);
mg.scr.playerShadowMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr.playerShadowMc._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr.playerShadowMc._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr.playerShadowMc._x) / _local1.scaleAd) * 100;
mg.scr.playerShadowMc._yscale = mg.scr.playerShadowMc._xscale;
mg.traceClassObj.readyToRender(_local1.pos);
_local1.temp = Math.sqrt(((mg.ballClassObj.ballCd.z - _local1.playerCd.z) * (mg.ballClassObj.ballCd.z - _local1.playerCd.z)) + ((mg.ballClassObj.ballCd.x - _local1.playerCd.x) * (mg.ballClassObj.ballCd.x - _local1.playerCd.x)));
_local1.LR = (Math.acos((mg.ballClassObj.ballCd.x - _local1.playerCd.x) / _local1.temp) * 180) / Math.PI;
switch (_local1.types) {
case 0 :
_local1.UD = ((-49 / _local1.valueB) * _local1.temp) + 80;
_local1.RT = -0.8 * ((_local1.LR / 30) - 3);
_local1.DS = ((_local1.temp * 30) / 200) + 20;
break;
case 1 :
_local1.UD = ((-49 / _local1.valueB) * _local1.temp) + 50;
_local1.RT = -0.7 * ((_local1.LR / 30) - 3);
_local1.DS = ((_local1.temp * 30) / 200) + 20;
break;
case 2 :
_local1.UD = ((-49 / _local1.valueB) * _local1.temp) + 50;
_local1.RT = -1 * ((_local1.LR / 30) - 3);
_local1.DS = ((_local1.temp * 30) / 200) + 20;
}
_local1.LR = Math.floor(_local1.LR * 100) / 100;
_local1.UD = Math.floor(_local1.UD * 100) / 100;
_local1.RT = Math.floor(_local1.RT * 100) / 100;
_local1.DS = Math.floor(_local1.DS * 100) / 100;
mg.traceClassObj.kick(_local1.LR, _local1.UD, _local1.DS, _local1.RT);
_local1.angleBCP = (Math.acos((mg.ballClassObj.ballCd.x - _local1.playerCd.x) / _local1.temp) * 180) / Math.PI;
if (mg.ballClassObj.ballCd.z < _local1.playerCd.z) {
_local1.angleBCP = _local1.angleBCP * -1;
}
if (_local1.angleBCP > 360) {
_local1.angleBCP = _local1.angleBCP - 360;
}
if (_local1.angleBCP < 0) {
_local1.angleBCP = _local1.angleBCP + 360;
}
if ((_local1.angleBCP >= 0) && (_local1.angleBCP < 36)) {
_local1.direction = 0;
} else if ((_local1.angleBCP >= 36) && (_local1.angleBCP < 72)) {
_local1.direction = 21;
} else if ((_local1.angleBCP >= 72) && (_local1.angleBCP < 108)) {
_local1.direction = 42;
} else if ((_local1.angleBCP >= 108) && (_local1.angleBCP < 144)) {
_local1.direction = 63;
} else if ((_local1.angleBCP >= 144) && (_local1.angleBCP < 216)) {
_local1.direction = 84;
} else if ((_local1.angleBCP >= 216) && (_local1.angleBCP < 252)) {
_local1.direction = 63;
} else if ((_local1.angleBCP >= 252) && (_local1.angleBCP < 288)) {
_local1.direction = 42;
} else if ((_local1.angleBCP >= 288) && (_local1.angleBCP < 324)) {
_local1.direction = 21;
} else if (_local1.angleBCP >= 324) {
_local1.direction = 0;
}
_local1.aniFrameR = _local1.aniFrame + _local1.direction;
tellTarget (_local1) {
gotoAndStop(_local1.aniFrameR);
};
_local1.aniFrame++;
switch (_local1.aniFrame) {
case 2 :
_local1.aniFrame = 1;
return;
case 22 :
_local1.aniFrame = 1;
}
}
};
_local1.onMouseUp = function () {
var _local1 = this;
if (_local1.playerState != 2) {
} else {
_local1.playerState = 3;
_local1.temp = Math.sqrt(((mg.ballClassObj.ballCd.z - _local1.playerCd.z) * (mg.ballClassObj.ballCd.z - _local1.playerCd.z)) + ((mg.ballClassObj.ballCd.x - _local1.playerCd.x) * (mg.ballClassObj.ballCd.x - _local1.playerCd.x)));
if (_local1.temp == 0) {
_local1.playerState = 1;
} else {
_local1.LR = (Math.acos((mg.ballClassObj.ballCd.x - _local1.playerCd.x) / _local1.temp) * 180) / Math.PI;
switch (_local1.types) {
case 0 :
_local1.UD = ((-49 / _local1.valueB) * _local1.temp) + 80;
_local1.RT = -0.8 * ((_local1.LR / 30) - 3);
_local1.DS = ((_local1.temp * 30) / 200) + 20;
break;
case 1 :
_local1.UD = ((-49 / _local1.valueB) * _local1.temp) + 50;
_local1.RT = -0.7 * ((_local1.LR / 30) - 3);
_local1.DS = ((_local1.temp * 30) / 200) + 20;
break;
case 2 :
_local1.UD = ((-49 / _local1.valueB) * _local1.temp) + 50;
_local1.RT = -1 * ((_local1.LR / 30) - 3);
_local1.DS = ((_local1.temp * 30) / 200) + 20;
}
_local1.LR = Math.floor(_local1.LR * 100) / 100;
_local1.UD = Math.floor(_local1.UD * 100) / 100;
_local1.RT = Math.floor(_local1.RT * 100) / 100;
_local1.DS = Math.floor(_local1.DS * 100) / 100;
_local1.befKickX = _local1.playerCd.x;
_local1.befKickZ = _local1.playerCd.z;
_local1.befKickAngleBCP = _local1.angleBCP;
_local1.befKickTemp0 = _local1.temp;
_local1.GKX = mg.GKClassObj.playerCd.x;
_local1.GKLRVel = mg.GKClassObj.LRVel;
delete _local1.onMouseUp;
delete _local1.onMouseDown;
delete _local1.onMouseMove;
mg.interFaceMc.killButton();
mg.vr.limitTmFlag = 1;
if (mg.vr.limitTime == 5) {
mg.vr.limitTime = 4;
}
mg.vr.x2ScoreFlag = 0;
mg.vr.trialTime--;
mg.interFaceMc.showTry();
_local1.kick();
mg.traceClassObj.disappear();
mg.interFaceMc.upMove();
}
}
};
};
playerClass.prototype.kick = function () {
var _local1 = this;
_local1.aniFrame = 2;
switch (_local1.types) {
case 0 :
_local1.addpx = (Math.cos((Math.PI/180) * _local1.angleBCP) * _local1.temp) / 12;
_local1.addpz = (Math.sin((Math.PI/180) * _local1.angleBCP) * _local1.temp) / 12;
break;
case 1 :
_local1.addpx = (Math.cos((Math.PI/180) * _local1.angleBCP) * _local1.temp) / 24;
_local1.addpz = (Math.sin((Math.PI/180) * _local1.angleBCP) * _local1.temp) / 24;
break;
case 2 :
_local1.addpx = (Math.cos((Math.PI/180) * _local1.angleBCP) * _local1.temp) / 12;
_local1.addpz = (Math.sin((Math.PI/180) * _local1.angleBCP) * _local1.temp) / 12;
}
trace((((("this.angleBCP:" + _local1.angleBCP) + " this.addpx:") + _local1.addpx) + " this.addpz:") + _local1.addpz);
_local1.link();
};
playerClass.prototype.gogo = function () {
var _local1 = this;
_local1.playerCd.x = _local1.playerCd.x + _local1.addpx;
_local1.playerCd.y = 0;
_local1.playerCd.z = _local1.playerCd.z + _local1.addpz;
_local1.playerCd.w = 1;
_local1.playerCd.x = Math.floor(_local1.playerCd.x * 100) / 100;
_local1.playerCd.y = Math.floor(_local1.playerCd.y * 100) / 100;
_local1.playerCd.z = Math.floor(_local1.playerCd.z * 100) / 100;
_local1.playerShCd.x = _local1.playerCd.x;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = _local1.playerCd.z;
_local1.playerShCd.w = 1;
_local1.dummy2.x = _local1.playerShCd.x + 100;
_local1.dummy2.y = _local1.playerShCd.y;
_local1.dummy2.z = _local1.playerShCd.z;
_local1.dummy2.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x) / _local1.scaleAd) * 100;
_local1._yscale = _local1._xscale;
mg.FASVec4MatrixMultiply(_local1.playerShCd, mg.vr.worldMatrix);
mg.scr.playerShadowMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr.playerShadowMc._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr.playerShadowMc._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr.playerShadowMc._x) / _local1.scaleAd) * 100;
mg.scr.playerShadowMc._yscale = mg.scr.playerShadowMc._xscale;
_local1.aniFrameR = _local1.aniFrame + _local1.direction;
tellTarget (_local1) {
gotoAndStop(_local1.aniFrameR);
};
_local1.aniFrame++;
switch (_local1.aniFrame) {
case 2 :
_local1.aniFrame = 1;
return;
case 14 :
mg.ballClassObj.kick(_local1.LR, _local1.UD, _local1.DS, _local1.RT);
mg.vr.kickS.start(0, 1);
trace("=============================================" + mg.vr.itemSounDFlag);
switch (mg.vr.itemSounDFlag) {
case 1 :
mg.vr.kickFireS.start(0, 1);
mg.vr.itemSounDFlag = 0;
break;
case 2 :
mg.vr.kickUfoS.start(0, 1);
trace("==========================================UFO");
mg.vr.itemSounDFlag = 0;
break;
case 3 :
mg.vr.kickPreS.start(0, 1);
mg.vr.itemSounDFlag = 0;
}
switch (_local1.types) {
case 0 :
_local1.addpx = 0;
_local1.addpz = 0;
break;
case 1 :
_local1.addpx = _local1.addpx * 2;
_local1.addpz = _local1.addpz * 2;
break;
case 2 :
_local1.addpx = 0;
_local1.addpz = 0;
}
_local1.reduceEnergy();
return;
case 22 :
_local1.aniFrame = 1;
if (!(_local1.types === 1)) {
} else {
_local1.addpx = 0;
_local1.addpz = 0;
}
}
};
playerClass.prototype.disappear = function () {
var _local1 = this;
_local1._visible = 0;
mg.scr.playerShadowMc._visible = false;
_local1._x = 0;
_local1._y = 0;
_local1.playerState = 0;
delete _local1.onMouseDown;
delete _local1.onMouseUp;
delete _local1.onMouseMove;
if (mg.traceClassObj.stateRder == 1) {
mg.traceClassObj.disappear();
}
_local1.delink();
};
}
function traceClass() {
var _local1 = this;
traceClass.prototype.oneTimeInit = function () {
var _local1 = this;
_local1._visible = 0;
_local1._x = -100;
_local1._y = -100;
_local1.traceCd = new Object();
_local1.traceCd.x = 0;
_local1.traceCd.y = 0;
_local1.traceCd.z = 0;
_local1.traceCd.w = 1;
_local1.angleLR = 0;
_local1.angleUD = 0;
_local1.powerDis = 0;
_local1.angleRT = 0;
_local1.refThetaUD = 0;
_local1.refThetaLR = 0;
_local1.tanRt = 0;
_local1.addy = 0;
_local1.addz = 0;
_local1.addx = 0;
_local1.temp1 = 0;
_local1.temp2 = 0;
_local1.state = 0;
_local1.stateRder = 0;
_local1.i = 0;
_local1.maxFr = mg.vr.ballSpeed;
_local1.maxJ = 100;
_local1.penceFlag = 0;
_local1.postLFlag = 0;
_local1.postRFlag = 0;
_local1.postCFlag = 0;
_local1.goalFlag = 0;
_local1.aftNetFlag = 0;
_local1.gnetLRFlag = 0;
_local1.gnetSLFlag = 0;
_local1.gnetSRFlag = 0;
_local1.goLeftRight = 0;
_local1.penceIIFlag = 0;
};
traceClass.prototype.deleteC = function () {
delete this;
};
traceClass.prototype.readyBef = function () {
var _local1 = this;
_local1.refThetaUD = 0;
_local1.refThetaLR = 0;
_local1.temp1 = 0;
_local1.temp2 = 0;
_local1.tanRt = 0;
_local1.stateRder = 1;
_local1.penceFlag = 0;
_local1.postLFlag = 0;
_local1.postRFlag = 0;
_local1.postCFlag = 0;
_local1.goalFlag = 0;
_local1.aftNetFlag = 0;
_local1.gnetLRFlag = 0;
_local1.gnetSLFlag = 0;
_local1.gnetSRFlag = 0;
_local1.goLeftRight = 0;
_local1.penceIIFlag = 0;
_local1.maxFr = mg.vr.ballSpeed;
_local1.frameCount = 0;
_local1.maxJ = mg.vr.ITEMPREV;
};
traceClass.prototype.readyToRender = function (pos) {
var _local1 = this;
_local1.pos = Number(pos) % 10;
switch (_local1.pos) {
case 0 :
case 1 :
case 2 :
case 3 :
case 4 :
_local1.traceCd.x = 710 * Math.cos((Math.PI/180) * (270 + (15 * (_local1.pos - 2))));
_local1.traceCd.y = Number(0);
_local1.traceCd.z = 710 * Math.sin((Math.PI/180) * (270 + (15 * (_local1.pos - 2))));
_local1.traceCd.w = 1;
break;
case 5 :
case 6 :
case 7 :
case 8 :
case 9 :
_local1.traceCd.x = 810 * Math.cos((Math.PI/180) * (270 + (15 * (_local1.pos - 7))));
_local1.traceCd.y = Number(0);
_local1.traceCd.z = 810 * Math.sin((Math.PI/180) * (270 + (15 * (_local1.pos - 7))));
_local1.traceCd.w = 1;
}
_local1.readyBef();
};
traceClass.prototype.kick = function (LR, UD, DS, RT) {
var _local1 = this;
if ((_local1.state == 1) || (_local1.goalState == 0)) {
} else {
_local1.angleLR = Number(LR) * ((mg.vr.whoKickPlayer.energy / 500) + 0.8);
_local1.angleUD = Number(UD) * ((mg.vr.whoKickPlayer.energy / 500) + 0.8);
_local1.powerDis = Number(DS) * ((mg.vr.whoKickPlayer.energy / 500) + 0.8);
_local1.angleRT = Number(RT) * ((mg.vr.whoKickPlayer.energy / 500) + 0.8);
_local1.addy = _local1.powerDis * Math.tan((Math.PI/180) * _local1.angleUD);
_local1.befPowerDis = _local1.powerDis;
_local1.beftraceCdY = _local1.traceCd.y;
_local1.adjAngleUD = _local1.angleUD;
if (_local1.angleLR > 90) {
_local1.goLeftRight = 0;
} else {
_local1.goLeftRight = 1;
}
_local1.gogo();
}
};
traceClass.prototype.gogo = function () {
var _local1 = this;
_local1.j = 0;
while (_local1.j < _local1.maxJ) {
_local1.i = 0;
while (_local1.i < _local1.maxFr) {
_local1.frameCount++;
_local1.addz = _local1.powerDis * Math.sin((Math.PI/180) * _local1.angleLR);
_local1.addx = _local1.powerDis * Math.cos((Math.PI/180) * _local1.angleLR);
_local1.traceCd.y = _local1.traceCd.y + _local1.addy;
_local1.traceCd.z = _local1.traceCd.z + _local1.addz;
_local1.traceCd.x = _local1.traceCd.x + _local1.addx;
_local1.traceCd.x = Math.floor(_local1.traceCd.x * 100) / 100;
_local1.traceCd.y = Math.floor(_local1.traceCd.y * 100) / 100;
_local1.traceCd.z = Math.floor(_local1.traceCd.z * 100) / 100;
_local1.adjAngleUD = (Math.atan((_local1.traceCd.y - _local1.beftraceCdY) / (_local1.powerDis - _local1.befPowerDis)) * 180) / Math.PI;
_local1.adjAngleUD = Math.floor(_local1.adjAngleUD * 100) / 100;
if (_local1.traceCd.y >= 2000) {
_local1.traceCd.y = 1900;
_local1.addy = _local1.addy * -1;
} else if (_local1.traceCd.y <= 0) {
_local1.traceCd.y = 0;
_local1.addy = _local1.addy * -1;
}
_local1.befPowerDis = _local1.powerDis;
_local1.beftraceCdY = _local1.traceCd.y;
_local1.powerDis = _local1.powerDis * mg.vr.whoKickPlayer.powerDS;
_local1.addy = _local1.addy * mg.vr.whoKickPlayer.powerUD;
_local1.addy = _local1.addy - mg.vr.whoKickPlayer.gravityGS;
_local1.powerDis = Math.floor(_local1.powerDis * 100) / 100;
_local1.addy = Math.floor(_local1.addy * 100) / 100;
if (_local1.frameCount <= 50) {
switch (mg.vr.whoPlayer) {
case 0 :
_local1.angleLR = _local1.angleLR + ((_local1.angleRT * mg.vr.whoKickPlayer.curveDS) + (mg.vr.itemUfoCurve * (_local1.angleRT / Math.abs(_local1.angleRT))));
break;
case 1 :
_local1.angleLR = _local1.angleLR + ((_local1.angleRT * mg.vr.whoKickPlayer.curveDS) + (mg.vr.itemUfoCurve * (_local1.angleRT / Math.abs(_local1.angleRT))));
break;
case 2 :
_local1.angleLR = _local1.angleLR + ((_local1.angleRT * mg.vr.whoKickPlayer.curveDS) + (mg.vr.itemUfoCurve * (_local1.angleRT / Math.abs(_local1.angleRT))));
}
_local1.angleLR = Math.floor(_local1.angleLR * 100) / 100;
}
if (_local1.traceCd.z >= 0) {
if (((_local1.traceCd.x < -225) || (_local1.traceCd.x > 225)) || (_local1.traceCd.y > 205)) {
if (_local1.goalFlag != 3) {
_local1.goalFlag = 2;
}
}
if ((((_local1.traceCd.x > -205) && (_local1.traceCd.x < 205)) && (_local1.traceCd.y < 195)) && (_local1.goalFlag == 2)) {
if (((_local1.traceCd.z >= 80) && (_local1.traceCd.z <= 90)) && (_local1.aftNetFlag == 0)) {
_local1.angleLR = 360 - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.powerDis = _local1.powerDis * 0.1;
_local1.aftNetFlag = 1;
} else if ((_local1.traceCd.z < 80) && (_local1.traceCd.z > 90)) {
if (_local1.aftNetFlag == 1) {
_local1.aftNetFlag = 0;
}
}
}
if ((((_local1.traceCd.x > -205) && (_local1.traceCd.x < 205)) && (_local1.traceCd.y < 195)) && (_local1.goalFlag == 0)) {
_local1.goalFlag = 3;
}
}
switch (_local1.goalFlag) {
case 3 :
if (_local1.traceCd.z >= 90) {
_local1.traceCd.z = 89;
_local1.angleLR = 360 - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.powerDis = _local1.powerDis * 0.05;
_local1.goalFlag = 4;
}
break;
case 4 :
if (((_local1.traceCd.x >= 205) && (_local1.traceCd.z >= 0)) && (_local1.traceCd.z <= 90)) {
_local1.traceCd.x = 204;
_local1.angleLR = 180 - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.goalFlag = 5;
} else if (((_local1.traceCd.x <= -205) && (_local1.traceCd.z >= 0)) && (_local1.traceCd.z <= 90)) {
_local1.traceCd.x = -204;
_local1.angleLR = 180 - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.goalFlag = 5;
}
break;
default :
if ((((((_local1.traceCd.x >= -205) && (_local1.traceCd.x <= 205)) && (_local1.traceCd.Y < 205)) && (_local1.traceCd.Z >= 80)) && (_local1.traceCd.Z <= 100)) && (_local1.gnetLRFlag == 0)) {
_local1.angleLR = 360 - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.powerDis = _local1.powerDis * 0.05;
_local1.gnetLRFlag = 1;
} else if (((((_local1.traceCd.x < -205) && (_local1.traceCd.x > 205)) && (_local1.traceCd.Y >= 205)) && (_local1.traceCd.Z < 80)) && (_local1.traceCd.Z > 100)) {
if (_local1.gnetLRFlag == 1) {
_local1.gnetLRFlag = 0;
}
}
if ((((((_local1.traceCd.x >= -215) && (_local1.traceCd.x <= -175)) && (_local1.traceCd.Y < 205)) && (_local1.traceCd.Z >= 0)) && (_local1.traceCd.Z <= 90)) && (_local1.gnetSLFlag == 0)) {
_local1.angleLR = 180 - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.powerDis = _local1.powerDis * 0.05;
_local1.gnetSLFlag = 1;
} else if (((((_local1.traceCd.x < -215) && (_local1.traceCd.x > -175)) && (_local1.traceCd.Y >= 205)) && (_local1.traceCd.Z < 0)) && (_local1.traceCd.Z > 90)) {
if (_local1.gnetSLFlag == 1) {
_local1.gnetSLFlag = 0;
}
}
if ((((((_local1.traceCd.x <= 215) && (_local1.traceCd.x >= 175)) && (_local1.traceCd.Y < 205)) && (_local1.traceCd.Z >= 0)) && (_local1.traceCd.Z <= 90)) && (_local1.gnetSRFlag == 0)) {
_local1.angleLR = 180 - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.powerDis = _local1.powerDis * 0.05;
_local1.gnetSRFlag = 1;
} else {
if (!(((((_local1.traceCd.x > 215) && (_local1.traceCd.x < 175)) && (_local1.traceCd.Y >= 205)) && (_local1.traceCd.Z < 0)) && (_local1.traceCd.Z > 90))) {
break;
}
if (_local1.gnetSRFlag != 1) {
break;
}
_local1.gnetSRFlag = 0;
}
}
_local1.temp1 = (_local1.traceCd.z * _local1.traceCd.z) + ((_local1.traceCd.y - 200) * (_local1.traceCd.y - 200));
if ((((_local1.temp1 <= 100) && (_local1.traceCd.x >= -205)) && (_local1.traceCd.x <= 205)) && (_local1.postCFlag == 0)) {
_local1.tanRt = (_local1.traceCd.y - 200) / _local1.traceCd.z;
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaUD = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - _local1.angleUD;
_local1.refThetaUD = Math.floor(_local1.refThetaUD * 100) / 100;
_local1.angleLR = 360 - _local1.angleLR;
_local1.angleUD = (2 * _local1.refThetaUD) - _local1.angleUD;
_local1.angleLR = Math.floor(_local1.angleLR * 100) / 100;
_local1.angleUD = Math.floor(_local1.angleUD * 100) / 100;
_local1.powerDis = _local1.powerDis * 0.7;
_local1.postCFlag = 1;
trace("hit POST CENTER");
} else if (((_local1.temp1 > 100) || (_local1.traceCd.x < -205)) || (_local1.traceCd.x > 205)) {
if (_local1.postCFlag == 1) {
_local1.postCFlag = 0;
}
}
_local1.temp1 = (_local1.traceCd.z * _local1.traceCd.z) + ((_local1.traceCd.x + 215) * (_local1.traceCd.x + 215));
if (((((_local1.temp1 <= 100) && (_local1.traceCd.y >= 0)) && (_local1.traceCd.y <= 205)) && (_local1.postLFlag == 0)) && (_local1.postCFlag == 0)) {
_local1.tanRt = _local1.traceCd.z / (_local1.traceCd.x + 215);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - _local1.angleLR;
_local1.refThetaLR = Math.floor(_local1.refThetaLR * 100) / 100;
_local1.angleLR = (2 * _local1.refThetaLR) - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.angleLR = Math.floor(_local1.angleLR * 100) / 100;
_local1.angleUD = Math.floor(_local1.angleUD * 100) / 100;
_local1.powerDis = _local1.powerDis * 0.7;
_local1.postLFlag = 1;
trace("hit POST LEFT");
} else if (((_local1.temp1 > 100) || (_local1.traceCd.y < 0)) || (_local1.traceCd.y > 205)) {
if (_local1.postLFlag == 1) {
_local1.postLFlag = 0;
}
}
_local1.temp1 = (_local1.traceCd.z * _local1.traceCd.z) + ((_local1.traceCd.x - 215) * (_local1.traceCd.x - 215));
if (((((_local1.temp1 <= 100) && (_local1.traceCd.y >= 0)) && (_local1.traceCd.y <= 205)) && (_local1.postRFlag == 0)) && ((_local1.postCFlag + _local1.postLFlag) == 0)) {
_local1.tanRt = _local1.traceCd.z / (_local1.traceCd.x - 215);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - _local1.angleLR;
_local1.refThetaLR = Math.floor(_local1.refThetaLR * 100) / 100;
_local1.angleLR = (2 * _local1.refThetaLR) - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.angleLR = Math.floor(_local1.angleLR * 100) / 100;
_local1.angleUD = Math.floor(_local1.angleUD * 100) / 100;
_local1.powerDis = _local1.powerDis * 0.7;
_local1.postRFlag = 1;
trace("hit POST RIGHT");
} else if (((_local1.temp1 > 100) || (_local1.traceCd.y < 0)) || (_local1.traceCd.y > 205)) {
if (_local1.postRFlag == 1) {
_local1.postRFlag = 0;
}
}
if (((((_local1.traceCd.y >= 0) && (_local1.traceCd.y <= 150)) && (_local1.traceCd.z >= 220)) && (_local1.traceCd.z <= 250)) && (_local1.penceFlag == 0)) {
_local1.angleLR = 360 - _local1.angleLR;
_local1.powerDis = _local1.powerDis * 0.4;
_local1.penceFlag = 1;
trace("hit pence");
} else if (((_local1.traceCd.y > 150) && (_local1.traceCd.z < 220)) && (_local1.traceCd.z > 240)) {
if (_local1.penceFlag == 1) {
_local1.penceFlag = 0;
}
}
if (((((((_local1.traceCd.x >= -320) && (_local1.traceCd.x <= 320)) && (_local1.traceCd.y >= 150)) && (_local1.traceCd.y <= 350)) && (_local1.traceCd.z >= 220)) && (_local1.traceCd.z <= 250)) && (_local1.penceIIFlag == 0)) {
_local1.angleLR = 360 - _local1.angleLR;
_local1.powerDis = _local1.powerDis * 0.1;
_local1.penceIIFlag = 1;
trace("hit penceII");
} else if ((((((_local1.traceCd.x < -320) && (_local1.traceCd.x > 320)) && (_local1.traceCd.y < 150)) && (_local1.traceCd.y > 350)) && (_local1.traceCd.z < 220)) && (_local1.traceCd.z > 250)) {
if (_local1.penceIIFlag == 1) {
_local1.penceIIFlag = 0;
}
}
_local1.i++;
}
mg.traceSpotClassObj.gogo(_local1.traceCd.x, _local1.traceCd.y, _local1.traceCd.z);
mg.traceSpotClassShObj.gogo(_local1.traceCd.x, 0, _local1.traceCd.z);
_local1.j++;
}
mg.traceSpotClassObj.firstFlag = 0;
mg.traceSpotClassShObj.firstFlag = 0;
};
traceClass.prototype.disappear = function () {
var _local1 = this;
_local1._visible = 0;
_local1._x = -100;
_local1._y = -100;
_local1.stateRder = 0;
mg.traceSpotClassObj.disappear();
mg.traceSpotClassShObj.disappear();
};
}
function traceSpotClass() {
var _local1 = this;
traceSpotClass.prototype.oneTimeInit = function (pointer, cl, ap) {
var _local1 = this;
_local1.playerCd = new Object();
_local1.playerCd.x = 0;
_local1.playerCd.y = 0;
_local1.playerCd.z = 0;
_local1.playerCd.w = 1;
_local1.playerCdq = new Object();
_local1.playerCdq.x = 0;
_local1.playerCdq.y = 0;
_local1.playerCdq.z = 0;
_local1.playerCdq.w = 1;
_local1.px = 0;
_local1.py = 0;
_local1.pd = 0;
_local1.arrAgR = 0;
_local1.arrAgL = 0;
_local1.firstFlag = 0;
_local1.ap = ap;
_local1.cl = cl;
_local1.objMc = pointer;
_local1.objMc._x = 0;
_local1.objMc._y = 0;
trace("obj:" + _local1.objMc);
};
traceSpotClass.prototype.deleteC = function () {
removeMovieClip(this);
};
traceSpotClass.prototype.changeColor = function (cc) {
this.cl = cc;
};
traceSpotClass.prototype.gogo = function (xx, yy, zz) {
var _local1 = this;
_local1.playerCd.x = Number(xx);
_local1.playerCd.y = Number(yy);
_local1.playerCd.z = Number(zz);
_local1.playerCd.w = 1;
_local1.playerCdq.x = _local1.playerCd.x + 3;
_local1.playerCdq.y = _local1.playerCd.y;
_local1.playerCdq.z = _local1.playerCd.z;
_local1.playerCdq.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1.px = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1.py = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.playerCdq, mg.vr.worldMatrix);
_local1.pd = (mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1.px;
switch (_local1.firstFlag) {
case 0 :
_local1.firstFlag = 1;
_local1.objMc._visible = true;
_local1.objMc.clear();
_local1.objMc.lineStyle(2, _local1.cl, _local1.ap);
_local1.objMc.beginFill(_local1.cl);
_local1.objMc.moveTo(_local1.px, _local1.py + _local1.pd);
_local1.objMc.curveTo(_local1.px + _local1.pd, _local1.py + _local1.pd, _local1.px + _local1.pd, _local1.py);
_local1.objMc.curveTo(_local1.px + _local1.pd, _local1.py - _local1.pd, _local1.px, _local1.py - _local1.pd);
_local1.objMc.curveTo(_local1.px - _local1.pd, _local1.py - _local1.pd, _local1.px - _local1.pd, _local1.py);
_local1.objMc.curveTo(_local1.px - _local1.pd, _local1.py + _local1.pd, _local1.px + _local1.pd, _local1.py + _local1.pd);
_local1.objMc.endFill();
return;
default :
_local1.objMc.lineStyle(2, _local1.cl, _local1.ap);
_local1.objMc.beginFill(_local1.cl);
_local1.objMc.moveTo(_local1.px, _local1.py + _local1.pd);
_local1.objMc.curveTo(_local1.px + _local1.pd, _local1.py + _local1.pd, _local1.px + _local1.pd, _local1.py);
_local1.objMc.curveTo(_local1.px + _local1.pd, _local1.py - _local1.pd, _local1.px, _local1.py - _local1.pd);
_local1.objMc.curveTo(_local1.px - _local1.pd, _local1.py - _local1.pd, _local1.px - _local1.pd, _local1.py);
_local1.objMc.curveTo(_local1.px - _local1.pd, _local1.py + _local1.pd, _local1.px + _local1.pd, _local1.py + _local1.pd);
_local1.objMc.endFill();
}
};
traceSpotClass.prototype.drawArrow = function (xx, yy, zz) {
var _local1 = this;
var _local2 = zz;
var _local3 = yy;
_local1.arrAgR = mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].LR + 150;
_local1.arrAgL = mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].LR + 210;
_local1.playerCd.x = Number(xx) + (10 * Math.cos((Math.PI/180) * _local1.arrAgL));
_local1.playerCd.y = Number(_local3) + (10 * Math.sin((Math.PI/180) * (180 + mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].UD)));
_local1.playerCd.z = Number(_local2) + (10 * Math.sin((Math.PI/180) * _local1.arrAgL));
_local1.playerCd.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1.px = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1.py = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
_local1.objMc.moveTo(_local1.px, _local1.py);
_local1.playerCd.x = Number(xx);
_local1.playerCd.y = Number(_local3);
_local1.playerCd.z = Number(_local2);
_local1.playerCd.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1.px = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1.py = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
_local1.objMc.lineTo(_local1.px, _local1.py);
_local1.playerCd.x = Number(xx) + (10 * Math.cos((Math.PI/180) * _local1.arrAgR));
_local1.playerCd.y = Number(_local3) + (10 * Math.sin((Math.PI/180) * (180 + mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].UD)));
_local1.playerCd.z = Number(_local2) + (10 * Math.sin((Math.PI/180) * _local1.arrAgR));
_local1.playerCd.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1.px = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1.py = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
_local1.objMc.lineTo(_local1.px, _local1.py);
};
traceSpotClass.prototype.disappear = function () {
this.objMc._visible = false;
this.firstFlag = 0;
};
}
function helperClass() {
var _local1 = this;
helperClass.prototype.oneTimeInit = function (id) {
var _local1 = this;
_local1._visible = 0;
_local1._x = 0;
_local1._y = 0;
_local1.next = "n";
_local1.prev = "n";
_local1.playerCd = new Object();
_local1.playerCd.x = 0;
_local1.playerCd.y = 0;
_local1.playerCd.z = 0;
_local1.playerCd.w = 1;
_local1.dummy = new Object();
_local1.dummy.x = 0;
_local1.dummy.y = 0;
_local1.dummy.z = 0;
_local1.dummy.w = 1;
_local1.playerShCd = new Object();
_local1.playerShCd.x = 0;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = 0;
_local1.playerShCd.w = 1;
_local1.dummy2 = new Object();
_local1.dummy2.x = 0;
_local1.dummy2.y = 0;
_local1.dummy2.z = 0;
_local1.dummy2.w = 1;
_local1.xscaleAd = 1;
_local1.frameCount = 0;
_local1.maxFrame = 24;
tellTarget (_local1) {
gotoAndStop (1);
};
_local1.state = 0;
_local1.id = Number(id);
_local1.temp0 = 0;
_local1.tanRt = 0;
_local1.refThetaUD = 0;
_local1.refThetaLR = 0;
_local1.aniFrame = 1;
_local1.aniFrameR = 0;
_local1.direction = 0;
_local1.vel = 0;
_local1.headFlag = 0;
_local1.bodyFlag = 0;
_local1.legFlag = 0;
_local1.jumpFlag = 0;
_local1.sdFlag = 0;
_local1.dwCt = 0;
_local1.starMc._visible = false;
_local1.playerCd.x = 0;
_local1.playerCd.y = 0;
_local1.playerCd.z = -710;
_local1.playerCd.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1.scaleAd = Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x);
mg.objInsertStack(_local1.id, 4);
trace("ok.....helperClass:" + _local1.id);
};
helperClass.prototype.deleteC = function () {
removeMovieClip(this);
};
helperClass.prototype.link = function () {
var _local1 = this;
if (_local1.state == 1) {
} else {
_local1.state = 1;
mg.linkedListInsert(_local1);
}
};
helperClass.prototype.delink = function () {
var _local1 = this;
if (_local1.state == 0) {
} else {
_local1.state = 0;
mg.linkedListDelink(_local1);
mg.objInsertStack(_local1.id, 4);
}
};
helperClass.prototype.readyToRender = function (xx, zz, di) {
var _local1 = this;
_local1.temp0 = 0;
_local1.tanRt = 0;
_local1.refThetaUD = 0;
_local1.refThetaLR = 0;
_local1.aniFrame = 1;
_local1.aniFrameR = 0;
_local1.vel = 20;
_local1.headFlag = 0;
_local1.bodyFlag = 0;
_local1.legFlag = 0;
_local1.jumpFlag = 0;
_local1.dwCt = 0;
_local1.sdFlag = 0;
_local1.playerCd.x = Number(xx);
_local1.playerCd.y = 0;
_local1.playerCd.z = Number(zz);
_local1.playerCd.w = 1;
_local1.playerCd.x = Math.floor(_local1.playerCd.x * 100) / 100;
_local1.playerCd.y = Math.floor(_local1.playerCd.y * 100) / 100;
_local1.playerCd.z = Math.floor(_local1.playerCd.z * 100) / 100;
switch (di) {
case 2 :
case 7 :
case 12 :
_local1.direction = 0;
_local1.xscaleAd = 1;
break;
case 0 :
case 1 :
case 5 :
case 6 :
case 10 :
case 11 :
_local1.direction = 4;
_local1.xscaleAd = 1;
break;
case 3 :
case 4 :
case 8 :
case 9 :
case 13 :
case 14 :
_local1.direction = 4;
_local1.xscaleAd = -1;
}
_local1.playerShCd.x = _local1.playerCd.x;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = _local1.playerCd.z;
_local1.playerShCd.w = 1;
_local1.dummy2.x = _local1.playerShCd.x + 100;
_local1.dummy2.y = _local1.playerShCd.y;
_local1.dummy2.z = _local1.playerShCd.z;
_local1.dummy2.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1._xscale = ((Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x) / _local1.scaleAd) * 100) * _local1.xscaleAd;
_local1._yscale = Math.abs(_local1._xscale);
mg.FASVec4MatrixMultiply(_local1.playerShCd, mg.vr.worldMatrix);
mg.scr["helperShadowMc" + _local1.id]._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr["helperShadowMc" + _local1.id]._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr["helperShadowMc" + _local1.id]._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr["helperShadowMc" + _local1.id]._x) / _local1.scaleAd) * 100;
mg.scr["helperShadowMc" + _local1.id]._yscale = mg.scr["helperShadowMc" + _local1.id]._xscale;
_local1.aniFrameR = _local1.direction + _local1.aniFrame;
if (_local1.aniFrame == 7) {
_local1.aniFrameR = 7;
}
tellTarget (_local1) {
gotoAndStop(_local1.aniFrameR);
};
_local1.link();
_local1._visible = true;
mg.scr["helperShadowMc" + _local1.id]._visible = true;
};
helperClass.prototype.gogo = function () {
var _local1 = this;
if (((mg.ballClassObj.angleUD <= 10) && (_local1.jumpFlag == 0)) && (mg.vr.whoKickPlayer.aniFrame == 14)) {
_local1.aniFrame = 3;
_local1.jumpFlag = 1;
} else if ((_local1.jumpFlag == 0) && (mg.vr.whoKickPlayer.aniFrame == 14)) {
_local1.aniFrame = 2;
_local1.dwCt = 0;
_local1.jumpFlag = 2;
}
switch (_local1.jumpFlag) {
case 1 :
_local1.playerCd.y = _local1.playerCd.y + _local1.vel;
_local1.vel = _local1.vel * 0.98;
_local1.vel = _local1.vel - 0.2;
if (_local1.playerCd.y >= 100) {
_local1.playerCd.y = 100;
_local1.vel = _local1.vel * -1;
}
if (_local1.playerCd.y <= 0) {
_local1.playerCd.y = 0;
_local1.aniFrame = 1;
_local1.vel = 20;
_local1.jumpFlag = 9;
}
break;
case 2 :
_local1.dwCt++;
if (_local1.dwCt < 20) {
break;
}
_local1.aniFrame = 1;
_local1.jumpFlag = 9;
}
_local1.temp0 = ((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if (_local1.temp0 < 10000) {
trace("CHECK!");
_local1.temp0 = (((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + (((_local1.playerCd.y + 150) - mg.ballClassObj.ballCd.y) * ((_local1.playerCd.y + 150) - mg.ballClassObj.ballCd.y))) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if ((_local1.temp0 <= 1600) && (_local1.headFlag == 0)) {
trace("helper HEAD HIT!");
_local1.tanRt = ((mg.ballClassObj.ballCd.y - _local1.playerCd.y) - 150) / (mg.ballClassObj.ballCd.z - _local1.playerCd.z);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaUD = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleUD;
_local1.refThetaUD = Math.floor(_local1.refThetaUD * 100) / 100;
_local1.tanRt = (mg.ballClassObj.ballCd.z - _local1.playerCd.z) / (mg.ballClassObj.ballCd.x - _local1.playerCd.x);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleLR;
_local1.refThetaUD = Math.floor(_local1.refThetaUD * 100) / 100;
mg.ballClassObj.angleLR = (2 * _local1.refThetaLR) - mg.ballClassObj.angleLR;
mg.ballClassObj.angleUD = (2 * _local1.refThetaUD) - mg.ballClassObj.angleUD;
mg.ballClassObj.angleLR = Math.floor(mg.ballClassObj.angleLR * 100) / 100;
mg.ballClassObj.angleUD = Math.floor(mg.ballClassObj.angleUD * 100) / 100;
mg.ballClassObj.powerDis = mg.ballClassObj.powerDis * 0.96;
_local1.headFlag = 1;
} else if (_local1.temp0 > 1600) {
if (_local1.headFlag == 1) {
_local1.headFlag = 0;
}
}
_local1.temp0 = ((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if (((((_local1.temp0 <= 400) && (mg.ballClassObj.ballCd.y >= 50)) && (mg.ballClassObj.ballCd.y < 100)) && (_local1.bodyFlag == 0)) && (_local1.headFlag == 0)) {
trace("helper BODY HIT!");
_local1.tanRt = (mg.ballClassObj.ballCd.z - _local1.playerCd.z) / (mg.ballClassObj.ballCd.x - _local1.playerCd.x);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleLR;
_local1.refThetaLR = Math.floor(_local1.refThetaLR * 100) / 100;
mg.ballClassObj.angleLR = (2 * _local1.refThetaLR) - mg.ballClassObj.angleLR;
mg.ballClassObj.angleUD = 360 - mg.ballClassObj.angleUD;
mg.ballClassObj.angleLR = Math.floor(mg.ballClassObj.angleLR * 100) / 100;
mg.ballClassObj.angleUD = Math.floor(mg.ballClassObj.angleUD * 100) / 100;
mg.ballClassObj.powerDis = mg.ballClassObj.powerDis * 0.96;
_local1.bodyFlag = 1;
} else if (((_local1.temp0 > 400) || (mg.ballClassObj.ballCd.y < 50)) || (mg.ballClassObj.ballCd.y >= 100)) {
if (_local1.bodyFlag == 1) {
_local1.bodyFlag = 0;
}
}
_local1.temp0 = ((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if (((((_local1.temp0 <= 225) && (mg.ballClassObj.ballCd.y >= 0)) && (mg.ballClassObj.ballCd.y < 50)) && (_local1.legFlag == 0)) && ((_local1.headFlag + _local1.bodyFlag) == 0)) {
trace("helper LEG HIT!");
_local1.tanRt = (mg.ballClassObj.ballCd.z - _local1.playerCd.z) / (mg.ballClassObj.ballCd.x - _local1.playerCd.x);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleLR;
_local1.refThetaLR = Math.floor(_local1.refThetaLR * 100) / 100;
mg.ballClassObj.angleLR = (2 * _local1.refThetaLR) - mg.ballClassObj.angleLR;
mg.ballClassObj.angleUD = 360 - mg.ballClassObj.angleUD;
mg.ballClassObj.angleLR = Math.floor(mg.ballClassObj.angleLR * 100) / 100;
mg.ballClassObj.angleUD = Math.floor(mg.ballClassObj.angleUD * 100) / 100;
mg.ballClassObj.powerDis = mg.ballClassObj.powerDis * 0.96;
_local1.legFlag = 1;
} else if (((_local1.temp0 > 225) || (mg.ballClassObj.ballCd.y < 0)) || (mg.ballClassObj.ballCd.y >= 50)) {
if (_local1.legFlag == 1) {
_local1.legFlag = 0;
}
}
}
_local1.playerShCd.x = _local1.playerCd.x;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = _local1.playerCd.z;
_local1.playerShCd.w = 1;
_local1.dummy2.x = _local1.playerShCd.x + 100;
_local1.dummy2.y = _local1.playerShCd.y;
_local1.dummy2.z = _local1.playerShCd.z;
_local1.dummy2.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1._xscale = ((Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x) / _local1.scaleAd) * 100) * _local1.xscaleAd;
_local1._yscale = Math.abs(_local1._xscale);
mg.FASVec4MatrixMultiply(_local1.playerShCd, mg.vr.worldMatrix);
mg.scr["helperShadowMc" + _local1.id]._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr["helperShadowMc" + _local1.id]._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr["helperShadowMc" + _local1.id]._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr["helperShadowMc" + _local1.id]._x) / _local1.scaleAd) * 100;
mg.scr["helperShadowMc" + _local1.id]._yscale = mg.scr["helperShadowMc" + _local1.id]._xscale;
if (_local1.headFlag == 1) {
_local1.starMc._visible = true;
mg.scr["starEMc" + mg.objExtractStack(1)].readyToRender(mg.ballClassObj.ballCd.x, mg.ballClassObj.ballCd.y, mg.ballClassObj.ballCd.z);
_local1.headFlag = 0;
if ((_local1.sdFlag == 0) && (mg.ballClassObj.replayFlag == 0)) {
mg.vr.hitBodyS.start(0, 1);
_local1.sdFlag = 1;
}
}
if ((_local1.bodyFlag == 1) || (_local1.legFlag == 1)) {
mg.scr["starEMc" + mg.objExtractStack(1)].readyToRender(mg.ballClassObj.ballCd.x, mg.ballClassObj.ballCd.y, mg.ballClassObj.ballCd.z);
_local1.bodyFlag = 0;
_local1.legFlag = 0;
if ((_local1.sdFlag == 0) && (mg.ballClassObj.replayFlag == 0)) {
mg.vr.hitBodyS.start(0, 1);
_local1.sdFlag = 1;
}
}
_local1.aniFrameR = _local1.direction + _local1.aniFrame;
tellTarget (_local1) {
gotoAndStop(_local1.aniFrameR);
};
_local1.aniFrame++;
switch (_local1.aniFrame) {
case 2 :
_local1.aniFrame = 1;
return;
case 3 :
_local1.aniFrame = 2;
return;
case 5 :
_local1.aniFrame = 4;
}
};
helperClass.prototype.disappear = function () {
var _local1 = this;
_local1._visible = 0;
mg.scr["helperShadowMc" + _local1.id]._visible = false;
_local1._x = 0;
_local1._y = 0;
_local1.delink();
};
}
function helperHdClass() {
var _local1 = this;
helperHdClass.prototype.oneTimeInit = function (id) {
var _local1 = this;
_local1._visible = 0;
_local1._x = 0;
_local1._y = 0;
_local1.next = "n";
_local1.prev = "n";
_local1.xscaleAd = 1;
_local1.playerCd = new Object();
_local1.playerCd.x = 0;
_local1.playerCd.y = 0;
_local1.playerCd.z = 0;
_local1.playerCd.w = 1;
_local1.dummy = new Object();
_local1.dummy.x = 0;
_local1.dummy.y = 0;
_local1.dummy.z = 0;
_local1.dummy.w = 1;
_local1.playerShCd = new Object();
_local1.playerShCd.x = 0;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = 0;
_local1.playerShCd.w = 1;
_local1.dummy2 = new Object();
_local1.dummy2.x = 0;
_local1.dummy2.y = 0;
_local1.dummy2.z = 0;
_local1.dummy2.w = 1;
_local1.frameCount = 0;
_local1.maxFrame = 24;
tellTarget (_local1) {
gotoAndStop (1);
};
_local1.state = 0;
_local1.id = Number(id);
_local1.temp0 = 0;
_local1.tanRt = 0;
_local1.refThetaUD = 0;
_local1.refThetaLR = 0;
_local1.aniFrame = 1;
_local1.direction = 0;
_local1.vel = 0;
_local1.headFlag = 0;
_local1.bodyFlag = 0;
_local1.legFlag = 0;
_local1.jumpFlag = 0;
_local1.sdFlag = 0;
_local1.starMc._visible = false;
_local1.playerCd.x = 0;
_local1.playerCd.y = 0;
_local1.playerCd.z = -710;
_local1.playerCd.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1.scaleAd = Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x);
mg.objInsertStack(_local1.id, 5);
trace("ok.....helperHdClass:" + _local1.id);
};
helperHdClass.prototype.deleteC = function () {
removeMovieClip(this);
};
helperHdClass.prototype.link = function () {
var _local1 = this;
if (_local1.state == 1) {
} else {
_local1.state = 1;
mg.linkedListInsert(_local1);
}
};
helperHdClass.prototype.delink = function () {
var _local1 = this;
if (_local1.state == 0) {
} else {
_local1.state = 0;
mg.linkedListDelink(_local1);
mg.objInsertStack(_local1.id, 5);
}
};
helperHdClass.prototype.readyToRender = function (xx, zz) {
var _local1 = this;
_local1.temp0 = 0;
_local1.tanRt = 0;
_local1.refThetaUD = 0;
_local1.refThetaLR = 0;
_local1.aniFrame = 1;
_local1.direction = 0;
_local1.vel = 16;
_local1.headFlag = 0;
_local1.bodyFlag = 0;
_local1.legFlag = 0;
_local1.jumpFlag = 0;
_local1.sdFlag = 0;
_local1.playerCd.x = Number(xx);
_local1.playerCd.y = 0;
_local1.playerCd.z = Number(zz);
_local1.playerCd.w = 1;
_local1.playerCd.x = Math.floor(_local1.playerCd.x * 100) / 100;
_local1.playerCd.y = Math.floor(_local1.playerCd.y * 100) / 100;
_local1.playerCd.z = Math.floor(_local1.playerCd.z * 100) / 100;
if (_local1.playerCd.x >= 0) {
_local1.xscaleAd = 1;
} else {
_local1.xscaleAd = -1;
}
_local1.playerShCd.x = _local1.playerCd.x;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = _local1.playerCd.z;
_local1.playerShCd.w = 1;
_local1.dummy2.x = _local1.playerShCd.x + 100;
_local1.dummy2.y = _local1.playerShCd.y;
_local1.dummy2.z = _local1.playerShCd.z;
_local1.dummy2.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1._xscale = ((Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x) / _local1.scaleAd) * 100) * _local1.xscaleAd;
_local1._yscale = Math.abs(_local1._xscale);
mg.FASVec4MatrixMultiply(_local1.playerShCd, mg.vr.worldMatrix);
mg.scr["helperHdShadowMc" + _local1.id]._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr["helperHdShadowMc" + _local1.id]._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr["helperHdShadowMc" + _local1.id]._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr["helperHdShadowMc" + _local1.id]._x) / _local1.scaleAd) * 100;
mg.scr["helperHdShadowMc" + _local1.id]._yscale = mg.scr["helperHdShadowMc" + _local1.id]._xscale;
_local1.link();
_local1._visible = true;
mg.scr["helperHdShadowMc" + _local1.id]._visible = true;
};
helperHdClass.prototype.gogo = function () {
var _local1 = this;
if (!(_local1.jumpFlag === 1)) {
} else {
_local1.playerCd.y = _local1.playerCd.y + _local1.vel;
_local1.vel = _local1.vel * 0.98;
_local1.vel = _local1.vel - 0.2;
if (_local1.playerCd.y >= 100) {
_local1.playerCd.y = 100;
_local1.vel = _local1.vel * -1;
}
if (_local1.playerCd.y <= 0) {
_local1.playerCd.y = 0;
_local1.aniFrame = 1;
_local1.vel = 16;
_local1.jumpFlag = 0;
}
}
_local1.temp0 = ((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if (_local1.temp0 < 10000) {
trace("CHECK!");
if ((_local1.jumpFlag == 0) && (mg.ballClassObj.angleLR < 180)) {
if ((mg.ballClassObj.ballCd.y > 180) || (mg.ballClassObj.ballCd.y < 50)) {
_local1.aniFrame = 2;
_local1.jumpFlag = 1;
}
}
_local1.temp0 = (((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + (((_local1.playerCd.y + 150) - mg.ballClassObj.ballCd.y) * ((_local1.playerCd.y + 150) - mg.ballClassObj.ballCd.y))) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if ((_local1.temp0 <= 3600) && (_local1.headFlag == 0)) {
trace("helperHd HEAD HIT!");
_local1.tanRt = ((mg.ballClassObj.ballCd.y - _local1.playerCd.y) - 150) / (mg.ballClassObj.ballCd.z - _local1.playerCd.z);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaUD = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleUD;
_local1.refThetaUD = Math.floor(_local1.refThetaUD * 100) / 100;
_local1.tanRt = (mg.ballClassObj.ballCd.z - _local1.playerCd.z) / (mg.ballClassObj.ballCd.x - _local1.playerCd.x);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleLR;
_local1.refThetaUD = Math.floor(_local1.refThetaUD * 100) / 100;
mg.ballClassObj.angleLR = (2 * _local1.refThetaLR) - mg.ballClassObj.angleLR;
mg.ballClassObj.angleUD = (2 * _local1.refThetaUD) - mg.ballClassObj.angleUD;
mg.ballClassObj.angleLR = Math.floor(mg.ballClassObj.angleLR * 100) / 100;
mg.ballClassObj.angleUD = Math.floor(mg.ballClassObj.angleUD * 100) / 100;
if (mg.ballClassObj.angleLR > 360) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR - 360;
}
if (mg.ballClassObj.angleLR < 0) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR + 360;
}
if (mg.ballClassObj.angleLR > 180) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR * -1;
}
mg.ballClassObj.powerDis = mg.ballClassObj.powerDis * 1.7;
_local1.headFlag = 1;
mg.vr.headingFlag = 1;
} else if (_local1.temp0 > 2500) {
if (_local1.headFlag == 1) {
_local1.headFlag = 9;
}
}
_local1.temp0 = ((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if (((((_local1.temp0 <= 625) && (mg.ballClassObj.ballCd.y >= 50)) && (mg.ballClassObj.ballCd.y < 100)) && (_local1.bodyFlag == 0)) && (_local1.headFlag == 0)) {
trace("helperHd BODY HIT!");
_local1.tanRt = (mg.ballClassObj.ballCd.z - _local1.playerCd.z) / (mg.ballClassObj.ballCd.x - _local1.playerCd.x);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleLR;
_local1.refThetaUD = Math.floor(_local1.refThetaUD * 100) / 100;
mg.ballClassObj.angleLR = (2 * _local1.refThetaLR) - mg.ballClassObj.angleLR;
mg.ballClassObj.angleUD = 360 - mg.ballClassObj.angleUD;
mg.ballClassObj.angleLR = Math.floor(mg.ballClassObj.angleLR * 100) / 100;
mg.ballClassObj.angleUD = Math.floor(mg.ballClassObj.angleUD * 100) / 100;
if (mg.ballClassObj.angleLR > 360) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR - 360;
}
if (mg.ballClassObj.angleLR < 0) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR + 360;
}
if (mg.ballClassObj.angleLR > 180) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR * -1;
}
mg.ballClassObj.powerDis = mg.ballClassObj.powerDis * 0.96;
_local1.bodyFlag = 1;
} else if (((_local1.temp0 > 625) || (mg.ballClassObj.ballCd.y < 50)) || (mg.ballClassObj.ballCd.y >= 100)) {
if (_local1.bodyFlag == 1) {
_local1.bodyFlag = 9;
}
}
_local1.temp0 = ((_local1.playerCd.x - mg.ballClassObj.ballCd.x) * (_local1.playerCd.x - mg.ballClassObj.ballCd.x)) + ((_local1.playerCd.z - mg.ballClassObj.ballCd.z) * (_local1.playerCd.z - mg.ballClassObj.ballCd.z));
if (((((_local1.temp0 <= 400) && (mg.ballClassObj.ballCd.y >= 0)) && (mg.ballClassObj.ballCd.y < 50)) && (_local1.legFlag == 0)) && ((_local1.headFlag + _local1.bodyFlag) == 0)) {
trace("helperHd LEG HIT!");
_local1.tanRt = (mg.ballClassObj.ballCd.z - _local1.playerCd.z) / (mg.ballClassObj.ballCd.x - _local1.playerCd.x);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - mg.ballClassObj.angleLR;
_local1.refThetaUD = Math.floor(_local1.refThetaUD * 100) / 100;
mg.ballClassObj.angleLR = (2 * _local1.refThetaLR) - mg.ballClassObj.angleLR;
mg.ballClassObj.angleUD = 360 - mg.ballClassObj.angleUD;
mg.ballClassObj.angleLR = Math.floor(mg.ballClassObj.angleLR * 100) / 100;
mg.ballClassObj.angleUD = Math.floor(mg.ballClassObj.angleUD * 100) / 100;
if (mg.ballClassObj.angleLR > 360) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR - 360;
}
if (mg.ballClassObj.angleLR < 0) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR + 360;
}
if (mg.ballClassObj.angleLR > 180) {
mg.ballClassObj.angleLR = mg.ballClassObj.angleLR * -1;
}
mg.ballClassObj.powerDis = mg.ballClassObj.powerDis * 0.96;
_local1.legFlag = 1;
} else if (((_local1.temp0 > 225) || (mg.ballClassObj.ballCd.y < 0)) || (mg.ballClassObj.ballCd.y >= 50)) {
if (_local1.legFlag == 1) {
_local1.legFlag = 9;
}
}
}
_local1.playerShCd.x = _local1.playerCd.x;
_local1.playerShCd.y = 0;
_local1.playerShCd.z = _local1.playerCd.z;
_local1.playerShCd.w = 1;
_local1.dummy2.x = _local1.playerShCd.x + 100;
_local1.dummy2.y = _local1.playerShCd.y;
_local1.dummy2.z = _local1.playerShCd.z;
_local1.dummy2.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1._xscale = ((Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x) / _local1.scaleAd) * 100) * _local1.xscaleAd;
_local1._yscale = Math.abs(_local1._xscale);
mg.FASVec4MatrixMultiply(_local1.playerShCd, mg.vr.worldMatrix);
mg.scr["helperHdShadowMc" + _local1.id]._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr["helperHdShadowMc" + _local1.id]._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr["helperHdShadowMc" + _local1.id]._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - mg.scr["helperHdShadowMc" + _local1.id]._x) / _local1.scaleAd) * 100;
mg.scr["helperHdShadowMc" + _local1.id]._yscale = mg.scr["helperHdShadowMc" + _local1.id]._xscale;
if (_local1.headFlag == 1) {
_local1.aniFrame = 2;
_local1.headFlag = 0;
if ((_local1.sdFlag == 0) && (mg.ballClassObj.replayFlag == 0)) {
mg.vr.headingS.start(0, 1);
_local1.sdFlag = 1;
}
}
if ((_local1.bodyFlag == 1) || (_local1.legFlag == 1)) {
_local1.aniFrame = 1;
mg.scr["starEMc" + mg.objExtractStack(1)].readyToRender(mg.ballClassObj.ballCd.x, mg.ballClassObj.ballCd.y, mg.ballClassObj.ballCd.z);
_local1.bodyFlag = 0;
_local1.legFlag = 0;
}
_local1.aniFrameR = _local1.aniFrame + _local1.direction;
tellTarget (_local1) {
gotoAndStop(_local1.aniFrameR);
};
};
helperHdClass.prototype.disappear = function () {
var _local1 = this;
_local1._visible = 0;
mg.scr["helperHdShadowMc" + _local1.id]._visible = false;
_local1._x = 0;
_local1._y = 0;
_local1.delink();
mg.vr.headingFlag = 0;
};
}
function linkedListInsert(pointer) {
var _local1 = pointer;
if (mg.vr.linkedTail == "n") {
mg.vr.linkedTail = _local1;
mg.vr.linkedHead = _local1;
_local1.prev = "n";
_local1.next = "n";
} else {
mg.vr.linkedTail.next = poiner;
var _local2 = mg.vr.linkedTail;
_local2.next = _local1;
_local1.prev = mg.vr.linkedTail;
_local1.next = "n";
mg.vr.linkedTail = _local1;
}
}
function linkedListDelink(pointer) {
var _local1 = pointer;
if ((_local1 == mg.vr.linkedHead) && (_local1 == mg.vr.linkedTail)) {
mg.vr.linkedTail = "n";
mg.vr.linkedHead = "n";
} else if (_local1 == mg.vr.linkedTail) {
_local1.prev.next = "n";
mg.vr.linkedTail = _local1.prev;
} else if (_local1 == mg.vr.linkedHead) {
mg.vr.linkedHead = _local1.next;
} else {
_local1.prev.next = _local1.next;
_local1.next.prev = _local1.prev;
}
}
function linkedListInsertTrace(pointer) {
var _local1 = pointer;
if (mg.vr.linkedTailTrace == "n") {
mg.vr.linkedTailTrace = _local1;
mg.vr.linkedHeadTrace = _local1;
_local1.prev = "n";
_local1.next = "n";
} else {
mg.vr.linkedTailTrace.next = poiner;
var _local2 = mg.vr.linkedTailTrace;
_local2.next = _local1;
_local1.prev = mg.vr.linkedTailTrace;
_local1.next = "n";
mg.vr.linkedTailTrace = _local1;
}
}
function linkedListDelinkTrace(pointer) {
var _local1 = pointer;
if ((_local1 == mg.vr.linkedHeadTrace) && (_local1 == mg.vr.linkedTailTrace)) {
mg.vr.linkedTailTrace = "n";
mg.vr.linkedHeadTrace = "n";
} else if (_local1 == mg.vr.linkedTailTrace) {
_local1.prev.next = "n";
mg.vr.linkedTailTrace = _local1.prev;
} else if (_local1 == mg.vr.linkedHeadTrace) {
mg.vr.linkedHeadTrace = _local1.next;
} else {
_local1.prev.next = _local1.next;
_local1.next.prev = _local1.prev;
}
}
function objInsertStack(id, types) {
var _local1 = types;
mg.vr[("obj" + _local1) + "Stack"][mg.vr[("obj" + _local1) + "PushIndex"]] = id;
mg.vr[("obj" + _local1) + "PushIndex"] = mg.vr[("obj" + _local1) + "PushIndex"] + 1;
}
function objExtractStack(types) {
var _local1 = types;
if (mg.vr[("obj" + _local1) + "PushIndex"] == 0) {
return(-1);
}
var _local2;
_local2 = mg.vr[("obj" + _local1) + "Stack"][mg.vr[("obj" + _local1) + "PushIndex"] - 1];
mg.vr[("obj" + _local1) + "PushIndex"] = mg.vr[("obj" + _local1) + "PushIndex"] - 1;
return(_local2);
}
function drawPost() {
mg.createEmptyMovieClip("objectPostMc", 520);
var obc = new Object();
var p0 = new Object();
p0.x = 0;
p0.y = 0;
p0.z = 0;
p0.w = 1;
var p1 = new Object();
p1.x = 0;
p1.y = 0;
p1.z = 0;
p1.w = 1;
var p2 = new Object();
p2.x = 0;
p2.y = 0;
p2.z = 0;
p2.w = 1;
var p3 = new Object();
p3.x = 0;
p3.y = 0;
p3.z = 0;
p3.w = 1;
obc.x = -205;
obc.y = 200;
obc.z = 0;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p0.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p0.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
obc.x = -205;
obc.y = 0;
obc.z = 0;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p1.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p1.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
obc.x = 205;
obc.y = 0;
obc.z = 0;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p2.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p2.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
obc.x = 205;
obc.y = 200;
obc.z = 0;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p3.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p3.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
with (mg.objectPostMc) {
lineStyle(1, 16711935, 100);
moveTo(p0.x, p0.y);
lineTo(p1.x, p1.y);
lineTo(p2.x, p2.y);
lineTo(p3.x, p3.y);
lineTo(p0.x, p0.y);
}
delete p0;
delete p1;
delete p2;
delete p3;
delete obc;
}
function drawEnemy() {
mg.createEmptyMovieClip("objectEnemyMc", 543);
var obc = new Object();
var p0 = new Object();
p0.x = 0;
p0.y = 0;
p0.z = 0;
p0.w = 1;
var p1 = new Object();
p1.x = 0;
p1.y = 0;
p1.z = 0;
p1.w = 1;
var p2 = new Object();
p2.x = 0;
p2.y = 0;
p2.z = 0;
p2.w = 1;
var p3 = new Object();
p3.x = 0;
p3.y = 0;
p3.z = 0;
p3.w = 1;
obc.x = -15;
obc.y = 200;
obc.z = -500;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p0.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p0.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
obc.x = -15;
obc.y = 0;
obc.z = -500;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p1.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p1.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
obc.x = 15;
obc.y = 0;
obc.z = -500;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p2.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p2.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
obc.x = 15;
obc.y = 200;
obc.z = -500;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p3.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p3.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
with (mg.objectEnemyMc) {
lineStyle(1, 16711935, 100);
moveTo(p0.x, p0.y);
lineTo(p1.x, p1.y);
lineTo(p2.x, p2.y);
lineTo(p3.x, p3.y);
lineTo(p0.x, p0.y);
}
delete p0;
delete p1;
delete p2;
delete p3;
delete obc;
}
function drawPence() {
mg.createEmptyMovieClip("objectPenceMc", 523);
var obc = new Object();
var p0 = new Object();
p0.x = 0;
p0.y = 0;
p0.z = 0;
p0.w = 1;
var p1 = new Object();
p1.x = 0;
p1.y = 0;
p1.z = 0;
p1.w = 1;
var p2 = new Object();
p2.x = 0;
p2.y = 0;
p2.z = 0;
p2.w = 1;
var p3 = new Object();
p3.x = 0;
p3.y = 0;
p3.z = 0;
p3.w = 1;
obc.x = -320;
obc.y = 350;
obc.z = 220;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p0.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p0.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
obc.x = -320;
obc.y = 150;
obc.z = 220;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p1.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p1.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
obc.x = 320;
obc.y = 150;
obc.z = 220;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p2.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p2.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
obc.x = 320;
obc.y = 350;
obc.z = 220;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p3.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p3.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
with (mg.objectPenceMc) {
lineStyle(1, 16711935, 100);
moveTo(p0.x, p0.y);
lineTo(p1.x, p1.y);
lineTo(p2.x, p2.y);
lineTo(p3.x, p3.y);
lineTo(p0.x, p0.y);
}
delete p0;
delete p1;
delete p2;
delete p3;
delete obc;
}
function drawPosition() {
var _local1 = 15;
mg.drawTemp(700 * Math.cos((Math.PI/180) * (270 - (_local1 * 2))), 700 * Math.sin((Math.PI/180) * (270 - (_local1 * 2))), 2991);
mg.drawTemp(700 * Math.cos((Math.PI/180) * (270 - _local1)), 700 * Math.sin((Math.PI/180) * (270 - _local1)), 2992);
mg.drawTemp(-1.2858366715135E-13, -700, 2993);
mg.drawTemp(700 * Math.cos((Math.PI/180) * (270 + _local1)), 700 * Math.sin((Math.PI/180) * (270 + _local1)), 2994);
mg.drawTemp(700 * Math.cos((Math.PI/180) * (270 + (_local1 * 2))), 700 * Math.sin((Math.PI/180) * (270 + (_local1 * 2))), 2995);
mg.drawTemp(800 * Math.cos((Math.PI/180) * (270 - (_local1 * 2))), 800 * Math.sin((Math.PI/180) * (270 - (_local1 * 2))), 2996);
mg.drawTemp(800 * Math.cos((Math.PI/180) * (270 - _local1)), 800 * Math.sin((Math.PI/180) * (270 - _local1)), 2997);
mg.drawTemp(-1.46952762458685E-13, -800, 2998);
mg.drawTemp(800 * Math.cos((Math.PI/180) * (270 + _local1)), 800 * Math.sin((Math.PI/180) * (270 + _local1)), 2999);
mg.drawTemp(800 * Math.cos((Math.PI/180) * (270 + (_local1 * 2))), 800 * Math.sin((Math.PI/180) * (270 + (_local1 * 2))), 3000);
}
function drawTemp(xx, zz, dep) {
mg.createEmptyMovieClip("tempMc" + dep, dep);
var obc = new Object();
var p0 = new Object();
p0.x = 0;
p0.y = 0;
p0.z = 0;
p0.w = 1;
var p1 = new Object();
p1.x = 0;
p1.y = 0;
p1.z = 0;
p1.w = 1;
var p2 = new Object();
p2.x = 0;
p2.y = 0;
p2.z = 0;
p2.w = 1;
var p3 = new Object();
p3.x = 0;
p3.y = 0;
p3.z = 0;
p3.w = 1;
obc.x = xx - 10;
obc.y = 0;
obc.z = zz - 10;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p0.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p0.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
obc.x = xx - 10;
obc.y = 0;
obc.z = zz + 10;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p2.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p2.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
obc.x = xx + 10;
obc.y = 0;
obc.z = zz + 10;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p1.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p1.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
obc.x = xx + 10;
obc.y = 0;
obc.z = zz - 10;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p3.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p3.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
with (mg["tempMc" + dep]) {
lineStyle(1, 16711935, 100);
moveTo(p0.x, p0.y);
lineTo(p1.x, p1.y);
lineTo(p2.x, p2.y);
lineTo(p3.x, p3.y);
lineTo(p0.x, p0.y);
}
delete p0;
delete p1;
delete p2;
delete p3;
delete obc;
}
function drawMousePoint(xx, yy, zz) {
mg.scr.createEmptyMovieClip("mousePointMc", 3001);
var obc = new Object();
var p0 = new Object();
p0.x = 0;
p0.y = 0;
p0.z = 0;
p0.w = 1;
var p1 = new Object();
p1.x = 0;
p1.y = 0;
p1.z = 0;
p1.w = 1;
var p2 = new Object();
p2.x = 0;
p2.y = 0;
p2.z = 0;
p2.w = 1;
var p3 = new Object();
p3.x = 0;
p3.y = 0;
p3.z = 0;
p3.w = 1;
obc.x = xx - 10;
obc.y = yy;
obc.z = zz - 10;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p0.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p0.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
obc.x = xx - 10;
obc.y = yy;
obc.z = zz + 10;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p2.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p2.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
obc.x = xx + 10;
obc.y = yy;
obc.z = zz + 10;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p1.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p1.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
obc.x = xx + 10;
obc.y = yy;
obc.z = zz - 10;
obc.w = 1;
mg.FASVec4MatrixMultiply(obc, mg.vr.worldMatrix);
p3.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p3.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
with (mg.scr.mousePointMc) {
lineStyle(1, 16711935, 100);
moveTo(p0.x, p0.y);
lineTo(p1.x, p1.y);
lineTo(p2.x, p2.y);
lineTo(p3.x, p3.y);
lineTo(p0.x, p0.y);
}
delete p0;
delete p1;
delete p2;
delete p3;
delete obc;
}
function BGClass() {
var _local1 = this;
BGClass.prototype.oneTimeInit = function () {
var _local1 = this;
_local1._visible = 0;
_local1._x = 0;
_local1._y = 0;
_local1.next = "n";
_local1.prev = "n";
_local1.frameCount = 0;
_local1.maxFrame = 24;
tellTarget (_local1) {
gotoAndStop (2);
};
_local1.aniFrame = 1;
_local1.state = 0;
_local1.pos = 0;
mg.scr.penceMc.watchMc.gotoAndStop(1);
trace("ok.....BGClass");
};
BGClass.prototype.deleteC = function () {
removeMovieClip(this);
};
BGClass.prototype.link = function () {
var _local1 = this;
if (_local1.state == 1) {
} else {
_local1.state = 1;
mg.linkedListInsert(_local1);
}
};
BGClass.prototype.delink = function () {
var _local1 = this;
if (_local1.state == 0) {
} else {
_local1.state = 0;
mg.linkedListDelink(_local1);
}
};
BGClass.prototype.readyToRender = function (types, rf) {
var _local1 = this;
trace("BG readyToRender");
_local1.pos = Math.floor(types / 10);
_local1._visible = true;
mg.scr.goalPostMc.goalPostInMc.gotoAndStop(1);
switch (_local1.pos) {
case 0 :
_local1.aniFrame = 1;
mg.scr.goalPostMc._x = 354;
mg.scr.penceMc.gotoAndStop(1);
break;
case 1 :
_local1.aniFrame = 2;
mg.scr.goalPostMc._x = 250;
mg.scr.penceMc.gotoAndStop(2);
break;
case 2 :
_local1.aniFrame = 3;
mg.scr.goalPostMc._x = 146;
mg.scr.penceMc.gotoAndStop(3);
}
tellTarget (_local1) {
gotoAndStop(_local1.aniFrame);
};
mg.scr.penceMc.watchMc.gotoAndStop(1);
if ((((mg.vr.gameProcNum % 10) >= 3) && (rf == 0)) && (mg.vr.x2ScoreFlag == 1)) {
tellTarget (mg.scr.goalPostMc.doubleMc) {
gotoAndStop(random(3) + 1);
};
mg.scr.goalPostMc.doubleMc._visible = true;
} else {
mg.scr.goalPostMc.doubleMc._visible = false;
}
};
BGClass.prototype.gogo = function () {
};
BGClass.prototype.disappear = function () {
var _local1 = this;
_local1._visible = 0;
_local1._x = 0;
_local1._y = 0;
_local1.state = 0;
mg.scr.penceMc.watchMc.gotoAndStop(1);
};
}
function selectClass() {
var _local1 = this;
selectClass.prototype.oneTimeInit = function () {
var _local1 = this;
_local1._visible = 0;
_local1._x = -500;
_local1._y = 0;
_local1.frameCount = 0;
tellTarget (_local1) {
gotoAndStop (1);
};
tellTarget (_local1.chrMc) {
gotoAndStop (1);
};
tellTarget (_local1.prfMc.nameMc) {
gotoAndStop (1);
};
tellTarget (_local1.chrMc.beckMc) {
gotoAndStop (1);
};
tellTarget (_local1.chrMc.kalMc) {
gotoAndStop (1);
};
tellTarget (_local1.chrMc.parkMc) {
gotoAndStop (1);
};
_local1.aniFrame = 13;
_local1.aniFrameR = 0;
_local1.sc = 1;
_local1.readyToRender();
};
selectClass.prototype.deleteC = function () {
removeMovieClip(this);
};
selectClass.prototype.readyToRender = function () {
var _local1 = this;
_local1._visible = true;
_local1._x = 0;
_local1._y = 0;
mg.vr.goalInS.start(0, 999);
_local1.sc = 1;
};
selectClass.prototype.nextB = function () {
var _local1 = this;
_local1.sc++;
if (_local1.sc == 4) {
_local1.sc = 1;
}
tellTarget (_local1.prfMc.nameMc) {
gotoAndStop(_local1.sc);
};
_local1.aniFrame = 1;
switch (_local1.sc) {
case 1 :
_local1.direction = 24;
break;
case 2 :
_local1.direction = 0;
break;
case 3 :
_local1.direction = 12;
}
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.aniFrameR = _local1.aniFrame + _local1.direction;
tellTarget (_local1.chrMc) {
gotoAndStop(_local1.aniFrameR);
};
_local1.aniFrame++;
if (!(_local1.aniFrame === 13)) {
} else {
_local1.onEnterFrame = null;
delete _local1.onEnterFrame;
}
};
};
selectClass.prototype.prevB = function () {
var _local1 = this;
_local1.sc--;
if (_local1.sc == 0) {
_local1.sc = 3;
}
tellTarget (_local1.prfMc.nameMc) {
gotoAndStop(_local1.sc);
};
_local1.aniFrame = 12;
_local1.aniFrameR = 0;
switch (_local1.sc) {
case 1 :
_local1.direction = 0;
break;
case 2 :
_local1.direction = 12;
break;
case 3 :
_local1.direction = 24;
}
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.aniFrameR = _local1.aniFrame + _local1.direction;
trace("this.aniFrame:" + _local1.aniFrame);
tellTarget (_local1.chrMc) {
if (_local1.aniFrameR != 0) {
gotoAndStop(_local1.aniFrameR);
}
};
_local1.aniFrame--;
if (!(_local1.aniFrame === -1)) {
} else {
_local1.onEnterFrame = null;
delete _local1.onEnterFrame;
}
};
};
selectClass.prototype.selectB = function () {
this.okNextProcess();
};
selectClass.prototype.nextScB = function () {
this.okNextProcess();
};
selectClass.prototype.okNextProcess = function () {
var _local1 = this;
if ((_local1.aniFrame == -1) || (_local1.aniFrame == 13)) {
switch (_local1.sc) {
case 1 :
tellTarget (_local1.chrMc.beckMc) {
gotoAndPlay (2);
};
mg.vr.whoPlayer = 2;
break;
case 2 :
tellTarget (_local1.chrMc.parkMc) {
gotoAndPlay (2);
};
mg.vr.whoPlayer = 0;
break;
case 3 :
tellTarget (_local1.chrMc.kalMc) {
gotoAndPlay (2);
};
mg.vr.whoPlayer = 1;
}
_local1.aniFrame = 0;
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.aniFrame++;
if (!(_local1.aniFrame === 8)) {
} else {
_local1.onEnterFrame = null;
delete _local1.onEnterFrame;
mg.gameProcess_flag = 4;
mg.gameMainCenter(mg);
mg.gameProcess_flag = 3;
mg.gameMainCenter(mg);
mg.gameProcess_flag = 5;
mg.gameMainCenter(mg);
_local1.disappear();
}
};
}
};
selectClass.prototype.disappear = function () {
var _local1 = this;
_local1._visible = 0;
_local1._x = -500;
_local1._y = 0;
mg.vr.goalInS.stop("goalInSD");
_local1.state = 0;
_local1.deleteC();
};
}
function CEREClass() {
var _local1 = this;
CEREClass.prototype.oneTimeInit = function () {
var _local1 = this;
_local1._visible = 0;
_local1.cBgMc._visible = false;
_local1._x = -500;
_local1._y = 0;
_local1.frameCount = 0;
tellTarget (_local1) {
gotoAndStop (1);
};
tellTarget (_local1.chrMc) {
gotoAndStop (1);
};
tellTarget (_local1.repAMc) {
gotoAndStop (1);
};
tellTarget (_local1.retAMc) {
gotoAndStop (1);
};
tellTarget (_local1.nexAMc) {
gotoAndStop (1);
};
tellTarget (_local1.repTxtMc) {
gotoAndStop (1);
};
_local1.retryBTMc._visible = false;
_local1.retryBTMc._y = -100;
_local1.retAMc._visible = false;
_local1.retAMc._y = -100;
_local1.nextBTMc._visible = false;
_local1.nextBTMc._y = -100;
_local1.nexAMc._visible = false;
_local1.nexAMc._y = -100;
_local1.x2Mc._visible = false;
_local1.ststMc._visible = false;
_local1.repTxtMc._visible = false;
_local1.state = 0;
_local1.aniFrame = 1;
};
CEREClass.prototype.deleteC = function () {
removeMovieClip(this);
};
CEREClass.prototype.readyToRender = function (types) {
var _local1 = this;
trace("TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT");
_local1.replayState = 0;
_local1.replayBTMc._visible = true;
_local1.repAMc._visible = true;
mg.interFaceMc.pauseG._visible = 0;
mg.interFaceMc.soundG._visible = 0;
mg.interFaceMc._visible = false;
mg.gameProcess_flag = 6;
mg.gameMainCenter(mg);
_local1._visible = 1;
_local1._x = 0;
_local1._y = 0;
_local1.frameCount = 0;
_local1.recordData();
_local1.aniFrame = Number(types);
if (_local1.aniFrame != 4) {
_local1.cBgMc._visible = true;
_local1.nextBTMc._visible = true;
_local1.nextBTMc._y = 348;
_local1.nexAMc._visible = true;
_local1.x2Mc._visible = false;
_local1.ststMc._visible = true;
_local1.chrMc._visible = true;
_local1.nexAMc._y = 348;
tellTarget (_local1.nexAMc) {
gotoAndPlay (1);
};
if (mg.vr.itemFlag > 0) {
mg.vr.tempScore = mg.vr.tempScore + 500;
}
if (mg.vr.headingFlag == 1) {
mg.vr.tempScore = mg.vr.tempScore + 500;
}
if (mg.vr.enemyNMHitFlag == 1) {
mg.vr.tempScore = mg.vr.tempScore - 50;
}
if (mg.vr.enemyGKHitFlag == 1) {
mg.vr.tempScore = mg.vr.tempScore - 50;
}
if (mg.vr.postHitFlag == 1) {
mg.vr.tempScore = mg.vr.tempScore - 50;
}
if (mg.vr.changPlayerFlag == 1) {
mg.vr.tempScore = mg.vr.tempScore + 500;
}
mg.vr.changReactionFlag++;
mg.vr.tempScore = mg.vr.tempScore + (1000 * mg.vr.changReactionFlag);
if (mg.scr.goalPostMc.doubleMc._visible == true) {
switch (mg.scr.goalPostMc.doubleMc._currentframe) {
case 1 :
if (mg.ballClassObj.goalTx < -95) {
_local1.x2Mc._visible = true;
}
break;
case 2 :
if ((mg.ballClassObj.goalTx >= -95) && (mg.ballClassObj.goalTx <= 95)) {
_local1.x2Mc._visible = true;
}
break;
case 3 :
if (mg.ballClassObj.goalTx < 95) {
break;
}
_local1.x2Mc._visible = true;
}
mg.vr.tempScore = mg.vr.tempScore * 2;
}
mg.scoreUp(mg.vr.tempScore);
mg.vr.parkS.stop("parkSD");
mg.vr.parkS.start(0, 1);
} else {
_local1.retryBTMc._visible = true;
_local1.retryBTMc._y = 348;
_local1.retAMc._visible = true;
_local1.retAMc._y = 348;
_local1.x2Mc._visible = false;
_local1.ststMc._visible = false;
tellTarget (_local1.retAMc) {
gotoAndPlay (1);
};
mg.vr.changReactionFlag = 0;
switch (mg.vr.trialTime) {
case 0 :
mg.gameProcess_flag = 8;
mg.gameMainCenter(mg);
return;
default :
tellTarget (_local1) {
gotoAndStop(_local1.aniFrame);
};
tellTarget (_local1.chrMc) {
gotoAndPlay (1);
};
tellTarget (_local1.repAMc) {
gotoAndPlay (1);
};
_local1.state = 1;
_local1.gogo();
}
}
tellTarget (_local1) {
gotoAndStop(_local1.aniFrame);
};
tellTarget (_local1.chrMc) {
gotoAndPlay (1);
};
tellTarget (_local1.repAMc) {
gotoAndPlay (1);
};
_local1.state = 1;
_local1.gogo();
};
CEREClass.prototype.recordData = function () {
var _local2;
var finDEnArr;
var _local3 = new Array();
var _local1 = 0;
if (mg.vr.linkedHead != "n") {
_local2 = mg.vr.linkedHead;
while (true) {
finDEnArr = String(_local2._name).split("c");
if (finDEnArr[0] == "enemyM") {
_local3[_local1] = _local2.jumpTimeMax;
trace((("JUMP PROB[" + _local1) + "]=") + _local3[_local1]);
_local1++;
}
if (_local2.next == "n") {
break;
}
_local2 = _local2.next;
}
}
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = "";
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + mg.vr.gameProcDatas[mg.vr.gameProcNum];
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + ("|" + mg.vr.windEffectAg);
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + (("|" + mg.vr.windEffectPw) + "|");
i = 0;
while (i < _local1) {
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + _local3[i];
i++;
}
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + ("|" + mg.vr.whoKickPlayer.LR);
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + ("|" + mg.vr.whoKickPlayer.UD);
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + ("|" + mg.vr.whoKickPlayer.DS);
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + ("|" + mg.vr.whoKickPlayer.RT);
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + ("|" + mg.vr.whoKickPlayer.befKickX);
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + ("|" + mg.vr.whoKickPlayer.befKickZ);
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + ("|" + mg.vr.whoPlayer);
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + ("|" + mg.vr.whoKickPlayer.befKickAngleBCP);
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + ("|" + mg.vr.whoKickPlayer.befKickTemp0);
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + ("|" + mg.vr.whoKickPlayer.GKX);
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + ("|" + mg.vr.whoKickPlayer.GKLRVel);
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + ("|" + mg.ballClassObj.catchedFlag);
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + ("|" + mg.vr.itemFlag);
mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] = mg.vr.recordeDataSet[mg.vr.recordeDataSetNum] + ("|" + mg.vr.plLbefEnergy);
trace(((mg.vr.recordeDataSetNum + "=[") + mg.vr.recordeDataSet[mg.vr.recordeDataSetNum]) + "]");
delete finDEnArr;
};
CEREClass.prototype.gogo = function () {
var _local1 = this;
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.frameCount++;
if (!(_local1.frameCount === 240)) {
} else {
_local1.onEnterFrame = null;
delete _local1.onEnterFrame;
}
};
};
CEREClass.prototype.replay = function () {
var _local1 = this;
if (_local1.replayState == 1) {
} else {
_local1.replayState = 1;
_local1.replayBTMc._visible = false;
_local1.repAMc._visible = false;
var _local2 = _local1.aniFrame;
_local1.disappear();
removeMovieClip(mg.scr.ctrLine0Mc);
removeMovieClip(mg.scr.ctrLine1Mc);
removeMovieClip(mg.scr.ctrLine2Mc);
tellTarget (_local1.repTxtMc) {
gotoAndPlay (1);
};
_local1.repTxtMc._visible = true;
_local1._visible = true;
_local1._x = 0;
_local1._y = 0;
_local1.chrMc._visible = false;
if (_local2 != 4) {
_local1.showNextNReplay(1);
} else {
_local1.showNextNReplay(0);
}
mg.vr.REPLAYFLAG = 1;
mg.gameProcess_flag = 10;
mg.gameMainCenter(mg);
}
};
CEREClass.prototype.retry = function () {
this.disappear();
mg.vr.REPLAYFLAG = 0;
if (!(mg.vr.trialTime === 1)) {
} else {
mg.textMc.readyToRender(4);
mg.gameProcess_flag = 5;
mg.gameMainCenter(mg);
return(undefined);
}
mg.gameProcess_flag = 12;
mg.gameMainCenter(mg);
mg.gameProcess_flag = 4;
mg.gameMainCenter(mg);
mg.gameProcess_flag = 5;
mg.gameMainCenter(mg);
};
CEREClass.prototype.nextR = function () {
this.disappear();
mg.vr.REPLAYFLAG = 0;
if (((mg.vr.gameProcNum + 1) % 9) == 0) {
mg.vr.recordeDataSetFlag = 1;
mg.endingMc.readyToRender();
return(undefined);
}
mg.gameProcess_flag = 2;
mg.gameMainCenter(mg);
mg.gameProcess_flag = 4;
mg.gameMainCenter(mg);
mg.gameProcess_flag = 5;
mg.gameMainCenter(mg);
};
CEREClass.prototype.showNextNReplay = function (types) {
var _local1 = this;
mg.vr.REPLAYFLAG = 0;
mg.gameProcess_flag = 6;
mg.gameMainCenter(mg);
_local1._visible = 1;
_local1._x = 0;
_local1._y = 0;
_local1.frameCount = 0;
_local1.cBgMc._visible = false;
if (types == 1) {
_local1.nextBTMc._visible = true;
_local1.nextBTMc._y = 348;
_local1.nexAMc._visible = true;
_local1.nexAMc._y = 348;
tellTarget (_local1.nexAMc) {
gotoAndPlay (1);
};
} else {
_local1.retryBTMc._visible = true;
_local1.retryBTMc._y = 348;
_local1.retAMc._visible = true;
_local1.retAMc._y = 348;
tellTarget (_local1.retAMc) {
gotoAndPlay (1);
};
}
_local1.chrMc._visible = false;
tellTarget (_local1.repAMc) {
gotoAndPlay (1);
};
_local1.state = 1;
};
CEREClass.prototype.disappear = function () {
var _local1 = this;
_local1.onEnterFrame = null;
delete _local1.onEnterFrame;
_local1.oneTimeInit();
};
}
function endingClass() {
var _local1 = this;
endingClass.prototype.oneTimeInit = function () {
this.initVar();
trace("ok.....endingClass");
};
endingClass.prototype.initVar = function () {
var _local1 = this;
_local1._visible = 0;
_local1._x = -500;
_local1._y = 0;
_local1.frameCount = 0;
_local1.maxFrame = 24;
_local1.state = 0;
_local1.startRound = 0;
};
endingClass.prototype.deleteC = function () {
removeMovieClip(this);
};
endingClass.prototype.readyToRender = function () {
var _local1 = this;
mg.vr.parkS.stop("parkSD");
_local1._visible = true;
_local1._x = 0;
_local1._y = 0;
removeMovieClip(mg.scr.ctrLine0Mc);
removeMovieClip(mg.scr.ctrLine1Mc);
removeMovieClip(mg.scr.ctrLine2Mc);
i = 0;
while (i < 10) {
trace(("[" + mg.vr.recordeDataSet[i]) + "]");
i++;
}
_local1.startRound = 0;
mg.vr.REPLAYFLAG = 1;
mg.scr._xscale = 95;
mg.scr._yscale = mg.scr._xscale;
mg.scr._x = 14;
mg.scr._y = 14;
_local1.skipMc.onRelease = function () {
delete this.skipMc.onRelease;
mg.scr.ballMc._visible = 0;
mg.scr.ballMc._x = -100;
mg.scr.ballMc._y = -100;
tellTarget (mg.scr.ballMc.ballRMC) {
gotoAndStop (1);
};
mg.ballClassObj.aniFrame = 1;
mg.ballClassObj.goalState = 0;
mg.scr.ballShadowMc._visible = false;
mg.ballClassObj.delink();
mg.vr.recordeDataSetFlag = 2;
this._parent.disappear();
};
trace("STARTSRTARTSRTARTARTARSTA");
mg.vr.enidngS.start(0, 999);
_local1.showReplay();
_local1.gogo();
};
endingClass.prototype.gogo = function () {
this.onEnterFrame = function () {
if (mg.vr.recordeDataSetFlag == 2) {
trace(":::::::::::::::::::::::::::::::::::::::::::::::::::::mg.vr.recordeDataSetFlag:" + mg.vr.recordeDataSetFlag);
mg.vr.recordeDataSetFlag = 1;
this.showReplay();
}
};
};
endingClass.prototype.showReplay = function () {
var _local1 = this;
trace((("this.startRound:" + _local1.startRound) + "mg.vr.recordeDataSetNum:") + mg.vr.recordeDataSetNum);
if (_local1.startRound > mg.vr.recordeDataSetNum) {
_local1.disappear();
} else {
mg.keyDeleteF(mg);
mg.gameMainLoopStop(mg);
mg.nextRound(_local1.startRound, 1);
trace((("mmmmmmmm:" + _local1.startRound) + ":") + mg.vr.recordeDataSet[_local1.startRound]);
_local1.startRound++;
mg.interFaceMc.showRound(_local1.startRound);
mg.gameMainLoopStart(mg);
}
};
endingClass.prototype.disappear = function () {
var _local1 = this;
trace("endingClass.prototype.disappear");
_local1.onEnterFrame = null;
delete _local1.onEnterFrame;
mg.vr.enidngS.stop("endingSD");
_local1.initVar();
mg.vr.REPLAYFLAG = 0;
mg.vr.recordeDataSetFlag = 0;
mg.scr._xscale = 100;
mg.scr._yscale = mg.scr._xscale;
mg.scr._x = 0;
mg.scr._y = 0;
mg.gameProcess_flag = 3;
mg.gameMainCenter(mg);
};
}
function drawCrtLine(l, r, v) {
mg.scr.createEmptyMovieClip("ctrLine0Mc", 40);
mg.scr.createEmptyMovieClip("ctrLine1Mc", 41);
mg.scr.createEmptyMovieClip("ctrLine2Mc", 42);
var p0 = new Object();
p0.x = 0;
p0.y = 0;
p0.z = 0;
p0.w = 1;
var p1 = new Object();
p1.x = 0;
p1.y = 0;
p1.z = 0;
p1.w = 1;
var p2 = new Object();
p2.x = 0;
p2.y = 0;
p2.z = 0;
p2.w = 1;
mg.FASVec4MatrixMultiply(l, mg.vr.worldMatrix);
p0.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p0.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(r, mg.vr.worldMatrix);
p2.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p2.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(v, mg.vr.worldMatrix);
p1.x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
p1.y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
with (mg.scr.ctrLine0Mc) {
lineStyle(0, 16777022, 0);
beginFill(16777022);
moveTo(p0.x, p0.y);
curveTo(p1.x, p1.y, p2.x, p2.y);
endFill();
_alpha = 50;
}
delete p0;
delete p1;
delete p2;
}
function interFaceClass() {
interFaceClass.prototype.oneTimeInit = function () {
var _local1 = this;
_local1._visible = 1;
_local1._x = 0;
_local1._y = 0;
_local1.next = "n";
_local1.prev = "n";
_local1.state = 0;
_local1.windAniFrame = 1;
_local1.windPw = 1;
_local1.itemNum = 0;
_local1.item0UseFlag = 1;
_local1.item1UseFlag = 1;
_local1.item2UseFlag = 1;
_local1.moveFlag = 0;
tellTarget (_local1.windMc.wArrowMc) {
gotoAndStop (1);
};
_local1.showRound(1);
_local1.showTime();
_local1.showTry();
mg.interFaceMc.pauseG._visible = 0;
mg.interFaceMc.soundG._visible = 0;
_local1.initBt();
_local1.link();
};
interFaceClass.prototype.showRound = function (rd) {
var s1 = Math.floor(mg.season % 10);
var s0 = Math.floor(rd % 10);
var i;
if ((s1 < 0) || (s0 < 0)) {
delete i;
delete s1;
delete s0;
delete rd;
return(undefined);
}
i = 0;
while (i < 2) {
mg.scr.penceMc.etcMc.roMc["s" + i].gotoAndStop(eval ("s" + i) + 1);
i++;
}
delete i;
delete s1;
delete s0;
};
interFaceClass.prototype.showTime = function () {
var s1 = Math.floor((mg.vr.limitTime % 100) / 10);
var s0 = Math.floor(mg.vr.limitTime % 10);
var i;
if ((s1 < 0) || (s0 < 0)) {
delete i;
delete s1;
delete s0;
return(undefined);
}
i = 0;
while (i < 2) {
mg.scr.penceMc.etcMc.tiMc["s" + i].gotoAndStop(eval ("s" + i) + 1);
i++;
}
delete i;
delete s1;
delete s0;
};
interFaceClass.prototype.showTry = function () {
var s1 = Math.floor((mg.vr.trialTime % 100) / 10);
var s0 = Math.floor(mg.vr.trialTime % 10);
var i;
if ((s1 < 0) || (s0 < 0)) {
delete i;
delete s1;
delete s0;
return(undefined);
}
i = 0;
while (i < 2) {
mg.scr.penceMc.etcMc.trMc["s" + i].gotoAndStop(eval ("s" + i) + 1);
i++;
}
delete i;
delete s1;
delete s0;
};
interFaceClass.prototype.initBt = function () {
var _local1 = this;
_local1.item0UseFlag = 1;
_local1.item1UseFlag = 1;
_local1.item2UseFlag = 1;
tellTarget (_local1.parkMc) {
gotoAndStop (1);
};
tellTarget (_local1.parkMc.alertMc) {
gotoAndStop (1);
};
_local1.parkMc.popMc._visible = false;
_local1.parkMc.alertMc._visible = false;
_local1.parkMc.gageMc._yscale = 100;
tellTarget (_local1.beckMc) {
gotoAndStop (1);
};
tellTarget (_local1.beckMc.alertMc) {
gotoAndStop (1);
};
_local1.beckMc.popMc._visible = false;
_local1.beckMc.alertMc._visible = false;
_local1.beckMc.gageMc._yscale = 100;
tellTarget (_local1.kalMc) {
gotoAndStop (1);
};
tellTarget (_local1.kalMc.alertMc) {
gotoAndStop (1);
};
_local1.kalMc.popMc._visible = false;
_local1.kalMc.alertMc._visible = false;
_local1.kalMc.gageMc._yscale = 100;
tellTarget (_local1.item0Mc) {
gotoAndStop (1);
};
tellTarget (_local1.item1Mc) {
gotoAndStop (1);
};
tellTarget (_local1.item2Mc) {
gotoAndStop (1);
};
tellTarget (_local1.itemPopMc) {
gotoAndStop (1);
};
_local1.itemPopMc._visible = false;
_local1.itemPopMc._x = 0;
_local1.itemPopMc._y = -50;
};
interFaceClass.prototype.deleteC = function () {
removeMovieClip(this);
};
interFaceClass.prototype.link = function () {
var _local1 = this;
if (_local1.state == 1) {
} else {
_local1.state = 1;
mg.linkedListInsert(_local1);
}
};
interFaceClass.prototype.delink = function () {
var _local1 = this;
if (_local1.state == 0) {
} else {
_local1.state = 0;
mg.linkedListDelink(_local1);
}
};
interFaceClass.prototype.setWind = function (ag, pw) {
var _local1 = this;
_local1.windMc.wArrowMc._rotation = ag * -1;
_local1.windAniFrame = 1;
_local1.windPw = Math.floor(Number(pw) / 2);
if (((((mg.vr.tempPyPos % 10) == 0) || ((mg.vr.tempPyPos % 10) == 1)) || ((mg.vr.tempPyPos % 10) == 5)) || ((mg.vr.tempPyPos % 10) == 6)) {
_local1.windMc._x = 440;
} else {
_local1.windMc._x = 60;
}
trace((("ag:" + ag) + " pw:") + pw);
};
interFaceClass.prototype.aliveButton = function () {
var _local1 = this;
trace("----------------------------------------------aliveButton");
_local1.parkMc.onRelease = function () {
this._parent.changePlayer(0);
};
_local1.parkMc.onRollOver = function () {
this.popMc._visible = true;
};
_local1.parkMc.onRollOut = function () {
this.popMc._visible = false;
};
_local1.beckMc.onRelease = function () {
this._parent.changePlayer(1);
};
_local1.beckMc.onRollOver = function () {
this.popMc._visible = true;
};
_local1.beckMc.onRollOut = function () {
this.popMc._visible = false;
};
_local1.kalMc.onRelease = function () {
this._parent.changePlayer(2);
};
_local1.kalMc.onRollOver = function () {
this.popMc._visible = true;
};
_local1.kalMc.onRollOut = function () {
this.popMc._visible = false;
};
if (_local1.item0UseFlag == 1) {
_local1.item0Mc.onRelease = function () {
this._parent.useItem(0);
};
}
if (_local1.item1UseFlag == 1) {
_local1.item1Mc.onRelease = function () {
this._parent.useItem(1);
};
}
if (_local1.item2UseFlag == 1) {
_local1.item2Mc.onRelease = function () {
this._parent.useItem(2);
};
}
};
interFaceClass.prototype.killButton = function () {
var _local1 = this;
trace("----------------------------------------------killButton");
delete _local1.parkMc.onRelease;
delete _local1.parkMc.onRollOver;
delete _local1.parkMc.onRollOut;
delete _local1.beckMc.onRelease;
delete _local1.beckMc.onRollOver;
delete _local1.beckMc.onRollOut;
delete _local1.kalMc.onRelease;
delete _local1.kalMc.onRollOver;
delete _local1.kalMc.onRollOut;
delete _local1.item0Mc.onRelease;
delete _local1.item1Mc.onRelease;
delete _local1.item2Mc.onRelease;
};
interFaceClass.prototype.useItem = function (wh) {
var _local1 = this;
trace("useItem----------------------------------" + wh);
_local1.itemNum = Number(wh);
tellTarget (_local1.itemPopMc) {
gotoAndStop(_local1.itemNum + 1);
};
_local1.itemPopMc._x = 250;
_local1.itemPopMc._y = 187;
_local1.itemPopMc._visible = true;
};
interFaceClass.prototype.makeFireBall = function () {
var _local1;
var _local2;
mg.vr.itemFlag = 1;
if (mg.vr.linkedHead != "n") {
_local1 = mg.vr.linkedHead;
while (true) {
_local2 = String(_local1._name).split("c");
if ((((_local2[0] == "enemyM") || (_local2[0] == "enemyHdM")) || (_local2[0] == "helperM")) || (_local2[0] == "helperHdM")) {
_local1.headFlag = 5;
_local1.bodyFlag = 5;
_local1.legFlag = 5;
}
if (_local1.next == "n") {
break;
}
_local1 = _local1.next;
}
}
};
interFaceClass.prototype.makeUfoBall = function () {
mg.vr.itemFlag = 2;
mg.vr.itemUfoCurve = 1;
};
interFaceClass.prototype.itemOK = function () {
var _local1 = this;
mg.scr.attachMovie(("item_EFF" + _local1.itemNum) + "Link", "tempItemEffectMc", 950);
mg.scr.tempItemEffectMc._x = mg.scr[("player" + mg.vr.whoPlayer) + "Mc"]._x;
mg.scr.tempItemEffectMc._y = mg.scr[("player" + mg.vr.whoPlayer) + "Mc"]._y;
_local1[("item" + _local1.itemNum) + "UseFlag"] = 0;
switch (_local1.itemNum) {
case 0 :
mg.ballClassObj.fireBall();
_local1.makeFireBall();
mg.vr.itemSounDFlag = 1;
break;
case 1 :
mg.ballClassObj.ufoBall();
_local1.makeUfoBall();
mg.vr.itemSounDFlag = 2;
break;
case 2 :
mg.vr.ITEMPREV = 100;
mg.traceSpotClassObj.changeColor(16777215);
mg.vr.itemSounDFlag = 3;
}
tellTarget (_local1[("item" + _local1.itemNum) + "Mc"]) {
gotoAndStop (2);
};
delete _local1.item0Mc.onRelease;
delete _local1.item1Mc.onRelease;
delete _local1.item2Mc.onRelease;
_local1.itemPopMc._visible = false;
_local1.itemPopMc._x = 0;
_local1.itemPopMc._y = -50;
};
interFaceClass.prototype.itemCLOSE = function () {
var _local1 = this;
_local1.itemPopMc._visible = false;
_local1.itemPopMc._x = 0;
_local1.itemPopMc._y = -50;
};
interFaceClass.prototype.reduceEnergy = function (wh, hm) {
var _local1 = this;
var _local2 = hm;
switch (wh) {
case 0 :
_local1.parkMc.gageMc._yscale = _local2;
if (_local1.parkMc.gageMc._yscale <= 20) {
_local1.parkMc.alertMc._visible = true;
tellTarget (_local1.parkMc.alertMc) {
gotoAndPlay (1);
};
} else {
_local1.parkMc.alertMc._visible = false;
tellTarget (_local1.parkMc.alertMc) {
gotoAndStop (1);
};
}
return;
case 1 :
_local1.beckMc.gageMc._yscale = _local2;
if (_local1.beckMc.gageMc._yscale <= 20) {
_local1.beckMc.alertMc._visible = true;
tellTarget (_local1.beckMc.alertMc) {
gotoAndPlay (1);
};
} else {
_local1.beckMc.alertMc._visible = false;
tellTarget (_local1.beckMc.alertMc) {
gotoAndStop (1);
};
}
return;
case 2 :
_local1.kalMc.gageMc._yscale = _local2;
if (_local1.kalMc.gageMc._yscale <= 20) {
_local1.kalMc.alertMc._visible = true;
tellTarget (_local1.kalMc.alertMc) {
gotoAndPlay (1);
};
} else {
_local1.kalMc.alertMc._visible = false;
tellTarget (_local1.kalMc.alertMc) {
gotoAndStop (1);
};
}
}
};
interFaceClass.prototype.changePlayer = function (wh) {
var _local1 = this;
mg.vr.parkS.stop("parkSD");
switch (wh) {
case 0 :
if ((_local1.parkMc.alertMc._visible == true) || (_local1.parkMc._currentframe == 2)) {
return;
}
tellTarget (_local1.parkMc) {
gotoAndStop (2);
};
tellTarget (_local1.beckMc) {
gotoAndStop (1);
};
tellTarget (_local1.kalMc) {
gotoAndStop (1);
};
mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].disappear();
mg.vr.whoPlayer = 0;
mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].readyToRender(mg.vr.tempPyPos, 0);
mg.vr.goalS.start(0, 1);
mg.textMc.readyToRender(3);
mg.vr.changPlayerFlag = 1;
return;
case 1 :
if ((_local1.beckMc.alertMc._visible == true) || (_local1.beckMc._currentframe == 2)) {
} else {
tellTarget (_local1.parkMc) {
gotoAndStop (1);
};
tellTarget (_local1.beckMc) {
gotoAndStop (2);
};
tellTarget (_local1.kalMc) {
gotoAndStop (1);
};
mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].disappear();
mg.vr.whoPlayer = 2;
mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].readyToRender(mg.vr.tempPyPos, 0);
mg.vr.goalS.start(0, 1);
mg.textMc.readyToRender(3);
mg.vr.changPlayerFlag = 1;
return;
if ((_local1.kalMc.alertMc._visible == true) || (_local1.kalMc._currentframe == 2)) {
} else {
tellTarget (_local1.parkMc) {
gotoAndStop (1);
};
tellTarget (_local1.beckMc) {
gotoAndStop (1);
};
tellTarget (_local1.kalMc) {
gotoAndStop (2);
};
mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].disappear();
mg.vr.whoPlayer = 1;
mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].readyToRender(mg.vr.tempPyPos, 0);
mg.vr.goalS.start(0, 1);
mg.textMc.readyToRender(3);
mg.vr.changPlayerFlag = 1;
}
}
case 2 :
if ((_local1.kalMc.alertMc._visible == true) || (_local1.kalMc._currentframe == 2)) {
} else {
tellTarget (_local1.parkMc) {
gotoAndStop (1);
};
tellTarget (_local1.beckMc) {
gotoAndStop (1);
};
tellTarget (_local1.kalMc) {
gotoAndStop (2);
};
mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].disappear();
mg.vr.whoPlayer = 1;
mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].readyToRender(mg.vr.tempPyPos, 0);
mg.vr.goalS.start(0, 1);
mg.textMc.readyToRender(3);
mg.vr.changPlayerFlag = 1;
}
}
};
interFaceClass.prototype.roundChgPlayer = function (wh) {
var _local1 = this;
switch (wh) {
case 0 :
tellTarget (_local1.parkMc) {
gotoAndStop (2);
};
tellTarget (_local1.beckMc) {
gotoAndStop (1);
};
tellTarget (_local1.kalMc) {
gotoAndStop (1);
};
return;
case 1 :
tellTarget (_local1.parkMc) {
gotoAndStop (1);
};
tellTarget (_local1.beckMc) {
gotoAndStop (2);
};
tellTarget (_local1.kalMc) {
gotoAndStop (1);
};
return;
case 2 :
tellTarget (_local1.parkMc) {
gotoAndStop (1);
};
tellTarget (_local1.beckMc) {
gotoAndStop (1);
};
tellTarget (_local1.kalMc) {
gotoAndStop (2);
};
}
};
interFaceClass.prototype.gogo = function () {
var _local1 = this;
tellTarget (_local1.windMc.wArrowMc) {
gotoAndStop(_local1.windAniFrame);
};
_local1.windAniFrame = _local1.windAniFrame + _local1.windPw;
if (_local1.windAniFrame >= 41) {
_local1.windAniFrame = 1;
}
switch (_local1.moveFlag) {
case 1 :
_local1._y = _local1._y + 5;
_local1.windMc._y = _local1.windMc._y - 5;
if (_local1._y >= 45) {
_local1._y = 45;
_local1.moveFlag = 0;
}
return;
case 2 :
_local1._y = _local1._y - 5;
_local1.windMc._y = _local1.windMc._y + 5;
if (_local1._y > 0) {
break;
}
_local1._y = 0;
_local1.moveFlag = 0;
}
};
interFaceClass.prototype.downMove = function () {
this.moveFlag = 1;
};
interFaceClass.prototype.upMove = function () {
this.moveFlag = 2;
};
interFaceClass.prototype.disappear = function () {
tellTarget (this.windMc.wArrowMc) {
gotoAndStop (1);
};
};
}
function textClass() {
textClass.prototype.oneTimeInit = function () {
var _local1 = this;
_local1.next = "n";
_local1.prev = "n";
_local1.state = 0;
_local1.clockFlag = 1;
_local1.initData();
trace("ok.....textMc");
};
textClass.prototype.initData = function () {
var _local1 = this;
_local1._visible = false;
_local1._x = 0;
_local1._y = 0;
_local1.aniFrame = 1;
_local1.stateShow = 0;
tellTarget (_local1) {
gotoAndStop(_local1.aniFrame);
};
_local1.setRound(0);
_local1.frCt = 0;
};
textClass.prototype.deleteC = function () {
removeMovieClip(this);
};
textClass.prototype.link = function () {
var _local1 = this;
if (_local1.state == 1) {
} else {
_local1.state = 1;
mg.linkedListInsert(_local1);
}
};
textClass.prototype.delink = function () {
var _local1 = this;
if (_local1.state == 0) {
} else {
_local1.state = 0;
mg.linkedListDelink(_local1);
}
};
textClass.prototype.readyToRender = function (ty) {
var _local1 = this;
var _local2 = ty;
if (_local1.stateShow == 1) {
} else {
_local1.aniFrame = Number(_local2);
if ((_local1.clockFlag == 0) && (_local1.aniFrame == 5)) {
} else {
_local1.stateShow = 1;
trace("textClass readyToRender :" + _local2);
_local1.frCt = 0;
_local1._visible = true;
_local1._x = 250;
_local1._y = 187;
_local1._xscale = 50;
_local1._yscale = _local1._xscale;
tellTarget (_local1) {
gotoAndStop(_local1.aniFrame);
};
switch (_local2) {
case 1 :
_local1.setRound((mg.vr.gameProcNum % 9) + 1);
break;
case 2 :
break;
case 5 :
tellTarget (_local1.clockMc) {
gotoAndPlay (1);
};
}
_local1.link();
}
}
};
textClass.prototype.setRound = function (rn) {
var i;
var s1 = Math.floor((rn % 100) / 10);
var s0 = Math.floor(rn % 10);
trace((("s1:" + s1) + "s0:") + s0);
if (s1 == 0) {
this.inMc.s0._visible = true;
this.inMc.s1._visible = false;
this.inMc.s0._x = 45;
this._x = 280;
} else {
this.inMc.s0._visible = true;
this.inMc.s1._visible = true;
this.inMc.s0._x = 97;
this.inMc.s1._x = 45;
this._x = 250;
}
i = 0;
while (i < 2) {
tellTarget (this.inMc["s" + i]) {
gotoAndStop(eval ("s" + i) + 1);
};
i++;
}
delete s1;
delete s0;
delete i;
};
textClass.prototype.gogo = function () {
var _local1 = this;
_local1.frCt++;
_local1._xscale = _local1._xscale + 5;
if (_local1._xscale >= 100) {
_local1._xscale = 100;
}
_local1._yscale = _local1._xscale;
switch (_local1.frCt) {
case 24 :
switch (_local1.aniFrame) {
case 1 :
mg.vr.limitTmFlag = 0;
_local1.disappear();
break;
case 2 :
_local1.stateShow = 0;
_local1.readyToRender(1);
break;
case 3 :
break;
case 4 :
_local1.disappear();
mg.gameProcess_flag = 12;
mg.gameMainCenter(mg);
mg.gameProcess_flag = 4;
mg.gameMainCenter(mg);
break;
case 6 :
_local1.disappear();
mg.ballClassObj.replayFlag = 1;
mg.gameProcess_flag = 12;
mg.gameMainCenter(mg);
break;
default :
_local1.disappear();
}
return;
case 48 :
switch (_local1.aniFrame) {
case 3 :
_local1.disappear();
return;
case 2 :
_local1.stateShow = 0;
_local1.readyToRender(1);
return;
case 4 :
_local1.disappear();
mg.gameProcess_flag = 12;
mg.gameMainCenter(mg);
mg.gameProcess_flag = 4;
mg.gameMainCenter(mg);
return;
case 6 :
_local1.disappear();
mg.ballClassObj.replayFlag = 1;
mg.gameProcess_flag = 12;
mg.gameMainCenter(mg);
return;
default :
_local1.disappear();
}
}
};
textClass.prototype.disappear = function () {
this.initData();
this.delink();
};
}
function keyConstrucion(main) {
var _local1;
_local1 = main;
_local1.myKeyListener = new Object();
Key.addListener(_local1.myKeyListener);
_local1.keyHandleF(_local1);
}
function keyHandleF(main) {
var _local1;
_local1 = main;
_local1.myKeyListener.onKeyDown = function () {
switch (Key.getCode()) {
case 80 :
if (_global.mg.pause == 0) {
_global.mg.startToPause();
}
return;
default :
}
};
_local1.myKeyListener.onKeyUp = function () {
switch (Key.getCode()) {
case 37 :
return;
case 38 :
return;
case 39 :
return;
case 40 :
return;
case 32 :
return;
case 81 :
return;
case 83 :
return;
case 84 :
return;
case 85 :
return;
case 86 :
return;
case 68 :
return;
case 87 :
return;
case 69 :
return;
case 82 :
return;
case 70 :
return;
case 88 :
return;
}
};
}
function keyDeleteF(main) {
var _local1;
_local1 = main;
Key.removeListener(_local1.myKeyListener);
delete _local1.myKeyListener;
mg.interFaceMc.killButton();
}
function attachMC(main) {
var _local2;
_local2 = main;
trace("init:attach movieclip");
var _local1;
_local2.scr.attachMovie("player0_link", "player0Mc", 600);
_local2.scr.player0Mc.oneTimeInit(0);
_local2.scr.attachMovie("player1_link", "player1Mc", 610);
_local2.scr.player1Mc.oneTimeInit(1);
_local2.scr.attachMovie("player2_link", "player2Mc", 620);
_local2.scr.player2Mc.oneTimeInit(2);
_local2.scr.attachMovie("player_shadowlink", "playerShadowMc", 598);
_local2.scr.playerShadowMc._visible = false;
_local1 = 0;
while (_local1 < _local2.vr.obj0MaxIndex) {
_local2.scr.attachMovie("enemy_Link", "enemyMc" + _local1, 450 + _local1);
_local2.scr["enemyMc" + _local1].oneTimeInit(_local1);
_local2.scr.attachMovie("enemy_shadowlink", "enemyShadowMc" + _local1, 430 + _local1);
_local2.scr["enemyShadowMc" + _local1]._visible = false;
_local1++;
}
_local1 = 0;
while (_local1 < _local2.vr.obj3MaxIndex) {
_local2.scr.attachMovie("enemyHd_Link", "enemyHdMc" + _local1, 350 + _local1);
_local2.scr["enemyHdMc" + _local1].oneTimeInit(_local1);
_local2.scr.attachMovie("enemy_shadowlink", "enemyHdShadowMc" + _local1, 330 + _local1);
_local2.scr["enemyHdShadowMc" + _local1]._visible = false;
_local1++;
}
_local1 = 0;
while (_local1 < _local2.vr.obj4MaxIndex) {
_local2.scr.attachMovie("helper_Link", "helperMc" + _local1, 400 + _local1);
_local2.scr["helperMc" + _local1].oneTimeInit(_local1);
_local2.scr.attachMovie("enemy_shadowlink", "helperShadowMc" + _local1, 380 + _local1);
_local2.scr["helperShadowMc" + _local1]._visible = false;
_local1++;
}
_local1 = 0;
while (_local1 < _local2.vr.obj5MaxIndex) {
_local2.scr.attachMovie("helperHd_Link", "helperHdMc" + _local1, 300 + _local1);
_local2.scr["helperHdMc" + _local1].oneTimeInit(_local1);
_local2.scr.attachMovie("enemy_shadowlink", "helperHdShadowMc" + _local1, 280 + _local1);
_local2.scr["helperHdShadowMc" + _local1]._visible = false;
_local1++;
}
_local1 = 0;
while (_local1 < _local2.vr.obj1MaxIndex) {
_local2.scr.attachMovie("star_link", "starEMc" + _local1, 500 + _local1);
_local2.scr["starEMc" + _local1].oneTimeInit(_local1);
_local1++;
}
_local2.scr.attachMovie("ball_shadowLink", "ballShadowMc", 198);
_local2.scr.ballShadowMc._visible = false;
_local2.scr.attachMovie("BG_Link", "BGMc", 10);
_local2.scr.BGMc.oneTimeInit();
_local2.scr.createEmptyMovieClip("baseLineMc", 11);
_local1 = 0;
while (_local1 < _local2.vr.obj2MaxIndex) {
_local2.scr.attachMovie("ufo_link", "ufoMc" + _local1, 12 + _local1);
_local2.scr["ufoMc" + _local1].oneTimeInit(_local1);
_local1++;
}
_local2.scr.createEmptyMovieClip("traceSpotMc", 901);
_local2.scr.createEmptyMovieClip("traceSpotShMc", 100);
_local2.attachMovie("text_Link", "textMc", 1400);
_local2.textMc.oneTimeInit();
_local2.attachMovie("interFace_Link", "interFaceMc", 1500);
_local2.interFaceMc.oneTimeInit();
_local2.attachMovie("CERE_Link", "cereMc", 2000);
_local2.cereMc.oneTimeInit();
_local2.attachMovie("ending_Link", "endingMc", 2100);
_local2.endingMc.oneTimeInit();
_local2.ballClassObj = new ballClass();
_local2.ballClassObj.oneTimeInit();
_local2.traceClassObj = new traceClass();
_local2.traceClassObj.oneTimeInit();
_local2.traceSpotClassObj = new traceSpotClass();
_local2.traceSpotClassObj.oneTimeInit(_local2.scr.traceSpotMc, 16777215, 20);
_local2.traceSpotClassShObj = new traceSpotClass();
_local2.traceSpotClassShObj.oneTimeInit(_local2.scr.traceSpotShMc, 0, 20);
_local2.GKClassObj = new GKClass();
_local2.GKClassObj.oneTimeInit();
}
function linkMc() {
mg.scoreShow(mg.score);
mg.vr.timeColorR = new Color(mg.scr.penceMc.etcMc.tiMc);
mg.vr.myColorTransformR = new Object();
mg.vr.myColorTransformR = {ra:"100", rb:"117", ga:"50", gb:"63", ba:"42", bb:"111", aa:"100", ab:"0"};
mg.vr.timeColorN = new Color(mg.scr.penceMc.etcMc.tiMc);
mg.vr.myColorTransformN = new Object();
mg.vr.myColorTransformN = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
mg.scr.goalPostMc.swapDepths(190);
mg.scr.penceMc.swapDepths(50);
mg.scr.GKMc.swapDepths(252);
mg.scr.GKShadowMc.swapDepths(251);
mg.scr.ballMc.swapDepths(499);
}
function deLinkMc() {
}
function deleteMC(main) {
var _local1;
_local1 = main;
trace("delete:remove movieclip");
var i;
removeMovieClip(_local1.scr);
removeMovieClip(_local1.interFaceMc);
removeMovieClip(_local1.cereMc);
removeMovieClip(_local1.endingMc);
removeMovieClip(_local1.textMc);
removeMovieClip(_local1.scr.ctrLine0Mc);
removeMovieClip(_local1.scr.ctrLine1Mc);
removeMovieClip(_local1.scr.ctrLine2Mc);
delete _local1.traceClassObj;
delete _local1.traceSpotClassObj;
delete _local1.traceSpotClassShObj;
delete _local1.GKClassObj;
delete ballClassObj;
delete i;
}
function FASVec4MatrixMultiply(pV, pM) {
var _local1 = pM;
var _local2 = pV;
mg.vr.tempVector4.x = (((_local2.x * _local1._11) + (_local2.y * _local1._21)) + (_local2.z * _local1._31)) + (_local2.w * _local1._41);
mg.vr.tempVector4.y = (((_local2.x * _local1._12) + (_local2.y * _local1._22)) + (_local2.z * _local1._32)) + (_local2.w * _local1._42);
mg.vr.tempVector4.z = (((_local2.x * _local1._13) + (_local2.y * _local1._23)) + (_local2.z * _local1._33)) + (_local2.w * _local1._43);
mg.vr.tempVector4.w = (((_local2.x * _local1._14) + (_local2.y * _local1._24)) + (_local2.z * _local1._34)) + (_local2.w * _local1._44);
}
function FASPickingScreen(pX, pY) {
var _local2 = new Object();
_local2.x = 0;
_local2.y = 0;
_local2.z = 0;
_local2.w = 1;
var _local3 = new Object();
_local3.x = 0;
_local3.y = 0;
_local3.z = 0;
_local3.w = 1;
var _local1 = new Object();
_local1.x = 0;
_local1.y = 0;
_local1.z = 0;
_local1.w = 1;
var vf = Math.floor(mg.vr.tempPyPos / 10);
switch (vf) {
case 0 :
_local1.x = (((2 * (pX - 104)) / 500) - 1) / mg.vr.projectMtrx._11;
_local1.y = (-(((2 * pY) / 375) - 1)) / mg.vr.projectMtrx._22;
_local1.z = 1;
break;
case 1 :
_local1.x = (((2 * pX) / 500) - 1) / mg.vr.projectMtrx._11;
_local1.y = (-(((2 * pY) / 375) - 1)) / mg.vr.projectMtrx._22;
_local1.z = 1;
break;
case 2 :
_local1.x = (((2 * (pX + 104)) / 500) - 1) / mg.vr.projectMtrx._11;
_local1.y = (-(((2 * pY) / 375) - 1)) / mg.vr.projectMtrx._22;
_local1.z = 1;
}
_local2.x = ((_local1.x * mg.vr.worldInverseMtrx._11) + (_local1.y * mg.vr.worldInverseMtrx._21)) + (_local1.z * mg.vr.worldInverseMtrx._31);
_local2.y = ((_local1.x * mg.vr.worldInverseMtrx._12) + (_local1.y * mg.vr.worldInverseMtrx._22)) + (_local1.z * mg.vr.worldInverseMtrx._32);
_local2.z = ((_local1.x * mg.vr.worldInverseMtrx._13) + (_local1.y * mg.vr.worldInverseMtrx._23)) + (_local1.z * mg.vr.worldInverseMtrx._33);
_local3.x = mg.vr.worldInverseMtrx._41;
_local3.y = mg.vr.worldInverseMtrx._42;
_local3.z = mg.vr.worldInverseMtrx._43;
mg.vr.pickVector.x = (((-1 * _local3.y) / _local2.y) * _local2.x) + _local3.x;
mg.vr.pickVector.y = 0;
mg.vr.pickVector.z = (((-1 * _local3.y) / _local2.y) * _local2.z) + _local3.z;
mg.vr.pickVector.w = 1;
}
function ballClass() {
ballClass.prototype.oneTimeInit = function () {
var _local1 = this;
mg.scr.ballMc._visible = 0;
mg.scr.ballMc._x = -100;
mg.scr.ballMc._y = -100;
_local1.next = "n";
_local1.prev = "n";
_local1.aniFrame = 1;
_local1.scaleAd = 100;
_local1.ballCd = new Object();
_local1.ballCd.x = 0;
_local1.ballCd.y = 0;
_local1.ballCd.z = 0;
_local1.ballCd.w = 1;
_local1.ballShCd = new Object();
_local1.ballShCd.x = 0;
_local1.ballShCd.y = 0;
_local1.ballShCd.z = 0;
_local1.ballShCd.w = 1;
_local1.dummy = new Object();
_local1.dummy.x = 0;
_local1.dummy.y = 0;
_local1.dummy.z = 0;
_local1.dummy.w = 1;
_local1.dummy2 = new Object();
_local1.dummy2.x = 0;
_local1.dummy2.y = 0;
_local1.dummy2.z = 0;
_local1.dummy2.w = 1;
_local1.tempGoalPos = new Object();
_local1.tempGoalPos.x = 0;
_local1.tempGoalPos.y = 0;
_local1.tempGoalPos.z = 0;
_local1.tempGoalPos.w = 1;
_local1.angleLR = 0;
_local1.angleUD = 0;
_local1.powerDis = 0;
_local1.angleRT = 0;
_local1.refThetaUD = 0;
_local1.refThetaLR = 0;
_local1.tanRt = 0;
_local1.addy = 0;
_local1.addz = 0;
_local1.addx = 0;
_local1.temp1 = 0;
_local1.temp2 = 0;
_local1.state = 0;
_local1.goalState = 0;
_local1.frameCount = 0;
_local1.i = 0;
_local1.maxFr = mg.vr.ballSpeed;
_local1.endPoint = 55;
_local1.postDepthFlag = 0;
_local1.penceFlag = 0;
_local1.postLFlag = 0;
_local1.postRFlag = 0;
_local1.postCFlag = 0;
_local1.goalFlag = 0;
_local1.aftNetFlag = 0;
_local1.replayFlag = 0;
_local1.catchedFlag = 0;
_local1.gnetLRFlag = 0;
_local1.gnetSLFlag = 0;
_local1.gnetSRFlag = 0;
_local1.goLeftRight = 0;
_local1.penceIIFlag = 0;
_local1.ufoFlag = 0;
_local1.pObject = null;
_local1.ufoStackNum = 0;
_local1.goalTx = 500;
tellTarget (mg.scr.ballMc) {
gotoAndStop (1);
};
};
ballClass.prototype.fireBall = function () {
tellTarget (mg.scr.ballMc) {
gotoAndStop (2);
};
};
ballClass.prototype.ufoBall = function () {
this.ufoFlag = 1;
};
ballClass.prototype.link = function () {
if (this.state == 1) {
return(undefined);
}
this.state = 1;
with (mg.scr.ballMc) {
mg.linkedListInsert(this);
}
};
ballClass.prototype.delink = function () {
if (this.state == 0) {
return(undefined);
}
this.state = 0;
with (mg.scr.ballMc) {
mg.linkedListDelink(this);
}
};
ballClass.prototype.deleteC = function () {
removeMovieClip(mg.scr.ballMc);
};
ballClass.prototype.readyBef = function () {
var _local1 = this;
tellTarget (mg.scr.ballMc) {
gotoAndStop (1);
};
_local1.refThetaUD = 0;
_local1.refThetaLR = 0;
_local1.temp1 = 0;
_local1.temp2 = 0;
_local1.tanRt = 0;
_local1.postDepthFlag = 1;
_local1.maxFr = mg.vr.ballSpeed;
_local1.frameCount = 0;
_local1.aniFrame = 1;
mg.scr.ballShadowMc._visible = true;
_local1.penceFlag = 0;
_local1.postLFlag = 0;
_local1.postRFlag = 0;
_local1.postCFlag = 0;
_local1.goalFlag = 0;
_local1.aftNetFlag = 0;
_local1.gnetLRFlag = 0;
_local1.gnetSLFlag = 0;
_local1.gnetSRFlag = 0;
_local1.goLeftRight = 0;
_local1.penceIIFlag = 0;
_local1.ufoFlag = 0;
_local1.pObject = null;
_local1.ufoStackNum = 0;
if (mg.vr.tempItem == 2) {
mg.vr.itemUfoCurve = 1;
} else {
mg.vr.itemUfoCurve = 0;
}
_local1.goalTx = 500;
_local1.dummy.x = _local1.ballCd.x + 100;
_local1.dummy.y = _local1.ballCd.y;
_local1.dummy.z = _local1.ballCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.ballCd, mg.vr.worldMatrix);
mg.scr.ballMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1.scaleAd = Math.abs(mg.scr.ballMc._x - (mg.vr.tempVector4.x / mg.vr.tempVector4.w));
_local1.dummy.x = _local1.ballCd.x + 100;
_local1.dummy.y = _local1.ballCd.y;
_local1.dummy.z = _local1.ballCd.z;
_local1.dummy.w = 1;
_local1.ballShCd.x = _local1.ballCd.x;
_local1.ballShCd.y = 0;
_local1.ballShCd.z = _local1.ballCd.z;
_local1.ballShCd.w = 1;
_local1.dummy2.x = _local1.ballShCd.x + 100;
_local1.dummy2.y = _local1.ballShCd.y;
_local1.dummy2.z = _local1.ballShCd.z;
_local1.dummy2.w = 1;
mg.FASVec4MatrixMultiply(_local1.ballCd, mg.vr.worldMatrix);
mg.scr.ballMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr.ballMc._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.ballShCd, mg.vr.worldMatrix);
mg.scr.ballShadowMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr.ballShadowMc._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
mg.scr.ballMc._xscale = (Math.abs(mg.scr.ballMc._x - (mg.vr.tempVector4.x / mg.vr.tempVector4.w)) / _local1.scaleAd) * 100;
mg.scr.ballMc._yscale = mg.scr.ballMc._xscale;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr.ballShadowMc._xscale = (Math.abs(mg.scr.ballShadowMc._x - (mg.vr.tempVector4.x / mg.vr.tempVector4.w)) / _local1.scaleAd) * 100;
mg.scr.ballShadowMc._yscale = mg.scr.ballShadowMc._xscale;
_local1.drawBaseLine();
};
ballClass.prototype.drawBaseLine = function () {
mg.scr.baseLineMc.clear();
mg.scr.baseLineMc.lineStyle(0, 16777215, 50);
mg.FASVec4MatrixMultiply(this.tempGoalPos, mg.vr.worldMatrix);
mg.scr.baseLineMc.moveTo(mg.scr.ballMc._x, mg.scr.ballMc._y);
mg.scr.baseLineMc.lineTo(mg.vr.tempVector4.x / mg.vr.tempVector4.w, mg.vr.tempVector4.y / mg.vr.tempVector4.w);
};
ballClass.prototype.readyToRender = function (pos, fg) {
var _local1 = this;
if (_local1.goalState == 1) {
} else {
_local1.goalState = 1;
_local1.replayFlag = fg;
mg.scr.ballMc._visible = true;
_local1.pos = Number(pos) % 10;
switch (_local1.pos) {
case 0 :
case 1 :
case 2 :
case 3 :
case 4 :
_local1.ballCd.x = 710 * Math.cos((Math.PI/180) * (270 + (15 * (_local1.pos - 2))));
_local1.ballCd.y = Number(0);
_local1.ballCd.z = 710 * Math.sin((Math.PI/180) * (270 + (15 * (_local1.pos - 2))));
_local1.ballCd.w = 1;
break;
case 5 :
case 6 :
case 7 :
case 8 :
case 9 :
_local1.ballCd.x = 810 * Math.cos((Math.PI/180) * (270 + (15 * (_local1.pos - 7))));
_local1.ballCd.y = Number(0);
_local1.ballCd.z = 810 * Math.sin((Math.PI/180) * (270 + (15 * (_local1.pos - 7))));
_local1.ballCd.w = 1;
}
_local1.readyBef();
tellTarget (mg.scr.ballMc.ballRMC) {
gotoAndStop (1);
};
trace((("ball readyToRender:" + pos) + " fg:") + fg);
}
};
ballClass.prototype.kick = function (LR, UD, DS, RT) {
var _local1 = this;
if ((_local1.state == 1) || (_local1.goalState == 0)) {
} else {
var _local2 = mg.vr.whoKickPlayer.energy;
_local1.angleLR = Number(LR) * ((mg.vr.whoKickPlayer.energy / 500) + 0.8);
_local1.angleUD = Number(UD) * ((mg.vr.whoKickPlayer.energy / 500) + 0.8);
_local1.powerDis = Number(DS) * ((mg.vr.whoKickPlayer.energy / 500) + 0.8);
_local1.angleRT = Number(RT) * ((mg.vr.whoKickPlayer.energy / 500) + 0.8);
mg.vr.plLbefEnergy = _local2;
trace("--------------------------------R ENERGY:" + mg.vr.plLbefEnergy);
_local1.addy = _local1.powerDis * Math.tan((Math.PI/180) * _local1.angleUD);
_local1.befPowerDis = _local1.powerDis;
_local1.befBallCdY = _local1.ballCd.y;
_local1.adjAngleUD = _local1.angleUD;
if (_local1.angleLR > 90) {
_local1.goLeftRight = 0;
} else {
_local1.goLeftRight = 1;
}
_local1.link();
tellTarget (mg.scr.ballMc.ballRMC) {
gotoAndPlay (1);
};
trace((((((((("ball kick-> LR:" + LR) + " UD:") + UD) + " DS:") + DS) + " RT:") + RT) + " EN:") + mg.vr.whoKickPlayer.energy);
}
};
ballClass.prototype.gogo = function () {
var _local1 = this;
_local1.i = 0;
while (_local1.i < _local1.maxFr) {
_local1.frameCount++;
trace(((((((((((((((_local1.frameCount + ":ball kick->") + " LR:") + _local1.angleLR) + " UD:") + _local1.angleUD) + " DS:") + _local1.powerDis) + " RT:") + _local1.angleRT) + " EN:") + mg.vr.whoKickPlayer.energy) + " curveDS:") + mg.vr.whoKickPlayer.curveDS) + " mg.vr.itemUfoCurve:") + mg.vr.itemUfoCurve);
_local1.addz = _local1.powerDis * Math.sin((Math.PI/180) * _local1.angleLR);
_local1.addx = _local1.powerDis * Math.cos((Math.PI/180) * _local1.angleLR);
_local1.ballCd.y = _local1.ballCd.y + _local1.addy;
_local1.ballCd.z = _local1.ballCd.z + _local1.addz;
_local1.ballCd.x = _local1.ballCd.x + _local1.addx;
_local1.ballCd.x = Math.floor(_local1.ballCd.x * 100) / 100;
_local1.ballCd.y = Math.floor(_local1.ballCd.y * 100) / 100;
_local1.ballCd.z = Math.floor(_local1.ballCd.z * 100) / 100;
_local1.adjAngleUD = (Math.atan((_local1.ballCd.y - _local1.befBallCdY) / (_local1.powerDis - _local1.befPowerDis)) * 180) / Math.PI;
_local1.adjAngleUD = Math.floor(_local1.adjAngleUD * 100) / 100;
if (_local1.ballCd.y >= 2000) {
_local1.ballCd.y = 1900;
_local1.addy = _local1.addy * -1;
} else if (_local1.ballCd.y <= 0) {
_local1.ballCd.y = 0;
_local1.addy = _local1.addy * -1;
}
_local1.befPowerDis = _local1.powerDis;
_local1.befBallCdY = _local1.ballCd.y;
_local1.powerDis = _local1.powerDis * mg.vr.whoKickPlayer.powerDS;
_local1.addy = _local1.addy * mg.vr.whoKickPlayer.powerUD;
_local1.addy = _local1.addy - mg.vr.whoKickPlayer.gravityGS;
_local1.powerDis = Math.floor(_local1.powerDis * 100) / 100;
_local1.addy = Math.floor(_local1.addy * 100) / 100;
if (_local1.frameCount <= 50) {
switch (mg.vr.whoPlayer) {
case 0 :
_local1.angleLR = _local1.angleLR + ((_local1.angleRT * mg.vr.whoKickPlayer.curveDS) + (mg.vr.itemUfoCurve * (_local1.angleRT / Math.abs(_local1.angleRT))));
break;
case 1 :
_local1.angleLR = _local1.angleLR + ((_local1.angleRT * mg.vr.whoKickPlayer.curveDS) + (mg.vr.itemUfoCurve * (_local1.angleRT / Math.abs(_local1.angleRT))));
break;
case 2 :
_local1.angleLR = _local1.angleLR + ((_local1.angleRT * mg.vr.whoKickPlayer.curveDS) + (mg.vr.itemUfoCurve * (_local1.angleRT / Math.abs(_local1.angleRT))));
}
_local1.angleLR = Math.floor(_local1.angleLR * 100) / 100;
}
if ((_local1.frameCount <= 50) && (_local1.frameCount > 30)) {
_local1.angleLR = _local1.angleLR + ((mg.vr.windEffectPw / 10) * Math.cos((Math.PI/180) * mg.vr.windEffectAg));
_local1.angleUD = _local1.angleUD + ((mg.vr.windEffectPw / 10) * Math.sin((Math.PI/180) * mg.vr.windEffectAg));
_local1.angleLR = Math.floor(_local1.angleLR * 100) / 100;
_local1.angleUD = Math.floor(_local1.angleUD * 100) / 100;
}
if (_local1.ballCd.z > 220) {
mg.scr.ballMc.swapDepths(45);
} else if ((_local1.ballCd.z >= 0) && (_local1.ballCd.z < 220)) {
if (((((_local1.ballCd.x >= -225) && (_local1.ballcd.x <= 225)) && (_local1.ballCd.y <= 205)) && (_local1.goalFlag >= 3)) && (_local1.goalFlag <= 5)) {
mg.scr.ballMc.swapDepths(192);
} else {
mg.scr.ballMc.swapDepths(189);
}
} else if ((_local1.ballCd.z >= -50) && (_local1.ballCd.z < 0)) {
mg.scr.ballMc.swapDepths(255);
} else if ((_local1.ballCd.z >= -188) && (_local1.ballCd.z < -50)) {
mg.scr.ballMc.swapDepths(370);
} else if (_local1.ballCd.z <= (mg.vr.depBaseZ1 - 2)) {
mg.scr.ballMc.swapDepths(499);
}
if (_local1.frameCount > 10) {
if (_local1.ballCd.z >= 0) {
if (((_local1.ballCd.x < -225) || (_local1.ballcd.x > 225)) || (_local1.ballCd.y > 205)) {
if (((_local1.goalFlag != 3) && (_local1.goalFlag != 4)) && (_local1.goalFlag != 5)) {
_local1.goalFlag = 2;
}
}
if ((((_local1.ballCd.x > -205) && (_local1.ballcd.x < 205)) && (_local1.ballCd.y < 195)) && (_local1.goalFlag == 2)) {
if (((_local1.ballCd.z >= 80) && (_local1.ballCd.z <= 90)) && (_local1.aftNetFlag == 0)) {
_local1.angleLR = 360 - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.powerDis = _local1.powerDis * 0.1;
_local1.aftNetFlag = 1;
} else if ((_local1.ballCd.z < 80) && (_local1.ballCd.z > 90)) {
if (_local1.aftNetFlag == 1) {
_local1.aftNetFlag = 0;
}
}
}
if ((((_local1.ballCd.x > -205) && (_local1.ballcd.x < 205)) && (_local1.ballCd.y < 195)) && (_local1.goalFlag == 0)) {
_local1.goalFlag = 3;
if (_local1.replayFlag == 0) {
mg.vr.goalInS.start(0, 1);
mg.vr.goalS.start(0, 1);
}
_local1.postDepthFlag = 9;
_local1.goalTx = _local1.ballCd.x;
trace("GOAL! goalTx:" + _local1.goalTx);
mg.scr.penceMc.watchMc.gotoAndPlay(1);
mg.vr.thisLasrFlag = 1;
if (mg.vr.recordeDataSetFlag != 0) {
_local1.disappear();
mg.vr.recordeDataSetFlag = 2;
return;
}
}
}
switch (_local1.goalFlag) {
case 3 :
if (_local1.ballCd.z >= 90) {
_local1.ballCd.z = 89;
if (_local1.ballCd.x < -68) {
mg.scr.goalPostMc.goalPostInMc.gotoAndStop(2);
mg.scr.goalPostMc.goalPostInMc.ggMc.gotoAndPlay(1);
} else if (_local1.ballCd.x > 68) {
mg.scr.goalPostMc.goalPostInMc.gotoAndStop(4);
mg.scr.goalPostMc.goalPostInMc.ggMc.gotoAndPlay(1);
} else {
mg.scr.goalPostMc.goalPostInMc.gotoAndStop(3);
mg.scr.goalPostMc.goalPostInMc.ggMc.gotoAndPlay(1);
}
_local1.angleLR = 360 - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.powerDis = _local1.powerDis * 0.05;
_local1.goalFlag = 4;
}
if (((_local1.ballCd.x >= 205) && (_local1.ballCd.z >= 0)) && (_local1.ballCd.z <= 90)) {
_local1.ballCd.x = 204;
_local1.angleLR = 180 - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.goalFlag = 5;
} else if (((_local1.ballCd.x <= -205) && (_local1.ballCd.z >= 0)) && (_local1.ballCd.z <= 90)) {
_local1.ballCd.x = -204;
_local1.angleLR = 180 - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.goalFlag = 5;
}
break;
case 4 :
if (((_local1.ballCd.x >= 205) && (_local1.ballCd.z >= 0)) && (_local1.ballCd.z <= 90)) {
_local1.ballCd.x = 204;
_local1.angleLR = 180 - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.goalFlag = 5;
} else if (((_local1.ballCd.x <= -205) && (_local1.ballCd.z >= 0)) && (_local1.ballCd.z <= 90)) {
_local1.ballCd.x = -204;
_local1.angleLR = 180 - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.goalFlag = 5;
}
break;
default :
if ((((((_local1.ballCd.x >= -205) && (_local1.ballCd.x <= 205)) && (_local1.ballCd.Y < 205)) && (_local1.ballCd.Z >= 80)) && (_local1.ballCd.Z <= 100)) && (_local1.gnetLRFlag == 0)) {
_local1.angleLR = 360 - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.powerDis = _local1.powerDis * 0.05;
_local1.gnetLRFlag = 1;
} else if (((((_local1.ballCd.x < -205) && (_local1.ballCd.x > 205)) && (_local1.ballCd.Y >= 205)) && (_local1.ballCd.Z < 80)) && (_local1.ballCd.Z > 100)) {
if (_local1.gnetLRFlag == 1) {
_local1.gnetLRFlag = 0;
}
}
if ((((((_local1.ballCd.x >= -215) && (_local1.ballCd.x <= -175)) && (_local1.ballCd.Y < 205)) && (_local1.ballCd.Z >= 0)) && (_local1.ballCd.Z <= 90)) && (_local1.gnetSLFlag == 0)) {
_local1.angleLR = 180 - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.powerDis = _local1.powerDis * 0.05;
_local1.gnetSLFlag = 1;
} else if (((((_local1.ballCd.x < -215) && (_local1.ballCd.x > -175)) && (_local1.ballCd.Y >= 205)) && (_local1.ballCd.Z < 0)) && (_local1.ballCd.Z > 90)) {
if (_local1.gnetSLFlag == 1) {
_local1.gnetSLFlag = 0;
}
}
if ((((((_local1.ballCd.x <= 215) && (_local1.ballCd.x >= 175)) && (_local1.ballCd.Y < 205)) && (_local1.ballCd.Z >= 0)) && (_local1.ballCd.Z <= 90)) && (_local1.gnetSRFlag == 0)) {
_local1.angleLR = 180 - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.powerDis = _local1.powerDis * 0.05;
_local1.gnetSRFlag = 1;
} else {
if (!(((((_local1.ballCd.x > 215) && (_local1.ballCd.x < 175)) && (_local1.ballCd.Y >= 205)) && (_local1.ballCd.Z < 0)) && (_local1.ballCd.Z > 90))) {
break;
}
if (_local1.gnetSRFlag != 1) {
break;
}
_local1.gnetSRFlag = 0;
}
}
_local1.temp1 = (_local1.ballCd.z * _local1.ballCd.z) + ((_local1.ballCd.y - 200) * (_local1.ballCd.y - 200));
if ((((_local1.temp1 <= 100) && (_local1.ballCd.x >= -205)) && (_local1.ballCd.x <= 205)) && (_local1.postCFlag == 0)) {
_local1.tanRt = (_local1.ballCd.y - 200) / _local1.ballCd.z;
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaUD = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - _local1.angleUD;
_local1.refThetaUD = Math.floor(_local1.refThetaUD * 100) / 100;
_local1.angleLR = 360 - _local1.angleLR;
_local1.angleUD = (2 * _local1.refThetaUD) - _local1.angleUD;
_local1.angleLR = Math.floor(_local1.angleLR * 100) / 100;
_local1.angleUD = Math.floor(_local1.angleUD * 100) / 100;
_local1.powerDis = _local1.powerDis * 0.7;
_local1.postCFlag = 1;
trace("hit POST CENTER");
mg.vr.postHitFlag = 1;
mg.vr.hitPosrS.start(0, 1);
} else if (((_local1.temp1 > 100) || (_local1.ballCd.x < -205)) || (_local1.ballCd.x > 205)) {
if (_local1.postCFlag == 1) {
_local1.postCFlag = 0;
}
}
_local1.temp1 = (_local1.ballCd.z * _local1.ballCd.z) + ((_local1.ballCd.x + 215) * (_local1.ballCd.x + 215));
if (((((_local1.temp1 <= 100) && (_local1.ballCd.y >= 0)) && (_local1.ballCd.y <= 205)) && (_local1.postLFlag == 0)) && (_local1.postCFlag == 0)) {
_local1.tanRt = _local1.ballCd.z / (_local1.ballCd.x + 215);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - _local1.angleLR;
_local1.refThetaLR = Math.floor(_local1.refThetaLR * 100) / 100;
_local1.angleLR = (2 * _local1.refThetaLR) - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.angleLR = Math.floor(_local1.angleLR * 100) / 100;
_local1.angleUD = Math.floor(_local1.angleUD * 100) / 100;
_local1.powerDis = _local1.powerDis * 0.7;
_local1.postLFlag = 1;
trace("hit POST LEFT");
mg.vr.postHitFlag = 1;
mg.vr.hitPosrS.start(0, 1);
} else if (((_local1.temp1 > 100) || (_local1.ballCd.y < 0)) || (_local1.ballCd.y > 205)) {
if (_local1.postLFlag == 1) {
_local1.postLFlag = 0;
}
}
_local1.temp1 = (_local1.ballCd.z * _local1.ballCd.z) + ((_local1.ballCd.x - 215) * (_local1.ballCd.x - 215));
if (((((_local1.temp1 <= 100) && (_local1.ballCd.y >= 0)) && (_local1.ballCd.y <= 205)) && (_local1.postRFlag == 0)) && ((_local1.postCFlag + _local1.postLFlag) == 0)) {
_local1.tanRt = _local1.ballCd.z / (_local1.ballCd.x - 215);
_local1.tanRt = Math.floor(_local1.tanRt * 100) / 100;
_local1.refThetaLR = (2 * (((Math.atan(_local1.tanRt) * 180) / Math.PI) + 90)) - _local1.angleLR;
_local1.refThetaLR = Math.floor(_local1.refThetaLR * 100) / 100;
_local1.angleLR = (2 * _local1.refThetaLR) - _local1.angleLR;
_local1.angleUD = 360 - _local1.angleUD;
_local1.angleLR = Math.floor(_local1.angleLR * 100) / 100;
_local1.angleUD = Math.floor(_local1.angleUD * 100) / 100;
_local1.powerDis = _local1.powerDis * 0.7;
_local1.postRFlag = 1;
trace("hit POST RIGHT");
mg.vr.postHitFlag = 1;
mg.vr.hitPosrS.start(0, 1);
} else if (((_local1.temp1 > 100) || (_local1.ballCd.y < 0)) || (_local1.ballCd.y > 205)) {
if (_local1.postRFlag == 1) {
_local1.postRFlag = 0;
}
}
if (((((_local1.ballCd.y >= 0) && (_local1.ballCd.y <= 150)) && (_local1.ballCd.z >= 220)) && (_local1.ballCd.z <= 250)) && (_local1.penceFlag == 0)) {
_local1.angleLR = 360 - _local1.angleLR;
_local1.powerDis = _local1.powerDis * 0.4;
_local1.penceFlag = 1;
trace("hit pence");
} else if (((_local1.ballCd.y > 150) && (_local1.ballCd.z < 220)) && (_local1.ballCd.z > 240)) {
if (_local1.penceFlag == 1) {
_local1.penceFlag = 0;
}
}
if (((((((_local1.ballCd.x >= -320) && (_local1.ballCd.x <= 320)) && (_local1.ballCd.y >= 150)) && (_local1.ballCd.y <= 350)) && (_local1.ballCd.z >= 220)) && (_local1.ballCd.z <= 250)) && (_local1.penceIIFlag == 0)) {
_local1.angleLR = 360 - _local1.angleLR;
_local1.powerDis = _local1.powerDis * 0.1;
_local1.penceIIFlag = 1;
trace("hit penceII");
} else if ((((((_local1.ballCd.x < -320) && (_local1.ballCd.x > 320)) && (_local1.ballCd.y < 150)) && (_local1.ballCd.y > 350)) && (_local1.ballCd.z < 220)) && (_local1.ballCd.z > 250)) {
if (_local1.penceIIFlag == 1) {
_local1.penceIIFlag = 0;
}
}
if (_local1.angleLR > 360) {
_local1.angleLR = _local1.angleLR - 360;
} else if (_local1.angleLR < 0) {
_local1.angleLR = _local1.angleLR + 360;
}
}
switch (_local1.frameCount) {
case _local1.endPoint :
_local1.disappear();
return;
default :
_local1.i++;
// unexpected jump
_local1.dummy.x = _local1.ballCd.x + 100;
_local1.dummy.y = _local1.ballCd.y;
_local1.dummy.z = _local1.ballCd.z;
_local1.dummy.w = 1;
_local1.ballShCd.x = _local1.ballCd.x;
_local1.ballShCd.y = 0;
_local1.ballShCd.z = _local1.ballCd.z;
_local1.ballShCd.w = 1;
_local1.dummy2.x = _local1.ballShCd.x + 100;
_local1.dummy2.y = _local1.ballShCd.y;
_local1.dummy2.z = _local1.ballShCd.z;
_local1.dummy2.w = 1;
mg.FASVec4MatrixMultiply(_local1.ballCd, mg.vr.worldMatrix);
mg.scr.ballMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr.ballMc._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.ballShCd, mg.vr.worldMatrix);
mg.scr.ballShadowMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr.ballShadowMc._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
mg.scr.ballMc._xscale = (Math.abs(mg.scr.ballMc._x - (mg.vr.tempVector4.x / mg.vr.tempVector4.w)) / _local1.scaleAd) * 100;
mg.scr.ballMc._yscale = mg.scr.ballMc._xscale;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr.ballShadowMc._xscale = (Math.abs(mg.scr.ballShadowMc._x - (mg.vr.tempVector4.x / mg.vr.tempVector4.w)) / _local1.scaleAd) * 100;
mg.scr.ballShadowMc._yscale = mg.scr.ballShadowMc._xscale;
switch (_local1.ufoFlag) {
case 1 :
_local1.ufoStackNum = mg.objExtractStack(2);
if (_local1.ufoStackNum == -1) {
_local1.ufoFlag = 2;
_local1.pObject = mg.vr.linkedHeadTrace;
return;
}
mg.scr["ufoMc" + _local1.ufoStackNum].readyToRender(_local1.ballCd.x, _local1.ballCd.y, _local1.ballCd.z);
return;
case 2 :
if (_local1.pObject == null) {
} else {
_local1.pObject.gogo(_local1.ballCd.x, _local1.ballCd.y, _local1.ballCd.z);
if (_local1.pObject.next == "n") {
_local1.ufoFlag = 1;
} else {
_local1.pObject = _local1.pObject.next;
}
}
}
}
}
_local1.dummy.x = _local1.ballCd.x + 100;
_local1.dummy.y = _local1.ballCd.y;
_local1.dummy.z = _local1.ballCd.z;
_local1.dummy.w = 1;
_local1.ballShCd.x = _local1.ballCd.x;
_local1.ballShCd.y = 0;
_local1.ballShCd.z = _local1.ballCd.z;
_local1.ballShCd.w = 1;
_local1.dummy2.x = _local1.ballShCd.x + 100;
_local1.dummy2.y = _local1.ballShCd.y;
_local1.dummy2.z = _local1.ballShCd.z;
_local1.dummy2.w = 1;
mg.FASVec4MatrixMultiply(_local1.ballCd, mg.vr.worldMatrix);
mg.scr.ballMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr.ballMc._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.ballShCd, mg.vr.worldMatrix);
mg.scr.ballShadowMc._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
mg.scr.ballShadowMc._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
mg.scr.ballMc._xscale = (Math.abs(mg.scr.ballMc._x - (mg.vr.tempVector4.x / mg.vr.tempVector4.w)) / _local1.scaleAd) * 100;
mg.scr.ballMc._yscale = mg.scr.ballMc._xscale;
mg.FASVec4MatrixMultiply(_local1.dummy2, mg.vr.worldMatrix);
mg.scr.ballShadowMc._xscale = (Math.abs(mg.scr.ballShadowMc._x - (mg.vr.tempVector4.x / mg.vr.tempVector4.w)) / _local1.scaleAd) * 100;
mg.scr.ballShadowMc._yscale = mg.scr.ballShadowMc._xscale;
switch (_local1.ufoFlag) {
case 1 :
_local1.ufoStackNum = mg.objExtractStack(2);
if (_local1.ufoStackNum == -1) {
_local1.ufoFlag = 2;
_local1.pObject = mg.vr.linkedHeadTrace;
return;
}
mg.scr["ufoMc" + _local1.ufoStackNum].readyToRender(_local1.ballCd.x, _local1.ballCd.y, _local1.ballCd.z);
return;
case 2 :
if (_local1.pObject == null) {
} else {
_local1.pObject.gogo(_local1.ballCd.x, _local1.ballCd.y, _local1.ballCd.z);
if (_local1.pObject.next == "n") {
_local1.ufoFlag = 1;
} else {
_local1.pObject = _local1.pObject.next;
}
}
}
};
ballClass.prototype.disappear = function () {
var _local1 = this;
mg.scr.ballMc._visible = 0;
mg.scr.ballMc._x = -100;
mg.scr.ballMc._y = -100;
tellTarget (mg.scr.ballMc.ballRMC) {
gotoAndStop (1);
};
_local1.aniFrame = 1;
_local1.goalState = 0;
mg.vr.postHitFlag = 0;
mg.vr.itemUfoCurve = 0;
if (mg.vr.ITEMPREV == 100) {
mg.vr.ITEMPREV = 10;
mg.traceSpotClassObj.changeColor(16777215);
}
mg.scr.ballShadowMc._visible = false;
_local1.delink();
trace((("ball dis:" + _local1.ballCd.z) + " this.goalFlag:") + _local1.goalFlag);
if (((_local1.goalFlag == 3) || (_local1.goalFlag == 4)) || (_local1.goalFlag == 5)) {
if (_local1.replayFlag == 1) {
_local1.replayFlag = 0;
_local1.catchedFlag = 0;
} else {
var _local2 = mg.vr.whoPlayer + 1;
mg.cereMc.readyToRender(_local2);
mg.vr.trialTime++;
mg.interFaceMc.showTry();
}
} else if (_local1.replayFlag == 1) {
_local1.replayFlag = 0;
_local1.catchedFlag = 0;
} else {
mg.cereMc.readyToRender(4);
}
if ((_local1.ufoFlag == 1) || (_local1.ufoFlag == 2)) {
if (mg.vr.linkedHeadTrace != "n") {
_local1.pObject = mg.vr.linkedHeadTrace;
while (true) {
_local1.pObject.disappear();
if (_local1.pObject.next == "n") {
break;
}
_local1.pObject = _local1.pObject.next;
}
}
}
mg.vr.itemUfoCurve = 0;
if (mg.vr.ITEMPREV == 100) {
mg.vr.ITEMPREV = 10;
mg.traceSpotClassObj.changeColor(16777215);
}
if ((mg.vr.recordeDataSetFlag != 0) && (mg.vr.recordeDataSetFlag != 1)) {
mg.vr.recordeDataSetFlag = 2;
}
};
ballClass.prototype.disCatch = function () {
mg.scr.ballMc._visible = 0;
mg.scr.ballShadowMc._visible = false;
this.powerDis = 0;
this.catchedFlag = 1;
mg.vr.itemUfoCurve = 0;
if (mg.vr.ITEMPREV == 100) {
mg.vr.ITEMPREV = 10;
mg.traceSpotClassObj.changeColor(16777215);
}
if ((mg.vr.recordeDataSetFlag != 0) && (mg.vr.recordeDataSetFlag != 1)) {
mg.vr.recordeDataSetFlag = 2;
}
};
}
function ufoClass() {
var _local1 = this;
ufoClass.prototype.oneTimeInit = function (id) {
var _local1 = this;
_local1._visible = 0;
_local1._x = 0;
_local1._y = 0;
_local1.next = "n";
_local1.prev = "n";
tellTarget (_local1) {
gotoAndStop (1);
};
_local1.state = 0;
_local1.id = Number(id);
_local1.playerCd = new Object();
_local1.playerCd.x = 0;
_local1.playerCd.y = 0;
_local1.playerCd.z = 0;
_local1.playerCd.w = 1;
_local1.dummy = new Object();
_local1.dummy.x = 0;
_local1.dummy.y = 0;
_local1.dummy.z = 0;
_local1.dummy.w = 1;
_local1.scaleAd = 20;
mg.objInsertStack(_local1.id, 2);
trace("ufo.....ok:" + _local1.id);
};
ufoClass.prototype.deleteC = function () {
removeMovieClip(this);
};
ufoClass.prototype.readyToRender = function (xx, yy, zz) {
var _local1 = this;
_local1._visible = true;
tellTarget (_local1) {
gotoAndPlay (1);
};
_local1.gogo(xx, yy, zz);
_local1.link();
};
ufoClass.prototype.gogo = function (xx, yy, zz) {
var _local1 = this;
_local1.playerCd.x = Number(xx);
_local1.playerCd.y = Number(yy);
_local1.playerCd.z = Number(zz);
_local1.playerCd.w = 1;
_local1.dummy.x = _local1.playerCd.x + 100;
_local1.dummy.y = _local1.playerCd.y;
_local1.dummy.z = _local1.playerCd.z;
_local1.dummy.w = 1;
mg.FASVec4MatrixMultiply(_local1.playerCd, mg.vr.worldMatrix);
_local1._x = mg.vr.tempVector4.x / mg.vr.tempVector4.w;
_local1._y = mg.vr.tempVector4.y / mg.vr.tempVector4.w;
mg.FASVec4MatrixMultiply(_local1.dummy, mg.vr.worldMatrix);
_local1._xscale = (Math.abs((mg.vr.tempVector4.x / mg.vr.tempVector4.w) - _local1._x) / _local1.scaleAd) * 100;
_local1._yscale = _local1._xscale;
};
ufoClass.prototype.disappear = function () {
var _local1 = this;
_local1._visible = 0;
_local1._x = 0;
_local1._y = 0;
tellTarget (_local1) {
gotoAndStop (1);
};
_local1.delink();
};
ufoClass.prototype.link = function () {
var _local1 = this;
if (_local1.state == 1) {
} else {
_local1.state = 1;
mg.linkedListInsertTrace(_local1);
}
};
ufoClass.prototype.delink = function () {
var _local1 = this;
if (_local1.state == 0) {
} else {
_local1.state = 0;
mg.linkedListDelinkTrace(_local1);
mg.objInsertStack(_local1.id, 2);
}
};
}
function gameMainCenter(main) {
var _local1;
_local1 = main;
trace(("*********game process:" + _local1.gameProcess_flag) + "*******************************");
switch (_local1.gameProcess_flag) {
case 1 :
_local1.initVariables(_local1);
_local1.attachMC(_local1);
_local1.linkMc();
return;
case 2 :
_local1.keyDeleteF(_local1);
_local1.vr.gameProcNum++;
if (_local1.vr.gameProcNum == 81) {
mg.gameProcess_flag = 8;
mg.gameMainCenter(mg);
return;
}
if ((mg.vr.gameProcNum >= 40) && (mg.vr.gameProcNum < 74)) {
mg.vr.GKRNd = 2;
} else if (mg.vr.gameProcNum >= 74) {
mg.vr.GKRNd = 1;
}
if (_local1.vr.gameProcNum == 82) {
_local1.vr.gameProcNum = 0;
}
_local1.vr.x2ScoreFlag = 1;
_local1.nextRound(_local1.vr.gameProcNum, 0);
_local1.textMc.readyToRender(1);
_local1.vr.whiS.start(0, 1);
_local1.keyConstrucion(_local1);
return;
case 3 :
_local1.keyDeleteF(_local1);
_local1.vr.gameProcNum++;
if (_local1.vr.gameProcNum == 81) {
mg.gameProcess_flag = 8;
mg.gameMainCenter(mg);
} else {
if ((mg.vr.gameProcNum >= 40) && (mg.vr.gameProcNum < 74)) {
mg.vr.GKRNd = 2;
} else if (mg.vr.gameProcNum >= 74) {
mg.vr.GKRNd = 1;
}
if (_local1.vr.gameProcNum == 82) {
_local1.vr.gameProcNum = 0;
}
_local1.season++;
_local1.nextSeason(_local1.season);
_local1.textMc.readyToRender(1);
_local1.vr.whiS.start(0, 1);
_local1.keyConstrucion(_local1);
return;
_local1.keyConstrucion(_local1);
return;
_local1.gameMainLoopStart(_local1);
return;
_local1.gameMainLoopStop(_local1);
_local1.keyDeleteF(_local1);
return;
_local1.keyConstrucion(_local1);
_local1.gameMainLoopStart(_local1);
return;
_local1.vr.bgSound.stop();
_local1.gameMainLoopStop(_local1);
_local1.keyDeleteF(_local1);
_local1.gameOverProcess(_local1.score);
return;
_local1.attachMovie("select_Link", "selectMc", 2345);
_local1.selectMc.oneTimeInit();
return;
_local1.keyDeleteF(_local1);
_local1.gameMainLoopStop(_local1);
_local1.nextRound(mg.vr.recordeDataSetNum, 1);
_local1.gameMainLoopStart(_local1);
return;
return;
_local1.keyDeleteF(_local1);
_local1.nextRound(_local1.vr.gameProcNum, 0);
_local1.textMc.readyToRender(1);
_local1.vr.whiS.start(0, 1);
_local1.keyConstrucion(_local1);
return;
}
case 4 :
_local1.keyConstrucion(_local1);
return;
case 5 :
_local1.gameMainLoopStart(_local1);
return;
case 6 :
_local1.gameMainLoopStop(_local1);
_local1.keyDeleteF(_local1);
return;
case 7 :
_local1.keyConstrucion(_local1);
_local1.gameMainLoopStart(_local1);
return;
case 8 :
_local1.vr.bgSound.stop();
_local1.gameMainLoopStop(_local1);
_local1.keyDeleteF(_local1);
_local1.gameOverProcess(_local1.score);
return;
case 9 :
_local1.attachMovie("select_Link", "selectMc", 2345);
_local1.selectMc.oneTimeInit();
return;
case 10 :
_local1.keyDeleteF(_local1);
_local1.gameMainLoopStop(_local1);
_local1.nextRound(mg.vr.recordeDataSetNum, 1);
_local1.gameMainLoopStart(_local1);
return;
case 11 :
return;
case 12 :
_local1.keyDeleteF(_local1);
_local1.nextRound(_local1.vr.gameProcNum, 0);
_local1.textMc.readyToRender(1);
_local1.vr.whiS.start(0, 1);
_local1.keyConstrucion(_local1);
return;
}
}
function gameMainLoopStart(main) {
var lev;
lev = main;
lev.onEnterFrame = function () {
switch (mg.vr.REPLAYFLAG) {
case 0 :
if (lev.vr.linkedHead != "n") {
pObject = lev.vr.linkedHead;
while (true) {
pObject.gogo();
if (pObject.next == "n") {
break;
}
pObject = pObject.next;
}
}
break;
case 1 :
if ((lev.vr.frameCount % 2) != 0) {
break;
}
if (lev.vr.linkedHead == "n") {
break;
}
pObject = lev.vr.linkedHead;
for(;;){
if (false) {
break;
}
pObject.gogo();
if (pObject.next == "n") {
break;
}
pObject = pObject.next;
};
}
lev.vr.frameCount++;
if (!(lev.vr.frameCount === 24)) {
} else {
lev.vr.frameCount = 0;
if (mg.vr.limitTmFlag == 0) {
lev.vr.limitTime--;
}
lev.interFaceMc.showTime();
switch (lev.vr.limitTime) {
case 5 :
mg.textMc.readyToRender(5);
mg.textMc.clockFlag = 0;
lev.vr.timeColorN.setTransform(lev.vr.myColorTransformN);
if (mg.vr.limitTmFlag == 0) {
mg.vr.timeAttS.start(0, 1);
}
return;
case 4 :
lev.vr.timeColorR.setTransform(lev.vr.myColorTransformR);
if (mg.vr.limitTmFlag == 0) {
mg.vr.timeAttS.start(0, 1);
}
return;
case 3 :
lev.vr.timeColorN.setTransform(lev.vr.myColorTransformN);
if (mg.vr.limitTmFlag == 0) {
mg.vr.timeAttS.start(0, 1);
}
return;
case 2 :
lev.vr.timeColorR.setTransform(lev.vr.myColorTransformR);
if (mg.vr.limitTmFlag == 0) {
mg.vr.timeAttS.start(0, 1);
}
return;
case 1 :
lev.vr.timeColorN.setTransform(lev.vr.myColorTransformN);
if (mg.vr.limitTmFlag == 0) {
mg.vr.timeAttS.start(0, 1);
}
return;
case 0 :
lev.vr.timeColorN.setTransform(lev.vr.myColorTransformN);
if (mg.vr.limitTmFlag == 0) {
mg.vr.timeAttS.start(0, 1);
}
lev.timeOver();
}
}
};
}
function gameMainLoopStop(main) {
var _local1;
_local1 = main;
_local1.onEnterFrame = null;
delete _local1.onEnterFrame;
}
function nextSeason(sn) {
mg.vr.trialTime = 9;
mg.interFaceMc.initBt();
mg.vr.recordeDataSetNum = -1;
mg.vr.recordeDataSetFlag = 0;
mg.vr.thisLasrFlag = 0;
mg.scr.player0Mc.refillEnergy();
mg.scr.player1Mc.refillEnergy();
mg.scr.player2Mc.refillEnergy();
mg.vr.GKAIvr = mg.vr.GKAIvr - 50;
if (mg.vr.GKAIvr <= -600) {
mg.vr.GKAIvr = -600;
}
mg.vr.GKLRmoveDis = mg.vr.GKLRmoveDis + 2;
if (mg.vr.GKLRmoveDis >= 24) {
mg.vr.GKLRmoveDis = 24;
}
mg.vr.windPower++;
if (mg.vr.windPower >= 25) {
mg.vr.windPower = 25;
}
mg.vr.enemyAI--;
if (mg.vr.enemyAI <= 1) {
mg.vr.enemyAI = 1;
}
mg.nextRound(mg.vr.gameProcNum, 0);
switch (mg.vr.whoPlayer) {
case 0 :
mg.interFaceMc.roundChgPlayer(0);
break;
case 1 :
mg.interFaceMc.roundChgPlayer(2);
break;
case 2 :
mg.interFaceMc.roundChgPlayer(1);
}
mg.playSoundTotal();
trace("next season:" + mg.vr.GKAIvr);
}
function nextRound(rn, fg) {
if (fg == 0) {
mg.interFaceMc.showRound((mg.vr.gameProcNum % 9) + 1);
mg.vr.itemFlag = 0;
mg.vr.tempScore = 0;
mg.vr.changPlayerFlag = 0;
if (mg.vr.thisLasrFlag == 1) {
mg.vr.recordeDataSetNum++;
mg.vr.thisLasrFlag = 0;
}
}
var _local1;
var j = 0;
var lpObject;
var _local2;
var _local3;
var tds;
var ang;
var nrn = Number(rn);
if (fg == 0) {
mg.getProcDataParsed(mg.vr.gameProcDatas[nrn]);
} else {
mg.getProcDataParsedReplay(mg.vr.recordeDataSet[nrn]);
}
mg.viewMatrixSetting(mg.vr.tempPyPos);
if (mg.vr.linkedHead != "n") {
lpObject = mg.vr.linkedHead;
while (true) {
lpObject.disappear();
if (lpObject.next == "n") {
break;
}
lpObject = lpObject.next;
}
}
if (fg == 0) {
mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].disappear();
} else {
mg.scr[("player" + mg.vr.tempPyWho) + "Mc"].disappear();
}
mg.scr.BGMc.readyToRender(mg.vr.tempPyPos, fg);
mg.GKClassObj.readyToRender(0, -50);
if (mg.vr.tempItem == 2) {
mg.vr.itemUfoCurve = 1;
}
if (fg == 0) {
mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].readyToRender(mg.vr.tempPyPos, 0);
mg.vr.limitTime = 20;
mg.textMc.clockFlag = 1;
} else {
mg.vr.whoPlayer = mg.vr.tempPyWho;
mg.scr[("player" + mg.vr.tempPyWho) + "Mc"].readyToRender(mg.vr.tempPyPos, 1);
mg.scr[("player" + mg.vr.tempPyWho) + "Mc"].setReplayData(mg.vr.tempPyLR, mg.vr.tempPyUD, mg.vr.tempPyDS, mg.vr.tempPyRT);
mg.scr[("player" + mg.vr.tempPyWho) + "Mc"].setReplayPos(mg.vr.tempPyX, mg.vr.tempPyZ, mg.vr.tempPyBCP, mg.vr.tempPyTemp0, mg.vr.tempGkX, mg.vr.tempGkLRVel, mg.vr.tempEnergy);
mg.vr.limitTmFlag = 1;
}
if (mg.ballClassObj.goalState == 1) {
mg.ballClassObj.disappear();
}
mg.ballClassObj.readyToRender(mg.vr.tempPyPos, fg);
if ((mg.vr.tempEyPos >= 0) && (mg.vr.tempEyPos < 5)) {
tds = 300;
ang = 270 + (15 * (mg.vr.tempEyPos - 2));
} else if ((mg.vr.tempEyPos >= 5) && (mg.vr.tempEyPos < 10)) {
tds = 400;
ang = 270 + (15 * (mg.vr.tempEyPos - 7));
} else {
tds = 500;
ang = 270 + (15 * (mg.vr.tempEyPos - 12));
}
_local2 = tds * Math.cos((Math.PI/180) * ang);
_local3 = tds * Math.sin((Math.PI/180) * ang);
_local2 = _local2 + ((((mg.vr.tempEyNUM - 1) * mg.vr.tempEyDis) / 2) * Math.cos((Math.PI/180) * (ang - 90)));
_local3 = _local3 + ((((mg.vr.tempEyNUM - 1) * mg.vr.tempEyDis) / 2) * Math.sin((Math.PI/180) * (ang - 90)));
mg.vr.depBaseZ1 = _local3;
_local1 = 0;
while (_local1 < mg.vr.tempEyNUM) {
if (mg.vr.tempEyArr[_local1] == 1) {
if (fg == 0) {
mg.scr["enemyMc" + mg.objExtractStack(0)].readyToRender(_local2, _local3, mg.vr.tempEyPos, 99);
} else {
mg.scr["enemyMc" + mg.objExtractStack(0)].readyToRender(_local2, _local3, mg.vr.tempEyPos, mg.vr.tempProbJArr[j]);
j++;
}
} else if (mg.vr.tempEyArr[_local1] == 2) {
mg.scr["helperMc" + mg.objExtractStack(4)].readyToRender(_local2, _local3, mg.vr.tempEyPos);
}
_local2 = _local2 - (mg.vr.tempEyDis * Math.cos((Math.PI/180) * (ang - 90)));
_local3 = _local3 - (mg.vr.tempEyDis * Math.sin((Math.PI/180) * (ang - 90)));
_local1++;
}
_local2 = -205;
_local3 = -200;
_local1 = 0;
while (_local1 < mg.vr.tempHdLeftNum) {
if (mg.vr.tempHdLeftArr[_local1] == 1) {
mg.scr["enemyHdMc" + mg.objExtractStack(3)].readyToRender(_local2, _local3);
} else if (mg.vr.tempHdLeftArr[_local1] == 2) {
mg.scr["helperHdMc" + mg.objExtractStack(5)].readyToRender(_local2, _local3);
}
_local2 = _local2 - 60;
_local1++;
}
_local2 = 205;
_local3 = -200;
_local1 = 0;
while (_local1 < mg.vr.tempHdRightNum) {
if (mg.vr.tempHdRightArr[_local1] == 1) {
mg.scr["enemyHdMc" + mg.objExtractStack(3)].readyToRender(_local2, _local3);
} else if (mg.vr.tempHdRightArr[_local1] == 2) {
mg.scr["helperHdMc" + mg.objExtractStack(5)].readyToRender(_local2, _local3);
}
_local2 = _local2 + 60;
_local1++;
}
if (fg == 0) {
mg.vr.windEffectAg = random(360);
mg.vr.windEffectPw = random(mg.vr.windPower);
} else {
mg.vr.windEffectAg = mg.vr.tempWindAg;
mg.vr.windEffectPw = mg.vr.tempWindPw;
}
mg.interFaceMc.setWind(mg.vr.windEffectAg, mg.vr.windEffectPw);
if (mg.vr.tempItem == 1) {
var cpObject;
var finDEnArr;
mg.vr.itemFireBallFlag = 0;
if (mg.vr.linkedHead != "n") {
cpObject = mg.vr.linkedHead;
while (true) {
finDEnArr = String(cpObject._name).split("c");
if ((((finDEnArr[0] == "enemyM") || (finDEnArr[0] == "enemyHdM")) || (finDEnArr[0] == "helperM")) || (finDEnArr[0] == "helperHdM")) {
cpObject.headFlag = 5;
cpObject.bodyFlag = 5;
cpObject.legFlag = 5;
}
if (cpObject.next == "n") {
break;
}
cpObject = cpObject.next;
}
}
delete cpObject;
delete finDEnArr;
}
if (fg == 0) {
mg.interFaceMc.pauseG._visible = 1;
mg.interFaceMc.soundG._visible = 1;
mg.interFaceMc._visible = true;
} else {
mg.interFaceMc.pauseG._visible = 0;
mg.interFaceMc.soundG._visible = 0;
mg.interFaceMc._visible = false;
}
mg.vr.tempItem = 0;
delete j;
delete lpObject;
delete tds;
delete ang;
delete nrn;
}
function scoreUp(nu) {
mg.chgangeVar("score", nu);
mg.scoreShow(mg.score);
}
function scoreShow(sc) {
var i;
var s6 = Math.floor((sc % 10000000) / 1000000);
var s5 = Math.floor((sc % 1000000) / 100000);
var s4 = Math.floor((sc % 100000) / 10000);
var s3 = Math.floor((sc % 10000) / 1000);
var s2 = Math.floor((sc % 1000) / 100);
var s1 = Math.floor((sc % 100) / 10);
var s0 = Math.floor(sc % 10);
i = 0;
while (i < 7) {
mg.interFaceMc.scoreMc["s" + i].gotoAndStop(eval ("s" + i) + 1);
i++;
}
delete s6;
delete s5;
delete s4;
delete s3;
delete s2;
delete s1;
delete s0;
delete i;
}
function timeShow(sc) {
var i;
var minT = Math.floor(sc / 60);
var secT = Math.floor(sc % 60);
var s3 = Math.floor(minT / 10);
var s2 = Math.floor(minT % 10);
var s1 = Math.floor(secT / 10);
var s0 = Math.floor(secT % 10);
i = 0;
while (i < 4) {
mg.skinMc.timeMc["s" + i].gotoAndStop(eval ("s" + i) + 1);
i++;
}
delete minT;
delete secT;
delete s3;
delete s2;
delete s1;
delete s0;
delete i;
}
function startToPause() {
delete mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].onMouseDown;
delete mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].onMouseMove;
delete mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].onMouseUp;
mg.interFaceMc.killButton();
mg.vr.pauseStartTime = getTimer();
mg.pause = 1;
mg.gameProcess_flag = 6;
mg.gameMainCenter(mg);
mg.vr.dummySound.setVolume(0);
mg.vr.bgSound.stop();
if (mg.textMc.state == 1) {
mg.textMc._visible = false;
}
mg.interFaceMc.windMc._visible = false;
if (mg.interFaceMc.itemPopMc._x == 250) {
mg.interFaceMc.itemPopMc._visible = false;
}
mg.attachMovie("pause_Link", "pauseMc", 900);
mg.pauseMc._x = 0;
mg.pauseMc._y = 0;
var _local1;
_local1 = getTimer() - mg.vr.accumulatedTime;
var _local2 = Math.floor(_local1 / 60000);
var _local3 = Math.floor((_local1 % 60000) / 1000);
var msev = Math.floor(((_local1 % 60000) - (Math.floor((_local1 % 60000) / 1000) * 1000)) / 10);
var minN2 = (Math.floor(Number(_local2) / 10) + 1);
var minN1 = ((Number(_local2) % 10) + 1);
var secN2 = (Math.floor(Number(_local3) / 10) + 1);
var secN1 = ((Number(_local3) % 10) + 1);
var mseN2 = (Math.floor(Number(msev) / 10) + 1);
var mseN1 = ((Number(msev) % 10) + 1);
tellTarget (mg.pauseMc.timeMc) {
gotoAndStop (1);
};
tellTarget (mg.pauseMc.timeMc.minMc.n1) {
gotoAndStop(minN1);
};
tellTarget (mg.pauseMc.timeMc.minMc.n2) {
gotoAndStop(minN2);
};
tellTarget (mg.pauseMc.timeMc.secMc.n1) {
gotoAndStop(secN1);
};
tellTarget (mg.pauseMc.timeMc.secMc.n2) {
gotoAndStop(secN2);
};
tellTarget (mg.pauseMc.timeMc.msecMc.n1) {
gotoAndStop(mseN1);
};
tellTarget (mg.pauseMc.timeMc.msecMc.n2) {
gotoAndStop(mseN2);
};
delete msev;
delete minN2;
delete minN1;
delete secN2;
delete secN1;
delete mseN2;
delete mseN1;
mg.myKeyListenerPause = new Object();
Key.addListener(mg.myKeyListenerPause);
mg.myKeyListenerPause.onKeyDown = function () {
if (!(Key.getCode() === 80)) {
} else if (_global.mg.pause == 1) {
_global.mg.stopToPause();
}
};
mg.interFaceMc.pauseG.gotoAndStop(2);
}
function stopToPause() {
Key.removeListener(mg.myKeyListenerPause);
delete mg.myKeyListenerPause;
mg.vr.pauseStopTime = getTimer();
mg.vr.accumulatedTime = mg.vr.accumulatedTime + (mg.vr.pauseStopTime - mg.vr.pauseStartTime);
if (mg.textMc.state == 1) {
mg.textMc._visible = true;
}
mg.interFaceMc.windMc._visible = true;
if (mg.interFaceMc.itemPopMc._x == 250) {
mg.interFaceMc.itemPopMc._visible = true;
}
mg.pause = 0;
mg.gameProcess_flag = 7;
mg.gameMainCenter(mg);
mg.playSoundTotal();
removeMovieClip(mg.pauseMc);
mg.interFaceMc.pauseG.gotoAndStop(1);
mg.scr[("player" + mg.vr.whoPlayer) + "Mc"].awakeMouse();
}
function playSoundTotal() {
if (mg.soundState == 0) {
mg.vr.dummySound.setVolume(100);
mg.vr.bgSound.start(0, 999);
} else if (mg.soundState == 1) {
mg.vr.dummySound.setVolume(100);
mg.vr.bgSound.stop();
} else {
mg.vr.dummySound.setVolume(0);
mg.vr.bgSound.stop();
}
}
function timeOver() {
mg.vr.trialTime--;
mg.interFaceMc.showTry();
if (!(mg.vr.trialTime === 0)) {
} else {
mg.gameProcess_flag = 8;
mg.gameMainCenter(mg);
return(undefined);
}
mg.textMc.readyToRender(6);
mg.textMc.clockFlag = 0;
}
function gameOverClass() {
var _local1 = this;
gameOverClass.prototype.oneTimeInit = function (sc, ttx, tty) {
var _local1 = this;
_local1._x = Number(ttx);
_local1._y = Number(tty);
_local1.score = Number(sc);
tellTarget (_local1) {
gotoAndStop (1);
};
_local1.saveAgainMc._visible = false;
i = 1;
while (i <= 8) {
tellTarget (_local1.finalScoreMc["num" + i]) {
gotoAndStop (1);
};
i++;
}
mg.vr.gameoverS.start(0, 1);
var _local2;
_local2 = getTimer() - mg.vr.accumulatedTime;
mg.vr.totalPlayingTime = _local2;
var _local3 = Math.floor(_local2 / 60000);
var secv = Math.floor((_local2 % 60000) / 1000);
var msev = Math.floor(((_local2 % 60000) - (Math.floor((_local2 % 60000) / 1000) * 1000)) / 10);
var minN2 = (Math.floor(Number(_local3) / 10) + 1);
var minN1 = ((Number(_local3) % 10) + 1);
var secN2 = (Math.floor(Number(secv) / 10) + 1);
var secN1 = ((Number(secv) % 10) + 1);
var mseN2 = (Math.floor(Number(msev) / 10) + 1);
var mseN1 = ((Number(msev) % 10) + 1);
tellTarget (_local1.timeMc) {
gotoAndStop (1);
};
tellTarget (_local1.timeMc.minMc.n1) {
gotoAndStop(minN1);
};
tellTarget (_local1.timeMc.minMc.n2) {
gotoAndStop(minN2);
};
tellTarget (_local1.timeMc.secMc.n1) {
gotoAndStop(secN1);
};
tellTarget (_local1.timeMc.secMc.n2) {
gotoAndStop(secN2);
};
tellTarget (_local1.timeMc.msecMc.n1) {
gotoAndStop(mseN1);
};
tellTarget (_local1.timeMc.msecMc.n2) {
gotoAndStop(mseN2);
};
delete secv;
delete msev;
delete minN2;
delete minN1;
delete secN2;
delete secN1;
delete mseN2;
delete mseN1;
_local1.onEnterFrame = function () {
var _local1 = this;
if (mg.vr.gameoverS.position >= 2415) {
_local1.onEnterFrame = null;
delete _local1.onEnterFrame;
_local1.scoreView();
}
};
};
gameOverClass.prototype.scoreView = function () {
var _local1 = this;
mg.vr.scoreS.start(0, 999);
var s = new Array();
s[8] = Math.floor((score % 100000000) / 10000000) + 1;
s[7] = Math.floor((score % 10000000) / 1000000) + 1;
s[6] = Math.floor((score % 1000000) / 100000) + 1;
s[5] = Math.floor((score % 100000) / 10000) + 1;
s[4] = Math.floor((score % 10000) / 1000) + 1;
s[3] = Math.floor((score % 1000) / 100) + 1;
s[2] = Math.floor((score % 100) / 10) + 1;
s[1] = Math.floor(score % 10) + 1;
_local1.aniFrame = 1;
_local1.num = 1;
_local1.onEnterFrame = function () {
var _local1 = this;
tellTarget (_local1.finalScoreMc["num" + _local1.num]) {
gotoAndStop(_local1.aniFrame);
};
_local1.aniFrame++;
if (_local1.aniFrame > (s[_local1.num] + 1)) {
_local1.num++;
_local1.aniFrame = 1;
}
if (_local1.num == 9) {
_local1.onEnterFrame = null;
delete _local1.onEnterFrame;
mg.vr.scoreS.stop("scoreSD");
delete s;
if (mg.login == 0) {
_local1.saveSucceed();
} else {
_local1.sendScore();
}
}
};
};
gameOverClass.prototype.saving = function () {
var _local1 = this;
_local1.ct = 0;
tellTarget (_local1.scoreSaveMc) {
gotoAndStop (1);
};
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.ct++;
if ((_local1.ct % 2) == 0) {
_local1.scoreSaveMc._visible = false;
} else {
_local1.scoreSaveMc._visible = true;
}
};
};
gameOverClass.prototype.saveSucceed = function () {
var _local1 = this;
_local1.onEnterFrame = null;
delete _local1.onEnterFrame;
_local1.scoreSaveMc._visible = true;
tellTarget (_local1.scoreSaveMc) {
gotoAndStop (2);
};
_local1.ct = 0;
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.ct++;
if (_local1.ct > 72) {
_local1.onEnterFrame = null;
delete _local1.onEnterFrame;
tellTarget (_local1) {
gotoAndStop (2);
};
_local1.showRank();
}
};
};
gameOverClass.prototype.showRank = function () {
var _local1 = this;
_local1.msg1.html = true;
_local1.msg2.html = true;
_local1.msg3.html = true;
if (mg.login) {
_local1.score = mg.point;
_local1.ranking = mg.rank;
_local1.msg1.htmlText = mg.msg1;
_local1.msg2.htmlText = mg.msg2;
_local1.tFormat = new TextFormat();
_local1.tFormat.align = "center";
_local1.msg1.setTextFormat(_local1.tFormat);
_local1.msg2.setTextFormat(_local1.tFormat);
} else {
mg.changeVar("score", 0);
_local1.score = mg.score;
_local1.msg1.htmlText = (mg.msg1 + _local1.score) + mg.msg2;
_local1.msg2.htmlText = mg.msg3;
_local1.tFormat = new TextFormat();
_local1.tFormat.align = "center";
_local1.msg1.setTextFormat(_local1.tFormat);
_local1.msg2.setTextFormat(_local1.tFormat);
}
_local1.retryBtMC.onRelease = function () {
mg.restartGame2();
};
};
gameOverClass.prototype.saveFailed = function () {
var _local1 = this;
_local1.onEnterFrame = null;
delete _local1.onEnterFrame;
tellTarget (_local1.scoreSaveMc) {
gotoAndStop (3);
};
_local1.saveAgainMc._visible = true;
_local1.scoreSaveMc._visible = true;
_local1.saveAgainMc.onRelease = function () {
this._parent.sendScore();
};
};
gameOverClass.prototype.sendScore = function () {
mg.mySendScore();
};
timerClass.prototype.deleteC = function () {
removeMovieClip(this);
};
}
function gameOverProcess(sc) {
mg.gameMainLoopStop(mg);
mg.keyDeleteF(mg);
mg.interFaceMc.pauseG._visible = false;
mg.interFaceMc.soundG._visible = false;
mg.cereMc._visible = false;
mg.dataSaveMcApp();
}
function restartGame() {
removeMovieClip(mg.gameRetrySaveMc);
mg.deleteVariables(mg);
mg.deleteMC(mg);
mg.gotoAndPlay("restart");
}
function restartGame2() {
removeMovieClip(mg.gameOverMc);
mg.deleteVariables(mg);
mg.deleteMC(mg);
mg.gotoAndPlay("init");
}
function dataSaveMcApp() {
mg.attachMovie("gameOverLink", "gameOverMc", 3020);
mg.gameOverMc.oneTimeInit(mg.score, 250, 187);
}
stop();
removeMovieClip(introAniMc);
removeMovieClip(howAniMc);
stopAllSounds();
Object.registerClass("enemy_Link", enemyClass);
Object.registerClass("enemyHd_Link", enemyHdClass);
Object.registerClass("star_link", starClass);
Object.registerClass("player0_Link", playerClass);
Object.registerClass("player1_Link", playerClass);
Object.registerClass("player2_Link", playerClass);
Object.registerClass("helper_Link", helperClass);
Object.registerClass("helperHd_Link", helperHdClass);
Object.registerClass("BG_Link", BGClass);
Object.registerClass("select_Link", selectClass);
Object.registerClass("CERE_Link", CEREClass);
Object.registerClass("ending_Link", endingClass);
Object.registerClass("interFace_Link", interFaceClass);
Object.registerClass("text_Link", textClass);
Object.registerClass("ufo_link", ufoClass);
Object.registerClass("gameOverLink", gameOverClass);
_global.mg = this;
mg.gameProcess_flag = 1;
mg.gameMainCenter(mg);
mg.gameProcess_flag = 9;
mg.gameMainCenter(mg);
Symbol 31 Button
on (release) {
mg.startChk();
}
Symbol 36 Button
on (release) {
_parent.gotoAndPlay("howTo");
}
Symbol 42 MovieClip [introAniLink] Frame 17
stop();
Symbol 49 Button
on (release) {
mg.stopToPause();
}
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 2
stop();
Symbol 90 MovieClip Frame 3
stop();
Symbol 151 MovieClip [gameOverLink] Frame 1
stop();
Symbol 151 MovieClip [gameOverLink] Frame 2
stop();
Symbol 152 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 165 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 175 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 184 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 185 MovieClip [UpArrow] Frame 1
stop();
Symbol 185 MovieClip [UpArrow] Frame 2
stop();
Symbol 185 MovieClip [UpArrow] Frame 3
stop();
Symbol 192 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 199 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 204 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 205 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 213 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 221 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 229 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 230 MovieClip [DownArrow] Frame 1
stop();
Symbol 230 MovieClip [DownArrow] Frame 2
stop();
Symbol 230 MovieClip [DownArrow] Frame 3
stop();
Symbol 233 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 234 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 546 Button
on (release) {
mg.soundState = 1;
if (mg.pause == 0) {
mg.playSoundTotal();
}
nextFrame();
}
on (rollOver) {
this.testMsg.gotoAndStop(2);
}
on (rollOut) {
this.testMsg.gotoAndStop(1);
}
Symbol 553 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 2
stop();
Symbol 553 MovieClip Frame 3
stop();
Symbol 553 MovieClip Frame 4
stop();
Symbol 556 Button
on (release) {
mg.soundState = 2;
if (mg.pause == 0) {
mg.playSoundTotal();
}
nextFrame();
}
on (rollOver) {
this.testMsg.gotoAndStop(3);
}
on (rollOut) {
this.testMsg.gotoAndStop(1);
}
Symbol 559 Button
on (release) {
mg.soundState = 0;
if (mg.pause == 0) {
mg.playSoundTotal();
}
nextFrame();
}
on (rollOver) {
this.testMsg.gotoAndStop(4);
}
on (rollOut) {
this.testMsg.gotoAndStop(1);
}
Symbol 560 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 4
gotoAndStop (1);
Symbol 565 Button
on (release) {
if (mg.pause == 0) {
mg.startToPause();
} else {
mg.stopToPause();
}
}
Symbol 570 Button
on (release) {
if (mg.pause == 0) {
mg.startToPause();
} else {
mg.stopToPause();
}
}
Symbol 571 MovieClip Frame 1
this.stop();
Symbol 571 MovieClip Frame 2
this.stop();
Symbol 631 Button
on (release) {
_parent.itemOK();
}
Symbol 636 Button
on (release) {
_parent.itemCLOSE();
}
Instance of Symbol 571 MovieClip "pauseG" in Symbol 642 MovieClip [interFace_Link] Frame 1
/* no clip actions */
Symbol 711 MovieClip Frame 5
stop();
Symbol 716 MovieClip Frame 5
stop();
Symbol 721 MovieClip Frame 5
stop();
Symbol 747 Button
on (release) {
this.prevB();
}
Symbol 752 Button
on (release) {
this.nextB();
}
Symbol 757 Button
on (release) {
this.selectB();
}
Symbol 789 Button
on (release) {
this.replay();
}
Symbol 792 Button
on (release) {
this.retry();
}
Symbol 795 Button
on (release) {
this.nextR();
}
Symbol 864 MovieClip Frame 31
stop();
Symbol 883 MovieClip [item_EFF2Link] Frame 15
removeMovieClip(this);
Symbol 893 MovieClip [item_EFF1Link] Frame 28
removeMovieClip(this);
Symbol 901 MovieClip [item_EFF0Link] Frame 7
removeMovieClip(this);
Symbol 937 MovieClip Frame 1
stop();
Symbol 937 MovieClip Frame 2
stop();
Symbol 942 Button
on (release) {
this.txtMc.gotoAndStop(1);
}
Symbol 947 Button
on (release) {
this.txtMc.gotoAndStop(2);
}
Symbol 954 Button
on (release) {
this.txtMc.gotoAndStop(3);
}
Symbol 956 MovieClip Frame 10
stop();
Instance of Symbol 965 MovieClip in Symbol 974 MovieClip [gameRetrySaveLink] Frame 1
on (release) {
mg.restartGame();
}
on (keyPress "<Space>") {
mg.restartGame();
}
Instance of Symbol 971 MovieClip in Symbol 974 MovieClip [gameRetrySaveLink] Frame 1
on (release) {
mg.dataSaveMcApp();
}
on (keyPress "<Enter>") {
mg.dataSaveMcApp();
}
Symbol 1021 MovieClip Frame 9
this.stop();
this.initChk = function () {
var _local1 = _root;
var _local2 = this;
$initObj = new LoadVars();
$initObj.ud = _local1.ud;
$initObj.onLoad = function (success) {
var _local1 = this;
var _local3 = _root;
if (success) {
var _local2 = Number(_local1.init);
if (_local2) {
_local3.msg1 = _local1.msg1;
_local3.msg2 = _local1.msg2;
_local3.msg3 = _local1.msg3;
loadingBar.onEnterFrame = null;
loadingBar._x = 0;
gotoAndPlay ("loadingOk");
}
}
};
$initObj.sendAndLoad(_local1.initLink, $initObj, "POST");
};
this.loadingBar.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = (((_local2.getBytesLoaded() * 100) / _local2.getBytesTotal()) * 2.04) + -204;
if (_local2.getBytesLoaded() >= _local2.getBytesTotal()) {
_local1.onEnterFrame = null;
_local1._x = -5;
_local1.initCnt = 0;
gotoAndPlay ("loadingOk");
}
};
Symbol 1021 MovieClip Frame 31
this._parent.gotoAndPlay("loading_ok");
Symbol 1022 MovieClip Frame 1
this._parent.comTAG = "cyworld.nate.com";
Symbol 1022 MovieClip Frame 20
if (_root.isLoaded != "fin") {
_root.isLoaded = "fin";
} else {
this.gotoAndPlay("loading_ok");
}
Symbol 1022 MovieClip Frame 21
this.stop();
if (Number(_root.userLevel) > 10) {
_root.tempLevel = _root.userLevel.slice(0, 1);
_root.userLevel = _root.userLevel.slice(1, 2);
}
Symbol 1022 MovieClip Frame 49
this.stop();
this.onEnterFrame = function () {
var _local1 = this;
_local1._parent.play();
_local1.onEnterFrame = null;
delete _local1.onEnterFrame;
};
Symbol 1109 MovieClip Frame 7
stop();
Symbol 1112 MovieClip Frame 7
stop();
Symbol 1115 MovieClip Frame 7
stop();