Frame 1
function getStageDat(num) {
var _local1 = [];
_local1[0] = "26-10/A75B3A24B5A13U3A5B4A19ZA2B4A8U3A2B13A13B13A8B42/4-5";
_local1[1] = "24-18/A21B3A22B2A22B2A22B2A10U2A9UB2A9UA5ZA5UB2A8UA4B7AUB2A13B7AUB2A21UB5A18UB4A19UB4A7U4A9B4A5UB5A9B4A5UB5AU3A5B4A5UB5A5B8A6B5AU3AB8A6B5A5B30/3-14";
_local1[2] = "30-20/B31A27B3A19UAUA5B3A18UAUAUA4B3A4U3A2ZA2U3A12B5A15B8A2B5A15B8A2B28A2B3A27B3A27B3A20U5A2B3A20U5A2B3A27B3A17B13A7U5A5B13A7U5A5B13A17B102/3-14";
_local1[3] = "38-17/B44A14B2A14B8A4U8A2B2A14B8A14B2AZA12B8A2B19UA8B7A3B2A10B7UA3B3AUB8A2B2A5U2A3B7UA3B3AUB8A2B2A10B7A8UB8A3BUAB6A2B7A9B8A2B2UAB6A2B2A14B8A2B2A6B2A2B2A9B3A2B3A7B2A6B2A2B2A9B3A2B3A7B2A6BA14B3A3B2A7B6A2B2A8B3A8B2A15B2A8B3A8B2A15B2A8B3A8B39/2-13";
_local1[4] = "15-40/B16A13B2A13B2A9ZA3B2UAB3A8B2UAB13UA7B7UA11B3A12B6A9B6A9B6A4B2UA2B12UA2B12A2UB6A8UB6A8UB4A10UB4A10UB4A11B4A2UB5A3B4UAUB5A2B5UA2B5A3B4UA10B4UA10B4UA10B4A11B4A11B4A6B2UA2B12UA2B12A2UB4A10UB4A10UB4A10UB4A11B4A11B4A6UB8A6UB8A6UB8A7B21/3-36";
_local1[5] = "30-10/A27B3A27B3A28B5A25B4A17U3A3ZA2B4A7U3A2U3A11B4A26B4A16B14A6B52/3-7/1-12-6-0>1-19-5-0>1-26-5-0>1-20-5-2";
_local1[6] = "36-10/A144B2A32B3A5U3A3U2A6U3A12B2A25U2A2U2A3B2A14B2C2B2A12ZAB10C2B13C2B2C2B42/2-6/1-27-7";
_local1[7] = "36-10/B37A17B2A7BA7B2A12U3A5U5ABA2U2ZA2B2A20U5ABA7B2A14B3CBA7BA7B2A8BDB2A2B13A2B7A8B4A2B7A8B7A8B4A3U4A3U3A4B7A8B4A17B25CB6DB9/3-6/1-23-4";
_local1[8] = "15-50/A96UA13UAZA7FA4UA8F2A3UA9FA4UA40FA13FBA13B2A13B2A5UA7B4KA2UA4KB4A12B3A12B3A9B2UB3A10BUB3A10BUB3A10BUB3A2B4KB4UB3A11UB3A11UB3A12B3A12B3A12B3A13B2A13B2A13B2A13B2A13B7KA2KB6A13B2A13B2U3A10B2A13B2A13B2K3B3KBA5B2A9UA3B2A9UA3B2A13B2A13B2A13B2A13B2A13B12KB3/3-47/1-7-48-2";
_local1[9] = "40-15/B41A38B2A38B2A24U3A2B3A6B2A23ZA5B3A6B2A29KB2A6B2A29B10KA29B3A6B2A7U3A19B3A6B2A7B3A19B3A6B2A22DB9A6B2A16KA16U4AB2A33U4AB2A7KA18KA11B22EB18/2-11";
_local1[10] = "26-10/FA24FBA24B2A5U2A17B2A2ZA8U2A3U2A6B7A3ZA5ZA9B2A7B4A2B3A3ZA4B2A18B3A3B2A7U4A13B2A19U4AB6CB11DB8/2-7/1-15-9>1-24-9";
_local1[11] = "17-14/B17FA14B2FA2U3A8YB2FA5UA7YB3A3YAUA8B3AZAYAB3A5UB5A3B3A5UB3Y2A3B6CAUB3A13UB3A7U2A5B3A6UA2UA4B3A13YB10Y2B24/2-9";
_local1[12] = "30-17/B14CB10CB5A28B2A5U3A20B2O5B3CA6U2A11B2A5B4A18UB2A2ZA2B4A10U5A3UB11A2O4A2O9AUB2UA26UB2UA21U2A3UEBUA10U2A3U2A10B2UA27B2A5U5A8O4A6B2A4B4O3A2O3A8DB5A4B4A16B6A4B4A16B14Y16B35/2-12";
_local1[13] = "18-16/B19A16B2A3UA5U2A5B2A3UA12B2A3UA12JB4UAB4A2BHA2UB2A3UA11UB2A15UB2A15UB2UA9ZA5B2UA3B2A2U6AGB2UA3IBA9B3A2B4A9B3A15B3A15B20/11-7/1-1-14";
_local1[14] = "27-20/B28A24B3A24B3AZAZAZAZAUAUAUAUA8B3A17BGB3UAB3A17B5UAB3A17B5UANB2A21BA2NBNA21BA2NBNA9N2A10BA2B3A9N2A6U3ABAUB3UAB4A3N2A6NBUANAUB3UA8N2A6NBUANAUB3UA16NBA2NA2B3UA16N2A2BA2B3A5N2A6B2A2N2A2BA2NB2A5N2U6B2A2N2A2BA2NB2A5N2O6B2A9NB2A5N2A6B2A9NB28/2-17/1-12-19-0";
_local1[15] = "50-10/A86B6A36B2A30B2A2B2A34NA48NBA5YA15U5A15U3A4B2A5B4A2B2A2B2A3B3M2B2A2B2A17B2A20B7A2B2A15ZAB2A5U4A2U2A2U2A3B13M2B7DB14M8D2B32/2-7/2-10-4>2-14-7>2-28-4>2-36-7>2-38-4>2-40-2";
_local1[16] = "15-30/B16A13BHA4U4A2Z2ABMA13BMA13B2A13B2AU3A4N3A2B7A5NA2B7A5NA2B6MA8B6MA8B6MA2U3A3B7A8B7A6UKB7A6UB8A6UB3UA10UB3UA11B3UA11B3UA11KB2AU4A5B10A5B10A5B6A8UMB5A8UMB5A8UMB5A8UB6A9B6A9B19/4-26/2-6-21-0-1>2-6-7-0-1>2-9-1-0-0";
_local1[17] = "18-20/B19A8Y2A6B2A16B2A16BHA3O10BO2BHA3O3Y2O5BO2BHA3O5Z2O3BA2BHA3OZ2O7BA2BHA3O7Z2OBA2B16O2B2A13BO2B2A13BA2B2A9U3ABA2B2O2A2B2A7BA2B2O2A2O2A2B6O2BHO2A2O2A2O5BO2B2A8OA4BA2B2A8OAZ2ABA2B2A8OA4OA2B10HB5I2B/3-17";
_local1[18] = "17-20/NA15N2A15NBA15B2A9Z3A3B2A15B2A7X6A2B2A15B2A15B2O2B4UA8B2O2B4UA8B2A5LUA7B3A5LUA2U3A2B3A5LUA8B2A5LA9B2A5B4A6B2A5B4A6B2A8LA6B2A8LA6B2A4WA3LA4WAB18/2-17/1-14-17";
_local1[19] = "42-10/BA30N2A8NBA9U2A15U3AN2A3ZA4B2A21B2A7N2A8B2A11NBA3Y2A3B2V7B2V8B2A5DB3A2NBA8B2V7B2V8B2V11B2V8B2V7B2V8B2V11B2V2Q3V3B2V2Q3V12B2V2Q3V3Q2VB2V8B2V12Q4VB2V11B2V4B6V7B2V8B43/2-2/2-36-4-0-1";
_local1[20] = "35-10/B3P9B5P11B8A3U7A7U9A7B2A10UA16U3A3B2UA6Y2AUA20ZAB2UAB2A2UB2AUA4B2A16B2UA5UB2AUA13B3A3B5UA5UB2AUA2B2A16B4A7B2A22B4A7B2A7Y15B19CB18/4-6";
_local1[21] = "20-10/B4P13B4A4U5A9B2A17ZB2UA14ZA2B2UAB2A2B14UA5P6A6B2A7U4A7B2A16ZAB5A10B26/5-6/3-12-3-0-5";
_local1[22] = "26-20/B8P12B7A18UA5B2A18UA5B2A7ZA16B2A7ZA16B2A7ZA15UB2A23UB2A18L3A2UB2A6U2A10BKBA2UB2O3A2L4A2U4A3B3A2UB2A11L4A9B2A24B2A24B2AWA22B5M3BA9U3AU3AB9A17B9A6B3L3B2L3B9A6B3A8B9A6B3Y8B27/9-16/2-1-10-0-0";
_local1[23] = "42-13/B43A40B2A40B2A36WA2UB2A35B3AUB2L6A29L3AUB2A5LA2U3A8U4A7U3A2L3A2B2A5LA34B2AZ3ALA7L4A8L4A11B8O10YO11YO11B8A34B8Y34B43/2-2";
_local1[24] = "15-60/A2B6A9BA4BA9BA4BA9BA4BA9BA4BA9BZA3BA9BA4BA9BA4BA9BA4BA9BA4BA9BUA3BA9BUA3BA9BUA3BA9BUA3BA9BA4BA9BA4BA9BA4BA9BZA3BA9BA4BA9BA4BA9BUA3BA9BUA3BA9BUA3BA9BUA3BA9BA4BA9BA4BA9BA4BA9BA4BA9BA4BA9BA4BA9B2A3BA9BA4BA9BA4BA9BA4BA9BA4BA9BA4BA9BZA3BA9BA4BA9BA4BA9BA4BA9BUA3BA9BUA3BA9BUA3BA9BUA3BA9BA4BA9BA4BA9BA4BA9BZA3BA9BA4BA9BA4BA9BUA3BA9BUA3BA9BUA3BA9BUA3BA7B3A4BA7BA6BA7BA6BA7BA6BA7BA6BA7B8A7/2-57/2-3-7>2-5-31>2-3-50";
_local1[25] = "20-26/B21A18B2A5U3A10B2A18B2A16WAB2L15B5A15B5A5U3A3U3A4B2A18B2AWA16B5X15B5A15B2A5U3A6Z3AB2A18B2A18B2L8X7B5A8XA6B5A3U3A2XAU3A5B2A8XA9B2A8XA7WAB2A2X7L6B5A15B5A9U4A5B2A18B2A18B8KB12/2-2/1-12-2-0>1-15-8-0>1-17-2-0>1-17-8-0";
_local1[26] = "80-13/NA78NBA78B2A78B2A23BA54B2A16U4A3BA54B2A2M8KM10A2BA54B2A23BA54B2A5U4A14BA49ZA4B2A2M10A2M7A2BA54B2A23BA54B2A6U4A13BA20BA23BA9B2A3M14A2M2A6M5KM9A5M5KM12DB93/1-10/2-11-9-0-1>2-1-3-0-1>2-22-6-0-1>2-28-9-0-1>2-48-9-0-1";
_local1[27] = "30-27/B55FB5P28B2A28B2A28B2A28B2A11NA4NA11B2A11NU4NA11B2A11NA4NA11B2A11NA4NA11B2A11NU4NA7UA3B2A11NA4NA7UA3B2A11NA4NA7ZA3B2A11NU4NA11B2A11NA4NA11B2A28B2A28B2A28B2A28BNA28N2A28N2A7U2A10U2A7N2A2U3A18U3A2N2A10O8A10N2A6O16A6NBO13I2O13B31/14-5/1-5-20>1-25-20>1-10-20>1-20-20";
_local1[28] = "35-30/B24P10B2A18Y3A12B2A33B2A23B3O7B2A17U3A3B3A7B2Z2BA13B5A2B3A7B2O2BA13B5A12B2O2BU5A18U7GBA2BA10HA19B2Z2B4CA26B2O2BA30NBO2BA30B2UABA30B2UABA30B2UABA30B2UABA30B2UABA30B2UABA30B2A2BA17B3DB2O7B2A2BA17B6A2U2A3B2A2BA17B6O7B2A2BA17B6A7B2A2BA17B6O7B2A2BA5B18A3U2A2B2A2BA5B18O7B2A8B7A8O3A7GBA8B7AU6AB3O7B2A8B7A8B3A7B2A8GB6A8B3A7B28I7B/1-21/1-2-28-2>1-20-20";
_local1[29] = "55-30/B4P10B8P11B23A32B3A18B2A11ZA20KB2A18B2A32O3A11Z4A3B2A11ZA10HA9BGBA18B2A32B3A18B5KA28B3A12B12A43B8A53B2A53B2A53B2A4Z2A47B2A20ZA32BKA53B2A26KA26B2A18B6A29B2A2B9A42B2A53B2A53B2A53B2A53B2A53B2A53B2A53B2A53B7A6B3KB2A7B5KB2A5B6A10B2V48B7V48B7V48B61/2-23/2-45-27-0-1";
return(_local1[num]);
}
function getTutorialDat(num) {
var _local1 = [];
_local1[0] = "16-10/A15BA15BA15BA15BA15BA11B5A11B5B16B16B16/4-4";
_local1[1] = "15-15/B17A11B4A11B4A11B4A11B4A3B5A3B4A3B5A3B4A3B5A3B4A11B4A11B4A11B4A11B4A11B4A11B17/4-10";
_local1[2] = "15-10/A9B6A9B6A11B4A11B4A11B4A11B4A9B6A9B6A9B21/3-6";
_local1[3] = "15-15/A52B3A9BA2BA11BA14BA2BA14BA11BA2BA11BA14BA2BA14BA37B15/2-12";
_local1[4] = "15-20/A69B2A13B2A13B2A13B2A8B2A3B2A8B2A3B2A8B2A13B2A13B2A13B2A3B2A8B2A3B2A13B2A13B2A13B2A13B2A4B15/2-16";
_local1[5] = "15-10/A135B15/0-7/1-11-7-0";
_local1[6] = "15-10/A135B4DB3CB6/1-8";
_local1[7] = "15-10/A94B7A34B7C2B6/1-7";
_local1[8] = "15-15/A113B3A94B4KB10/0-12";
_local1[9] = "15-10/A48B3A12B3A12B3A20KA33B15/2-7";
_local1[10] = "15-10/A20Z3A19B3A12B3A2B8A2B3A12B3A5Z3A4B3A12B3A12B18/1-7";
_local1[11] = "18-10/A16YBA16YBA5Y2A10BA5Y2A10BA12B3A2BA13Y2A2BA17BA17BA7Y2A8B19/1-6";
_local1[12] = "22-10/A133B4A2O3A2O3A2B4A67/1-4";
_local1[13] = "15-10/A5B3A22BA14JA9GA4BA6B4A4BA14BA14BA14BA14B6IB8/2-7";
_local1[14] = "15-10/A31NA11NA2NA11NA2BA11NA2BA11NA2BA11NA2BA11NA2BA11NAB15/5-6";
_local1[15] = "15-10/A135B5M3B7/1-7";
_local1[16] = "15-15/BA14BA14BA14BA14BA14BA14BA11KA2BA8B4A2BA14BA14BA14BA14BA14BA14B5KB9/1-12";
_local1[17] = "30-10/A100O13A6BA10O6A2O5A6BA2H3A5O13A6BA120/1-1/1-17-4-0";
_local1[18] = "15-10/A67B3A13LA14LA14LA12WALA6B15/1-7";
_local1[19] = "15-10/A85B3A2V60/1-3";
_local1[20] = "15-10/A35P7A51B4A32B4A17/3-4";
_local1[21] = "15-10/A135M3B12/0-7/3-10-8-0-5";
return(_local1[num]);
}
function getAutoKeyDat(num) {
var _local1 = [];
_local1[0] = [38, 3, 120];
_local1[1] = [55, 50, 10, 35, 40];
_local1[2] = [30, 20, 10, 60];
_local1[3] = [20, 20, 5, 15, 5, 18, 5, 15, 5, 20, 20];
_local1[4] = [40, 35, 10, 50, 10, 30];
_local1[5] = [36, 5, 50];
_local1[6] = [120];
_local1[7] = [40, 1, 40];
_local1[8] = [100];
_local1[9] = [50, 50, 20];
_local1[10] = [25, 10, 40, 30];
_local1[11] = [38, 3, 70, 35, 30];
_local1[12] = [21, 5, 35, 5, 35, 5, 35];
_local1[13] = [130];
_local1[14] = [40, 5, 80, 60];
_local1[15] = [40, 40, 40];
_local1[16] = [130];
_local1[17] = [90];
_local1[18] = [40, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 40];
_local1[19] = [40, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 14, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 20];
_local1[20] = [20, 30, 30];
_local1[21] = [1, 150];
return(_local1[num]);
}
function getMapNumList() {
var _local1 = {A:0, B:1, C:2, D:3, E:4, F:5, G:6, H:7, I:8, J:9, K:10, L:11, M:12, N:13, O:14, P:15, Y:50, Z:51, W:53, X:54, V:55, U:56, Q:57};
return(_local1);
}
function getMapCodeList() {
var _local1 = {n0:"A", n1:"B", n2:"C", n3:"D", n4:"E", n5:"F", n6:"G", n7:"H", n8:"I", n9:"J", n10:"K", n11:"L", n12:"M", n13:"N", n14:"O", n15:"P", n50:"Y", n51:"Z", n52:"mimi", n53:"W", n54:"X", n55:"V", n56:"U", n57:"Q"};
return(_local1);
}
Frame 3
if (this._framesloaded != this._totalframes) {
gotoAndPlay(_currentframe - 1);
return(undefined);
}
initAccess = false;
gameSendScore = 0;
rankingMode = true;
debag = false;
bgm0 = new Sound(this);
bgm0.attachSound("bgm0");
bgm1 = new Sound(this);
bgm1.attachSound("bgm1");
bgm2 = new Sound(this);
bgm2.attachSound("bgm2");
bgm3 = new Sound(this);
bgm3.attachSound("bgm3");
bgm0.onSoundComplete = function () {
this.start(0, 4);
};
bgm1.onSoundComplete = function () {
bgm2.start(0, 4);
};
bgm2.onSoundComplete = function () {
bgm1.start(0, 2);
};
bgm3.onSoundComplete = function () {
this.start(0, 4);
};
this.gotoAndStop("asw");
Frame 5
if (gameStage == 30) {
bgm1.stop();
if (gameHiScore < gameScore) {
gameHiScore = gameScore;
}
gotoAndStop ("ending");
return(undefined);
}
if (gameStage < 22) {
this.gotoAndStop("tutorial");
} else {
this.gotoAndStop("game");
}
Frame 45
gameScore = 0;
gameHiScore = 0;
gameRest = 3;
if (debag == false) {
editBtn._visible = false;
}
if (initAccess == false) {
initAccess = true;
dispAccessSys(1);
}
dispAccessSys(2);
Frame 135
bgm0.start(0, 4);
Symbol 21 MovieClip Frame 13
i = 0;
while (i < _parent._parent.enemyList.length) {
if (_parent._parent.enemyList[i] == Number(_parent._name.substr(4, 2))) {
delNum = i;
}
i++;
}
_parent._parent.enemyList.splice(delNum, 1);
this._parent.removeMovieClip();
Symbol 23 MovieClip [teki1] Frame 1
function walkMode() {
var _local1 = this;
moving[0] = speed * muki;
moving[1] = Math.max(Math.min(moving[1] + 1, jumpUp), 0);
nextBlock = [Math.floor(((wPos[0] + moving[0]) + (rect[0] * muki)) / _local1._parent.panelSize), Math.floor(wPos[1] / _local1._parent.panelSize)];
if ((_local1._parent.mapDat[nextBlock[1]][nextBlock[0]] > 0) && (_local1._parent.mapDat[nextBlock[1]][nextBlock[0]] < 50)) {
line = (nextBlock[0] + Math.abs(Math.min(muki, 0))) * _local1._parent.panelSize;
moving[0] = (line - wPos[0]) - (rect[0] * muki);
_local1.muki = _local1.muki * -1;
}
nextBlock = [Math.floor((wPos[0] + moving[0]) / _local1._parent.panelSize), Math.floor(((wPos[1] + moving[1]) + rect[1]) / _local1._parent.panelSize)];
if ((_local1._parent.mapDat[nextBlock[1]][nextBlock[0]] > 0) && (_local1._parent.mapDat[nextBlock[1]][nextBlock[0]] < 50)) {
line = nextBlock[1] * _local1._parent.panelSize;
moving[1] = (line - wPos[1]) - rect[1];
}
wPos[0] = wPos[0] + moving[0];
wPos[1] = wPos[1] + moving[1];
}
function animationSys() {
var _local2 = this;
if (_local2._xscale != (100 * muki)) {
_local2._xscale = 100 * muki;
}
var _local3 = {walk:5, out:10};
var _local1 = _local3[myMode];
if (_local1 != _local2._currentframe) {
_local2.gotoAndStop(_local1);
}
}
function hitCheck() {
var _local1 = this;
var _local2 = 30;
if ((Math.abs(_local1._x - _local1._parent.mimi._x) < _local2) && (Math.abs(_local1._y - _local1._parent.mimi._y) < _local2)) {
if ((_local1._parent.mimi.myMode == "walk") && (_local1._parent.mimi.moving[1] > 2)) {
_local1.myMode = "out";
_local1._parent.mimi.moving[1] = _local1._parent.mimi.moving[1] * -1;
_local1._parent.mimi.myMode = "jump";
} else if (_local1._parent.mimi.myMode == "jump") {
_local1.myMode = "out";
} else if (_local1._parent.mimi.myMode == "boost") {
_local1.myMode = "out";
} else {
_local1._parent.mimi.myMode = "out";
_local1._parent.mimi.moving[1] = _local1._parent.mimi.jumpUp / -2;
}
}
}
function kaishu() {
var _local1 = _parent;
i = 0;
while (i < _local1.enemyList.length) {
if (_local1.enemyList[i] == Number(_name.substr(4, 2))) {
delNum = i;
}
i++;
}
_local1.enemyList.splice(delNum, 1);
this.removeMovieClip();
}
rect = [14, 14];
myMode = "walk";
enemyCode = "yadokari";
speed = 2;
jumpUp = 10;
moving = [0, 0];
this._x = wPos[0] - this._parent.windowLoc[0];
this._y = wPos[1] - this._parent.windowLoc[1];
this.onEnterFrame = function () {
var _local1 = this;
if (_parent.gamePause == true) {
} else {
_local1[myMode + "mode"]();
_local1.animationSys();
_local1._x = wPos[0] - _local1._parent.windowLoc[0];
_local1._y = wPos[1] - _local1._parent.windowLoc[1];
if (myMode != "out") {
_local1.hitCheck();
}
}
};
Symbol 26 MovieClip [teki2] Frame 1
function downMode() {
var _local1 = this;
moving[0] = 0;
moving[1] = speed;
nextBlock = [Math.floor((wPos[0] + moving[0]) / _local1._parent.panelSize), Math.floor(((wPos[1] + moving[1]) + rect[1]) / _local1._parent.panelSize)];
nextBlock[1]++;
if ((_local1._parent.mapDat[nextBlock[1]][nextBlock[0]] > 0) && (_local1._parent.mapDat[nextBlock[1]][nextBlock[0]] < 50)) {
line = (nextBlock[1] - 1) * _local1._parent.panelSize;
moving[1] = (line - wPos[1]) - rect[1];
} else if ((_local1._parent.mapDat[nextBlock[1]][nextBlock[0] + 1] > 0) && (_local1._parent.mapDat[nextBlock[1]][nextBlock[0] + 1] < 50)) {
line = (nextBlock[1] - 1) * _local1._parent.panelSize;
moving[1] = (line - wPos[1]) - rect[1];
}
wPos[0] = wPos[0] + moving[0];
wPos[1] = wPos[1] + moving[1];
if (moving[1] != speed) {
stopTime = firstStopTime;
nextMode = "up";
myMode = "stop";
}
}
function upMode() {
var _local1 = this;
moving[0] = 0;
moving[1] = -speed;
nextBlock = [Math.floor((wPos[0] + moving[0]) / _local1._parent.panelSize), Math.floor(((wPos[1] + moving[1]) - rect[1]) / _local1._parent.panelSize)];
if ((_local1._parent.mapDat[nextBlock[1]][nextBlock[0]] > 0) && (_local1._parent.mapDat[nextBlock[1]][nextBlock[0]] < 50)) {
line = (nextBlock[1] + 1) * _local1._parent.panelSize;
moving[1] = (line - wPos[1]) + rect[1];
} else if ((_local1._parent.mapDat[nextBlock[1]][nextBlock[0] + 1] > 0) && (_local1._parent.mapDat[nextBlock[1]][nextBlock[0] + 1] < 50)) {
line = (nextBlock[1] + 1) * _local1._parent.panelSize;
moving[1] = (line - wPos[1]) + rect[1];
}
wPos[0] = wPos[0] + moving[0];
wPos[1] = wPos[1] + moving[1];
if (moving[1] != (-speed)) {
stopTime = firstStopTime;
nextMode = "down";
myMode = "stop";
}
}
function rightMode() {
var _local1 = this;
moving[0] = speed;
moving[1] = 0;
nextBlock = [Math.floor(((wPos[0] + moving[0]) + rect[0]) / _local1._parent.panelSize), Math.floor(wPos[1] / _local1._parent.panelSize)];
nextBlock[0]++;
if ((_local1._parent.mapDat[nextBlock[1]][nextBlock[0]] > 0) && (_local1._parent.mapDat[nextBlock[1]][nextBlock[0]] < 50)) {
line = (nextBlock[0] - 1) * _local1._parent.panelSize;
moving[0] = (line - wPos[0]) - rect[0];
} else if ((_local1._parent.mapDat[nextBlock[1] + 1][nextBlock[0]] > 0) && (_local1._parent.mapDat[nextBlock[1] + 1][nextBlock[0]] < 50)) {
line = (nextBlock[0] - 1) * _local1._parent.panelSize;
moving[0] = (line - wPos[0]) - rect[0];
}
wPos[0] = wPos[0] + moving[0];
wPos[1] = wPos[1] + moving[1];
if (moving[0] != speed) {
stopTime = firstStopTime;
nextMode = "left";
myMode = "stop";
}
}
function leftMode() {
var _local1 = this;
moving[0] = -speed;
moving[1] = 0;
nextBlock = [Math.floor(((wPos[0] + moving[0]) - rect[0]) / _local1._parent.panelSize), Math.floor(wPos[1] / _local1._parent.panelSize)];
if ((_local1._parent.mapDat[nextBlock[1]][nextBlock[0]] > 0) && (_local1._parent.mapDat[nextBlock[1]][nextBlock[0]] < 50)) {
line = (nextBlock[0] + 1) * _local1._parent.panelSize;
moving[0] = (line - wPos[0]) + rect[0];
} else if ((_local1._parent.mapDat[nextBlock[1] + 1][nextBlock[0]] > 0) && (_local1._parent.mapDat[nextBlock[1] + 1][nextBlock[0]] < 50)) {
line = (nextBlock[0] + 1) * _local1._parent.panelSize;
moving[0] = (line - wPos[0]) + rect[0];
}
wPos[0] = wPos[0] + moving[0];
wPos[1] = wPos[1] + moving[1];
if (moving[0] != (-speed)) {
stopTime = firstStopTime;
nextMode = "right";
myMode = "stop";
}
}
function stopMode() {
stopTime--;
if (stopTime <= 0) {
myMode = nextMode;
}
}
function animationSys() {
var _local2 = this;
if (_local2._xscale != (100 * muki)) {
_local2._xscale = 100 * muki;
}
var _local3 = {walk:5, out:10};
var _local1 = _local3[myMode];
if (_local1 != _local2._currentframe) {
_local2.gotoAndStop(_local1);
}
}
function hitCheck() {
var _local1 = this;
var _local2 = 50;
if ((Math.abs(_local1._x - _local1._parent.mimi._x) < _local2) && (Math.abs(_local1._y - _local1._parent.mimi._y) < _local2)) {
if (_local1._parent.mimi.myMode != "out") {
_local1._parent.mimi.myMode = "out";
_local1._parent.mimi.moving[1] = _local1._parent.mimi.jumpUp / -2;
}
}
}
rect = [20, 20];
myMode = "stop";
enemyCode = "moveNeedle";
firstStopTime = 40;
stopTime = firstStopTime;
speed = 5;
posSa = [20, 20];
moving = [0, 0];
if (spProp == undefined) {
spProp = 0;
}
if (spProp == 0) {
nextMode = "down";
} else if (spProp == 1) {
nextMode = "right";
}
this._x = (wPos[0] - this._parent.windowLoc[0]) + posSa[0];
this._y = (wPos[1] - this._parent.windowLoc[1]) + posSa[1];
this.onEnterFrame = function () {
var _local1 = this;
if (_parent.gamePause == true) {
} else {
_local1[myMode + "mode"]();
_local1._x = (wPos[0] - _local1._parent.windowLoc[0]) + posSa[0];
_local1._y = (wPos[1] - _local1._parent.windowLoc[1]) + posSa[1];
_local1.hitCheck();
}
};
Symbol 28 MovieClip [effect0] Frame 1
wPos = [this._parent.windowLoc[0] + _x, this._parent.windowLoc[1] + _y];
this.onEnterFrame = function () {
var _local1 = this;
_local1._x = wPos[0] - _local1._parent.windowLoc[0];
_local1._y = wPos[1] - _local1._parent.windowLoc[1];
};
Symbol 28 MovieClip [effect0] Frame 9
this.removeMovieClip();
Symbol 29 MovieClip [effect1] Frame 1
wPos = [this._parent.windowLoc[0] + _x, this._parent.windowLoc[1] + _y];
this.onEnterFrame = function () {
var _local1 = this;
_local1._x = wPos[0] - _local1._parent.windowLoc[0];
_local1._y = wPos[1] - _local1._parent.windowLoc[1];
};
Symbol 29 MovieClip [effect1] Frame 9
this.removeMovieClip();
Symbol 31 MovieClip [effect2] Frame 1
wPos = [this._parent.windowLoc[0] + _x, this._parent.windowLoc[1] + _y];
this.onEnterFrame = function () {
var _local1 = this;
_local1._x = wPos[0] - _local1._parent.windowLoc[0];
_local1._y = wPos[1] - _local1._parent.windowLoc[1];
};
Symbol 31 MovieClip [effect2] Frame 7
this.removeMovieClip();
Symbol 34 MovieClip [effect3] Frame 1
wPos = [this._parent.windowLoc[0] + _x, this._parent.windowLoc[1] + _y];
this.onEnterFrame = function () {
var _local1 = this;
_local1._x = wPos[0] - _local1._parent.windowLoc[0];
_local1._y = wPos[1] - _local1._parent.windowLoc[1];
};
Symbol 34 MovieClip [effect3] Frame 15
this.removeMovieClip();
Symbol 35 MovieClip [effect4] Frame 1
wPos = [this._parent.windowLoc[0] + _x, this._parent.windowLoc[1] + _y];
this.onEnterFrame = function () {
var _local1 = this;
_local1._x = wPos[0] - _local1._parent.windowLoc[0];
_local1._y = wPos[1] - _local1._parent.windowLoc[1];
};
Symbol 35 MovieClip [effect4] Frame 6
this.removeMovieClip();
Symbol 42 MovieClip Frame 24
_parent.gotoAndStop("wait");
Symbol 43 MovieClip [teki3] Frame 1
function changePos() {
var _local1 = this;
_local1._x = wPos[0] - _local1._parent.windowLoc[0];
_local1._y = wPos[1] - _local1._parent.windowLoc[1];
stockWloc = [_local1._parent.windowLoc[0], _local1._parent.windowLoc[1]];
}
function hitCheck() {
var _local2 = _parent;
var _local3;
var _local1;
var doorOpen;
i = 0;
while (i < _local2.enemyList.length) {
_local3 = _local2["teki" + _local2.enemyList[i]].enemyCode;
if (_local3 == "yadokari") {
_local1 = _local2["teki" + _local2.enemyList[i]];
if (((Math.abs(_local1.wPos[0] - wPos[0]) < 30) && (Math.abs(_local1.wPos[1] - wPos[1]) < 10)) && (_local1.muki != muki)) {
doorOpen = true;
}
if (((Math.abs(_local1.wPos[0] - wPos[0]) < 10) && (Math.abs(_local1.wPos[1] - wPos[1]) < 10)) && (_local1.muki != muki)) {
_local1.kaishu();
}
}
i++;
}
if (doorOpen == true) {
this.gotoAndStop("open");
}
}
function hassei(yokoku) {
var _local1 = _parent;
var cou = 0;
var _local3;
var _local2 = 0;
i = 0;
while (i < _local1.enemyList.length) {
_local2 = Math.max(_local2, _local1.enemyList[i]);
_local3 = _local1["teki" + _local1.enemyList[i]].enemyCode;
if (_local3 == "yadokari") {
cou++;
}
i++;
}
if (cou >= spProp) {
} else if (yokoku == false) {
this.gotoAndStop("open");
} else {
_local2++;
_local1.attachMovie("teki1", "teki" + _local2, _local2 + 10000);
_local1["teki" + _local2].wPos = [wPos[0], wPos[1]];
_local1["teki" + _local2].muki = muki;
_local1["teki" + _local2]._xscale = muki * 100;
_local1.enemyList.push(_local2);
}
}
maxTime = 120;
time = Math.floor(Math.random() * 50) + 40;
hitTime = 0;
_xscale = (muki * 100);
enemyCode = "yadokariHouse";
this.changePos();
this.onEnterFrame = function () {
var _local1 = this;
if (_parent.gamePause == true) {
} else {
if ((_local1._parent.windowLoc[0] != stockWloc[0]) || (_local1._parent.windowLoc[1] != stockWloc[1])) {
_local1.changePos();
}
hitTime++;
if ((hitTime % 6) == 0) {
_local1.hitCheck();
}
if (spProp == 0) {
} else {
time++;
if (time == (maxTime - 8)) {
_local1.hassei(false);
} else if (time < maxTime) {
} else {
time = 0;
_local1.hassei(true);
}
}
}
};
stop();
Symbol 49 MovieClip [pauseMc] Frame 1
rect = [15, 0];
_x = (wPos[0] - _parent.windowLoc[0]);
_y = (wPos[1] - _parent.windowLoc[1]);
jumpUp = 50;
falling = -20;
moving = [0, 0];
this.onEnterFrame = function () {
var _local1 = this;
falling = Math.min(falling + 2, jumpUp);
moving[1] = Math.max(falling, 0);
nextBlock = [Math.floor(wPos[0] / _local1._parent.panelSize), Math.floor(((wPos[1] + moving[1]) + rect[1]) / _local1._parent.panelSize)];
if ((_local1._parent.mapDat[nextBlock[1]][nextBlock[0]] > 0) && (_local1._parent.mapDat[nextBlock[1]][nextBlock[0]] < 50)) {
line = nextBlock[1] * _local1._parent.panelSize;
moving[1] = (line - wPos[1]) - rect[1];
delete _local1.onEnterFrame;
}
wPos[1] = wPos[1] + moving[1];
_y = (wPos[1] - _parent.windowLoc[1]);
};
gotoAndStop("st" + myNum);
Symbol 50 MovieClip [effect5] Frame 1
wPos = [this._parent.windowLoc[0] + _x, this._parent.windowLoc[1] + _y];
rect = [0, 6];
bure = 1;
moving = [0, -2];
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = [Math.floor(wPos[0] / _local1._parent.panelSize), Math.floor(((wPos[1] + moving[1]) - rect[1]) / _local1._parent.panelSize)];
var _local3 = _local1._parent.mapDat[_local2[1]][_local2[0]];
if ((_local3 != 55) && (_local3 != 57)) {
delete _local1.onEnterFrame;
_local1.removeMovieClip();
}
wPos[0] = wPos[0] + bure;
wPos[1] = wPos[1] + moving[1];
bure = bure * -1;
_x = (wPos[0] - _parent.windowLoc[0]);
_y = (wPos[1] - _parent.windowLoc[1]);
};
Symbol 84 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 7
_parent.gotoAndStop("st54");
Symbol 119 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 2
function pausing(code) {
if (code == true) {
this.stop();
} else {
this.play();
}
}
Symbol 143 MovieClip Frame 14
names = this._parent._name;
line = names.indexOf("_");
j = names.substr(5, line - 5);
i = names.substr(line + 1, 3);
this._parent._parent.mapDat[i][j] = 0;
Symbol 143 MovieClip Frame 20
this._parent.removeMovieClip();
Symbol 143 MovieClip Frame 25
this._parent.removeMovieClip();
Symbol 148 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 10
gotoAndStop ("on");
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 7
_parent.gotoAndStop("st11");
Symbol 196 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 1
stop();
Symbol 233 MovieClip [panel] Frame 85
Symbol 233 MovieClip [panel] Frame 120
i = 0;
while (i < 3) {
if (_name == ((("panel" + _parent._parent.tokusetuList[i][1]) + "_") + _parent._parent.tokusetuList[i][0])) {
answerSetMc.gotoAndStop(("st" + _parent._parent._parent.gameStage) + _parent._parent.tokusetuNumList[i]);
}
i++;
}
Symbol 305 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 1
if (_parent._parent.gameStage != undefined) {
num = _parent._parent.gameStage;
} else if (_parent._parent._parent.gameStage != undefined) {
num = _parent._parent._parent.gameStage;
} else {
trace("\u53D6\u5F97\u30A8\u30E9\u30FC(MC:\u30B9\u30C6\u30FC\u30B8\u8868\u793A)");
return(undefined);
}
num++;
if (num < 10) {
stNum = "0" + num;
} else {
stNum = num + "";
}
i = 0;
while (i < 2) {
this["stdisp" + i].gotoAndStop(Number(stNum.substr(i, 1)) + 1);
i++;
}
Symbol 351 MovieClip Frame 1
this.gotoAndStop(this._parent._parent.gameStage + 1);
Symbol 361 MovieClip Frame 1
stop();
Symbol 362 Button
on (release) {
_parent.gotoAndStop("game");
}
Symbol 372 MovieClip Frame 1
gotoAndStop("st" + Math.floor(Math.random() * 2));
Symbol 378 MovieClip Frame 89
if (Math.floor(Math.random() * 2) == 0) {
this.gotoAndPlay(1);
}
Symbol 378 MovieClip Frame 93
if (Math.floor(Math.random() * 2) == 0) {
this.gotoAndPlay(1);
}
Symbol 391 MovieClip Frame 10
stop();
Symbol 395 MovieClip Frame 22
gotoAndPlay ("go");
Symbol 397 MovieClip Frame 25
stop();
Symbol 398 MovieClip Frame 1
wPos = [(this._parent.katatumuriPos[0] * this._parent.panelSize) + (this._parent.panelSize / 2), (this._parent.katatumuriPos[1] * this._parent.panelSize) + (this._parent.panelSize / 2)];
muki = this._parent.katatumuriPos[2] - 1;
scrollLine = {L:245, R:275, U:185, D:215};
rect = [18, 18];
getAppleCount = 0;
scrollingSlow = false;
if (this._parent._parent.tutorial == true) {
myMode = "walk";
} else {
myMode = "toujo";
}
moving = [0, 0];
jumpUp = 14;
speed = 5;
masatu = 1;
this._x = wPos[0] - this._parent.windowLoc[0];
this._y = wPos[1] - this._parent.windowLoc[1];
if (this._parent._parent.tutorial == false) {
this.onMouseDown = function () {
mouseHold = true;
};
this.onMouseUp = function () {
mouseHold = false;
};
} else {
mouseHold = false;
autoTime = 0;
}
this.onEnterFrame = function () {
var _local1 = this;
if (_parent.gamePause == true) {
} else if (modeAction == undefined) {
} else {
if ((subAction == undefined) || (myMode == "out")) {
_local1.modeAction();
} else {
_local1.subAction();
}
_local1.animationSys();
_local1.scrollSys();
_local1.hitCheck();
if (_local1._parent._parent.tutorial == true) {
_local1.autoMove();
}
}
};
this.gotoAndStop(myMode);
function stopMode() {
if ((myMode == "climbUp") || (myMode == "climbDown")) {
if (mouseHold == true) {
delete subAction;
}
} else if (mouseHold == false) {
delete subAction;
}
}
function btnStopMode() {
var _local1 = this;
if (btnStopTime == undefined) {
btnStopTime = 5;
btnStopHold = mouseHold;
}
if (btnStopHold == true) {
btnStopHold = mouseHold;
} else if (mouseHold == true) {
btnStopHold = true;
btnStopTime = btnStopTime + 8;
}
btnStopTime--;
if (btnStopTime <= 0) {
var _local2 = [Math.floor(wPos[0] / _local1._parent.panelSize), Math.floor(wPos[1] / _local1._parent.panelSize)];
var _local3 = _local1._parent[(("panel" + _local2[0]) + "_") + _local2[1]].obje;
_local3.gotoAndStop(1);
delete btnStopTime;
delete btnStopHold;
delete subAction;
} else if (btnStopTime >= 30) {
var _local2 = [Math.floor(wPos[0] / _local1._parent.panelSize), Math.floor(wPos[1] / _local1._parent.panelSize)];
var _local3 = _local1._parent[(("panel" + _local2[0]) + "_") + _local2[1]].obje;
_local3.play();
btnStopTime = 5;
_local1.shatterChange();
}
}
function animationSys() {
var _local3 = this;
if (_local3._xscale != (100 * muki)) {
_local3._xscale = 100 * muki;
}
var _local2 = {walk:5, jump2:10, jump:15, climbUp:20, climbDown:25, climbing:30, falling:35, boost:40, out:45, toujo:50, swim:55, bura:60};
var _local1 = _local2[myMode];
if ((myMode == "walk") && (moving[1] != 0)) {
_local1 = _local2.jump2;
}
if (_local1 != _local3._currentframe) {
_local3.gotoAndStop(_local1);
}
}
function hitCheck() {
var _local1 = _parent;
if (myMode == "out") {
} else {
var _local2 = [Math.floor(wPos[0] / this._parent.panelSize), Math.floor(wPos[1] / this._parent.panelSize)];
var mapN = this._parent.mapDat[_local2[1]][_local2[0]];
if (mapN < 50) {
} else if (mapN == 50) {
myMode = "out";
muki = muki * -1;
moving[1] = (-jumpUp) / 2;
} else if (mapN == 51) {
getAppleCount++;
this._parent.effectSys(1, wPos);
this._parent.mapDat[_local2[1]][_local2[0]] = 0;
this._parent[(("panel" + [_local2[0]]) + "_") + [_local2[1]]].removeMovieClip();
if (getAppleCount == _local1.appleCount) {
_local1._parent.door.play();
_local1.pausing(true);
_local1._parent.pauseBtn.enabled = false;
subAction = clearMode;
} else if (_local1._parent.tokusetu == true) {
var _local3 = 0;
_local3 = 0;
while (_local3 < 3) {
if ((_local1._parent.tokusetuList[_local3][0] == _local2[1]) && (_local1._parent.tokusetuList[_local3][1] == _local2[0])) {
if (_local1._parent.tokusetuNumList[_local3] == 0) {
_local1._parent.door.gotoAndPlay("answer_ok");
_local1.pausing(true);
_local1._parent.pauseBtn.enabled = false;
subAction = clearMode;
this.setSe("se_getStone");
} else {
myMode = "out";
wrongAnswer = true;
muki = muki * -1;
moving[1] = (-jumpUp) / 2;
}
this._parent[(("panel" + [_local2[0]]) + "_") + [_local2[1]]].removeMovieClip();
return;
}
_local3++;
}
}
this.setSe("se_getStone");
} else if ((mapN == 55) && (myMode != "swim")) {
myMode = "swim";
_local1.effectSys(3, [wPos[0], (_local2[1] * this._parent.panelSize) - (this._parent.panelSize / 2)]);
} else if (mapN == 56) {
this.setSe("se_kai");
this._parent.effectSys(1, wPos);
this._parent.mapDat[_local2[1]][_local2[0]] = 0;
this._parent[(("panel" + [_local2[0]]) + "_") + [_local2[1]]].removeMovieClip();
_local1._parent._parent.gameScore = _local1._parent._parent.gameScore + 50;
_local1._parent.scoreDisp.setNum(_local1._parent._parent.gameScore);
} else if (mapN == 57) {
this.setSe("se_kai");
if (myMode != "swim") {
myMode = "swim";
_local1.effectSys(3, [wPos[0], (_local2[1] * this._parent.panelSize) - (this._parent.panelSize / 2)]);
}
var num = this._parent[(("panel" + [_local2[0]]) + "_") + [_local2[1]]].obje._currentframe;
this._parent.effectSys(1, wPos);
this._parent.mapDat[_local2[1]][_local2[0]] = 55;
this._parent[(("panel" + [_local2[0]]) + "_") + [_local2[1]]].gotoAndStop("st55");
this._parent[(("panel" + [_local2[0]]) + "_") + [_local2[1]]].obje.gotoAndStop(num);
_local1._parent._parent.gameScore = _local1._parent._parent.gameScore + 50;
_local1._parent.scoreDisp.setNum(_local1._parent._parent.gameScore);
}
}
}
function autoMove() {
var _local1 = this;
autoTime++;
if (autoTime == _local1._parent._parent.autoKey[0]) {
_local1.mouseHold = !mouseHold;
autoTime = 0;
_local1._parent._parent.autoKey.shift();
if (_local1._parent._parent.autoKey.length == 0) {
_local1._parent._parent.gotoAndPlay("auto_end");
}
}
}
function shatterChange() {
var _local1 = this;
var _local2 = 0;
i = 0;
while (i < _local1._parent.mapDat.length) {
k = 0;
while (k < _local1._parent.mapDat[0].length) {
_local2 = _local1._parent.mapDat[i][k];
if (_local2 == 54) {
_local1._parent.mapDat[i][k] = 11;
_local1._parent[(("panel" + k) + "_") + i].obje.play();
} else if (_local2 == 11) {
_local1._parent.mapDat[i][k] = 54;
_local1._parent[(("panel" + k) + "_") + i].obje.play();
}
k++;
}
i++;
}
}
function scrollSys() {
var _local1 = this;
scrolling = [0, 0];
if ((wPos[0] - _local1._parent.windowLoc[0]) > scrollLine.R) {
scrolling[0] = (wPos[0] - _local1._parent.windowLoc[0]) - scrollLine.R;
} else if ((wPos[0] - _local1._parent.windowLoc[0]) < scrollLine.L) {
scrolling[0] = (wPos[0] - _local1._parent.windowLoc[0]) - scrollLine.L;
}
if ((wPos[1] - _local1._parent.windowLoc[1]) > scrollLine.D) {
scrolling[1] = (wPos[1] - _local1._parent.windowLoc[1]) - scrollLine.D;
} else if ((wPos[1] - _local1._parent.windowLoc[1]) < scrollLine.U) {
scrolling[1] = (wPos[1] - _local1._parent.windowLoc[1]) - scrollLine.U;
}
if (scrollingSlow == true) {
scrolling[0] = Math.floor(scrolling[0] / 2);
scrolling[1] = Math.floor(scrolling[1] / 2);
}
_local1._parent.panelMove(scrolling);
_local1._x = wPos[0] - _local1._parent.windowLoc[0];
_local1._y = wPos[1] - _local1._parent.windowLoc[1];
}
function setSe(code) {
var _local3 = this;
if (_parent._parent.tutorial == true) {
} else if (code == "setUp") {
var _local2 = ["se_kai", "se_kabetuki", "se_chakuti", "se_jump", "se_highjump", "se_boost", "se_getStone"];
var _local1 = 0;
_local1 = 0;
while (_local1 < _local2.length) {
_local3[_local2[_local1]] = new Sound(_local3);
_local3[_local2[_local1]].attachSound(_local2[_local1]);
_local1++;
}
} else {
_local3[code].start();
}
}
this.setSe("setUp");
Symbol 398 MovieClip Frame 5
modeAction = function () {
var _local1 = this;
if (myMode != "walk") {
} else {
moving[0] = (speed * masatu) * muki;
moving[1] = Math.max(Math.min(moving[1] + 1, jumpUp), 0);
var _local2 = [Math.floor(((wPos[0] + moving[0]) + (rect[0] * muki)) / _local1._parent.panelSize), Math.floor(wPos[1] / _local1._parent.panelSize)];
var _local3 = _local1._parent.mapDat[_local2[1]][_local2[0]];
var target;
if ((_local3 > 0) && (_local3 < 50)) {
line = (_local2[0] + Math.abs(Math.min(muki, 0))) * _local1._parent.panelSize;
moving[0] = (line - wPos[0]) - (rect[0] * muki);
masatu = 1;
target = _local1._parent[(("panel" + _local2[0]) + "_") + _local2[1]].obje;
if ((_local3 >= 6) && (_local3 <= 9)) {
if (((_local3 == 6) && (muki == -1)) || ((_local3 == 7) && (muki == 1))) {
muki = muki * -1;
} else {
muki = muki * -1;
boosting = _local1._parent.mapDat[_local2[1]][_local2[0]];
moving[0] = (((_local2[0] * _local1._parent.panelSize) + (_local1._parent.panelSize / 2)) + (muki * _local1._parent.panelSize)) - wPos[0];
moving[1] = ((_local2[1] * _local1._parent.panelSize) + (_local1._parent.panelSize / 2)) - wPos[1];
myMode = "boost";
target.play();
}
} else if (_local3 == 10) {
muki = muki * -1;
myMode = "jump";
moving[1] = -jumpUp;
masatu = 2;
target.play();
_local1.setSe("se_highjump");
} else {
_local1.muki = _local1.muki * -1;
}
}
_local2 = [Math.floor((wPos[0] + moving[0]) / _local1._parent.panelSize), Math.floor(((wPos[1] + moving[1]) + rect[1]) / _local1._parent.panelSize)];
_local3 = _local1._parent.mapDat[_local2[1]][_local2[0]];
if ((_local3 > 0) && (_local3 < 50)) {
line = _local2[1] * _local1._parent.panelSize;
moving[1] = (line - wPos[1]) - rect[1];
masatu = 1;
target = _local1._parent[(("panel" + _local2[0]) + "_") + _local2[1]].obje;
if (_local3 == 2) {
muki = -1;
target.play();
} else if (_local3 == 3) {
muki = 1;
target.play();
} else if ((_local3 >= 6) && (_local3 <= 8)) {
boosting = _local1._parent.mapDat[_local2[1]][_local2[0]];
moving[0] = ((_local2[0] * _local1._parent.panelSize) + (_local1._parent.panelSize / 2)) - wPos[0];
moving[1] = ((_local2[1] * _local1._parent.panelSize) - (_local1._parent.panelSize / 2)) - wPos[1];
myMode = "boost";
target.play();
} else if (_local3 == 10) {
myMode = "jump";
_local1.setSe("se_highjump");
moving[1] = (-jumpUp) * 2;
target.play();
} else if (_local3 == 14) {
target.play();
}
}
wPos[0] = wPos[0] + moving[0];
wPos[1] = wPos[1] + moving[1];
if (((mouseHold == true) && (moving[1] == 0)) && (myMode == "walk")) {
_local2 = [Math.floor(wPos[0] / _local1._parent.panelSize), Math.floor((wPos[1] + rect[1]) / _local1._parent.panelSize)];
_local3 = _local1._parent.mapDat[_local2[1]][_local2[0]];
if (_local3 == 12) {
subAction = stopMode;
} else if (_local1._parent.mapDat[Math.floor(wPos[1] / _local1._parent.panelSize)][Math.floor(wPos[0] / _local1._parent.panelSize)] == 53) {
subAction = btnStopMode;
_local2 = [Math.floor(wPos[0] / _local1._parent.panelSize), Math.floor(wPos[1] / _local1._parent.panelSize)];
target = _local1._parent[(("panel" + _local2[0]) + "_") + _local2[1]].obje;
target.gotoAndStop("on");
} else {
myMode = "jump";
jumpInit = 2;
moving[1] = -jumpUp;
_local1.setSe("se_jump");
}
}
}
};
Symbol 398 MovieClip Frame 10
modeAction = function () {
var _local1 = this;
if (myMode != "walk") {
} else {
moving[0] = (speed * masatu) * muki;
moving[1] = Math.max(Math.min(moving[1] + 1, jumpUp), 0);
var _local2 = [Math.floor(((wPos[0] + moving[0]) + (rect[0] * muki)) / _local1._parent.panelSize), Math.floor(wPos[1] / _local1._parent.panelSize)];
var _local3 = _local1._parent.mapDat[_local2[1]][_local2[0]];
var target;
if ((_local3 > 0) && (_local3 < 50)) {
line = (_local2[0] + Math.abs(Math.min(muki, 0))) * _local1._parent.panelSize;
moving[0] = (line - wPos[0]) - (rect[0] * muki);
masatu = 1;
target = _local1._parent[(("panel" + _local2[0]) + "_") + _local2[1]].obje;
if ((_local3 >= 6) && (_local3 <= 9)) {
if (((_local3 == 6) && (muki == -1)) || ((_local3 == 7) && (muki == 1))) {
if (mouseHold == true) {
myMode = "climbUp";
moving[1] = 0;
} else {
muki = muki * -1;
}
} else {
muki = muki * -1;
boosting = _local1._parent.mapDat[_local2[1]][_local2[0]];
moving[0] = (((_local2[0] * _local1._parent.panelSize) + (_local1._parent.panelSize / 2)) + (muki * _local1._parent.panelSize)) - wPos[0];
moving[1] = ((_local2[1] * _local1._parent.panelSize) + (_local1._parent.panelSize / 2)) - wPos[1];
myMode = "boost";
target.play();
}
} else if (_local3 == 10) {
muki = muki * -1;
myMode = "jump";
moving[1] = -jumpUp;
masatu = 2;
target.play();
_local1.setSe("se_highjump");
} else if ((mouseHold == true) && (_local3 != 13)) {
myMode = "climbUp";
moving[1] = 0;
} else {
_local1.muki = _local1.muki * -1;
}
}
if (myMode == "climbUp") {
_local1.setSe("se_kabetuki");
}
_local2 = [Math.floor((wPos[0] + moving[0]) / _local1._parent.panelSize), Math.floor(((wPos[1] + moving[1]) + rect[1]) / _local1._parent.panelSize)];
_local3 = _local1._parent.mapDat[_local2[1]][_local2[0]];
if ((_local3 > 0) && (_local3 < 50)) {
line = _local2[1] * _local1._parent.panelSize;
moving[1] = (line - wPos[1]) - rect[1];
if (moving[1] == 0) {
_local1.setSe("se_chakuti");
_parent.effectSys(0, [wPos[0] + moving[0], line]);
}
}
wPos[0] = wPos[0] + moving[0];
wPos[1] = wPos[1] + moving[1];
}
};
Symbol 398 MovieClip Frame 15
modeAction = function () {
var _local1 = this;
if (jumpInit != undefined) {
if (mouseHold == false) {
moving[1] = Math.floor((moving[1] * 2) / 3);
delete jumpInit;
} else {
jumpInit--;
if (jumpInit <= 0) {
delete jumpInit;
}
}
}
moving[0] = (speed * masatu) * muki;
moving[1] = Math.min(moving[1] + 1, 0);
var _local3 = [Math.floor((wPos[0] + moving[0]) / _local1._parent.panelSize), Math.floor(((wPos[1] + moving[1]) - rect[1]) / _local1._parent.panelSize)];
var _local2 = _local1._parent.mapDat[_local3[1]][_local3[0]];
var target;
if ((_local2 > 0) && (_local2 < 50)) {
var head = (-moving[1]);
line = (_local3[1] + 1) * _local1._parent.panelSize;
moving[1] = line - (wPos[1] - rect[1]);
if (((_local2 == 6) || (_local2 == 7)) || (_local2 == 9)) {
masatu = 1;
head = undefined;
boosting = _local2;
moving[0] = ((_local3[0] * _local1._parent.panelSize) + (_local1._parent.panelSize / 2)) - wPos[0];
moving[1] = (((_local3[1] + 1) * _local1._parent.panelSize) + (_local1._parent.panelSize / 2)) - wPos[1];
myMode = "boost";
target = _local1._parent[(("panel" + _local3[0]) + "_") + _local3[1]].obje;
target.play();
} else if ((_local2 == 15) && (mouseHold == true)) {
myMode = "bura";
_local1.setSe("se_kabetuki");
}
}
_local3 = [Math.floor(((wPos[0] + moving[0]) + (rect[0] * muki)) / _local1._parent.panelSize), Math.floor(wPos[1] / _local1._parent.panelSize)];
_local2 = _local1._parent.mapDat[_local3[1]][_local3[0]];
if ((_local2 > 0) && (_local2 < 50)) {
line = (_local3[0] + Math.abs(Math.min(muki, 0))) * _local1._parent.panelSize;
moving[0] = (line - wPos[0]) - (rect[0] * muki);
masatu = 1;
target = _local1._parent[(("panel" + _local3[0]) + "_") + _local3[1]].obje;
if ((_local2 >= 6) && (_local2 <= 9)) {
if ((_local2 == 6) && (muki == -1)) {
if (mouseHold == true) {
myMode = "climbUp";
} else {
muki = muki * -1;
}
} else if ((_local2 == 7) && (muki == 1)) {
if (mouseHold == true) {
myMode = "climbUp";
} else {
muki = muki * -1;
}
} else {
muki = muki * -1;
boosting = _local2;
moving[0] = (((_local3[0] * _local1._parent.panelSize) + (_local1._parent.panelSize / 2)) + (muki * _local1._parent.panelSize)) - wPos[0];
moving[1] = ((_local3[1] * _local1._parent.panelSize) + (_local1._parent.panelSize / 2)) - wPos[1];
myMode = "boost";
target.play();
}
} else if (_local2 == 10) {
muki = muki * -1;
myMode = "jump";
moving[1] = -jumpUp;
masatu = 2;
target.play();
_local1.setSe("se_highjump");
} else if ((mouseHold == true) && (_local2 != 13)) {
myMode = "climbUp";
} else {
_local1.muki = _local1.muki * -1;
}
}
if (myMode == "climbUp") {
_local1.setSe("se_kabetuki");
}
wPos[0] = wPos[0] + moving[0];
wPos[1] = wPos[1] + moving[1];
if ((myMode != "jump") && (jumpInit != undefined)) {
delete jumpInit;
}
if (myMode == "bura") {
} else if (head != undefined) {
moving[1] = head;
myMode = "walk";
} else if (moving[1] == 0) {
moving[1] = 1;
myMode = "walk";
}
};
Symbol 398 MovieClip Frame 20
modeAction = function () {
var _local1 = this;
moving[0] = 0;
moving[1] = -speed;
masatu = 1;
var _local2 = [Math.floor(wPos[0] / _local1._parent.panelSize), Math.floor(((wPos[1] + moving[1]) - rect[1]) / _local1._parent.panelSize)];
var _local3 = _local1._parent.mapDat[_local2[1]][_local2[0]];
var target;
if ((_local3 > 0) && (_local3 < 50)) {
line = (_local2[1] + 1) * _local1._parent.panelSize;
moving[1] = line - (wPos[1] - rect[1]);
target = _local1._parent[(("panel" + _local2[0]) + "_") + _local2[1]].obje;
if (((_local3 == 6) || (_local3 == 7)) || (_local3 == 9)) {
boosting = _local3;
moving[0] = ((_local2[0] * _local1._parent.panelSize) + (_local1._parent.panelSize / 2)) - wPos[0];
moving[1] = (((_local2[1] + 1) * _local1._parent.panelSize) + (_local1._parent.panelSize / 2)) - wPos[1];
myMode = "boost";
target.play();
} else {
myMode = "climbDown";
}
}
_local2 = [Math.floor(wPos[0] / _local1._parent.panelSize) + muki, Math.floor((wPos[1] + moving[1]) / _local1._parent.panelSize)];
_local3 = _local1._parent.mapDat[_local2[1]][_local2[0]];
if (_local1._parent[(("panel" + _local2[0]) + "_") + _local2[1]] != undefined) {
target = _local1._parent[(("panel" + _local2[0]) + "_") + _local2[1]].obje;
}
if ((_local3 == 0) || (_local3 >= 50)) {
line = (_local2[0] + Math.abs(Math.min(muki, 0))) * _local1._parent.panelSize;
moving[0] = line - wPos[0];
moving[1] = (((_local2[1] + 1) * _local1._parent.panelSize) - rect[1]) - wPos[1];
kariTime = 0;
scrollingSlow = true;
myMode = "climbing";
} else if (_local3 == 5) {
myMode = "climbDown";
target.play();
} else if ((_local3 >= 6) && (_local3 <= 9)) {
if ((_local3 == 6) && (muki == -1)) {
} else if ((_local3 == 7) && (muki == 1)) {
} else {
boosting = _local3;
moving[0] = (((_local2[0] - muki) * _local1._parent.panelSize) + (_local1._parent.panelSize / 2)) - wPos[0];
moving[1] = ((_local2[1] * _local1._parent.panelSize) + (_local1._parent.panelSize / 2)) - wPos[1];
myMode = "boost";
target.play();
}
} else if (_local3 == 10) {
muki = muki * -1;
myMode = "jump";
moving[1] = -jumpUp;
masatu = 2;
target.play();
_local1.setSe("se_highjump");
} else if (_local3 == 13) {
muki = muki * -1;
myMode = "jump";
moving[1] = -Math.floor(jumpUp / 2);
_local1.setSe("se_jump");
}
wPos[0] = wPos[0] + moving[0];
wPos[1] = wPos[1] + moving[1];
if ((mouseHold == false) && (myMode == "climbUp")) {
if (_local3 == 12) {
subAction = stopMode;
} else {
muki = muki * -1;
myMode = "jump";
moving[1] = -Math.floor(jumpUp / 2);
_local1.setSe("se_jump");
}
}
};
Symbol 398 MovieClip Frame 25
modeAction = function () {
var _local2 = this;
moving[0] = 0;
moving[1] = speed;
masatu = 1;
var _local3 = [Math.floor(wPos[0] / _local2._parent.panelSize), Math.floor(((wPos[1] + moving[1]) + rect[1]) / _local2._parent.panelSize)];
var _local1 = _local2._parent.mapDat[_local3[1]][_local3[0]];
var target;
if ((_local1 > 0) && (_local1 < 50)) {
if ((((_local1 == 6) || (_local1 == 7)) || (_local1 == 8)) || (_local1 == 10)) {
line = _local3[1] * _local2._parent.panelSize;
moving[1] = line - (wPos[1] + rect[1]);
muki = muki * -1;
myMode = "walk";
} else {
line = _local3[1] * _local2._parent.panelSize;
moving[1] = line - (wPos[1] + rect[1]);
myMode = "climbUp";
}
}
_local3 = [Math.floor(wPos[0] / _local2._parent.panelSize) + muki, Math.floor((wPos[1] + moving[1]) / _local2._parent.panelSize)];
_local1 = _local2._parent.mapDat[_local3[1]][_local3[0]];
if (_local2._parent[(("panel" + _local3[0]) + "_") + _local3[1]] != undefined) {
target = _local2._parent[(("panel" + _local3[0]) + "_") + _local3[1]].obje;
}
if (((_local1 == 0) || (_local1 >= 50)) && (myMode == "climbDown")) {
moving[1] = 1;
myMode = "falling";
} else if (_local1 == 4) {
myMode = "climbUp";
target.play();
} else if ((_local1 >= 6) && (_local1 <= 9)) {
if ((_local1 == 6) && (muki == -1)) {
} else if ((_local1 == 7) && (muki == 1)) {
} else {
boosting = _local1;
moving[0] = (((_local3[0] - muki) * _local2._parent.panelSize) + (_local2._parent.panelSize / 2)) - wPos[0];
moving[1] = ((_local3[1] * _local2._parent.panelSize) + (_local2._parent.panelSize / 2)) - wPos[1];
myMode = "boost";
target.play();
}
} else if (_local1 == 10) {
muki = muki * -1;
myMode = "jump";
moving[1] = -jumpUp;
masatu = 2;
target.play();
_local2.setSe("se_highjump");
} else if (_local1 == 13) {
muki = muki * -1;
myMode = "walk";
moving[1] = 1;
_local2.setSe("se_jump");
}
wPos[0] = wPos[0] + moving[0];
wPos[1] = wPos[1] + moving[1];
if ((mouseHold == false) && ((myMode == "climbDown") || (myMode == "climbUp"))) {
if (_local1 == 12) {
subAction = stopMode;
} else {
muki = muki * -1;
myMode = "walk";
moving[1] = 1;
_local2.setSe("se_jump");
}
}
};
Symbol 398 MovieClip Frame 30
modeAction = function () {
kariTime++;
if (kariTime > 10) {
moving[1] = 0;
scrollingSlow = false;
myMode = "walk";
}
};
Symbol 398 MovieClip Frame 35
modeAction = function () {
var _local2 = this;
moving[0] = 0;
moving[1] = Math.min(moving[1] + 1, jumpUp);
var _local1 = [Math.floor((wPos[0] + moving[0]) / _local2._parent.panelSize), Math.floor(((wPos[1] + moving[1]) + rect[1]) / _local2._parent.panelSize)];
var _local3 = _local2._parent.mapDat[_local1[1]][_local1[0]];
if ((_local3 > 0) && (_local3 < 50)) {
line = _local1[1] * _local2._parent.panelSize;
moving[1] = (line - wPos[1]) - rect[1];
myMode = "walk";
}
wPos[0] = wPos[0] + moving[0];
wPos[1] = wPos[1] + moving[1];
if (myMode == "walk") {
_local2.setSe("se_chakuti");
moving[1] = 0;
}
};
Symbol 398 MovieClip Frame 40
this.setSe("se_boost");
modeAction = function () {
var _local2 = this;
if (boosting != undefined) {
var boostList = [[-1, 0], [1, 0], [0, -1], [0, 1]];
moving[0] = (boostList[boosting - 6][0] * speed) * 3;
moving[1] = (boostList[boosting - 6][1] * speed) * 3;
if (moving[0] != 0) {
muki = boostList[boosting - 6][0];
}
if (moving[1] > 0) {
effe._rotation = 90;
} else if (moving[1] < 0) {
effe._rotation = -90;
}
boosting = undefined;
_parent.effectSys(2, wPos);
}
var _local1 = [];
if (moving[0] != 0) {
_local1 = [Math.floor(((wPos[0] + moving[0]) + (rect[0] * muki)) / _local2._parent.panelSize), Math.floor(wPos[1] / _local2._parent.panelSize)];
var _local3 = _local2._parent.mapDat[_local1[1]][_local1[0]];
if ((_local3 > 0) && (_local3 < 50)) {
if (_local3 == 14) {
if (muki == -1) {
_local2._parent[(("panel" + _local1[0]) + "_") + _local1[1]].obje._rotation = 180;
}
_local2._parent[(("panel" + _local1[0]) + "_") + _local1[1]].obje.gotoAndPlay("break");
_local2._parent.mapDat[_local1[1]][_local1[0]] = 0;
} else {
line = (_local1[0] + Math.abs(Math.min(muki, 0))) * _local2._parent.panelSize;
moving[0] = (line - wPos[0]) - (rect[0] * muki);
myMode = "walk";
}
}
}
if (moving[1] < 0) {
_local1 = [Math.floor(wPos[0] / _local2._parent.panelSize), Math.floor(((wPos[1] + moving[1]) - rect[1]) / _local2._parent.panelSize)];
var _local3 = _local2._parent.mapDat[_local1[1]][_local1[0]];
if ((_local3 > 0) && (_local3 < 50)) {
if (_local3 == 14) {
_local2._parent[(("panel" + _local1[0]) + "_") + _local1[1]].obje._rotation = -90;
_local2._parent[(("panel" + _local1[0]) + "_") + _local1[1]].obje.gotoAndPlay("break");
_local2._parent.mapDat[_local1[1]][_local1[0]] = 0;
} else if ((_local3 == 15) && (mouseHold == true)) {
line = (_local1[1] + 1) * _local2._parent.panelSize;
moving[1] = line - (wPos[1] - rect[1]);
myMode = "bura";
} else {
line = (_local1[1] + 1) * _local2._parent.panelSize;
moving[1] = line - (wPos[1] - rect[1]);
myMode = "walk";
var head = true;
}
}
}
if (moving[1] > 0) {
_local1 = [Math.floor(wPos[0] / _local2._parent.panelSize), Math.floor(((wPos[1] + moving[1]) + rect[1]) / _local2._parent.panelSize)];
var _local3 = _local2._parent.mapDat[_local1[1]][_local1[0]];
if ((_local3 > 0) && (_local3 < 50)) {
if (_local3 == 14) {
_local2._parent[(("panel" + _local1[0]) + "_") + _local1[1]].obje._rotation = 90;
_local2._parent[(("panel" + _local1[0]) + "_") + _local1[1]].obje.gotoAndPlay("break");
_local2._parent.mapDat[_local1[1]][_local1[0]] = 0;
} else {
line = _local1[1] * _local2._parent.panelSize;
moving[1] = (line - wPos[1]) - rect[1];
myMode = "walk";
var head = true;
}
}
}
wPos[0] = wPos[0] + moving[0];
wPos[1] = wPos[1] + moving[1];
if (head != undefined) {
moving[1] = 1;
}
};
Symbol 398 MovieClip Frame 45
if (wrongAnswer == true) {
_parent._parent.door.gotoAndPlay("wrong_answer");
} else if (_parent._parent.timeDisp.time <= 0) {
_parent._parent.door.gotoAndPlay("timeUp");
} else {
_parent._parent.door.gotoAndPlay("out");
}
_parent._parent._parent.gameRest--;
_parent._parent.restDisp.setNum(_parent._parent._parent.gameRest);
_parent._parent.pauseBtn.enabled = false;
modeAction = function () {
moving[0] = speed * muki;
moving[1]++;
wPos[0] = wPos[0] + moving[0];
wPos[1] = wPos[1] + moving[1];
if (this._y > 550) {
_parent.pausing(true);
if ((_parent._parent._parent.gameRest > 0) && (wrongAnswer != true)) {
this._parent._parent._parent.gotoAndStop("stageset");
}
}
};
Symbol 398 MovieClip Frame 50
modeAction = function () {
if (this.obje._currentframe > 23) {
_parent._parent.pauseBtn.enabled = true;
myMode = "walk";
moving[1] = 1;
}
};
Symbol 398 MovieClip Frame 55
modeAction = function () {
var _local1 = this;
if (myMode != "swim") {
} else {
if (swimHold == undefined) {
swimHold = mouseHold;
}
masatu = 0.5;
moving[0] = (speed * masatu) * muki;
moving[1] = Math.min(moving[1] + 1, 3);
var _local2 = [Math.floor(((wPos[0] + moving[0]) + (rect[0] * muki)) / _local1._parent.panelSize), Math.floor(wPos[1] / _local1._parent.panelSize)];
var _local3 = _local1._parent.mapDat[_local2[1]][_local2[0]];
if ((_local3 > 0) && (_local3 < 50)) {
line = (_local2[0] + Math.abs(Math.min(muki, 0))) * _local1._parent.panelSize;
moving[0] = (line - wPos[0]) - (rect[0] * muki);
_local1.muki = _local1.muki * -1;
}
if (moving[1] > 0) {
_local2 = [Math.floor((wPos[0] + moving[0]) / _local1._parent.panelSize), Math.floor(((wPos[1] + moving[1]) + rect[1]) / _local1._parent.panelSize)];
_local3 = _local1._parent.mapDat[_local2[1]][_local2[0]];
if ((_local3 > 0) && (_local3 < 50)) {
line = _local2[1] * _local1._parent.panelSize;
moving[1] = (line - wPos[1]) - rect[1];
var yukaHit = true;
}
}
if (moving[1] < 0) {
_local2 = [Math.floor((wPos[0] + moving[0]) / _local1._parent.panelSize), Math.floor(((wPos[1] + moving[1]) - rect[1]) / _local1._parent.panelSize)];
_local3 = _local1._parent.mapDat[_local2[1]][_local2[0]];
if ((_local3 > 0) && (_local3 < 50)) {
line = (_local2[1] + 1) * _local1._parent.panelSize;
moving[1] = line - (wPos[1] - rect[1]);
}
}
wPos[0] = wPos[0] + moving[0];
wPos[1] = wPos[1] + moving[1];
if (yukaHit == true) {
moving[1] = 0;
}
_local2 = [Math.floor(wPos[0] / _local1._parent.panelSize), Math.floor(wPos[1] / _local1._parent.panelSize)];
_local3 = _local1._parent.mapDat[_local2[1]][_local2[0]];
if ((_local3 != 55) && (_local3 != 57)) {
moving[1] = -jumpUp;
myMode = "jump";
_parent.effectSys(3, [wPos[0], (_local2[1] * _local1._parent.panelSize) + (_local1._parent.panelSize / 2)]);
delete swimHold;
} else {
if (mouseHold == true) {
if (swimHold == false) {
moving[1] = -5;
swimHold = true;
}
} else {
swimHold = false;
}
if (Math.floor(Math.random() * 40) == 10) {
_parent.effectSys(5, [wpos[0] + (20 * muki), wpos[1]]);
}
}
}
};
Symbol 398 MovieClip Frame 60
modeAction = function () {
var _local2 = this;
masatu = 1;
moving[0] = (speed * masatu) * muki;
moving[1] = -1;
var _local1 = [Math.floor((wPos[0] + moving[0]) / _local2._parent.panelSize), Math.floor(((wPos[1] + moving[1]) - rect[1]) / _local2._parent.panelSize)];
var _local3 = _local2._parent.mapDat[_local1[1]][_local1[0]];
if (_local3 == 15) {
moving[1] = 0;
} else {
myMode = "falling";
}
_local1 = [Math.floor(((wPos[0] + moving[0]) + (rect[0] * muki)) / _local2._parent.panelSize), Math.floor(wPos[1] / _local2._parent.panelSize)];
_local3 = _local2._parent.mapDat[_local1[1]][_local1[0]];
if ((_local3 > 0) && (_local3 < 50)) {
line = (_local1[0] + Math.abs(Math.min(muki, 0))) * _local2._parent.panelSize;
moving[0] = (line - wPos[0]) - (rect[0] * muki);
_local2.muki = _local2.muki * -1;
}
wPos[0] = wPos[0] + moving[0];
wPos[1] = wPos[1] + moving[1];
if (mouseHold == false) {
myMode = "falling";
}
};
Symbol 406 MovieClip Frame 656
stop();
Symbol 407 MovieClip Frame 1
function firstMapSetting() {
var _local2 = this;
needDispX = [nowFirstPanel[0] - 1, nowFirstPanel[0] + maxPanelDisp[0]];
needDispY = [nowFirstPanel[1] - 1, nowFirstPanel[1] + maxPanelDisp[1]];
i = Math.max(needDispY[0], 0);
while (i <= needDispY[1]) {
j = Math.max(needDispX[0], 0);
while (j <= needDispX[1]) {
if ((mapDat[i][j] != 0) && (mapDat[i][j] != undefined)) {
var _local3 = (i * mapDat[0].length) + j;
_local2.attachMovie("panel", (("panel" + j) + "_") + i, _local3);
var _local1 = _local2[(("panel" + j) + "_") + i];
_local1._x = (((j * panelSize) - (panelSize / 2)) - windowLoc[0]) + panelSize;
_local1._y = (((i * panelSize) - (panelSize / 2)) - windowLoc[1]) + panelSize;
_local1.gotoAndStop("st" + mapDat[i][j]);
_local1.obje.gotoAndStop(_local2.panelConnect([i, j], mapDat[i][j]) + 1);
dispPanelList.push([j, i]);
}
j++;
}
i++;
}
}
function panelMove(sc) {
var _local1 = this;
var _local3 = sc;
_local3[0] = Math.min(Math.max(_local3[0], -windowLoc[0]), ((mapDat[0].length - maxPanelDisp[0]) * panelSize) - windowLoc[0]);
_local3[1] = Math.min(Math.max(_local3[1], -windowLoc[1]), ((mapDat.length - maxPanelDisp[1]) * panelSize) - windowLoc[1]);
if ((_local3[0] == 0) && (_local3[1] == 0)) {
} else {
windowLoc[0] = windowLoc[0] + _local3[0];
windowLoc[1] = windowLoc[1] + _local3[1];
i = 0;
while (i < dispPanelList.length) {
var _local2 = _local1[(("panel" + dispPanelList[i][0]) + "_") + dispPanelList[i][1]];
_local2._x = _local2._x - _local3[0];
_local2._y = _local2._y - _local3[1];
i++;
}
if (_local3[0] > 0) {
if (((needDispX[1] * panelSize) - (panelSize / 2)) < (((maxPanelDisp[0] * panelSize) + windowLoc[0]) - panelSize)) {
i = dispPanelList.length - 1;
while (i >= 0) {
if (dispPanelList[i][0] == needDispX[0]) {
_local1[(("panel" + dispPanelList[i][0]) + "_") + dispPanelList[i][1]].removeMovieClip();
dispPanelList.splice(i, 1);
}
i--;
}
needDispX[0]++;
needDispX[1]++;
i = needDispY[0];
while (i <= needDispY[1]) {
if ((mapDat[i][needDispX[1]] != 0) && (mapDat[i][needDispX[1]] != undefined)) {
var depth = ((i * mapDat[0].length) + needDispX[1]);
_local1.attachMovie("panel", (("panel" + needDispX[1]) + "_") + i, depth);
var _local2 = _local1[(("panel" + needDispX[1]) + "_") + i];
_local2._x = (((needDispX[1] * panelSize) - (panelSize / 2)) - windowLoc[0]) + panelSize;
_local2._y = (((i * panelSize) - (panelSize / 2)) - windowLoc[1]) + panelSize;
_local2.gotoAndStop("st" + mapDat[i][needDispX[1]]);
_local2.obje.gotoAndStop(_local1.panelConnect([i, needDispX[1]], mapDat[i][needDispX[1]]) + 1);
dispPanelList.push([needDispX[1], i]);
}
i++;
}
}
} else if (_local3[0] < 0) {
if (((needDispX[0] * panelSize) - (panelSize / 2)) > (windowLoc[0] - panelSize)) {
i = dispPanelList.length - 1;
while (i >= 0) {
if (dispPanelList[i][0] == needDispX[1]) {
_local1[(("panel" + dispPanelList[i][0]) + "_") + dispPanelList[i][1]].removeMovieClip();
dispPanelList.splice(i, 1);
}
i--;
}
needDispX[0]--;
needDispX[1]--;
i = needDispY[0];
while (i <= needDispY[1]) {
if ((mapDat[i][needDispX[0]] != 0) && (mapDat[i][needDispX[0]] != undefined)) {
var depth = ((i * mapDat[0].length) + needDispX[0]);
_local1.attachMovie("panel", (("panel" + needDispX[0]) + "_") + i, depth);
var _local2 = _local1[(("panel" + needDispX[0]) + "_") + i];
_local2._x = (((needDispX[0] * panelSize) - (panelSize / 2)) - windowLoc[0]) + panelSize;
_local2._y = (((i * panelSize) - (panelSize / 2)) - windowLoc[1]) + panelSize;
_local2.gotoAndStop("st" + mapDat[i][needDispX[0]]);
_local2.obje.gotoAndStop(_local1.panelConnect([i, needDispX[0]], mapDat[i][needDispX[0]]) + 1);
dispPanelList.push([needDispX[0], i]);
}
i++;
}
}
}
if (_local3[1] > 0) {
if (((needDispY[1] * panelSize) - (panelSize / 2)) < (((maxPanelDisp[1] * panelSize) + windowLoc[1]) - panelSize)) {
i = dispPanelList.length - 1;
while (i >= 0) {
if (dispPanelList[i][1] == needDispY[0]) {
_local1[(("panel" + dispPanelList[i][0]) + "_") + dispPanelList[i][1]].removeMovieClip();
dispPanelList.splice(i, 1);
}
i--;
}
needDispY[0]++;
needDispY[1]++;
i = needDispX[0];
while (i <= needDispX[1]) {
if ((mapDat[needDispY[1]][i] != 0) && (mapDat[needDispY[1]][i] != undefined)) {
var depth = ((needDispY[1] * mapDat[0].length) + i);
_local1.attachMovie("panel", (("panel" + i) + "_") + needDispY[1], depth);
var _local2 = _local1[(("panel" + i) + "_") + needDispY[1]];
_local2._x = (((i * panelSize) - (panelSize / 2)) - windowLoc[0]) + panelSize;
_local2._y = (((needDispY[1] * panelSize) - (panelSize / 2)) - windowLoc[1]) + panelSize;
_local2.gotoAndStop("st" + mapDat[needDispY[1]][i]);
_local2.obje.gotoAndStop(_local1.panelConnect([needDispY[1], i], mapDat[needDispY[1]][i]) + 1);
dispPanelList.push([i, needDispY[1]]);
}
i++;
}
}
} else if (_local3[1] < 0) {
if (((needDispY[0] * panelSize) - (panelSize / 2)) > (windowLoc[1] - panelSize)) {
i = dispPanelList.length - 1;
while (i >= 0) {
if (dispPanelList[i][1] == needDispY[1]) {
_local1[(("panel" + dispPanelList[i][0]) + "_") + dispPanelList[i][1]].removeMovieClip();
dispPanelList.splice(i, 1);
}
i--;
}
needDispY[0]--;
needDispY[1]--;
i = needDispX[0];
while (i <= needDispX[1]) {
if ((mapDat[needDispY[0]][i] != 0) && (mapDat[needDispY[0]][i] != undefined)) {
var depth = ((needDispY[0] * mapDat[0].length) + i);
_local1.attachMovie("panel", (("panel" + i) + "_") + needDispY[0], depth);
var _local2 = _local1[(("panel" + i) + "_") + needDispY[0]];
_local2._x = (((i * panelSize) - (panelSize / 2)) - windowLoc[0]) + panelSize;
_local2._y = (((needDispY[0] * panelSize) - (panelSize / 2)) - windowLoc[1]) + panelSize;
_local2.gotoAndStop("st" + mapDat[needDispY[0]][i]);
_local2.obje.gotoAndStop(_local1.panelConnect([needDispY[0], i], mapDat[needDispY[0]][i]) + 1);
dispPanelList.push([i, needDispY[0]]);
}
i++;
}
}
}
}
}
function panelConnect(code, num) {
var _local1 = code;
var _local3 = num;
var _local2 = 0;
if ((((_local3 == 1) || (_local3 == 13)) || (_local3 == 50)) || (_local3 == 15)) {
if (((mapDat[_local1[0]][_local1[1] - 1] == 1) || (mapDat[_local1[0]][_local1[1] - 1] == 13)) || (mapDat[_local1[0]][_local1[1] - 1] == 15)) {
_local2 = _local2 + 1;
}
if (((mapDat[_local1[0]][_local1[1] + 1] == 1) || (mapDat[_local1[0]][_local1[1] + 1] == 13)) || (mapDat[_local1[0]][_local1[1] + 1] == 15)) {
_local2 = _local2 + 2;
}
if (((mapDat[_local1[0] - 1][_local1[1]] == 1) || (mapDat[_local1[0] - 1][_local1[1]] == 13)) || (mapDat[_local1[0] - 1][_local1[1]] == 15)) {
_local2 = _local2 + 4;
}
if (((mapDat[_local1[0] + 1][_local1[1]] == 1) || (mapDat[_local1[0] + 1][_local1[1]] == 13)) || (mapDat[_local1[0] + 1][_local1[1]] == 15)) {
_local2 = _local2 + 8;
}
} else if ((_local3 == 55) || (_local3 == 57)) {
if ((mapDat[_local1[0]][_local1[1] - 1] == 55) || (mapDat[_local1[0]][_local1[1] - 1] == 57)) {
_local2 = _local2 + 1;
}
if ((mapDat[_local1[0]][_local1[1] + 1] == 55) || (mapDat[_local1[0]][_local1[1] + 1] == 57)) {
_local2 = _local2 + 2;
}
if (((mapDat[_local1[0] - 1][_local1[1]] == 55) || (mapDat[_local1[0] - 1][_local1[1]] == 57)) || ((mapDat[_local1[0] - 1][_local1[1]] >= 1) && (mapDat[_local1[0] - 1][_local1[1]] <= 13))) {
_local2 = _local2 + 4;
}
if ((mapDat[_local1[0] + 1][_local1[1]] == 55) || (mapDat[_local1[0] + 1][_local1[1]] == 57)) {
_local2 = _local2 + 8;
}
}
return(_local2);
}
function mapKaito(code) {
var stCode = code.split("/");
var _local3 = stCode[0].indexOf("-");
var mapS = [stCode[0].substr(0, _local3) * 1, stCode[0].substr(_local3 + 1, stCode[0].length - _local3) * 1];
_local3 = 0;
var _local2 = "";
var _local1 = "";
var stockStr = "";
stCode[1] = stCode[1] + "Z";
i = 0;
while (i < stCode[1].length) {
_local1 = stCode[1].substr(i, 1);
if ((((((((((_local1 == "0") || (_local1 == "1")) || (_local1 == "2")) || (_local1 == "3")) || (_local1 == "4")) || (_local1 == "5")) || (_local1 == "6")) || (_local1 == "7")) || (_local1 == "8")) || (_local1 == "9")) {
_local3 = (_local3 * 10) + (_local1 * 1);
} else {
j = 0;
while (j < Math.max(_local3, 1)) {
_local2 = _local2 + stockStr;
j++;
}
_local3 = 0;
stockStr = _local1;
}
i++;
}
appleCount = 0;
i = 0;
while (i < _local2.length) {
if (_local2.substr(i, 1) == "Z") {
appleCount++;
}
i++;
}
mapDat = [];
var mapNumList = _parent._parent.getMapNumList();
i = 0;
while (i < mapS[1]) {
mapDat[i] = [];
j = 0;
while (j < mapS[0]) {
mapNum = mapNumList[_local2.substr((i * mapS[0]) + j, 1)];
mapDat[i].push(mapNum);
j++;
}
i++;
}
kPosHairetu = stCode[2].split("-");
if (kPosHairetu.length == 2) {
kPosHairetu[2] = 2;
}
katatumuriPos = [kPosHairetu[0] * 1, kPosHairetu[1] * 1, kPosHairetu[2] * 1];
windowLoc[0] = ((katatumuriPos[0] * panelSize) + (panelSize / 2)) - ((maxPanelDisp[0] * panelSize) / 2);
windowLoc[1] = ((katatumuriPos[1] * panelSize) + (panelSize / 2)) - ((maxPanelDisp[1] * panelSize) / 2);
enemyList = [];
if (stCode[3] != undefined) {
tekiHairetu = stCode[3].split(">");
i = 0;
while (i < tekiHairetu.length) {
tekiP = tekiHairetu[i].split("-");
this.attachMovie("teki" + tekiP[0], "teki" + i, 10000 + i);
enemyList.push(i);
this["teki" + i].wPos = [(tekiP[1] * panelSize) + (panelSize / 2), (tekiP[2] * panelSize) + (panelSize / 2)];
if (tekiP[3] == undefined) {
tekiP[3] = 0;
} else if (tekiP[4] != undefined) {
this["teki" + i].spProp = tekiP[4];
}
this["teki" + i].muki = (tekiP[3] * 1) - 1;
i++;
}
}
}
function effectSys(num, pos) {
var _local2 = this;
effectNum++;
var _local1 = (effectNum % 10) + 9000;
_local2.attachMovie("effect" + num, "effect" + _local1, _local1);
_local2["effect" + _local1]._x = pos[0] - windowLoc[0];
_local2["effect" + _local1]._y = pos[1] - windowLoc[1];
}
function pausing(code) {
var _local1 = this;
if (code == undefined) {
gamePause = !gamePause;
} else {
gamePause = code;
}
i = Math.max(needDispY[0], 0);
while (i <= needDispY[1]) {
j = Math.max(needDispX[0], 0);
while (j <= needDispX[1]) {
_local1[(("panel" + j) + "_") + i].obje.pausing(gamePause);
j++;
}
i++;
}
_parent.timeDisp.pausing(gamePause);
}
function pauseObjectSet(code) {
var _local2 = this;
var _local1 = 0;
if (code == false) {
_local1 = 0;
while (_local1 < 5) {
_local2["pauseMc" + _local1].removeMovieClip();
_local1++;
}
} else {
var _local3 = 0;
_local1 = 0;
while (_local1 < 5) {
effectNum++;
_local3 = (effectNum % 10) + 9000;
_local2.attachMovie("pauseMc", "pauseMc" + _local1, _local3);
_local2["pauseMc" + _local1].myNum = _local1;
_local2["pauseMc" + _local1].wPos = [(windowLoc[0] + 175) + (_local1 * 50), windowLoc[1] + 80];
_local1++;
}
}
}
gamePause = false;
panelSize = 40;
maxPanelDisp = [15, 10];
moving = [0, 0];
windowLoc = [0, 0];
dispPanelList = [];
katatumuriPos = [0, 0];
effectNum = 0;
mapKaito(this._parent.stageDat);
windowLoc[0] = Math.max(Math.min(windowLoc[0], (mapDat[0].length - maxPanelDisp[0]) * panelSize), 0);
windowLoc[1] = Math.max(Math.min(windowLoc[1], (mapDat.length - maxPanelDisp[1]) * panelSize), 0);
nowFirstPanel = [Math.floor(windowLoc[0] / panelSize), Math.floor(windowLoc[1] / panelSize)];
this.firstMapSetting();
stop();
Symbol 410 MovieClip Frame 1
if (_parent.debag == true) {
this.onKeyDown = function () {
_parent.gameStage++;
_parent.gotoAndStop("stageSet");
};
Key.addListener(this);
}
Symbol 410 MovieClip Frame 9
tutorial = true;
autoKey = _parent.getAutoKeyDat(_parent.gameStage);
stageDat = _parent.getTutorialDat(_parent.gameStage);
Symbol 410 MovieClip Frame 12
stop();
Symbol 410 MovieClip Frame 22
gotoAndPlay ("start");
Symbol 412 MovieClip Frame 1
function passWordMake(num, keta) {
var _local2 = num + "";
i = 0;
while (i < (keta - _local2.length)) {
_local2 = "0" + _local2;
i++;
}
var _local1 = "";
i = 0;
while (i < keta) {
_local1 = _local1 + passNum[Number(_local2.substr(i, 1))][Math.floor(Math.random() * passNum[Number(_local2.substr(i, 1))].length)];
i++;
}
var _local3 = "";
var codeNum = Math.floor(Math.random() * 3);
if (codeNum == 0) {
i = _local1.length - 1;
while (i >= 0) {
_local3 = _local3 + _local1.substr(i, 1);
i--;
}
_local3 = "r" + _local3;
} else if (codeNum == 1) {
i = 0;
while (i < ((_local1.length + (_local1.length % 2)) / 2)) {
_local3 = _local3 + _local1.substr(i * 2, 1);
i++;
}
i = 0;
while (i < ((_local1.length + (_local1.length % 2)) / 2)) {
_local3 = _local3 + _local1.substr((i * 2) + 1, 1);
i++;
}
_local3 = "s" + _local3;
} else if (codeNum == 2) {
_local3 = "n" + _local1;
}
return(_local3);
}
function passWordKidoku(code) {
var _local1;
var _local2 = 0;
if (code.substr(0, 1) == "n") {
_local1 = code.substr(1, code.length - 1);
} else if (code.substr(0, 1) == "r") {
i = code.length - 1;
while (i > 0) {
_local1 = _local1 + code.substr(i, 1);
i--;
}
} else if (code.substr(0, 1) == "s") {
code = code.substr(1, code.length - 1);
var num = ((code.length + (code.length % 2)) / 2);
var wordA = code.substr(0, num);
var wordB = code.substr(num, code.length - num);
i = 0;
while (i < wordA.length) {
_local1 = _local1 + wordA.substr(i, 1);
_local1 = _local1 + wordB.substr(i, 1);
i++;
}
}
var _local3 = true;
while (_local3) {
_local3 = false;
i = 0;
while (i < passNum.length) {
j = 0;
while (j < passNum[i].length) {
if (_local1.substr(0, passNum[i][j].length) == passNum[i][j]) {
_local2 = (_local2 * 10) + i;
_local1 = _local1.substr(passNum[i][j].length, _local1.length - passNum[i][j].length);
_local3 = true;
if (_local1.length == 0) {
return(_local2);
}
}
j++;
}
i++;
}
}
return(undefined);
}
passNum = [["eu", "sc", "gl"], ["rk", "gx", "ou"], ["dj", "yf", "vr"], ["ma", "ib", "sw"], ["pn", "ae", "xz"], ["wl", "kh", "qt"], ["qi", "jm"], ["zb", "cf"], ["ov", "py"], ["th", "nd"]];
stop();
Symbol 423 Button
on (release) {
play();
}
Symbol 431 Button
on (release) {
_parent._parent.gameScore = 0;
_parent._parent.gameRest = 3;
_parent._parent.gotoAndStop("stageset");
}
Symbol 432 Button
on (release) {
_parent._parent.bgm1.stop();
_parent._parent.gotoAndStop("ranking");
}
Symbol 445 Button
on (press) {
_parent._parent.bgm1.stop();
_parent._parent.bgm1.setVolume(100);
_parent._parent.bgm0.start(0, 4);
_parent._parent.gotoAndStop("title");
}
Symbol 446 Button
on (press) {
_parent._parent.bgm1.setVolume(100);
_parent.mainMc.mimi.mouseHold = false;
_parent.mainMc.pausing();
_parent.mainMc.pauseObjectSet(false);
gotoAndStop ("wait");
}
Symbol 448 Button
on (press) {
_parent._parent.bgm1.setVolume(100);
_parent.mainMc.mimi.myMode = "out";
_parent.mainMc.mimi.moving[1] = _parent.mainMc.mimi.jumpUp / -2;
_parent.mainMc.mimi.mouseHold = false;
_parent.mainMc.pausing();
_parent.mainMc.pauseObjectSet(false);
}
Symbol 449 MovieClip Frame 1
_parent.pauseBtn.enabled = false;
Symbol 449 MovieClip Frame 11
stageDisp._visible = false;
Symbol 449 MovieClip Frame 12
stageDisp._visible = true;
Symbol 449 MovieClip Frame 13
stageDisp._visible = false;
Symbol 449 MovieClip Frame 14
stageDisp._visible = true;
Symbol 449 MovieClip Frame 28
stageDisp._visible = false;
Symbol 449 MovieClip Frame 29
stageDisp._visible = true;
Symbol 449 MovieClip Frame 30
stageDisp._visible = false;
Symbol 449 MovieClip Frame 31
stageDisp._visible = true;
Symbol 449 MovieClip Frame 32
stageDisp._visible = false;
Symbol 449 MovieClip Frame 33
stageDisp._visible = true;
Symbol 449 MovieClip Frame 34
stop();
Symbol 449 MovieClip Frame 62
stop();
bonus = 0;
times = _parent.timeDisp.time;
se = new Sound(this);
se.attachSound("se_timeBonus");
se.start(0, 200);
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _parent;
addNum = Math.min(6, times);
bonus = bonus + addNum;
times = times - addNum;
if (bonus > 99) {
_local1.bns0.gotoAndStop(Number(String(bonus).substr(0, 1)) + 1);
_local1.bns1.gotoAndStop(Number(String(bonus).substr(1, 1)) + 1);
_local1.bns2.gotoAndStop(Number(String(bonus).substr(2, 1)) + 1);
_local1.bns0._visible = true;
} else if (bonus > 9) {
_local1.bns0.stop();
_local1.bns1.gotoAndStop(Number(String(bonus).substr(0, 1)) + 1);
_local1.bns2.gotoAndStop(Number(String(bonus).substr(1, 1)) + 1);
_local1.bns1._visible = true;
} else {
_local1.bns0.stop();
_local1.bns1.stop();
_local1.bns2.gotoAndStop(Number(String(bonus).substr(0, 1)) + 1);
_local1.bns0._visible = false;
_local1.bns1._visible = false;
}
_local2._parent.gameScore = _local2._parent.gameScore + (addNum * 10);
_local2.scoreDisp.setNum(_local2._parent.gameScore);
if (times > 0) {
} else {
se.stop();
play();
delete _local1.onEnterFrame;
}
};
Symbol 449 MovieClip Frame 63
stop();
Symbol 449 MovieClip Frame 72
stop();
_parent._parent.gameStage++;
_parent._parent.gotoAndStop("stageset");
Symbol 449 MovieClip Frame 88
if (_parent._parent.gameRest <= 0) {
gotoAndPlay ("gameover");
} else {
stop();
}
Symbol 449 MovieClip Frame 102
if (_parent._parent.gameRest <= 0) {
gotoAndPlay ("gameover");
} else {
stop();
}
Symbol 449 MovieClip Frame 103
if (_parent._parent.gameHiScore < _parent._parent.gameScore) {
_parent._parent.gameHiScore = _parent._parent.gameScore;
}
Symbol 449 MovieClip Frame 126
_parent._parent.dispAccessSys(4);
stop();
Symbol 449 MovieClip Frame 150
var lidList = {lid2:5, lid4:6, lid9:7, lid14:8, lid19:9, lid24:10};
_parent._parent.dispAccessSys(lidList["lid" + _parent._parent.gameStage]);
Symbol 449 MovieClip Frame 156
stop();
bonus = 0;
times = _parent.timeDisp.time;
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _parent;
addNum = Math.min(6, times);
bonus = bonus + addNum;
times = times - addNum;
if (bonus > 99) {
_local1.bns0.gotoAndStop(Number(String(bonus).substr(0, 1)) + 1);
_local1.bns1.gotoAndStop(Number(String(bonus).substr(1, 1)) + 1);
_local1.bns2.gotoAndStop(Number(String(bonus).substr(2, 1)) + 1);
_local1.bns0._visible = true;
} else if (bonus > 9) {
_local1.bns0.stop();
_local1.bns1.gotoAndStop(Number(String(bonus).substr(0, 1)) + 1);
_local1.bns2.gotoAndStop(Number(String(bonus).substr(1, 1)) + 1);
_local1.bns1._visible = true;
} else {
_local1.bns0.stop();
_local1.bns1.stop();
_local1.bns2.gotoAndStop(Number(String(bonus).substr(0, 1)) + 1);
_local1.bns0._visible = false;
_local1.bns1._visible = false;
}
_local2._parent.gameScore = _local2._parent.gameScore + (addNum * 10);
_local2.scoreDisp.setNum(_local2._parent.gameScore);
if (times > 0) {
} else {
play();
delete _local1.onEnterFrame;
}
};
Symbol 449 MovieClip Frame 157
stop();
Symbol 449 MovieClip Frame 166
stop();
_parent._parent.gameStage++;
_parent._parent.gotoAndStop("stageset");
Symbol 449 MovieClip Frame 190
var lidList = {lid2:5, lid4:6, lid9:7, lid14:8, lid19:9, lid24:10};
_parent._parent.dispAccessSys(lidList["lid" + _parent._parent.gameStage]);
Symbol 449 MovieClip Frame 197
stop();
Symbol 449 MovieClip Frame 202
if (_parent._parent.gameRest <= 0) {
gotoAndPlay ("gameover");
} else {
_parent._parent.gotoAndStop("stageset");
}
Symbol 451 Button
on (press) {
mainMc.mimi.mouseHold = false;
mainMc.pausing();
if (mainMc.gamePause == true) {
_parent.bgm1.setVolume(50);
door.gotoAndStop("pauseMenu");
mainMc.pauseObjectSet(true);
} else {
_parent.bgm1.setVolume(100);
door.gotoAndStop("wait");
mainMc.pauseObjectSet(false);
}
}
Symbol 453 MovieClip Frame 1
indexNum = 0;
while (indexNum != -1) {
pass = _parent.passwordMc.passWordMake(_parent._parent.gameStage, 2);
indexNum = pass.indexOf("sex");
}
alpList = {a:11, b:12, c:13, d:14, e:15, f:16, g:17, h:18, i:19, j:20, k:21, l:22, m:23, n:24, o:25, p:26, q:27, r:28, s:29, t:30, u:31, v:32, w:33, x:34, y:35, z:36};
i = 0;
while (i < 5) {
this["psdisp" + i].gotoAndStop(alpList[pass.substr(i, 1)]);
i++;
}
Symbol 454 MovieClip Frame 1
function setNum(num) {
var _local1 = this;
var _local3 = num;
if (_local3 == undefined) {
_local3 = 0;
}
var _local2 = String(_local3);
i = 0;
while (i < _local2.length) {
_local1["sc" + i].gotoAndStop(Number(_local2.substr(i, 1)) + 1);
_local1["sc" + i]._visible = true;
i++;
}
k = i;
while (k < 6) {
_local1["sc" + k].stop();
_local1["sc" + k]._visible = false;
k++;
}
}
setNum(_parent._parent.gameScore);
Symbol 456 MovieClip Frame 1
function setNum(num) {
var _local1 = num;
if (_local1 == undefined) {
_local1 = 0;
}
_local1 = Math.min(_local1, 9);
restMc.gotoAndStop(_local1 + 1);
}
setNum(_parent._parent.gameRest);
Symbol 457 MovieClip Frame 1
if (time == undefined) {
time = 301;
pausing = function (code) {
if (code == true) {
stop();
} else {
play();
}
};
}
time = Math.max(time - 1, 0);
strTime = String(time);
i = 0;
while (i < strTime.length) {
this["mc" + i].gotoAndStop(Number(strTime.substr(i, 1)) + 1);
this["mc" + i]._visible = true;
i++;
}
k = i;
while (k < 3) {
this["mc" + k].stop();
this["mc" + k]._visible = false;
k++;
}
if (time == 0) {
_parent.mainMc.mimi.myMode = "out";
_parent.mainMc.mimi.moving[1] = _parent.mainMc.mimi.jumpUp / -2;
stop();
}
Symbol 459 MovieClip Frame 2
tutorial = false;
stageDat = _parent.getStageDat(_parent.gameStage);
Symbol 459 MovieClip Frame 3
stop();
Symbol 464 Button
on (release) {
testDat = this.mapMake();
trace(testDat);
this._parent.testStage = testDat;
this._parent.gotoAndStop("testplay");
}
Symbol 466 Button
on (release) {
this.dataLoad(loadText.text);
}
Symbol 468 MovieClip Frame 1
function dataLoad(code) {
if (code.substr(0, 5) == "STAGE") {
code = _parent.getStageDat(Number(code.substr(5, 3)) - 1);
} else if (code.substr(0, 6) == "SAMPLE") {
code = _parent.getTutorialDat(Number(code.substr(6, 3)) - 1);
}
var dat = code.split("/", 3);
var _local3 = dat[0].split("-");
maxPDisp = [_local3[0], _local3[1]];
mapDat = [];
maps = [0, 0];
var num = 0;
var _local1 = "";
var stockStr = "";
var mStr = "";
i = 0;
while (i < dat[1].length) {
i++;
}
dat[1] = dat[1] + "Z";
i = 0;
while (i < dat[1].length) {
_local1 = dat[1].substr(i, 1);
if ((((((((((_local1 == "0") || (_local1 == "1")) || (_local1 == "2")) || (_local1 == "3")) || (_local1 == "4")) || (_local1 == "5")) || (_local1 == "6")) || (_local1 == "7")) || (_local1 == "8")) || (_local1 == "9")) {
num = (num * 10) + (_local1 * 1);
} else {
j = 0;
while (j < Math.max(num, 1)) {
mStr = mStr + stockStr;
j++;
}
num = 0;
stockStr = _local1;
}
i++;
}
var mapNumList = _parent.getMapNumList();
if (mapNumList == undefined) {
trace("mapNumList\u53D6\u5F97\u30A8\u30E9\u30FC");
}
var _local2;
i = 0;
while (i < _local3[1]) {
mapDat[i] = [];
j = 0;
while (j < _local3[0]) {
_local2 = mapNumList[mStr.substr((i * _local3[0]) + j, 1)];
mapDat[i][j] = _local2;
this[(("p" + i) + "_") + j].gotoAndStop("st" + _local2);
j++;
}
i++;
}
var kPos = dat[2].split("-");
mapDat[kPos[1]][kPos[0]] = 52;
this[(("p" + kPos[1]) + "_") + kPos[0]].gotoAndStop("st52");
}
function panelSet() {
if (mouseHold == false) {
return(undefined);
}
if ((((_xmouse > 0) && (_xmouse < (Math.min(panelH[0], maxPDisp[0]) * pSize))) && (_ymouse > 0)) && (_ymouse < (Math.min(panelH[1], maxPDisp[1]) * pSize))) {
this[(("p" + Math.floor(_ymouse / pSize)) + "_") + Math.floor(_xmouse / pSize)].gotoAndStop("st" + pCode);
mapDat[Math.floor(_ymouse / pSize) + maps[1]][Math.floor(_xmouse / pSize) + maps[0]] = pCode;
}
}
panelH = [15, 10];
maxPDisp = [15, 10];
mapDat = [];
i = 0;
while (i < maxPDisp[1]) {
mapDat[i] = [];
j = 0;
while (j < maxPDisp[0]) {
mapDat[i].push(0);
j++;
}
i++;
}
maps = [0, 0];
this.mapsBoard.text = (("\u5DE6\u4E0A\uFF1A" + maps[0]) + "/") + maps[1];
this.maxPDispBoard.text = (("\u30B5\u30A4\u30BA\uFF1A" + maxPDisp[0]) + "/") + maxPDisp[1];
pSize = 30;
mouseHold = false;
i = 0;
while (i < panelH[1]) {
j = 0;
while (j < panelH[0]) {
this.attachMovie("panel", (("p" + i) + "_") + j, (i * panelH[0]) + j);
target = this[(("p" + i) + "_") + j];
target._x = (j * pSize) + (pSize / 2);
target._y = (i * pSize) + (pSize / 2);
this[(("p" + i) + "_") + j]._width = pSize;
this[(("p" + i) + "_") + j]._height = pSize;
target.gotoAndStop("st0");
j++;
}
i++;
}
editMode = "panel";
pCode = 1;
this.onEnterFrame = panelSet;
this.onMouseDown = function () {
mouseHold = true;
};
this.onMouseUp = function () {
mouseHold = false;
};
function mapMake() {
var mapCode = _parent.getMapCodeList();
var _local3 = "";
var st = (((maxPDisp[0] + "-") + maxPDisp[1]) + "/");
var _local2 = 1;
var _local1 = "";
i = 0;
while (i < mapDat.length) {
j = 0;
while (j < mapDat[0].length) {
_local1 = mapCode["n" + mapDat[i][j]];
if (_local1 == "mimi") {
var katatumuri = ((("/" + j) + "-") + i);
_local1 = "A";
}
if (_local3 == _local1) {
_local2++;
} else {
if (_local2 > 1) {
st = st + (_local3 + _local2);
} else {
st = st + _local3;
}
_local2 = 1;
_local3 = _local1;
}
j++;
}
i++;
}
if (_local2 > 1) {
st = st + (_local3 + _local2);
} else {
st = st + _local3;
}
st = st + katatumuri;
return(st);
}
panList = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 50, 51, 52, 53, 54, 55, 56, 57];
i = 0;
while (i < panList.length) {
target = this["pan" + panList[i]];
target.myC = panList[i];
target.gotoAndStop("st" + panList[i]);
target.onRelease = function () {
this._parent.pCode = this.myC;
};
i++;
}
this.onKeyDown = function () {
var _local1 = this;
_local1.keys = String.fromCharCode(Key.getCode());
if (((_local1.keys == "Q") && (maxPDisp[1] > 10)) && (maps[1] < (maxPDisp[1] - panelH[1]))) {
maxPDisp[1]--;
mapDat.pop();
} else if ((_local1.keys == "A") && (maxPDisp[1] < 99)) {
mapDat[maxPDisp[1]] = [];
i = 0;
while (i < maxPDisp[0]) {
mapDat[maxPDisp[1]][i] = 0;
i++;
}
maxPDisp[1]++;
}
if (((_local1.keys == "W") && (maxPDisp[0] > 15)) && (maps[0] < (maxPDisp[0] - panelH[0]))) {
maxPDisp[0]--;
i = 0;
while (i < mapDat.length) {
mapDat[i].pop();
i++;
}
} else if ((_local1.keys == "E") && (maxPDisp[0] < 99)) {
maxPDisp[0]++;
i = 0;
while (i < mapDat.length) {
mapDat[i].push(0);
i++;
}
}
moving = false;
if (Key.isDown(38) && (maps[1] > 0)) {
moving = true;
maps[1]--;
} else if (Key.isDown(40) && (((maxPDisp[1] - panelH[1]) - maps[1]) > 0)) {
moving = true;
maps[1]++;
} else if (Key.isDown(37) && (maps[0] > 0)) {
moving = true;
maps[0]--;
} else if (Key.isDown(39) && (((maxPDisp[0] - panelH[0]) - maps[0]) > 0)) {
moving = true;
maps[0]++;
}
if (moving == true) {
i = 0;
while (i < panelH[1]) {
j = 0;
while (j < panelH[0]) {
target = _local1[(("p" + i) + "_") + j];
num = mapDat[i + maps[1]][j + maps[0]];
_local1[(("p" + i) + "_") + j].myC = num;
target.gotoAndStop("st" + num);
j++;
}
i++;
}
}
_local1.mapsBoard.text = (("\u5DE6\u4E0A\uFF1A" + maps[0]) + "/") + maps[1];
_local1.maxPDispBoard.text = (("\u30B5\u30A4\u30BA\uFF1A" + maxPDisp[0]) + "/") + maxPDisp[1];
};
Key.addListener(this);
Symbol 473 MovieClip Frame 1
function connectSWHiscore(functionType, hiscoreID, scoreNum) {
var _local1 = this;
_local1.createEmptyMovieClip("httpObj", _local1.httpObjDepth);
switch (functionType) {
case "view" :
_local1.httpObj.gameid = _local1.gameID;
_local1.httpObj.hiscoreid = hiscoreID;
_local1.httpObj.getURL(_local1.viewHURL, "_blank", "POST");
return;
case "submit" :
_local1.recieve_lv = new LoadVars();
_local1.recieve_lv.hiscoreConnector = _local1;
_local1.recieve_lv.onLoad = function (isSuccess) {
var _local1 = this;
if (isSuccess) {
_local1.hiscoreConnector.httpObj.tempID = _local1.tempID;
_local1.hiscoreConnector.httpObj.getURL(_local1.hiscoreConnector.submitGetHURL, "_blank", "GET");
}
};
_local1.submit_lv = new LoadVars();
_local1.submit_lv.score = scoreNum;
_local1.submit_lv.gameid = _local1.gameID;
_local1.submit_lv.hiscoreid = hiscoreID;
_local1.submit_lv.sendAndLoad(_local1.submitPostHURL, _local1.recieve_lv, "POST");
}
}
this.swc_mc._visible = false;
this.viewHURL = "http://hiscore.jp.shockwave.com/rank/member/control/listscore.php";
this.submitPostHURL = "http://hiscore.jp.shockwave.com/rank/member/control/maketemp.php";
this.submitGetHURL = "http://hiscore.jp.shockwave.com/rank/member/control/logintemp.php";
Symbol 473 MovieClip Frame 2
this.stop();
Symbol 483 MovieClip Frame 1
function connectHiscore(FunctionType) {
trace("connectHiscore...");
trace("FunctionType=" + FunctionType);
parameter = (((((((("GameID=" + GameID) + ",FunctionType=") + FunctionType) + ",Score=") + eval (scoreData)) + ",Title1=") + GameTitle) + ",ScoreDes=") + scoreDes;
sendParameter = encrypt(parameter);
getURL (("JavaScript:openHiscore('/content/highscores/hs-connector.html?" + sendParameter) + "');");
}
function encrypt(myText) {
var _local1 = myText;
result = "";
code = 0;
charCount = 0;
while (charCount <= passWord.length) {
if (charCount == passWord.length) {
code = code + 0;
} else {
code = code + passWord.substr(charCount, 1).charCodeAt(0);
}
charCount++;
}
charCount = 0;
while (charCount <= _local1.length) {
if (charCount == _local1.length) {
code = code + 0;
} else {
encChar = _local1.substr(charCount, 1).charCodeAt(0) + code;
}
result = result + (encChar + "_");
charCount++;
}
outPut = result.substr(0, result.length - 1);
return(outPut);
}
Symbol 483 MovieClip Frame 2
stop();
Symbol 507 Button
on (release) {
btn = 1;
play();
}
Symbol 508 Button
on (release) {
btn = 2;
play();
}
Symbol 510 Button
on (release) {
btn = 3;
play();
}
Symbol 512 Button
on (press) {
hiscore_connector.connectHiscore("view");
}
Instance of Symbol 473 MovieClip "hiscore_hc" in Symbol 513 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
gameID = "katatsumuri";
httpObjDepth = 1000000 /* 0x0F4240 */;
}
Instance of Symbol 483 MovieClip "hiscore_connector" in Symbol 513 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
GameTitle = "EscarGone";
ScoreDes = "points";
GameID = "katatsumuri";
scoreData = "_root.gameHiScore";
passWord = "shockwave";
FunctionType = "view";
}
Symbol 513 MovieClip Frame 3
stop();
Symbol 513 MovieClip Frame 14
if (btn == 1) {
_parent.gameStage = 0;
_parent.gotoAndStop("opening");
} else if (btn == 2) {
_parent.gotoAndStop("continue");
} else if (btn == 3) {
_parent.gameStage = 1;
_parent.gotoAndStop("credit");
}
Symbol 516 Button
on (release) {
gotoAndStop ("edit");
}
Symbol 518 Button
on (release) {
_parent.gotoAndStop("title");
}
Symbol 540 MovieClip Frame 2
tutorial = true;
stageDat = "26-24/B27A11O5A8B2A11O5A8B2A11O5A8B2A2B3HA5O5A8B2A11O5A8B2A9BP8B8A24B2A24B2A12Y4A8B2V7B15A2B2V7BA16B2V7BA16B10A16B2A24B2A24B2A15B2O7B2A15B2A7B2A14YB2A7B2A14YB2A7B2A15B2A7B2A8B4KB4A7B2A8B9Y7B27/2-20";
autoKey = [35, 3, 120, 55, 45, 60, 30, 1, 40, 2, 2, 2, 2, 2, 10, 2, 2, 2, 2, 2, 10, 2, 2, 2, 2, 2, 2, 2, 2, 45, 60];
Symbol 540 MovieClip Frame 5
stop();
Symbol 540 MovieClip Frame 16
gotoAndPlay ("start");
Symbol 541 MovieClip Frame 2
tutorial = false;
stageDat = _parent.testStage;
stop();
Symbol 544 Button
on (release) {
_parent.gameStage = 0;
gotoAndPlay ("end");
}
Symbol 569 MovieClip Frame 1
stop();
Symbol 571 MovieClip Frame 1
thisNum = Number(_name.substr(3, 2));
alp.gotoAndStop(thisNum + 11);
this.gotoAndStop("out");
this.onRollOver = function () {
this.gotoAndStop("over");
};
this.onRollOut = function () {
this.gotoAndStop("out");
};
this.onDragOut = function () {
this.gotoAndStop("out");
};
this.onPress = function () {
this.gotoAndStop("press");
};
this.onRelease = function () {
var _local1 = _parent;
this.gotoAndStop("over");
if (thisNum == 27) {
_local1.delW();
} else if (thisNum == 28) {
_local1.enterW();
} else {
_local1.addW(thisNum);
}
};
Symbol 574 MovieClip Frame 1
function addW(code) {
if (input.length > 4) {
} else {
var _local1 = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
input = input + _local1[code];
this.dispW();
}
}
function delW() {
input = input.substr(0, input.length - 1);
this.dispW();
}
function dispW() {
var _local3 = this;
var alpList = {a:11, b:12, c:13, d:14, e:15, f:16, g:17, h:18, i:19, j:20, k:21, l:22, m:23, n:24, o:25, p:26, q:27, r:28, s:29, t:30, u:31, v:32, w:33, x:34, y:35, z:36};
i = 0;
while (i < input.length) {
_local3["alp" + i].gotoAndStop(alpList[input.substr(i, 1)]);
_local3["alp" + i]._visible = true;
i++;
}
j = i;
while (j < 5) {
_local3["alp" + j]._visible = false;
j++;
}
}
function enterW() {
var _local2 = _parent;
var _local1 = passwordMc.passWordKidoku(input);
if (_local1 == undefined) {
_local2.gameStage = 0;
gotoAndPlay ("ng");
} else if (_local1 > 30) {
_local2.gameStage = 0;
gotoAndPlay ("ng");
} else {
_local2.gameStage = _local1;
gotoAndPlay ("ok");
}
}
input = "";
_parent.gameStage = 0;
this.onKeyDown = function () {
if (Key.isDown(8)) {
delW();
} else if (Key.isDown(13)) {
enterW();
} else {
var _local1 = Key.getAscii();
if ((_local1 >= 97) && (_local1 <= 122)) {
var _local2 = _local1 - 97;
addW(_local2);
}
}
};
Symbol 574 MovieClip Frame 8
this.dispW();
Symbol 574 MovieClip Frame 11
stop();
Key.addListener(this);
Symbol 574 MovieClip Frame 12
Key.removeListener(this);
Symbol 574 MovieClip Frame 26
gotoAndPlay ("re");
Symbol 574 MovieClip Frame 27
Key.removeListener(this);
Symbol 574 MovieClip Frame 42
Key.removeListener(this);
Symbol 574 MovieClip Frame 50
if (_parent.gameStage == 0) {
_parent.gotoAndStop("title");
} else {
_parent.bgm0.stop();
_parent.bgm1.start(0, 2);
_parent.gotoAndPlay("stageset");
}
Symbol 584 Button
on (press) {
_parent.bgm0.stop();
_parent.bgm1.start(0, 2);
_parent.gotoAndPlay("stageset");
}
Symbol 635 MovieClip Frame 577
_parent.bgm0.stop();
_parent.bgm1.start(0, 2);
_parent.gotoAndPlay("stageset");
Symbol 643 MovieClip Frame 1
if (_parent._parent.gameStage == 24) {
gotoAndStop (2);
} else {
stop();
}
Symbol 644 MovieClip Frame 1
if (_parent.debag == true) {
this.onKeyDown = function () {
_parent.gameStage++;
_parent.gotoAndStop("stageSet");
};
Key.addListener(this);
}
Symbol 644 MovieClip Frame 8
stop();
Symbol 724 MovieClip Frame 1
_parent.bgm0.start(0, 4);
Symbol 724 MovieClip Frame 470
this.onEnterFrame = function () {
var _local1 = Math.max(_parent.bgm0.getVolume() - 5, 0);
_parent.bgm0.setVolume(_local1);
};
Symbol 724 MovieClip Frame 491
_parent.bgm0.stop();
Symbol 724 MovieClip Frame 492
_parent.bgm3.start(0, 4);
this.onEnterFrame = function () {
var _local1 = Math.min(_parent.bgm3.getVolume() + 5, 100);
_parent.bgm3.setVolume(_local1);
};
Symbol 724 MovieClip Frame 520
delete this.onEnterFrame;
Symbol 724 MovieClip Frame 900
this.onEnterFrame = function () {
var _local1 = _parent;
var _local2 = Math.max(_local1.bgm3.getVolume() - 5, 0);
_local1.bgm3.setVolume(_local2);
if (_local2 == 0) {
delete this.onEnterFrame;
_local1.bgm3.stop();
_local1.bgm3.setVolume(100);
}
};
Symbol 724 MovieClip Frame 948
_parent.gotoAndStop("ranking");
Symbol 726 Button
on (press) {
hiscore_connector.connectHiscore("submit");
}
Symbol 727 Button
on (press) {
_parent.gotoAndStop("title");
}
Symbol 728 MovieClip Frame 1
_parent.bgm0.start(0, 4);
if (_parent.rankingMode == false) {
_parent.gotoAndStop("title");
} else if (_parent.gameSendScore < _parent.gameHiScore) {
_parent.gameSendScore = _parent.gameHiScore;
} else {
_parent.gotoAndStop("title");
}
Instance of Symbol 473 MovieClip "hiscore_hc" in Symbol 728 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
gameID = "katatsumuri";
httpObjDepth = 1000000 /* 0x0F4240 */;
}
Instance of Symbol 483 MovieClip "hiscore_connector" in Symbol 728 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
GameTitle = "EscarGone";
ScoreDes = "points";
GameID = "katatsumuri";
scoreData = "_root.gameHiScore";
passWord = "shockwave";
FunctionType = "submit";
}
Symbol 753 MovieClip Frame 143
_parent.gotoAndStop("skt");
Symbol 755 MovieClip Frame 62
_parent.gotoAndStop("title");