STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/94820032?noj=FRM94820032-22DC" width="1" height="1"></div>

Theft Punk.swf

This is the info page for
Flash #206976

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 23 loadingHero { frame 100 { stop(); } } frame 1 { stop(); MENU = new ContextMenu(); MENU.hideBuiltInItems(); _root.menu = MENU; stop(); domain_parts = _url.split('://'); real_domain = domain_parts[1].split('/'); domain.text = real_domain[0]; if (real_domain[0].indexOf('') == -1) { _root._alpha = 0; } else { onEnterFrame = function () { total = _root.getBytesTotal(); loaded = _root.getBytesLoaded(); preloader.gotoAndStop(Math.floor(loaded * 100 / total)); loading.text = Math.floor(loaded * 100 / total) + '%'; if (loaded >= total) { gotoAndStop(3); } }; } } frame 1 { var solution = new Array(); i = 1; while (i <= 30) { solution[i] = new Array(); ++i; } solution[1][40] = 'L'; solution[1][53] = 'U'; solution[1][66] = 'S'; solution[1][75] = 'L'; solution[1][83] = 'S'; solution[2][33] = 'U'; solution[2][38] = 'R'; solution[2][61] = 'S'; solution[2][74] = 'D'; solution[2][98] = 'L'; solution[2][107] = 'S'; solution[2][117] = 'L'; solution[2][122] = 'U'; solution[2][145] = 'L'; solution[2][155] = 'D'; solution[2][161] = 'R'; solution[2][197] = 'D'; solution[2][204] = 'S'; solution[2][214] = 'D'; solution[2][219] = 'L'; solution[2][250] = 'D'; solution[2][262] = 'L'; solution[2][270] = 'U'; solution[2][275] = 'S'; solution[3][27] = 'U'; solution[3][37] = 'R'; solution[3][53] = 'U'; solution[3][65] = 'L'; solution[3][82] = 'S'; solution[4][30] = 'L'; solution[4][46] = 'U'; solution[4][58] = 'L'; solution[4][71] = 'S'; solution[4][77] = 'L'; solution[4][88] = 'D'; solution[4][99] = 'R'; solution[4][112] = 'U'; solution[4][118] = 'S'; solution[4][129] = 'U'; solution[4][152] = 'R'; solution[4][163] = 'D'; solution[4][174] = 'R'; solution[4][187] = 'S'; solution[4][195] = 'U'; solution[4][205] = 'S'; solution[5][36] = 'R'; solution[5][49] = 'D'; solution[5][63] = 'L'; solution[5][82] = 'U'; solution[5][92] = 'L'; solution[5][105] = 'D'; solution[5][115] = 'R'; solution[5][150] = 'S'; solution[5][158] = 'D'; solution[5][168] = 'S'; solution[6][30] = 'L'; solution[6][54] = 'U'; solution[6][61] = 'R'; solution[6][71] = 'S'; solution[6][82] = 'D'; solution[6][90] = 'S'; solution[6][97] = 'L'; solution[6][107] = 'S'; solution[6][114] = 'U'; solution[6][123] = 'S'; solution[6][132] = 'R'; solution[6][145] = 'S'; solution[7][31] = 'D'; solution[7][85] = 'S'; solution[7][92] = 'U'; solution[7][141] = 'S'; solution[8][30] = 'L'; solution[8][52] = 'U'; solution[8][76] = 'S'; solution[8][83] = 'U'; solution[8][90] = 'L'; solution[8][113] = 'R'; solution[8][136] = 'S'; solution[8][141] = 'U'; solution[8][158] = 'S'; solution[9][41] = 'D'; solution[9][54] = 'R'; solution[9][80] = 'S'; solution[9][89] = 'U'; solution[9][99] = 'R'; solution[9][117] = 'D'; solution[9][140] = 'S'; solution[9][149] = 'D'; solution[9][161] = 'R'; solution[9][169] = 'U'; solution[9][189] = 'S'; solution[9][194] = 'D'; solution[9][204] = 'L'; solution[9][233] = 'S'; solution[10][30] = 'R'; solution[10][51] = 'U'; solution[10][57] = 'S'; solution[10][82] = 'U'; solution[10][103] = 'L'; solution[10][129] = 'S'; solution[10][136] = 'U'; solution[10][144] = 'R'; solution[10][164] = 'D'; solution[10][181] = 'S'; solution[11][33] = 'D'; solution[11][56] = 'L'; solution[11][63] = 'S'; solution[11][77] = 'L'; solution[11][85] = 'U'; solution[11][97] = 'S'; solution[11][110] = 'U'; solution[11][125] = 'L'; solution[11][166] = 'R'; solution[11][171] = 'S'; solution[11][179] = 'R'; solution[11][185] = 'U'; solution[11][209] = 'R'; solution[11][224] = 'D'; solution[11][249] = 'L'; solution[11][257] = 'S'; solution[11][278] = 'L'; solution[11][298] = 'U'; solution[11][311] = 'S'; solution[11][318] = 'L'; solution[11][329] = 'D'; solution[11][339] = 'S'; solution[12][32] = 'L'; solution[12][49] = 'S'; solution[12][65] = 'L'; solution[12][75] = 'D'; solution[12][86] = 'L'; solution[12][95] = 'U'; solution[12][103] = 'R'; solution[12][115] = 'S'; solution[12][127] = 'R'; solution[12][134] = 'S'; solution[12][155] = 'L'; solution[12][168] = 'U'; solution[12][173] = 'S'; solution[12][233] = 'U'; solution[12][298] = 'L'; solution[12][316] = 'S'; solution[13][34] = 'L'; solution[13][54] = 'U'; solution[13][78] = 'L'; solution[13][86] = 'D'; solution[13][105] = 'R'; solution[13][119] = 'S'; solution[13][129] = 'U'; solution[13][142] = 'S'; solution[13][153] = 'L'; solution[13][163] = 'D'; solution[13][173] = 'R'; solution[13][192] = 'S'; solution[13][201] = 'U'; solution[13][213] = 'S'; solution[13][222] = 'L'; solution[13][233] = 'D'; solution[13][246] = 'R'; solution[13][269] = 'S'; solution[13][275] = 'U'; solution[13][288] = 'S'; solution[13][295] = 'L'; solution[13][313] = 'D'; solution[13][331] = 'S'; solution[14][30] = 'L'; solution[14][37] = 'D'; solution[14][45] = 'R'; solution[14][77] = 'S'; solution[14][90] = 'D'; solution[14][98] = 'L'; solution[14][115] = 'S'; solution[14][125] = 'D'; solution[14][132] = 'R'; solution[14][142] = 'S'; solution[14][152] = 'L'; solution[14][161] = 'U'; solution[14][188] = 'R'; solution[14][198] = 'S'; solution[14][206] = 'R'; solution[14][214] = 'D'; solution[14][222] = 'R'; solution[14][235] = 'U'; solution[14][243] = 'R'; solution[14][249] = 'S'; solution[14][255] = 'D'; solution[14][273] = 'L'; solution[14][299] = 'D'; solution[14][307] = 'L'; solution[14][313] = 'S'; solution[14][323] = 'U'; solution[14][347] = 'L'; solution[14][354] = 'S'; solution[15][63] = 'U'; solution[15][83] = 'S'; solution[15][132] = 'L'; solution[15][161] = 'S'; solution[15][197] = 'U'; solution[15][246] = 'L'; solution[15][281] = 'D'; solution[15][296] = 'R'; solution[15][330] = 'U'; solution[15][342] = 'S'; solution[15][364] = 'U'; solution[15][385] = 'R'; solution[15][416] = 'S'; solution[15][440] = 'R'; solution[15][454] = 'D'; solution[15][472] = 'L'; solution[15][482] = 'S'; solution[15][511] = 'L'; solution[15][541] = 'U'; solution[15][556] = 'S'; solution[16][47] = 'U'; solution[16][89] = 'S'; solution[16][113] = 'L'; solution[16][135] = 'S'; solution[16][157] = 'D'; solution[16][206] = 'D'; solution[16][259] = 'L'; solution[16][296] = 'D'; solution[16][313] = 'S'; solution[16][342] = 'R'; solution[16][389] = 'U'; solution[16][442] = 'R'; solution[16][489] = 'D'; solution[16][506] = 'L'; solution[16][540] = 'S'; solution[17][57] = 'D'; solution[17][72] = 'R'; solution[17][96] = 'S'; solution[17][122] = 'R'; solution[17][138] = 'U'; solution[17][173] = 'R'; solution[17][186] = 'D'; solution[17][209] = 'L'; solution[17][221] = 'S'; solution[17][241] = 'L'; solution[17][259] = 'U'; solution[17][288] = 'L'; solution[17][313] = 'D'; solution[17][338] = 'S'; solution[17][355] = 'L'; solution[17][361] = 'S'; solution[17][373] = 'L'; solution[17][391] = 'D'; solution[17][414] = 'R'; solution[17][435] = 'U'; solution[17][442] = 'S'; solution[17][454] = 'U'; solution[17][468] = 'S'; solution[17][481] = 'U'; solution[17][491] = 'S'; solution[17][503] = 'U'; solution[17][515] = 'S'; solution[18][34] = 'U'; solution[18][64] = 'S'; solution[18][93] = 'U'; solution[18][104] = 'L'; solution[18][121] = 'U'; solution[18][149] = 'S'; solution[18][229] = 'U'; solution[18][238] = 'L'; solution[18][249] = 'S'; solution[18][259] = 'L'; solution[18][273] = 'D'; solution[18][378] = 'R'; solution[18][400] = 'S'; solution[18][414] = 'U'; solution[18][431] = 'R'; solution[18][442] = 'S'; solution[18][462] = 'D'; solution[18][485] = 'L'; solution[18][521] = 'L'; solution[18][536] = 'D'; solution[18][553] = 'S'; solution[19][40] = 'D'; solution[19][73] = 'S'; solution[19][110] = 'D'; solution[19][135] = 'S'; solution[19][148] = 'R'; solution[19][187] = 'D'; solution[19][198] = 'R'; solution[19][208] = 'U'; solution[19][218] = 'S'; solution[19][250] = 'U'; solution[19][277] = 'S'; solution[20][30] = 'R'; solution[20][54] = 'S'; solution[20][72] = 'L'; solution[20][98] = 'D'; solution[20][110] = 'R'; solution[20][127] = 'S'; solution[20][154] = 'L'; solution[20][176] = 'U'; solution[20][185] = 'R'; solution[20][207] = 'S'; solution[20][228] = 'D'; solution[20][250] = 'R'; solution[20][266] = 'U'; solution[20][275] = 'S'; solution[20][305] = 'U'; solution[20][336] = 'R'; solution[20][346] = 'S'; solution[21][51] = 'D'; solution[21][64] = 'L'; solution[21][77] = 'S'; solution[21][128] = 'U'; solution[21][139] = 'L'; solution[21][152] = 'D'; solution[21][178] = 'L'; solution[21][191] = 'U'; solution[21][207] = 'S'; solution[21][245] = 'U'; solution[21][274] = 'S'; solution[21][290] = 'D'; solution[21][309] = 'R'; solution[21][326] = 'U'; solution[21][338] = 'L'; solution[21][358] = 'S'; solution[21][376] = 'L'; solution[21][398] = 'U'; solution[21][408] = 'R'; solution[21][417] = 'S'; solution[21][441] = 'R'; solution[21][477] = 'S'; solution[21][488] = 'L'; solution[21][513] = 'D'; solution[21][524] = 'R'; solution[21][544] = 'U'; solution[21][572] = 'R'; solution[21][582] = 'D'; solution[21][591] = 'S'; solution[21][622] = 'L'; solution[21][640] = 'D'; solution[21][653] = 'R'; solution[21][696] = 'D'; solution[21][707] = 'L'; solution[21][739] = 'S'; solution[22][43] = 'D'; solution[22][59] = 'L'; solution[22][82] = 'S'; solution[22][129] = 'L'; solution[22][184] = 'R'; solution[22][203] = 'S'; solution[22][215] = 'D'; solution[22][230] = 'S'; solution[22][245] = 'L'; solution[22][270] = 'U'; solution[22][287] = 'R'; solution[22][294] = 'S'; solution[22][343] = 'R'; solution[22][395] = 'L'; solution[22][409] = 'S'; solution[22][446] = 'L'; solution[22][487] = 'L'; solution[22][502] = 'U'; solution[22][510] = 'R'; solution[22][520] = 'S'; solution[22][560] = 'R'; solution[22][605] = 'R'; solution[22][617] = 'D'; solution[22][629] = 'L'; solution[22][638] = 'S'; solution[22][686] = 'L'; solution[22][737] = 'L'; solution[22][752] = 'U'; solution[22][760] = 'R'; solution[22][769] = 'S'; solution[22][809] = 'R'; solution[22][853] = 'L'; solution[22][872] = 'S'; solution[23][47] = 'U'; solution[23][73] = 'L'; solution[23][90] = 'S'; solution[23][110] = 'D'; solution[23][137] = 'L'; solution[23][145] = 'S'; solution[23][183] = 'U'; solution[23][207] = 'L'; solution[23][228] = 'S'; solution[23][242] = 'R'; solution[23][268] = 'D'; solution[23][293] = 'L'; solution[23][299] = 'S'; solution[23][340] = 'L'; solution[23][383] = 'L'; solution[23][393] = 'S'; solution[23][414] = 'L'; solution[23][428] = 'D'; solution[23][448] = 'R'; solution[23][455] = 'S'; solution[23][492] = 'R'; solution[23][526] = 'L'; solution[23][540] = 'S'; solution[24][34] = 'R'; solution[24][64] = 'S'; solution[24][159] = 'U'; solution[24][183] = 'L'; solution[24][252] = 'S'; solution[24][348] = 'U'; solution[24][374] = 'L'; solution[24][416] = 'R'; solution[24][425] = 'S'; solution[24][522] = 'U'; solution[24][538] = 'R'; solution[24][560] = 'S'; solution[24][568] = 'L'; solution[24][592] = 'D'; solution[24][605] = 'R'; solution[24][632] = 'S'; solution[24][641] = 'D'; solution[24][648] = 'L'; solution[24][669] = 'U'; solution[24][687] = 'S'; solution[24][704] = 'U'; solution[24][719] = 'R'; solution[24][750] = 'U'; solution[24][787] = 'S'; solution[24][829] = 'L'; solution[24][862] = 'R'; solution[24][893] = 'S'; solution[25][35] = 'D'; solution[25][45] = 'R'; solution[25][54] = 'S'; solution[25][68] = 'R'; solution[25][79] = 'U'; solution[25][97] = 'S'; solution[25][118] = 'U'; solution[25][134] = 'R'; solution[25][155] = 'D'; solution[25][170] = 'L'; solution[25][181] = 'S'; solution[25][200] = 'D'; solution[25][210] = 'L'; solution[25][218] = 'S'; solution[25][228] = 'L'; solution[25][239] = 'U'; solution[25][265] = 'L'; solution[25][277] = 'D'; solution[25][296] = 'L'; solution[25][310] = 'D'; solution[25][319] = 'L'; solution[25][328] = 'U'; solution[25][335] = 'S'; solution[25][361] = 'U'; solution[25][399] = 'S'; solution[26][37] = 'R'; solution[26][46] = 'D'; solution[26][57] = 'L'; solution[26][67] = 'U'; solution[26][79] = 'S'; solution[26][120] = 'L'; solution[26][125] = 'S'; solution[26][152] = 'U'; solution[26][171] = 'L'; solution[26][192] = 'U'; solution[26][200] = 'R'; solution[26][221] = 'S'; solution[26][242] = 'D'; solution[26][260] = 'S'; solution[26][275] = 'L'; solution[26][284] = 'D'; solution[26][297] = 'R'; solution[26][304] = 'S'; solution[26][336] = 'U'; solution[26][368] = 'R'; solution[26][395] = 'D'; solution[26][404] = 'S'; solution[26][420] = 'L'; solution[26][459] = 'D'; solution[26][475] = 'R'; solution[26][504] = 'D'; solution[26][521] = 'R'; solution[26][536] = 'U'; solution[26][543] = 'S'; solution[26][556] = 'L'; solution[26][592] = 'U'; solution[26][601] = 'S'; solution[27][53] = 'U'; solution[27][75] = 'R'; solution[27][81] = 'S'; solution[27][127] = 'R'; solution[27][175] = 'D'; solution[27][188] = 'S'; solution[27][199] = 'L'; solution[27][209] = 'U'; solution[27][215] = 'S'; solution[27][253] = 'R'; solution[27][266] = 'U'; solution[27][285] = 'L'; solution[27][315] = 'S'; solution[27][326] = 'L'; solution[27][340] = 'D'; solution[27][353] = 'L'; solution[27][371] = 'U'; solution[27][393] = 'R'; solution[27][401] = 'S'; solution[27][454] = 'R'; solution[27][514] = 'U'; solution[27][530] = 'S'; solution[27][538] = 'L'; solution[27][560] = 'D'; solution[27][578] = 'R'; solution[27][598] = 'U'; solution[27][614] = 'S'; solution[27][635] = 'U'; solution[27][644] = 'L'; solution[27][668] = 'R'; solution[27][680] = 'D'; solution[27][696] = 'S'; solution[28][41] = 'D'; solution[28][54] = 'R'; solution[28][65] = 'S'; solution[28][138] = 'U'; solution[28][158] = 'R'; solution[28][194] = 'U'; solution[28][202] = 'S'; solution[28][215] = 'U'; solution[28][221] = 'L'; solution[28][232] = 'D'; solution[28][258] = 'R'; solution[28][269] = 'S'; solution[28][305] = 'L'; solution[28][329] = 'S'; solution[28][354] = 'L'; solution[28][376] = 'U'; solution[28][387] = 'R'; solution[28][405] = 'S'; solution[28][426] = 'R'; solution[28][439] = 'U'; solution[28][449] = 'R'; solution[28][456] = 'D'; solution[28][462] = 'S'; solution[28][505] = 'D'; solution[28][553] = 'D'; solution[28][565] = 'L'; solution[28][574] = 'U'; solution[28][583] = 'R'; solution[28][595] = 'S'; solution[28][611] = 'U'; solution[28][631] = 'L'; solution[28][637] = 'S'; solution[29][72] = 'R'; solution[29][107] = 'D'; solution[29][129] = 'L'; solution[29][165] = 'U'; solution[29][190] = 'S'; solution[29][213] = 'R'; solution[29][221] = 'S'; solution[29][264] = 'R'; solution[29][307] = 'L'; solution[29][315] = 'S'; solution[29][388] = 'L'; solution[29][449] = 'D'; solution[29][463] = 'L'; solution[29][498] = 'U'; solution[29][524] = 'R'; solution[29][550] = 'S'; solution[29][575] = 'D'; solution[29][600] = 'R'; solution[29][620] = 'U'; solution[29][641] = 'L'; solution[29][648] = 'S'; solution[29][701] = 'L'; solution[29][765] = 'D'; solution[29][780] = 'R'; solution[29][791] = 'U'; solution[29][808] = 'L'; solution[29][833] = 'S'; solution[30][38] = 'L'; solution[30][57] = 'U'; solution[30][66] = 'S'; solution[30][91] = 'U'; solution[30][103] = 'L'; solution[30][119] = 'U'; solution[30][130] = 'R'; solution[30][145] = 'S'; solution[30][159] = 'D'; solution[30][175] = 'R'; solution[30][198] = 'S'; solution[30][209] = 'D'; solution[30][218] = 'L'; solution[30][236] = 'U'; solution[30][250] = 'S'; solution[30][282] = 'L'; solution[30][295] = 'D'; solution[30][310] = 'R'; solution[30][323] = 'S'; solution[30][347] = 'U'; solution[30][371] = 'R'; solution[30][382] = 'S'; solution[30][407] = 'D'; solution[30][431] = 'R'; solution[30][451] = 'U'; solution[30][464] = 'S'; solution[30][488] = 'U'; solution[30][503] = 'R'; solution[30][513] = 'S'; solution[30][539] = 'R'; solution[30][553] = 'U'; solution[30][562] = 'S'; trace(solution[1][40]); var n = 8; var m = 6; var matrix = new Array(); var lastLvl = new SharedObject(); lastLvl.flush(); lastLvl = SharedObject.getLocal('lvl'); if (lastLvl.data.lvl == undefined) { lastLvl.data.lvl = 1; } var notPassed1 = new SharedObject(); notPassed1.flush(); notPassed1 = SharedObject.getLocal('np1'); if (notPassed1.data.np1 == undefined) { notPassed1.data.np1 = 1; } var notPassed2 = new SharedObject(); notPassed2.flush(); notPassed2 = SharedObject.getLocal('np2'); if (notPassed2.data.np2 == undefined) { notPassed2.data.np2 = 31; } var notPassed3 = new SharedObject(); notPassed3.flush(); notPassed3 = SharedObject.getLocal('np3'); if (notPassed3.data.np3 == undefined) { notPassed3.data.np3 = 32; } unlockAll = function () { lastLvl.data.lvl = 30; notPassed1.data.np1 = 30; notPassed2.data.np2 = 32; notPassed3.data.np3 = 33; }; resetGame = function () { lastLvl.data.lvl = 1; notPassed1.data.np1 = 1; notPassed2.data.np2 = 31; notPassed3.data.np3 = 32; }; var curLvl = lastLvl.data.lvl; i = 0; while (i < m) { matrix[i] = new Array(); ++i; } resetMatrix = function () { i = 0; while (i < m) { j = 0; while (j < n) { _root.matrix[i][j] = 0; ++j; } ++i; } }; loadLevel = function (lvl) { resetMatrix(); if (lvl == 1) { matrix[2][4] = 3; matrix[3][2] = 3; matrix[5][3] = 4; matrix[5][6] = 2; } if (lvl == 2) { matrix[0][5] = 3; matrix[0][6] = 4; matrix[1][0] = 2; matrix[2][0] = 4; matrix[2][7] = 3; matrix[3][0] = 3; matrix[3][7] = 4; matrix[5][1] = 4; matrix[5][2] = 3; } if (lvl == 3) { matrix[1][5] = 4; matrix[2][1] = 3; matrix[2][3] = 6; matrix[3][6] = 4; matrix[5][3] = 2; matrix[5][4] = 4; } if (lvl == 4) { matrix[0][4] = 4; matrix[1][5] = 3; matrix[2][4] = 6; matrix[2][6] = 3; matrix[3][1] = 3; matrix[3][3] = 6; matrix[4][2] = 3; matrix[5][3] = 4; matrix[5][7] = 2; } if (lvl == 5) { matrix[0][3] = 4; matrix[0][4] = 2; matrix[0][5] = 1; matrix[1][0] = 1; matrix[1][1] = 1; matrix[1][2] = 1; matrix[1][4] = 1; matrix[1][6] = 1; matrix[1][7] = 1; matrix[2][1] = 1; matrix[2][2] = 4; matrix[2][3] = 1; matrix[2][4] = 1; matrix[2][7] = 1; matrix[3][0] = 1; matrix[3][3] = 1; matrix[3][4] = 1; matrix[3][7] = 3; matrix[4][0] = 4; matrix[4][1] = 1; matrix[4][2] = 1; matrix[4][3] = 1; matrix[4][4] = 1; matrix[5][0] = 1; matrix[5][5] = 4; matrix[5][6] = 3; matrix[5][7] = 4; } if (lvl == 6) { matrix[1][2] = 3; matrix[2][4] = 3; matrix[2][5] = 3; matrix[2][7] = 1; matrix[3][1] = 3; matrix[3][7] = 2; matrix[4][3] = 3; } if (lvl == 7) { matrix[1][1] = 12; matrix[1][6] = 11; matrix[2][0] = 2; matrix[3][1] = 3; matrix[3][6] = 3; matrix[5][0] = 9; matrix[5][6] = 10; } if (lvl == 8) { matrix[0][1] = 12; matrix[0][2] = 3; matrix[0][3] = 11; matrix[0][4] = 9; matrix[0][5] = 3; matrix[0][6] = 12; matrix[4][6] = 3; matrix[5][1] = 4; matrix[5][7] = 2; } if (lvl == 9) { matrix[1][3] = 3; matrix[1][4] = 3; matrix[2][2] = 2; matrix[2][5] = 3; matrix[2][7] = 11; matrix[3][5] = 3; matrix[3][7] = 11; matrix[5][3] = 10; matrix[5][4] = 10; } if (lvl == 10) { matrix[1][1] = 3; matrix[2][6] = 1; matrix[4][6] = 3; matrix[4][7] = 5; matrix[5][3] = 2; } if (lvl == 11) { matrix[0][3] = 12; matrix[0][7] = 2; matrix[2][2] = 3; matrix[2][6] = 3; matrix[5][0] = 3; matrix[5][4] = 3; matrix[5][6] = 5; } if (lvl == 12) { matrix[0][0] = 9; matrix[0][7] = 12; matrix[2][5] = 3; matrix[2][6] = 6; matrix[3][2] = 5; matrix[3][6] = 2; matrix[4][2] = 3; matrix[4][3] = 5; } if (lvl == 13) { matrix[1][2] = 3; matrix[1][3] = 3; matrix[1][4] = 3; matrix[4][3] = 3; matrix[4][4] = 3; matrix[4][5] = 3; matrix[5][0] = 3; matrix[5][5] = 2; } if (lvl == 14) { matrix[0][0] = 3; matrix[0][2] = 4; matrix[0][4] = 3; matrix[0][5] = 4; matrix[0][7] = 3; matrix[1][0] = 4; matrix[1][7] = 4; matrix[2][1] = 2; matrix[2][4] = 4; matrix[3][7] = 3; matrix[4][0] = 4; matrix[4][2] = 3; matrix[4][7] = 4; matrix[5][0] = 3; matrix[5][2] = 4; matrix[5][5] = 3; matrix[5][6] = 4; } if (lvl == 15) { matrix[0][1] = 1; matrix[0][6] = 12; matrix[0][7] = 11; matrix[1][0] = 1; matrix[1][4] = 1; matrix[1][5] = 1; matrix[1][6] = 1; matrix[1][7] = 1; matrix[2][2] = 3; matrix[2][4] = 1; matrix[2][5] = 3; matrix[2][6] = 1; matrix[3][1] = 1; matrix[3][2] = 1; matrix[3][3] = 1; matrix[3][5] = 1; matrix[4][1] = 1; matrix[4][2] = 1; matrix[4][3] = 1; matrix[4][7] = 5; matrix[5][0] = 1; matrix[5][1] = 1; matrix[5][6] = 5; matrix[5][7] = 2; } if (lvl == 16) { matrix[0][1] = 12; matrix[0][2] = 9; matrix[0][3] = 3; matrix[1][1] = 3; matrix[1][2] = 10; matrix[1][3] = 11; matrix[1][4] = 9; matrix[1][5] = 12; matrix[2][1] = 11; matrix[2][2] = 12; matrix[2][3] = 2; matrix[2][4] = 10; matrix[2][6] = 3; matrix[3][0] = 9; matrix[3][3] = 12; matrix[3][4] = 11; matrix[3][5] = 9; matrix[3][7] = 10; matrix[4][2] = 11; matrix[4][4] = 9; matrix[5][0] = 9; matrix[5][1] = 3; matrix[5][2] = 10; matrix[5][4] = 10; matrix[5][6] = 10; } if (lvl == 17) { matrix[0][2] = 3; matrix[1][2] = 3; matrix[2][2] = 3; matrix[3][2] = 3; matrix[4][1] = 2; matrix[4][2] = 3; matrix[4][5] = 5; matrix[5][5] = 5; } if (lvl == 18) { matrix[0][0] = 3; matrix[0][3] = 4; matrix[0][7] = 3; matrix[1][0] = 9; matrix[1][7] = 12; matrix[3][3] = 5; matrix[3][6] = 3; matrix[4][3] = 2; matrix[5][0] = 3; matrix[5][2] = 10; matrix[5][7] = 11; } if (lvl == 19) { matrix[0][0] = 2; matrix[0][6] = 4; matrix[0][7] = 3; matrix[1][0] = 5; matrix[1][7] = 8; matrix[4][0] = 8; matrix[4][7] = 5; matrix[5][0] = 3; matrix[5][1] = 4; } if (lvl == 20) { matrix[0][6] = 8; matrix[0][7] = 3; matrix[1][0] = 4; matrix[1][1] = 1; matrix[1][2] = 1; matrix[1][4] = 2; matrix[1][5] = 5; matrix[1][6] = 8; matrix[1][7] = 4; matrix[2][1] = 1; matrix[2][4] = 5; matrix[2][6] = 8; matrix[2][7] = 1; matrix[3][1] = 1; matrix[3][2] = 1; matrix[3][3] = 5; matrix[3][6] = 8; matrix[3][7] = 1; matrix[4][0] = 1; matrix[4][1] = 4; matrix[4][2] = 1; matrix[4][6] = 5; matrix[4][7] = 1; matrix[5][7] = 4; } if (lvl == 21) { matrix[0][4] = 4; matrix[0][7] = 2; matrix[1][3] = 5; matrix[1][4] = 3; matrix[2][0] = 4; matrix[2][1] = 3; matrix[2][2] = 1; matrix[2][3] = 8; matrix[2][4] = 8; matrix[2][5] = 1; matrix[2][6] = 5; matrix[3][1] = 5; matrix[3][2] = 1; matrix[3][3] = 8; matrix[3][4] = 8; matrix[3][5] = 1; matrix[3][6] = 3; matrix[3][7] = 4; matrix[4][3] = 3; matrix[4][4] = 5; matrix[5][3] = 4; matrix[5][4] = 1; } if (lvl == 22) { matrix[0][6] = 12; matrix[1][5] = 3; matrix[2][3] = 3; matrix[3][7] = 2; matrix[4][2] = 10; matrix[4][4] = 3; matrix[4][5] = 5; matrix[5][1] = 10; matrix[5][6] = 5; } if (lvl == 23) { matrix[0][1] = 3; matrix[0][3] = 8; matrix[0][4] = 5; matrix[1][1] = 3; matrix[1][3] = 8; matrix[2][1] = 3; matrix[3][1] = 4; matrix[5][1] = 5; matrix[5][3] = 10; matrix[5][4] = 5; matrix[5][6] = 5; matrix[5][7] = 2; } if (lvl == 24) { matrix[0][0] = 12; matrix[0][7] = 11; matrix[1][1] = 5; matrix[2][6] = 3; matrix[3][6] = 3; matrix[4][6] = 3; matrix[5][0] = 9; matrix[5][1] = 2; matrix[5][6] = 5; matrix[5][7] = 10; } if (lvl == 25) { matrix[0][1] = 4; matrix[0][2] = 3; matrix[0][3] = 4; matrix[2][2] = 8; matrix[4][1] = 5; matrix[4][2] = 2; matrix[4][3] = 5; matrix[4][5] = 5; matrix[5][1] = 4; matrix[5][3] = 3; matrix[5][4] = 4; matrix[5][5] = 3; matrix[5][7] = 4; } if (lvl == 26) { matrix[0][7] = 8; matrix[1][6] = 4; matrix[1][7] = 3; matrix[2][6] = 4; matrix[2][7] = 4; matrix[3][0] = 4; matrix[3][1] = 4; matrix[3][4] = 2; matrix[3][6] = 4; matrix[3][7] = 4; matrix[4][0] = 3; matrix[4][1] = 4; matrix[4][3] = 5; matrix[4][4] = 5; matrix[4][6] = 4; matrix[4][7] = 3; matrix[5][0] = 8; matrix[5][3] = 5; matrix[5][7] = 8; } if (lvl == 27) { matrix[0][0] = 4; matrix[0][1] = 4; matrix[0][2] = 4; matrix[0][3] = 4; matrix[0][4] = 3; matrix[0][5] = 4; matrix[0][6] = 4; matrix[0][7] = 4; matrix[1][1] = 5; matrix[1][6] = 12; matrix[2][1] = 10; matrix[2][5] = 11; matrix[3][2] = 3; matrix[3][4] = 3; matrix[3][6] = 11; matrix[4][4] = 4; matrix[5][0] = 2; matrix[5][4] = 4; matrix[5][5] = 4; matrix[5][6] = 3; matrix[5][7] = 4; } if (lvl == 28) { matrix[0][0] = 3; matrix[0][4] = 4; matrix[0][7] = 3; matrix[2][4] = 5; matrix[3][0] = 2; matrix[3][3] = 8; matrix[3][7] = 11; matrix[4][2] = 3; matrix[5][1] = 5; matrix[5][3] = 10; matrix[5][4] = 10; matrix[5][7] = 3; } if (lvl == 29) { matrix[0][0] = 2; matrix[1][1] = 12; matrix[1][2] = 8; matrix[1][4] = 5; matrix[1][6] = 5; matrix[2][1] = 9; matrix[3][0] = 3; matrix[3][2] = 3; matrix[4][1] = 5; matrix[4][5] = 10; } if (lvl == 30) { matrix[0][0] = 4; matrix[0][6] = 4; matrix[0][7] = 3; matrix[1][3] = 3; matrix[1][4] = 4; matrix[1][5] = 8; matrix[1][6] = 5; matrix[1][7] = 8; matrix[2][3] = 5; matrix[2][5] = 5; matrix[2][6] = 4; matrix[3][3] = 8; matrix[4][3] = 5; matrix[4][7] = 3; matrix[5][2] = 5; matrix[5][6] = 2; matrix[5][7] = 4; } }; var H = 0; var D = 1; var P = 2; var S = 3; var RH = 4; var RV = 5; var G = 6; var T = 7; } // unknown tag 88 length 125 frame 3 { stop(); onMouseDown = function () { getURL('http://www.frip.com/?reftype=sponsored&refgame=theft-punk', '_blank'); }; onEnterFrame = null; createEmptyMovieClip('transMC', 1000); transFadeToMM = function (alpha) { transMC.clear(); if (alpha == undefined) { alpha = 0; } transMC.beginFill(0, alpha); transMC.moveTo(0, 0); transMC.lineTo(640, 0); transMC.lineTo(640, 480); transMC.lineTo(0, 480); transMC.lineTo(0, 0); transMC.endFill(); if (alpha < 100) { setTimeout(transFadeToMM, 20, alpha + 5); } else { _root.gotoAndStop('mainMenu'); } }; } frame 3 { soundDepth = 600; var make_sound = function (name, volume) { if (!volume) { volume = 100; } var v2 = createEmptyMovieClip(name, soundDepth); ++soundDepth; var v1 = new Sound(v2); v1.setVolume(volume); v1.attachSound(name); return v1; }; var soundOn = true; var musicOn = true; var BGM = make_sound('BGM'); var mainMusic = make_sound('mainMusic'); var lvlSlctM = make_sound('lvlSlctM'); _root.BGM.setVolume(0); var rampHitS = make_sound('rampHitS'); var brickHit1S = make_sound('brickHit1S'); var brickHit2S = make_sound('brickHit2S'); var step1S = make_sound('step1S'); var step2S = make_sound('step2S'); var stepSS = make_sound('stepSS'); var spin3S = make_sound('spin3S'); var spin2S = make_sound('spin2S'); var spin1S = make_sound('spin1S'); var whoosh2S = make_sound('whoosh2S'); var whoosh1S = make_sound('whoosh1S'); var diaHit1S = make_sound('diaHit1S'); var diaHit2S = make_sound('diaHit2S'); var dia1S = make_sound('dia1S'); var dia2S = make_sound('dia2S'); var dia3S = make_sound('dia3S'); var dia4S = make_sound('dia4S'); var safeFall1S = make_sound('safeFall1S'); var safeFall2S = make_sound('safeFall2S'); var safeHit1S = make_sound('safeHit1S'); var safeHit2S = make_sound('safeHit2S'); var if1S = make_sound('if1S'); var if2S = make_sound('if2S'); var bakaGlasS = make_sound('bakaGlasS'); var lopovGlasS = make_sound('lopovGlasS'); var lopovGlasIntroS = make_sound('lopovGlasIntroS'); var bakaGlasIntroS = make_sound('bakaGlasIntroS'); var telefonS = make_sound('telefonS'); var telefonTipS = make_sound('telefonTipS'); var pticeS = make_sound('pticeS'); var vestiS = make_sound('vestiS'); soundPlay = function (sound, loops, pos) { if (!pos) { pos = 0; } if (loops > 1) { if (musicOn) { sound.setVolume(100); sound.loops = loops; if (pos) { sound.start(pos / 1000, 1); sound.onSoundComplete = function () { this.start(0, this.loops); }; } else { sound.start(pos / 1000, loops); sound.onSoundComplete = null; } } } else { if (soundOn) { sound.setVolume(100); sound.start(pos / 1000, loops); } } }; soundFadeOut = function (sound, to, speed) { if (speed == undefined) { speed = 30; } if (to == undefined) { to = 0; } v = sound.getVolume(); if (v > to) { sound.setVolume(v - 5); setTimeout(soundFadeOut, speed, sound, to); } else { if (to == 0) { sound.stop(); } } }; soundFadeIn = function (sound, to, speed) { if (speed == undefined) { speed = 20; } if (to == undefined) { to = 100; } v = sound.getVolume(); if (v < to) { sound.setVolume(v + 5); setTimeout(soundFadeIn, speed, sound, to); } }; } movieClip 55 { frame 10 { stop(); } } movieClip 57 { } movieClip 58 { } movieClip 59 { } movieClip 64 { frame 25 { stop(); } } movieClip 67 { frame 189 { stop(); _root.transFadeToMM(); } } frame 4 { function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = '__mochibot__'; mbc = 'mochibot.com'; g = _global ? _global : _level0._root; if (g[mb + swfid]) { return g[mb + swfid]; } s = System.security; x = mc._root.getSWFVersion; fv = x ? mc.getSWFVersion() : (_global ? 6 : 5); if (!s) { s = {}; } sb = s.sandboxType; if (sb == 'localWithFile') { return null; } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = (fv == 5) ? /:$version : System.capabilities.version; u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } __com_mochibot__('771d44fa', this, 10301, true); } frame 4 { stop(); if (_root.lastLvl.data.lvl == 1) { menuMC.conBtn._visible = false; menuMC.conGf._visible = true; } else { menuMC.conBtn._visible = true; menuMC.conGf._visible = false; } } frame 4 { stop(); onMouseDown = null; fr = 0; onEnterFrame = function () { if (Key.isDown(80) and Key.isDown(84) and lastLvl.data.lvl < 30) { unlockAll(); mainLock.play(); menuMC.conBtn._visible = true; menuMC.conGf._visible = false; creditsMc.gotoAndStop(1); onEnterFrame = null; } }; _root.soundFadeOut(_root.lvlSlctM); _root.soundFadeOut(_root.vestiS); if (_root.lvlSlctM.getVolume()) { mPos = _root.lvlSlctM.position; } else { mPos = 0; } if (mPos > _root.lvlSlctM.duration) { mPos = 0; } _root.soundPlay(_root.mainMusic, 99999, mPos); _root.mainMusic.setVolume(0); _root.soundFadeIn(_root.mainMusic); lvlSlctFR = this._currentframe; createEmptyMovieClip('transMC', 1000); transFadeOut = function (alpha) { transMC.clear(); if (_root._currentframe != lvlSlctFR) { return undefined; } if (alpha == undefined) { alpha = 0; } transMC.beginFill(0, alpha); transMC.moveTo(0, 0); transMC.lineTo(640, 0); transMC.lineTo(640, 480); transMC.lineTo(0, 480); transMC.lineTo(0, 0); transMC.endFill(); if (alpha < 100) { setTimeout(transFadeOut, 20, alpha + 5); } else { _root.removeButtons(); _root.gotoAndStop('lvlSlct'); } }; transFadeIn = function (alpha) { transMC.clear(); if (_root._currentframe != lvlSlctFR) { return undefined; } if (alpha == undefined) { alpha = 100; } transMC.beginFill(0, alpha); transMC.moveTo(0, 0); transMC.lineTo(640, 0); transMC.lineTo(640, 480); transMC.lineTo(0, 480); transMC.lineTo(0, 0); transMC.endFill(); if (alpha > 0) { setTimeout(transFadeIn, 20, alpha - 5); } }; transFadeToIntro = function (alpha) { transMC.clear(); if (_root._currentframe != lvlSlctFR) { return undefined; } if (alpha == undefined) { alpha = 0; } transMC.beginFill(0, alpha); transMC.moveTo(0, 0); transMC.lineTo(640, 0); transMC.lineTo(640, 480); transMC.lineTo(0, 480); transMC.lineTo(0, 0); transMC.endFill(); if (alpha < 100) { setTimeout(transFadeToIntro, 20, alpha + 5); } else { _root.removeButtons(); _root.gotoAndStop('intro'); } }; transFadeIn(); } movieClip 71 { } movieClip 72 { } movieClip 73 { } movieClip 74 { frame 20 { stop(); } } button 76 { on (release) { getURL('http://www.frip.com/?reftype=sponsored&refgame=theft-punk', '_blank'); } on (rollOver) { _root.soundPlay(_root.if1S, 1); } } movieClip 83 { frame 1 { stop(); } frame 21 { _root.soundPlay(_root.dia1S, 1); } } movieClip 85 { } movieClip 88 { frame 10 { stop(); } } movieClip 91 { frame 10 { stop(); } } button 94 { on (release) { _root.creditsMc.play(); } on (rollOver) { _root.soundPlay(_root.if1S, 1); } } movieClip 97 { frame 10 { stop(); } } movieClip 100 { frame 10 { stop(); } } button 102 { on (release) { if (_root.lastLvl.data.lvl == 1) { _root.resetGame(); _root.transFadeToIntro(); _root.menuMC.ngBtn.enabled = false; } else { _root.menuMC.play(); } _root.soundPlay(_root.if2S, 1); } on (rollOver) { _root.soundPlay(_root.if1S, 1); } } movieClip 105 { frame 10 { stop(); } } movieClip 108 { frame 10 { stop(); } } button 110 { on (release) { _root.transFadeOut(); _root.menuMC.conBtn.enabled = false; _root.soundPlay(_root.if2S, 1); } on (rollOver) { _root.soundPlay(_root.if1S, 1); } } button 111 { on (release) { if (_root.lastLvl.data.lvl == 3) { _root.resetGame(); _root.transFadeToIntro(); _root.menuMC.ngBtn.enabled = false; } else { _root.menuMC.play(); } _root.soundPlay(_root.if2S, 1); } on (rollOver) { _root.soundPlay(_root.if1S, 1); } } button 113 { on (release) { _root.transFadeOut(); } } movieClip 116 { frame 10 { stop(); } } movieClip 119 { frame 10 { stop(); } } movieClip 125 { frame 10 { stop(); } } movieClip 128 { frame 10 { stop(); } } button 131 { on (release) { _root.transFadeOut(); } } button 133 { on (release) { _root.menuMC.play(); _root.soundPlay(_root.if2S, 1); } on (rollOver) { _root.soundPlay(_root.if1S, 1); } } button 134 { on (release) { _root.resetGame(); _root.transFadeToIntro(); _root.menuMC.yesBtn.enabled = false; _root.soundPlay(_root.if2S, 1); } on (rollOver) { _root.soundPlay(_root.if1S, 1); } } button 135 { on (release) { if (_root.lastLvl.data.lvl == 1) { _root.transFadeOut(); } else { _root.menuMC.play(); } } } movieClip 136 { frame 1 { stop(); } frame 30 { stop(); } } movieClip 138 { frame 1 { this._visible = _root.soundOn; } } movieClip 143 { frame 10 { stop(); } } button 145 { on (press) { _root.soundOn = !_root.soundOn; _root.musicOn = !_root.musicOn; if (!_root.musicOn) { _root.mainMusic.pos = _root.mainMusic.position; _root.mainMusic.setVolume(0); } else { _root.mainMusic.stop(); _root.soundPlay(_root.mainMusic, 999999, _root.mainMusic.pos); _root.mainMusic.setVolume(100); } } on (rollOver) { _root.soundPlay(_root.if1S, 1); } } button 149 { on (release) { _root.creditsMc.play(); } } movieClip 150 { } movieClip 155 { } // unknown tag 88 length 68 movieClip 158 { } movieClip 159 { } movieClip 160 { frame 139 { stop(); } } button 163 { on (release) { _root.creditsMc.play(); } on (rollOver) { _root.soundPlay(_root.if1S, 1); } } movieClip 164 { instance of movieClip 160 { onClipEvent (release) { getURL('http://www.ticklebot.net/', '_blank'); } } } movieClip 166 { frame 1 { stop(); } frame 2 { invBtn.useHandCursor = false; } frame 15 { stop(); } } frame 5 { _root.soundFadeOut(_root.mainMusic); _root.soundFadeOut(_root.BGM); if (_root.mainMusic.getVolume()) { mPos = _root.mainMusic.position; } else { mPos = 0; } if (mPos > _root.lvlSlctM.duration) { mPos = 0; } _root.soundPlay(_root.lvlSlctM, 99999, mPos); _root.soundPlay(_root.pticeS, 9999); _root.lvlSlctM.setVolume(0); _root.soundFadeIn(_root.lvlSlctM, 10); lvlSlctFR = this._currentframe; createEmptyMovieClip('transMC', 1000); transFadeIn(); } movieClip 172 { } movieClip 173 { frame 61 { _root.soundPlay(_root.telefonS, 1); } frame 91 { gotoAndPlay('loop'); } } movieClip 178 { frame 186 { this._parent.play(); } } movieClip 186 { frame 33 { stop(); str = 'He*****llo!'; str += '*******************'; curSound = 1; voice.text = ''; curFR = 0; curWord = 0; _root.soundPlay(_root.lopovGlasIntroS, 1); onEnterFrame = function () { if (curFR % 2 == 0) { word = str.charAt(curWord); if (word != '*' and curWord <= str.length) { voice.text += word; } ++curWord; if (curWord > str.length) { this.play(); } } ++curFR; }; } frame 43 { this._parent.play(); } } movieClip 191 { } movieClip 198 { frame 25 { stop(); str = 'Wake up, you little punk!************* I need\nyou to do something for me . . .'; str += '*******************************'; curSound = 1; voice.text = ''; curFR = 0; curWord = 0; _root.soundPlay(_root.bakaGlasIntroS, 1); onEnterFrame = function () { if (curFR % 2 == 0) { word = str.charAt(curWord); if (word != '*' and curWord <= str.length) { voice.text += word; } ++curWord; if (curWord > str.length) { this.play(); } } ++curFR; }; } frame 45 { this._parent.play(); } } movieClip 212 { frame 21 { stop(); str = 'It\'s time***************** for some thefty business!'; str += '*************************'; curSound = 1; voice.text = ''; curFR = 0; curWord = 0; _root.soundPlay(_root.lopovGlasS, 1); onEnterFrame = function () { if (curFR % 2 == 0) { word = str.charAt(curWord); if (word != '*' and curWord <= str.length) { voice.text += word; } ++curWord; if (curWord > str.length) { this.play(); } } ++curFR; }; } frame 29 { this._parent.play(); } } movieClip 221 { frame 1 { stop(); } frame 13 { _root.soundPlay(_root.telefonTipS, 1); } frame 60 { stop(); } frame 88 { stop(); } frame 112 { _root.soundFadeOut(_root.pticeS, 0, 100); } frame 172 { _root.soundFadeOut(_root.lvlSlctM, 0, 500); } frame 189 { stop(); } frame 190 { _root.soundPlay(_root.mainMusic, 99999); } frame 455 { _root.gotoAndStop('lvlSlct'); } } movieClip 224 { frame 10 { stop(); } } movieClip 227 { frame 10 { stop(); } } button 230 { on (release) { stopAllSounds(); _root.lvlSlctFR = this._currentframe; _root.transFadeOut(); _root.skipBtn.enabled = false; } } frame 6 { _root.solMode = false; lvlSlctFR = this._currentframe; createEmptyMovieClip('transMC', 1000); transFadeOut = function (alpha) { transMC.clear(); if (_root._currentframe != lvlSlctFR) { return undefined; } if (alpha == undefined) { alpha = 0; } transMC.beginFill(0, alpha); transMC.moveTo(0, 0); transMC.lineTo(640, 0); transMC.lineTo(640, 480); transMC.lineTo(0, 480); transMC.lineTo(0, 0); transMC.endFill(); if (alpha < 100) { setTimeout(transFadeOut, 20, alpha + 5); } else { _root.removeButtons(); _root.gotoAndStop('game'); } }; transFadeIn = function (alpha) { transMC.clear(); if (_root._currentframe != lvlSlctFR) { return undefined; } if (alpha == undefined) { alpha = 100; } transMC.beginFill(0, alpha); transMC.moveTo(0, 0); transMC.lineTo(640, 0); transMC.lineTo(640, 480); transMC.lineTo(0, 480); transMC.lineTo(0, 0); transMC.endFill(); if (alpha > 0) { setTimeout(transFadeIn, 20, alpha - 5); } else { _root.onEnterFrame = _root.scrollBG; } }; transFadeToMM = function (alpha) { transMC.clear(); if (_root._currentframe != lvlSlctFR) { return undefined; } if (alpha == undefined) { alpha = 0; } transMC.beginFill(0, alpha); transMC.moveTo(0, 0); transMC.lineTo(640, 0); transMC.lineTo(640, 480); transMC.lineTo(0, 480); transMC.lineTo(0, 0); transMC.endFill(); if (alpha < 100) { setTimeout(transFadeToMM, 20, alpha + 5); } else { _root.removeButtons(); _root.gotoAndStop('mainMenu'); } }; transFadeIn(); } frame 6 { stop(); onEnterFrame = null; _root.soundFadeOut(_root.vestiS); lvlStX = (640 - 6 * lvlslct._width) / 2 + lvlslct._width / 2; lvlStY = (480 - 5 * lvlslct._width) / 2 + lvlslct._width / 2; removeButtons = function () { i = 1; while (i <= 30) { this['levelSelect' + i].removeMovieClip(); ++i; } }; i = 0; while (i < 5) { j = 0; while (j < 6) { level = Math.floor(i * 6 + j) + 1; duplicateMovieClip(this['lvlslct' + i], 'levelSelect' + level, level); this['levelSelect' + level]._x = lvlStX + lvlslct._width * j; this['levelSelect' + level]._y = lvlStY + lvlslct._width * i; this['levelSelect' + level].lvl = level; l = 1; while (l <= 3) { if (_root['notPassed' + l].data['np' + l] == level) { this['levelSelect' + level].passed._alpha = 0; } ++l; } if (level > lastLvl.data.lvl) { this['levelSelect' + level].gotoAndStop(2); } else { this['levelSelect' + level].gotoAndStop(1); this['levelSelect' + level].onRelease = function () { _root.soundPlay(_root.if2S, 1); _root.curLvl = this.lvl; _root.transFadeOut(); _root.soundFadeOut(_root.lvlSlctM); }; this['levelSelect' + level].onRollOver = function () { this._xscale = _root.lvlslct0._xscale * 1.3; this._yscale = _root.lvlslct0._yscale * 1.3; _root.soundPlay(_root.if1S, 1); }; this['levelSelect' + level].onRollOut = function () { this._xscale = _root.lvlslct0._xscale; this._yscale = _root.lvlslct0._yscale; }; this['levelSelect' + level].onDragOver = function () { this._xscale = _root.lvlslct0._xscale * 1.3; this._yscale = _root.lvlslct0._yscale * 1.3; }; this['levelSelect' + level].onDragOut = function () { this._xscale = _root.lvlslct0._xscale; this._yscale = _root.lvlslct0._yscale; }; } ++j; } ++i; } scrollBG = function () { if (_xmouse < 240 and zgrade1._x < 1270) { target = 1270; if (zgrade1._x < 1200) { zgrade1._x -= (_xmouse - 240) / 50; zgrade2._x -= (_xmouse - 240) / 100; } else { pom = (target - zgrade1._x) * 0.05; if (Math.abs(pom) > 0.5) { zgrade1._x += pom; zgrade2._x += pom / 2; } } } if (_xmouse > 400 and zgrade1._x > 970) { target = 970; if (zgrade1._x > 1040) { zgrade1._x -= (_xmouse - 400) / 50; zgrade2._x -= (_xmouse - 400) / 100; } else { pom = (target - zgrade1._x) * 0.05; if (Math.abs(pom) > 0.5) { zgrade1._x += pom; zgrade2._x += pom / 2; } } } }; } frame 6 { _root.soundFadeOut(_root.mainMusic); _root.soundFadeOut(_root.BGM); _root.soundFadeOut(_root.ptice); if (_root.mainMusic.getVolume()) { mPos = _root.mainMusic.position; } else { mPos = 0; } if (mPos > _root.lvlSlctM.duration) { mPos = 0; } if (_root.lvlSlctM.getVolume() < 50 and _root.lvlSlctM.getVolume() > 2) { _root.soundFadeIn(_root.lvlSlctM, 100); } else { _root.soundPlay(_root.lvlSlctM, 99999, mPos); _root.lvlSlctM.setVolume(0); _root.soundFadeIn(_root.lvlSlctM); } } movieClip 234 { } movieClip 236 { } movieClip 238 { } movieClip 240 { } movieClip 243 { } movieClip 244 { } movieClip 247 { } movieClip 250 { } // unknown tag 88 length 146 movieClip 255 { } movieClip 257 { frame 1 { stop(); i = Math.ceil(this.lvl / 6) - 1; j = this.lvl - i * 6; lvlName.text = j; } } movieClip 259 { } movieClip 261 { } button 263 { on (press) { _root.soundOn = !_root.soundOn; _root.musicOn = !_root.musicOn; _root.soundPlay(_root.if2S, 1); if (!_root.musicOn) { _root.lvlSlctM.pos = _root.lvlSlctM.position; _root.lvlSlctM.setVolume(0); } else { _root.lvlSlctM.stop(); _root.soundPlay(_root.lvlSlctM, 999999, _root.lvlSlctM.pos); _root.lvlSlctM.setVolume(100); } } on (rollOver) { _root.soundPlay(_root.if1S, 1); } } // unknown tag 88 length 352 button 270 { on (release) { getURL('http://www.5hippos.com', '_blank'); } } movieClip 273 { frame 10 { stop(); } } movieClip 276 { frame 10 { stop(); } } button 278 { on (release) { _root.transFadeToMM(); _root.backBtn.enabled = false; _root.soundFadeOut(_root.BGM); _root.soundPlay(_root.if2S, 1); } on (rollOver) { _root.soundPlay(_root.if1S, 1); } } frame 7 { sponsorLogoBtn.swapDepths(-9000); if (_root.musicOn and _root.BGM.getVolume() < 90) { _root.soundPlay(_root.BGM, 99999); _root.BGM.setVolume(0); _root.soundFadeIn(_root.BGM); } gameFR = this._currentframe; transOut = function (r, obj) { transMC.clear(); if (_root._currentframe != gameFR) { return undefined; } cX = obj._x; cY = obj._y - 20; transMC.beginFill(0, 100); X = cX + 0 * r; Y = cY + 1 * r; transMC.moveTo(X, Y); a = 5; while (a <= 360) { X = cX + Math.sin(a * Math.PI / 180) * r; Y = cY + Math.cos(a * Math.PI / 180) * r; transMC.lineTo(X, Y); a += 5; } transMC.moveTo(0, 0); transMC.lineTo(640, 0); transMC.lineTo(640, 480); transMC.lineTo(0, 480); transMC.lineTo(0, 0); transMC.endFill(); if (r > 0) { if (r > 60) { setTimeout(transOut, 20, r * 0.92, obj); } else { if (r > 55) { setTimeout(transOut, 1500, r * 0.92, obj); } else { if (r > 1) { setTimeout(transOut, 20, r * 0.7, obj); } else { _root.gotoAndStop('nextLvl'); } } } } }; transIn = function (r, obj) { transMC.clear(); if (_root._currentframe != gameFR) { return undefined; } cX = obj._x; cY = obj._y - 20; transMC.beginFill(0, 100); X = cX + 0 * r; Y = cY + 1 * r; transMC.moveTo(X, Y); a = 5; while (a <= 360) { X = cX + Math.sin(a * Math.PI / 180) * r; Y = cY + Math.cos(a * Math.PI / 180) * r; transMC.lineTo(X, Y); a += 5; } transMC.moveTo(0, 0); transMC.lineTo(640, 0); transMC.lineTo(640, 480); transMC.lineTo(0, 480); transMC.lineTo(0, 0); transMC.endFill(); if (r < 1000) { setTimeout(transIn, 20, r * 1.2, obj); } else { _root.resetEnabled = true; _root.toLSEnabled = true; } }; transReset = function (r, obj) { transMC.clear(); if (_root._currentframe != gameFR) { return undefined; } cX = obj._x; cY = obj._y - 20; transMC.beginFill(0, 100); X = cX + 0 * r; Y = cY + 1 * r; transMC.moveTo(X, Y); a = 5; while (a <= 360) { X = cX + Math.sin(a * Math.PI / 180) * r; Y = cY + Math.cos(a * Math.PI / 180) * r; transMC.lineTo(X, Y); a += 5; } transMC.moveTo(0, 0); transMC.lineTo(640, 0); transMC.lineTo(640, 480); transMC.lineTo(0, 480); transMC.lineTo(0, 0); transMC.endFill(); if (r > 1) { setTimeout(transReset, 20, r * 0.8, obj); } else { _root.gotoAndStop('reset'); } }; transToLS = function (r, obj) { transMC.clear(); if (_root._currentframe != gameFR) { return undefined; } cX = obj._x; cY = obj._y - 20; transMC.beginFill(0, 100); X = cX + 0 * r; Y = cY + 1 * r; transMC.moveTo(X, Y); a = 5; while (a <= 360) { X = cX + Math.sin(a * Math.PI / 180) * r; Y = cY + Math.cos(a * Math.PI / 180) * r; transMC.lineTo(X, Y); a += 5; } transMC.moveTo(0, 0); transMC.lineTo(640, 0); transMC.lineTo(640, 480); transMC.lineTo(0, 480); transMC.lineTo(0, 0); transMC.endFill(); if (r > 1) { setTimeout(transToLS, 20, r * 0.8, obj); } else { _root.gotoAndStop('toLS'); } }; transToMM = function (r, obj) { transMC.clear(); if (_root._currentframe != gameFR) { return undefined; } cX = obj._x; cY = obj._y - 20; transMC.beginFill(0, 100); X = cX + 0 * r; Y = cY + 1 * r; transMC.moveTo(X, Y); a = 5; while (a <= 360) { X = cX + Math.sin(a * Math.PI / 180) * r; Y = cY + Math.cos(a * Math.PI / 180) * r; transMC.lineTo(X, Y); a += 5; } transMC.moveTo(0, 0); transMC.lineTo(640, 0); transMC.lineTo(640, 480); transMC.lineTo(0, 480); transMC.lineTo(0, 0); transMC.endFill(); if (r > 0) { if (r > 60) { setTimeout(transToMM, 20, r * 0.92, obj); } else { if (r > 55) { setTimeout(transToMM, 1500, r * 0.92, obj); } else { if (r > 1) { setTimeout(transToMM, 20, r * 0.7, obj); } else { _root.gotoAndStop('toMM'); } } } } }; } frame 7 { stop(); onEnterFrame = null; var n = 8; var m = 6; stX = (640 - n * block._width) / 2 + block._width / 2; stY = 15 + (480 - m * block._width) / 2 + block._width / 2; speed = 10; numOfObs = 0; numOfD = 0; maxNumOfD = 0; var moving = false; var staticObj = new Array(); var dynamicObj = new Array(); var resetEnabled = false; var toLSEnabled = false; if (lastSolLvl == undefined) { var lastSolLvl = -1; } if (lastSolLvl != curLvl) { var solMaxTime = 180000; var stTime = getTimer(); lastSolLvl = curLvl; } loadLevel(_root.curLvl); curBank = Math.ceil(curLvl / 6); background.gotoAndStop(curBank); buttons.lvlNum.text = curBank + '-' + (curLvl - (curBank - 1) * 6); i = 0; while (i < m) { staticObj[i] = new Array(); dynamicObj[i] = new Array(); ++i; } zSort = function (obj) { i = Math.floor((obj._y - stY + block._width / 2) / block._width); j = Math.floor((obj._x - stX + block._height / 2) / block._height); obj.swapDepths(-12000 + i * 3 * n - j * 3 + 1); }; setPosition = function (obj, i, j) { obj._x = stX + block._width * j; obj._y = stY + block._width * i; obj.i = i; obj.j = j; }; getPosition = function (i, j) { obj = new Object(); obj.x = stX + block._width * j; obj.y = stY + block._height * i; return obj; }; getI = function (obj) { return Math.floor((obj._y - stY + block._width / 2) / block._width); }; getJ = function (obj) { return Math.floor((obj._x - stX + block._height / 2) / block._height); }; checkSpace = function (obj) { di = obj.orientI; dj = obj.orientJ; retObj = new Object(); if (di) { if (staticObj[obj.i][obj.j].type == RH) { retObj.i = obj.i; retObj.j = obj.j; return retObj; } i = obj.i + di; while (i >= 0 and i < _root.m) { if (staticObj[i][obj.j] and staticObj[i][obj.j].type != RV or dynamicObj[i][obj.j]) { if ((staticObj[i][obj.j].type == T or staticObj[i][obj.j].type == G) and !dynamicObj[i][obj.j]) { if (!staticObj[i][obj.j].full) { retObj.i = i; retObj.j = obj.j; return retObj; } } else { retObj.i = i - di; retObj.j = obj.j; return retObj; } } i += di; } retObj.i = i - di; retObj.j = obj.j; return retObj; } if (dj) { if (staticObj[obj.i][obj.j].type == RV) { retObj.i = obj.i; retObj.j = obj.j; return retObj; } j = obj.j + dj; while (j >= 0 and j < _root.n) { if (staticObj[obj.i][j] and staticObj[obj.i][j].type != RH or dynamicObj[obj.i][j]) { if ((staticObj[obj.i][j].type == T or staticObj[obj.i][j].type == G) and !dynamicObj[obj.i][j]) { if (!staticObj[obj.i][j].full) { retObj.i = obj.i; retObj.j = j; return retObj; } } else { retObj.i = obj.i; retObj.j = j - dj; return retObj; } } j += dj; } retObj.i = obj.i; retObj.j = j - dj; return retObj; } }; compare = function (a, b) { if (a - b > 1) { return 1; } if (a - b < -1) { return -1; } return 0; }; removeObj = function (obj, mat) { mat[obj.i][obj.j] = undefined; obj.i = -1; obj.j = -1; }; i = 0; while (i < m) { j = 0; while (j < n) { if (matrix[i][j] == 2) { botOrient(h, 1, 0); setPosition(h, i, j); dynamicObj[i][j] = h; } if (matrix[i][j] == 3) { duplicateMovieClip(_root['diamond' + curBank], 'd' + numOfObs, -12000 + i * 3 * n - j * 3); setPosition(this['d' + numOfObs], i, j); staticObj[i][j] = this['d' + numOfObs]; this['d' + numOfObs].type = D; ++numOfObs; ++numOfD; ++maxNumOfD; } if (matrix[i][j] == 4) { duplicateMovieClip(_root['pole' + curBank], 'p' + numOfObs, -12000 + i * 3 * n - j * 3); setPosition(this['p' + numOfObs], i, j); staticObj[i][j] = this['p' + numOfObs]; this['p' + numOfObs].type = P; ++numOfObs; } if (matrix[i][j] == 5) { duplicateMovieClip(_root['safe' + curBank], 's' + numOfObs, -12000 + i * 3 * n - j * 3); setPosition(this['s' + numOfObs], i, j); dynamicObj[i][j] = this['s' + numOfObs]; this['s' + numOfObs].type = S; ++numOfObs; } if (matrix[i][j] == 6) { duplicateMovieClip(_root['rampH' + curBank], 'r' + numOfObs, -12000 + i * 3 * n - j * 3); setPosition(this['r' + numOfObs], i, j); this['r' + numOfObs]._y -= block._height / 2.7; ++numOfObs; duplicateMovieClip(_root['rampH' + curBank], 'r' + numOfObs, -12000 + i * 3 * n - j * 3 + 2); setPosition(this['r' + numOfObs], i, j); this['r' + numOfObs]._y += block._height / 2.7; staticObj[i][j] = this['r' + numOfObs]; this['r' + numOfObs].type = RH; this['r' + numOfObs].sibling = this['r' + (numOfObs - 1)]; ++numOfObs; } if (matrix[i][j] == 7) { duplicateMovieClip(_root['rampV' + curBank], 'r' + numOfObs, -12000 + i * 3 * n - j * 3); setPosition(this['r' + numOfObs], i, j); this['r' + numOfObs]._x -= block._width / 2.7; ++numOfObs; duplicateMovieClip(_root['rampV' + curBank], 'r' + numOfObs, -12000 + i * 3 * n - j * 3 + 2); setPosition(this['r' + numOfObs], i, j); this['r' + numOfObs]._x += block._width / 2.7; staticObj[i][j] = this['r' + numOfObs]; this['r' + numOfObs].type = RV; this['r' + numOfObs].sibling = this['r' + (numOfObs - 1)]; ++numOfObs; } if (matrix[i][j] == 8) { duplicateMovieClip(_root['gap' + curBank], 'g' + numOfObs, -13000 + i * 3 * n - j * 3); setPosition(this['g' + numOfObs], i, j); staticObj[i][j] = this['g' + numOfObs]; this['g' + numOfObs].type = G; ++numOfObs; } if (matrix[i][j] >= 9 and matrix[i][j] <= 12 and matrix[i][j] != undefined) { duplicateMovieClip(_root['track' + curBank], 't' + numOfObs, -13000 + i * 3 * n - j * 3); setPosition(this['t' + numOfObs], i, j); this['t' + numOfObs].gotoAndStop(matrix[i][j] - 8); staticObj[i][j] = this['t' + numOfObs]; this['t' + numOfObs].type = T; ++numOfObs; } ++j; } ++i; } zSort(h); transIn(10, this.h); } movieClip 282 { } movieClip 287 { frame 1 { if (!this.worksFine) { gotoAndPlay(random(150)); } else { stop(); } } frame 515 { gotoAndPlay(1); } } movieClip 296 { frame 1 { stop(); rand = random(4); i = 0; while (i < 4) { if (i != rand) { this['light' + i].worksFine = true; } else { this['light' + i].worksFine = false; } ++i; } } } movieClip 333 { frame 134 { gotoAndPlay('danceLoop'); } } movieClip 398 { frame 1 { stop(); if (_root.numOfD == 0) { this.mc.gotoAndPlay('dance'); _root.transOut(400, this); _root.soundPlay(_root.winS, 1); } else { this.mc.stop(); } } frame 1 { stop(); } frame 2 { _root.soundPlay(_root.step1S); } frame 10 { _root.soundPlay(_root.step2S); } frame 16 { if (this.moving and this.orientation == 'Down') { gotoAndPlay('runDown'); } } frame 20 { play(); } frame 31 { stop(); } frame 42 { gotoAndStop(this.orientation); } frame 50 { stop(); if (_root.numOfD == 0) { this.gotoAndStop(1); } } frame 51 { _root.soundPlay(_root.step2S); } frame 59 { _root.soundPlay(_root.step1S); } frame 65 { if (this.moving and this.orientation == 'Up') { gotoAndPlay('runUp'); } } frame 70 { play(); } frame 80 { stop(); } frame 91 { gotoAndStop(this.orientation); } frame 100 { if (_root.numOfD == 0) { this.gotoAndStop(1); } } frame 101 { _root.soundPlay(_root.step1S); } frame 109 { _root.soundPlay(_root.step2S); } frame 115 { if (this.moving and this.orientation == 'Right') { gotoAndPlay('runRight'); } } frame 131 { stop(); } frame 142 { gotoAndStop(this.orientation); } frame 151 { if (_root.numOfD == 0) { this.gotoAndStop(1); } } frame 152 { _root.soundPlay(_root.step2S); } frame 160 { _root.soundPlay(_root.step1S); } frame 166 { if (this.moving and this.orientation == 'Left') { gotoAndPlay('runLeft'); } } frame 180 { stop(); } frame 192 { gotoAndStop(this.orientation); } } instance h of movieClip 398 { onClipEvent (load) { var target = new Object(); var speed = 15; var moving = false; var oldI = -1; var oldJ = -1; var falling = false; var buff; var buffFr = 0; var buffLimitTime = 45; fr = 0; move = function (i, j) { moving = true; target = _root.getPosition(i, j); target.i = i; target.j = j; }; orient = function (oi, oj) { this.orientI = oi; this.orientJ = oj; if (oi == -1) { this.orientation = 'Up'; } if (oi == 1) { this.orientation = 'Down'; } if (oj == -1) { this.orientation = 'Left'; } if (oj == 1) { this.orientation = 'Right'; } this.gotoAndStop(this.orientation); }; goBack = function () { _root.dynamicObj[_root.h.i][_root.h.j] = undefined; _root.setPosition(_root.h, _root.h.oldI, _root.h.oldJ); _root.h.gotoAndStop(_root.h.orientation); _root.dynamicObj[_root.h.i][_root.h.j] = _root.h; _root.h.falling = false; _root.zSort(_root.h); }; checkBuff = function () { if (buff and buff != this.orientation) { if (buff == 'Left') { this.orient(0, -1); } if (buff == 'Right') { this.orient(0, 1); } if (buff == 'Up') { this.orient(-1, 0); } if (buff == 'Down') { this.orient(1, 0); } this.oldI = this.i; this.oldJ = this.j; t = _root.checkSpace(this); this.move(t.i, t.j); buff = undefined; } }; this.orient(1, 0); } onClipEvent (enterFrame) { if (_root.solMode) { ++fr; key = _root.solution[_root.curLvl][fr]; if (key == 'L') { if (_root.numOfD) { if (!_root.moving and !falling) { this.oldI = this.i; this.oldJ = this.j; this.orient(0, -1); t = _root.checkSpace(this); this.move(t.i, t.j); } else { buff = 'Left'; } } } if (key == 'R') { if (_root.numOfD) { if (!_root.moving and !falling) { this.oldI = this.i; this.oldJ = this.j; this.orient(0, 1); t = _root.checkSpace(this); this.move(t.i, t.j); } else { buff = 'Right'; } } } if (key == 'U') { if (_root.numOfD) { if (!_root.moving and !falling) { this.oldI = this.i; this.oldJ = this.j; this.orient(-1, 0); t = _root.checkSpace(this); this.move(t.i, t.j); } else { buff = 'Up'; } } } if (key == 'D') { if (_root.numOfD) { if (!_root.moving and !falling) { this.oldI = this.i; this.oldJ = this.j; this.orient(1, 0); t = _root.checkSpace(this); this.move(t.i, t.j); } else { buff = 'Down'; } } } if (key == 'S') { if (!_root.moving and !falling and _root.numOfD) { sOb = _root.staticObj[this.i + this.orientI][this.j + this.orientJ]; dOb = _root.dynamicObj[this.i + this.orientI][this.j + this.orientJ]; if (sOb) { sOb.reaction(this); this.gotoAndPlay('push' + this.orientation); } if (dOb) { this.gotoAndPlay('push' + this.orientation); dOb.reaction(this); } } } } if (buff) { ++buffFr; } if (buffFr == buffLimitTime) { buff = ''; buffFr = 0; } if (moving) { if (Math.abs(this._x - target.x) > speed / 2 or Math.abs(this._y - target.y) > speed / 2) { _root.moving = true; xSign = _root.compare(target.x, this._x); this._x += speed * xSign; ySign = _root.compare(target.y, this._y); this._y += speed * ySign; this.play(); _root.zSort(this); gI = _root.getI(this); gJ = _root.getJ(this); if ((gI != this.i or gJ != this.j) and (gI != target.i or gJ != target.j)) { gap = _root.staticObj[gI][gJ]; if (gap.type == _root.G and gap.full) { gap.play(); } } } else { moving = false; _root.moving = false; if (this.i != target.i or this.j != target.j) { this._x = target.x; this._y = target.y; _root.dynamicObj[this.i][this.j] = undefined; this.i = target.i; this.j = target.j; _root.dynamicObj[this.i][this.j] = this; this.gotoAndStop(this.orientation); sob = _root.staticObj[this.i][this.j]; if (sob) { buff = ''; sob.stepReaction(this); if (sob.type == _root.T) { moving = true; _root.moving = true; } } sob = _root.staticObj[this.i + this.orientI][this.j + this.orientJ]; dob = _root.dynamicObj[this.i + this.orientI][this.j + this.orientJ]; if (sob) { sob.hitReaction(this); } if (dob) { dob.hitReaction(this); } checkBuff(); } } } } onClipEvent (keyPress '<Left>') { if (_root.solInfo._currentframe > 1) { _root.solInfo.play(); return undefined; } if (_root.solMode) { _root.solMode = false; _root.solTexture.mc.play(); _root.solutionTextMc._visible = false; return undefined; } if (_root.numOfD) { if (!_root.moving and !falling) { this.oldI = this.i; this.oldJ = this.j; this.orient(0, -1); t = _root.checkSpace(this); this.move(t.i, t.j); } else { buff = 'Left'; } } } onClipEvent (keyPress '<Right>') { if (_root.solInfo._currentframe > 1) { _root.solInfo.play(); return undefined; } if (_root.solMode) { _root.solMode = false; _root.solTexture.mc.play(); _root.solutionTextMc._visible = false; return undefined; } if (_root.numOfD) { if (!_root.moving and !falling) { this.oldI = this.i; this.oldJ = this.j; this.orient(0, 1); t = _root.checkSpace(this); this.move(t.i, t.j); } else { buff = 'Right'; } } } onClipEvent (keyPress '<Up>') { if (_root.solInfo._currentframe > 1) { _root.solInfo.play(); return undefined; } if (_root.solMode) { _root.solMode = false; _root.solTexture.mc.play(); _root.solutionTextMc._visible = false; return undefined; } if (_root.numOfD) { if (!_root.moving and !falling) { this.oldI = this.i; this.oldJ = this.j; this.orient(-1, 0); t = _root.checkSpace(this); this.move(t.i, t.j); } else { buff = 'Up'; } } } onClipEvent (keyPress '<Down>') { if (_root.solInfo._currentframe > 1) { _root.solInfo.play(); return undefined; } if (_root.solMode) { _root.solMode = false; _root.solTexture.mc.play(); _root.solutionTextMc._visible = false; return undefined; } if (_root.numOfD) { if (!_root.moving and !falling) { this.oldI = this.i; this.oldJ = this.j; this.orient(1, 0); t = _root.checkSpace(this); this.move(t.i, t.j); } else { buff = 'Down'; } } } onClipEvent (keyPress '<Space>') { if (_root.solInfo._currentframe > 1) { _root.solInfo.play(); return undefined; } if (_root.solMode) { _root.solMode = false; _root.solTexture.mc.play(); _root.solutionTextMc._visible = false; return undefined; } if (!_root.moving and !falling and _root.numOfD) { sOb = _root.staticObj[this.i + this.orientI][this.j + this.orientJ]; dOb = _root.dynamicObj[this.i + this.orientI][this.j + this.orientJ]; if (sOb) { sOb.reaction(this); this.gotoAndPlay('push' + this.orientation); } if (dOb) { this.gotoAndPlay('push' + this.orientation); dOb.reaction(this); } } } onClipEvent (keyPress 'r') { _root.solMode = false; if (_root.numOfD and _root.resetEnabled) { _root.transReset(400, this); _root.resetEnabled = false; } } onClipEvent (keyPress 's') { solTimer = getTimer() - _root.stTime; per = Math.round(solTimer * 100 / _root.solMaxTime); if (per < 100) { _root.solInfo.play(); return undefined; } if (!_root.solMode) { if (_root.numOfD and _root.resetEnabled) { _root.solMode = true; _root.transReset(400, this); _root.resetEnabled = false; } } else { _root.solMode = false; _root.solTexture.mc.play(); _root.solutionTextMc._visible = false; } } } movieClip 400 { } movieClip 403 { frame 1 { gotoAndPlay(random(180)); } } movieClip 404 { } movieClip 405 { frame 1 { gotoAndPlay(random(90)); } } movieClip 406 { } movieClip 407 { frame 1 { stop(); } frame 2 { rand = random(2) + 1; _root.soundPlay(_root['diaHit' + rand + 'S']); } frame 10 { gotoAndStop(1); } } movieClip 411 { frame 40 { gotoAndPlay(2); } frame 50 { ord = Math.min(_root.maxNumOfD - _root.numOfD, 4); _root.soundPlay(_root['dia' + ord + 'S']); } frame 61 { stop(); } } movieClip 412 { frame 1 { stop(); } } instance diamond1 of movieClip 412 { onClipEvent (load) { hitReaction = function (obj) { this.mc.mc.play(); }; reaction = function (obj) { _root.removeObj(this, _root.staticObj); this.mc.gotoAndPlay('vanish'); --_root.numOfD; }; } } movieClip 421 { frame 15 { stop(); } } movieClip 422 { frame 1 { stop(); } frame 2 { rand = random(2) + 1; _root.soundPlay(_root['brickHit' + rand + 'S']); } } movieClip 423 { } instance pole1 of movieClip 423 { onClipEvent (load) { hitReaction = function (obj) { this.mc.play(); }; reaction = function (obj) { this.mc.play(); }; } } movieClip 430 { frame 1 { stop(); } frame 2 { rand = random(2) + 1; _root.soundPlay(_root['safeHit' + rand + 'S']); } frame 20 { gotoAndStop(1); } } movieClip 431 { frame 1 { stop(); } frame 10 { } frame 17 { _root.soundPlay(_root.safeFall1S); } frame 23 { stop(); _root.soundPlay(_root.safeFall2S); this.gap.gotoAndStop('full'); this._visible = false; } } instance safe1 of movieClip 431 { onClipEvent (load) { var target = new Object(); var speed = 20; var moving = false; var moveFr = 0; move = function (i, j) { moving = true; target = _root.getPosition(i, j); target.i = i; target.j = j; }; orient = function (oi, oj) { this.orientI = oi; this.orientJ = oj; if (oi == -1) { this.orientation = 'Up'; } if (oi == 1) { this.orientation = 'Down'; } if (oj == -1) { this.orientation = 'Left'; } if (oj == 1) { this.orientation = 'Right'; } }; hitReaction = function (obj) { this.mc.play(); }; reaction = function (obj) { this.orient(_root.h.orientI, _root.h.orientJ); t = _root.checkSpace(this); if (t.i != this.i or t.j != this.j) { moveFr = 0; this.move(t.i, t.j); rand = random(2) + 1; _root.soundPlay(_root['whoosh' + rand + 'S']); } else { hitReaction(); } }; } onClipEvent (enterFrame) { if (this._visible) { if (moving) { if (Math.abs(this._x - target.x) > speed / 2 or Math.abs(this._y - target.y) > speed / 2) { _root.moving = true; ++moveFr; if (moveFr > 5) { xSign = _root.compare(target.x, this._x); this._x += speed * xSign; ySign = _root.compare(target.y, this._y); this._y += speed * ySign; this.mc.gotoAndStop(this.orientation); _root.zSort(this); gI = _root.getI(this); gJ = _root.getJ(this); if ((gI != this.i or gJ != this.j) and (gI != target.i or gJ != target.j)) { gap = _root.staticObj[gI][gJ]; if (gap.type == _root.G and gap.full) { gap.play(); } } } } else { this.mc.gotoAndStop(1); moving = false; _root.moving = false; if (this.i != target.i or this.j != target.j) { this._x = target.x; this._y = target.y; _root.dynamicObj[this.i][this.j] = undefined; this.i = target.i; this.j = target.j; _root.dynamicObj[this.i][this.j] = this; this.gotoAndStop(this.orientation); sob = _root.staticObj[this.i][this.j]; if (sob) { sob.stepReaction(this); if (sob.type == _root.T) { moving = true; _root.moving = true; } if (sob.type == _root.G) { _root.h.checkBuff(); } } else { _root.h.checkBuff(); } sob = _root.staticObj[this.i + this.orientI][this.j + this.orientJ]; dob = _root.dynamicObj[this.i + this.orientI][this.j + this.orientJ]; if (sob) { sob.hitReaction(); } if (dob) { dob.hitReaction(); } } } } } else { this.onEnterFrame = null; } } } movieClip 434 { frame 1 { stop(); } frame 2 { _root.soundPlay(_root.rampHitS); } } movieClip 435 { frame 1 { stop(); } } instance rampH1 of movieClip 435 { onClipEvent (load) { hitReaction = function (obj) { if (obj.i > this.i) { this.mc.play(); } if (obj.i < this.i) { this.sibling.mc.play(); } }; reaction = function (obj) { if (obj.i > this.i) { this.mc.play(); } if (obj.i < this.i) { this.sibling.mc.play(); } }; } } movieClip 438 { frame 1 { stop(); } frame 2 { _root.soundPlay(_root.rampHitS); } } movieClip 439 { } instance rampV1 of movieClip 439 { onClipEvent (load) { hitReaction = function (obj) { if (obj.j > this.j) { this.mc.play(); } if (obj.j < this.j) { this.sibling.mc.play(); } }; reaction = function (obj) { if (obj.j > this.j) { this.mc.play(); } if (obj.j < this.j) { this.sibling.mc.play(); } }; } } movieClip 442 { frame 1 { stop(); var stopIt = false; } frame 3 { _root.soundPlay(_root.stepSS); } frame 6 { if (this.stopIt) { stop(); } } frame 9 { stopIt = false; gotoAndStop('full'); } } instance gap1 of movieClip 442 { onClipEvent (load) { var full = false; stepReaction = function (obj) { if (!full) { if (obj == _root.h) { obj.gotoAndPlay(obj.orientation + 'Fall'); gB = obj.goBack; setTimeout(gB, 500); obj.falling = true; } else { this.full = true; obj.gotoAndPlay('fall'); obj.gap = this; _root.dynamicObj[this.i][this.j] = undefined; } } }; } } movieClip 448 { frame 1 { stop(); } frame 2 { rand = random(3) + 1; _root.soundPlay(_root['spin' + rand + 'S']); } } movieClip 452 { frame 1 { stop(); } frame 2 { rand = random(3) + 1; _root.soundPlay(_root['spin' + rand + 'S']); } } movieClip 454 { frame 1 { stop(); } frame 2 { rand = random(3) + 1; _root.soundPlay(_root['spin' + rand + 'S']); } } movieClip 455 { frame 1 { stop(); } frame 2 { rand = random(3) + 1; _root.soundPlay(_root['spin' + rand + 'S']); } } movieClip 456 { frame 1 { stop(); } } instance track1 of movieClip 456 { onClipEvent (load) { stepReaction = function (obj) { if (this._currentframe == 1) { obj.orient(0, 1); } if (this._currentframe == 2) { obj.orient(-1, 0); } if (this._currentframe == 3) { obj.orient(0, -1); } if (this._currentframe == 4) { obj.orient(1, 0); } t = _root.checkSpace(obj); obj.move(t.i, t.j); this.mc.play(); }; } } instance diamond3 of movieClip 412 { onClipEvent (load) { hitReaction = function (obj) { this.mc.mc.play(); }; reaction = function (obj) { _root.removeObj(this, _root.staticObj); this.mc.gotoAndPlay('vanish'); --_root.numOfD; }; } } instance safe3 of movieClip 431 { onClipEvent (load) { var target = new Object(); var speed = 20; var moving = false; var moveFr = 0; move = function (i, j) { moving = true; target = _root.getPosition(i, j); target.i = i; target.j = j; }; orient = function (oi, oj) { this.orientI = oi; this.orientJ = oj; if (oi == -1) { this.orientation = 'Up'; } if (oi == 1) { this.orientation = 'Down'; } if (oj == -1) { this.orientation = 'Left'; } if (oj == 1) { this.orientation = 'Right'; } }; hitReaction = function (obj) { this.mc.play(); }; reaction = function (obj) { this.orient(_root.h.orientI, _root.h.orientJ); t = _root.checkSpace(this); if (t.i != this.i or t.j != this.j) { moveFr = 0; this.move(t.i, t.j); rand = random(2) + 1; _root.soundPlay(_root['whoosh' + rand + 'S']); } else { hitReaction(); } }; } onClipEvent (enterFrame) { if (this._visible) { if (moving) { if (Math.abs(this._x - target.x) > speed / 2 or Math.abs(this._y - target.y) > speed / 2) { _root.moving = true; ++moveFr; if (moveFr > 5) { xSign = _root.compare(target.x, this._x); this._x += speed * xSign; ySign = _root.compare(target.y, this._y); this._y += speed * ySign; this.mc.gotoAndStop(this.orientation); _root.zSort(this); gI = _root.getI(this); gJ = _root.getJ(this); if ((gI != this.i or gJ != this.j) and (gI != target.i or gJ != target.j)) { gap = _root.staticObj[gI][gJ]; if (gap.type == _root.G and gap.full) { gap.play(); } } } } else { this.mc.gotoAndStop(1); moving = false; _root.moving = false; if (this.i != target.i or this.j != target.j) { this._x = target.x; this._y = target.y; _root.dynamicObj[this.i][this.j] = undefined; this.i = target.i; this.j = target.j; _root.dynamicObj[this.i][this.j] = this; this.gotoAndStop(this.orientation); sob = _root.staticObj[this.i][this.j]; if (sob) { sob.stepReaction(this); if (sob.type == _root.T) { moving = true; _root.moving = true; } if (sob.type == _root.G) { _root.h.checkBuff(); } } else { _root.h.checkBuff(); } sob = _root.staticObj[this.i + this.orientI][this.j + this.orientJ]; dob = _root.dynamicObj[this.i + this.orientI][this.j + this.orientJ]; if (sob) { sob.hitReaction(); } if (dob) { dob.hitReaction(); } } } } } else { this.onEnterFrame = null; } } } instance rampH3 of movieClip 435 { onClipEvent (load) { hitReaction = function (obj) { if (obj.i > this.i) { this.mc.play(); } if (obj.i < this.i) { this.sibling.mc.play(); } }; reaction = function (obj) { if (obj.i > this.i) { this.mc.play(); } if (obj.i < this.i) { this.sibling.mc.play(); } }; } } instance rampV3 of movieClip 439 { onClipEvent (load) { hitReaction = function (obj) { if (obj.j > this.j) { this.mc.play(); } if (obj.j < this.j) { this.sibling.mc.play(); } }; reaction = function (obj) { if (obj.j > this.j) { this.mc.play(); } if (obj.j < this.j) { this.sibling.mc.play(); } }; } } instance track3 of movieClip 456 { onClipEvent (load) { stepReaction = function (obj) { if (this._currentframe == 1) { obj.orient(0, 1); } if (this._currentframe == 2) { obj.orient(-1, 0); } if (this._currentframe == 3) { obj.orient(0, -1); } if (this._currentframe == 4) { obj.orient(1, 0); } t = _root.checkSpace(obj); obj.move(t.i, t.j); this.mc.play(); }; } } instance gap3 of movieClip 442 { onClipEvent (load) { var full = false; stepReaction = function (obj) { if (!full) { if (obj == _root.h) { obj.gotoAndPlay(obj.orientation + 'Fall'); gB = obj.goBack; setTimeout(gB, 500); obj.falling = true; } else { this.full = true; obj.gotoAndPlay('fall'); obj.gap = this; _root.dynamicObj[this.i][this.j] = undefined; } } }; } } instance pole2 of movieClip 423 { onClipEvent (load) { hitReaction = function (obj) { this.mc.play(); }; reaction = function (obj) { this.mc.play(); }; } } instance diamond2 of movieClip 412 { onClipEvent (load) { hitReaction = function (obj) { this.mc.mc.play(); }; reaction = function (obj) { _root.removeObj(this, _root.staticObj); this.mc.gotoAndPlay('vanish'); --_root.numOfD; }; } } instance safe4 of movieClip 431 { onClipEvent (load) { var target = new Object(); var speed = 20; var moving = false; var moveFr = 0; move = function (i, j) { moving = true; target = _root.getPosition(i, j); target.i = i; target.j = j; }; orient = function (oi, oj) { this.orientI = oi; this.orientJ = oj; if (oi == -1) { this.orientation = 'Up'; } if (oi == 1) { this.orientation = 'Down'; } if (oj == -1) { this.orientation = 'Left'; } if (oj == 1) { this.orientation = 'Right'; } }; hitReaction = function (obj) { this.mc.play(); }; reaction = function (obj) { this.orient(_root.h.orientI, _root.h.orientJ); t = _root.checkSpace(this); if (t.i != this.i or t.j != this.j) { moveFr = 0; this.move(t.i, t.j); rand = random(2) + 1; _root.soundPlay(_root['whoosh' + rand + 'S']); } else { hitReaction(); } }; } onClipEvent (enterFrame) { if (this._visible) { if (moving) { if (Math.abs(this._x - target.x) > speed / 2 or Math.abs(this._y - target.y) > speed / 2) { _root.moving = true; ++moveFr; if (moveFr > 5) { xSign = _root.compare(target.x, this._x); this._x += speed * xSign; ySign = _root.compare(target.y, this._y); this._y += speed * ySign; this.mc.gotoAndStop(this.orientation); _root.zSort(this); gI = _root.getI(this); gJ = _root.getJ(this); if ((gI != this.i or gJ != this.j) and (gI != target.i or gJ != target.j)) { gap = _root.staticObj[gI][gJ]; if (gap.type == _root.G and gap.full) { gap.play(); } } } } else { this.mc.gotoAndStop(1); moving = false; _root.moving = false; if (this.i != target.i or this.j != target.j) { this._x = target.x; this._y = target.y; _root.dynamicObj[this.i][this.j] = undefined; this.i = target.i; this.j = target.j; _root.dynamicObj[this.i][this.j] = this; this.gotoAndStop(this.orientation); sob = _root.staticObj[this.i][this.j]; if (sob) { sob.stepReaction(this); if (sob.type == _root.T) { moving = true; _root.moving = true; } if (sob.type == _root.G) { _root.h.checkBuff(); } } else { _root.h.checkBuff(); } sob = _root.staticObj[this.i + this.orientI][this.j + this.orientJ]; dob = _root.dynamicObj[this.i + this.orientI][this.j + this.orientJ]; if (sob) { sob.hitReaction(); } if (dob) { dob.hitReaction(); } } } } } else { this.onEnterFrame = null; } } } instance rampH2 of movieClip 435 { onClipEvent (load) { hitReaction = function (obj) { if (obj.i > this.i) { this.mc.play(); } if (obj.i < this.i) { this.sibling.mc.play(); } }; reaction = function (obj) { if (obj.i > this.i) { this.mc.play(); } if (obj.i < this.i) { this.sibling.mc.play(); } }; } } instance rampV2 of movieClip 439 { onClipEvent (load) { hitReaction = function (obj) { if (obj.j > this.j) { this.mc.play(); } if (obj.j < this.j) { this.sibling.mc.play(); } }; reaction = function (obj) { if (obj.j > this.j) { this.mc.play(); } if (obj.j < this.j) { this.sibling.mc.play(); } }; } } instance track2 of movieClip 456 { onClipEvent (load) { stepReaction = function (obj) { if (this._currentframe == 1) { obj.orient(0, 1); } if (this._currentframe == 2) { obj.orient(-1, 0); } if (this._currentframe == 3) { obj.orient(0, -1); } if (this._currentframe == 4) { obj.orient(1, 0); } t = _root.checkSpace(obj); obj.move(t.i, t.j); this.mc.play(); }; } } instance gap2 of movieClip 442 { onClipEvent (load) { var full = false; stepReaction = function (obj) { if (!full) { if (obj == _root.h) { obj.gotoAndPlay(obj.orientation + 'Fall'); gB = obj.goBack; setTimeout(gB, 500); obj.falling = true; } else { this.full = true; obj.gotoAndPlay('fall'); obj.gap = this; _root.dynamicObj[this.i][this.j] = undefined; } } }; } } instance pole4 of movieClip 423 { onClipEvent (load) { hitReaction = function (obj) { this.mc.play(); }; reaction = function (obj) { this.mc.play(); }; } } instance diamond4 of movieClip 412 { onClipEvent (load) { hitReaction = function (obj) { this.mc.mc.play(); }; reaction = function (obj) { _root.removeObj(this, _root.staticObj); this.mc.gotoAndPlay('vanish'); --_root.numOfD; }; } } instance safe2 of movieClip 431 { onClipEvent (load) { var target = new Object(); var speed = 20; var moving = false; var moveFr = 0; move = function (i, j) { moving = true; target = _root.getPosition(i, j); target.i = i; target.j = j; }; orient = function (oi, oj) { this.orientI = oi; this.orientJ = oj; if (oi == -1) { this.orientation = 'Up'; } if (oi == 1) { this.orientation = 'Down'; } if (oj == -1) { this.orientation = 'Left'; } if (oj == 1) { this.orientation = 'Right'; } }; hitReaction = function (obj) { this.mc.play(); }; reaction = function (obj) { this.orient(_root.h.orientI, _root.h.orientJ); t = _root.checkSpace(this); if (t.i != this.i or t.j != this.j) { moveFr = 0; this.move(t.i, t.j); rand = random(2) + 1; _root.soundPlay(_root['whoosh' + rand + 'S']); } else { hitReaction(); } }; } onClipEvent (enterFrame) { if (this._visible) { if (moving) { if (Math.abs(this._x - target.x) > speed / 2 or Math.abs(this._y - target.y) > speed / 2) { _root.moving = true; ++moveFr; if (moveFr > 5) { xSign = _root.compare(target.x, this._x); this._x += speed * xSign; ySign = _root.compare(target.y, this._y); this._y += speed * ySign; this.mc.gotoAndStop(this.orientation); _root.zSort(this); gI = _root.getI(this); gJ = _root.getJ(this); if ((gI != this.i or gJ != this.j) and (gI != target.i or gJ != target.j)) { gap = _root.staticObj[gI][gJ]; if (gap.type == _root.G and gap.full) { gap.play(); } } } } else { this.mc.gotoAndStop(1); moving = false; _root.moving = false; if (this.i != target.i or this.j != target.j) { this._x = target.x; this._y = target.y; _root.dynamicObj[this.i][this.j] = undefined; this.i = target.i; this.j = target.j; _root.dynamicObj[this.i][this.j] = this; this.gotoAndStop(this.orientation); sob = _root.staticObj[this.i][this.j]; if (sob) { sob.stepReaction(this); if (sob.type == _root.T) { moving = true; _root.moving = true; } if (sob.type == _root.G) { _root.h.checkBuff(); } } else { _root.h.checkBuff(); } sob = _root.staticObj[this.i + this.orientI][this.j + this.orientJ]; dob = _root.dynamicObj[this.i + this.orientI][this.j + this.orientJ]; if (sob) { sob.hitReaction(); } if (dob) { dob.hitReaction(); } } } } } else { this.onEnterFrame = null; } } } instance rampH4 of movieClip 435 { onClipEvent (load) { hitReaction = function (obj) { if (obj.i > this.i) { this.mc.play(); } if (obj.i < this.i) { this.sibling.mc.play(); } }; reaction = function (obj) { if (obj.i > this.i) { this.mc.play(); } if (obj.i < this.i) { this.sibling.mc.play(); } }; } } instance rampV4 of movieClip 439 { onClipEvent (load) { hitReaction = function (obj) { if (obj.j > this.j) { this.mc.play(); } if (obj.j < this.j) { this.sibling.mc.play(); } }; reaction = function (obj) { if (obj.j > this.j) { this.mc.play(); } if (obj.j < this.j) { this.sibling.mc.play(); } }; } } instance track4 of movieClip 456 { onClipEvent (load) { stepReaction = function (obj) { if (this._currentframe == 1) { obj.orient(0, 1); } if (this._currentframe == 2) { obj.orient(-1, 0); } if (this._currentframe == 3) { obj.orient(0, -1); } if (this._currentframe == 4) { obj.orient(1, 0); } t = _root.checkSpace(obj); obj.move(t.i, t.j); this.mc.play(); }; } } instance pole5 of movieClip 423 { onClipEvent (load) { hitReaction = function (obj) { this.mc.play(); }; reaction = function (obj) { this.mc.play(); }; } } instance safe5 of movieClip 431 { onClipEvent (load) { var target = new Object(); var speed = 20; var moving = false; var moveFr = 0; move = function (i, j) { moving = true; target = _root.getPosition(i, j); target.i = i; target.j = j; }; orient = function (oi, oj) { this.orientI = oi; this.orientJ = oj; if (oi == -1) { this.orientation = 'Up'; } if (oi == 1) { this.orientation = 'Down'; } if (oj == -1) { this.orientation = 'Left'; } if (oj == 1) { this.orientation = 'Right'; } }; hitReaction = function (obj) { this.mc.play(); }; reaction = function (obj) { this.orient(_root.h.orientI, _root.h.orientJ); t = _root.checkSpace(this); if (t.i != this.i or t.j != this.j) { moveFr = 0; this.move(t.i, t.j); rand = random(2) + 1; _root.soundPlay(_root['whoosh' + rand + 'S']); } else { hitReaction(); } }; } onClipEvent (enterFrame) { if (this._visible) { if (moving) { if (Math.abs(this._x - target.x) > speed / 2 or Math.abs(this._y - target.y) > speed / 2) { _root.moving = true; ++moveFr; if (moveFr > 5) { xSign = _root.compare(target.x, this._x); this._x += speed * xSign; ySign = _root.compare(target.y, this._y); this._y += speed * ySign; this.mc.gotoAndStop(this.orientation); _root.zSort(this); gI = _root.getI(this); gJ = _root.getJ(this); if ((gI != this.i or gJ != this.j) and (gI != target.i or gJ != target.j)) { gap = _root.staticObj[gI][gJ]; if (gap.type == _root.G and gap.full) { gap.play(); } } } } else { this.mc.gotoAndStop(1); moving = false; _root.moving = false; if (this.i != target.i or this.j != target.j) { this._x = target.x; this._y = target.y; _root.dynamicObj[this.i][this.j] = undefined; this.i = target.i; this.j = target.j; _root.dynamicObj[this.i][this.j] = this; this.gotoAndStop(this.orientation); sob = _root.staticObj[this.i][this.j]; if (sob) { sob.stepReaction(this); if (sob.type == _root.T) { moving = true; _root.moving = true; } if (sob.type == _root.G) { _root.h.checkBuff(); } } else { _root.h.checkBuff(); } sob = _root.staticObj[this.i + this.orientI][this.j + this.orientJ]; dob = _root.dynamicObj[this.i + this.orientI][this.j + this.orientJ]; if (sob) { sob.hitReaction(); } if (dob) { dob.hitReaction(); } } } } } else { this.onEnterFrame = null; } } } instance rampH5 of movieClip 435 { onClipEvent (load) { hitReaction = function (obj) { if (obj.i > this.i) { this.mc.play(); } if (obj.i < this.i) { this.sibling.mc.play(); } }; reaction = function (obj) { if (obj.i > this.i) { this.mc.play(); } if (obj.i < this.i) { this.sibling.mc.play(); } }; } } instance rampV5 of movieClip 439 { onClipEvent (load) { hitReaction = function (obj) { if (obj.j > this.j) { this.mc.play(); } if (obj.j < this.j) { this.sibling.mc.play(); } }; reaction = function (obj) { if (obj.j > this.j) { this.mc.play(); } if (obj.j < this.j) { this.sibling.mc.play(); } }; } } instance track5 of movieClip 456 { onClipEvent (load) { stepReaction = function (obj) { if (this._currentframe == 1) { obj.orient(0, 1); } if (this._currentframe == 2) { obj.orient(-1, 0); } if (this._currentframe == 3) { obj.orient(0, -1); } if (this._currentframe == 4) { obj.orient(1, 0); } t = _root.checkSpace(obj); obj.move(t.i, t.j); this.mc.play(); }; } } instance pole3 of movieClip 423 { onClipEvent (load) { hitReaction = function (obj) { this.mc.play(); }; reaction = function (obj) { this.mc.play(); }; } } instance diamond5 of movieClip 412 { onClipEvent (load) { hitReaction = function (obj) { this.mc.mc.play(); }; reaction = function (obj) { _root.removeObj(this, _root.staticObj); this.mc.gotoAndPlay('vanish'); --_root.numOfD; }; } } instance diamond7 of movieClip 412 { onClipEvent (load) { hitReaction = function (obj) { this.mc.mc.play(); }; reaction = function (obj) { _root.removeObj(this, _root.staticObj); this.mc.gotoAndPlay('vanish'); --_root.numOfD; }; } } movieClip 457 { } movieClip 458 { frame 1 { stop(); var stopIt = false; } frame 3 { _root.soundPlay(_root.stepSS); } frame 6 { if (this.stopIt) { stop(); } } frame 9 { stopIt = false; gotoAndStop('full'); } } instance gap4 of movieClip 458 { onClipEvent (load) { var full = false; stepReaction = function (obj) { if (!full) { if (obj == _root.h) { obj.gotoAndPlay(obj.orientation + 'Fall'); gB = obj.goBack; setTimeout(gB, 500); obj.falling = true; } else { this.full = true; obj.gotoAndPlay('fall'); obj.gap = this; _root.dynamicObj[this.i][this.j] = undefined; } } }; } } movieClip 459 { frame 1 { stop(); var stopIt = false; } frame 3 { _root.soundPlay(_root.stepSS); } frame 6 { if (this.stopIt) { stop(); } } frame 9 { stopIt = false; gotoAndStop('full'); } } instance gap5 of movieClip 459 { onClipEvent (load) { var full = false; stepReaction = function (obj) { if (!full) { if (obj == _root.h) { obj.gotoAndPlay(obj.orientation + 'Fall'); gB = obj.goBack; setTimeout(gB, 500); obj.falling = true; } else { this.full = true; obj.gotoAndPlay('fall'); obj.gap = this; _root.dynamicObj[this.i][this.j] = undefined; } } }; } } // unknown tag 88 length 310 // unknown tag 88 length 151 movieClip 466 { } movieClip 467 { } movieClip 471 { } movieClip 472 { } movieClip 480 { frame 177 { gotoAndPlay('loop'); } } instance of movieClip 480 { onClipEvent (load) { if (_root.curLvl == 10 and !_root.solMode) { this.play(); } else { this.stop(); } } } movieClip 484 { } movieClip 486 { } movieClip 487 { } movieClip 495 { frame 176 { gotoAndPlay('loop'); } } movieClip 504 { frame 202 { gotoAndPlay('loop'); } } movieClip 505 { instance of movieClip 495 { onClipEvent (load) { if (_root.curLvl == 1 and !_root.solMode) { this.play(); } else { this.stop(); } } } instance of movieClip 504 { onClipEvent (load) { if (_root.curLvl == 1 and !_root.solMode) { this.play(); } else { this.stop(); } } } } movieClip 512 { } movieClip 519 { frame 177 { gotoAndPlay('loop'); } } movieClip 525 { } movieClip 532 { frame 186 { gotoAndPlay('loop'); } } movieClip 533 { instance of movieClip 519 { onClipEvent (load) { if (_root.curLvl == 5 and !_root.solMode) { this.play(); } else { this.stop(); } } } instance of movieClip 532 { onClipEvent (load) { if (_root.curLvl == 5 and !_root.solMode) { this.play(); } else { this.stop(); } } } } movieClip 536 { } instance of movieClip 536 { onClipEvent (load) { this.swapDepths(-10000); } } movieClip 539 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 540 { } instance solTexture of movieClip 540 { onClipEvent (load) { this.swapDepths(-10001); if (_root.solMode) { this._visible = true; } else { this._visible = false; } } } movieClip 542 { } instance solutionTextMc of movieClip 542 { onClipEvent (load) { this.swapDepths(-9999); if (_root.solMode) { this._visible = true; } else { this._visible = false; } } } button 544 { on (release) { getURL('http://www.5hippos.com/walkthrough/super-sub-hero', '_blank'); } } movieClip 548 { frame 10 { stop(); } } button 551 { on (release) { if (_root.toLSEnabled) { _root.transToLS(400, _root.h); _root.toLSEnabled = false; _root.soundFadeOut(_root.BGM); _root.soundPlay(_root.if2S, 1); } } on (rollOver) { _root.soundPlay(_root.if1S, 1); } } movieClip 555 { frame 10 { stop(); } } button 557 { on (release) { if (_root.resetEnabled) { _root.transReset(400, _root.h); _root.resetEnabled = false; _root.soundPlay(_root.if2S, 1); } } on (rollOver) { _root.soundPlay(_root.if1S, 1); } } button 558 { on (press) { _root.soundOn = !_root.soundOn; _root.musicOn = !_root.musicOn; _root.soundPlay(_root.if2S, 1); if (!_root.musicOn) { _root.BGM.pos = _root.BGM.position; _root.BGM.setVolume(0); } else { _root.BGM.stop(); _root.soundPlay(_root.BGM, 999999, _root.BGM.pos); _root.BGM.setVolume(100); } } on (rollOver) { _root.soundPlay(_root.if1S, 1); } } movieClip 564 { } movieClip 565 { frame 1 { solMaxTime = _root.solMaxTime; stop(); var per = 1; onEnterFrame = function () { solTimer = getTimer() - _root.stTime; per = Math.round(solTimer * 100 / solMaxTime); this.gotoAndStop(per); }; } frame 100 { stop(); } } movieClip 569 { frame 1 { solMaxTime = _root.solMaxTime; onEnterFrame = function () { solTimer = getTimer() - _root.stTime; per = Math.round(solTimer * 100 / solMaxTime); if (per >= 100) { solText.text = 'SOLUTION'; } else { s = Math.round((solMaxTime - solTimer) / 1000); m = Math.floor(s / 60); s -= m * 60; if (s < 10) { s = '0' + s; } if (m < 10) { m = '0' + m; } solText.text = m + ' : ' + s; } }; } frame 10 { stop(); } } button 570 { on (press) { _root.soundPlay(_root.if2S, 1); solTimer = getTimer() - _root.stTime; per = Math.round(solTimer * 100 / _root.solMaxTime); if (per < 100) { _root.solInfo.play(); return undefined; } if (!_root.solMode) { if (_root.numOfD and _root.resetEnabled) { _root.solMode = true; _root.transReset(400, _root.h); _root.resetEnabled = false; } } else { _root.solMode = false; _root.solutionTextMc._visible = false; _root.solTexture.mc.play(); } } on (rollOver) { _root.soundPlay(_root.if1S, 1); } } movieClip 572 { } instance buttons of movieClip 572 { onClipEvent (load) { this.swapDepths(-7000); } } button 575 { on (release) { _root.solInfo.play(); } on (rollOver) { _root.soundPlay(_root.if1S, 1); } } movieClip 578 { frame 1 { solMaxTime = _root.solMaxTime; onEnterFrame = function () { solTimer = getTimer() - _root.stTime; per = Math.round(solTimer * 100 / solMaxTime); if (per >= 100) { _root.solInfo.play(); } else { s = Math.round((solMaxTime - solTimer) / 1000); m = Math.floor(s / 60); s -= m * 60; if (s < 10) { s = '0' + s; } if (m < 10) { m = '0' + m; } solText.text = m + ' : ' + s; } }; } } movieClip 580 { frame 1 { stop(); } frame 2 { invBtn.useHandCursor = false; } frame 15 { stop(); } } instance solInfo of movieClip 580 { onClipEvent (load) { this.swapDepths(-6999); } } frame 8 { _root.h.removeMovieClip(); _root.gotoAndStop('game'); } frame 9 { _root.solMode = false; i = 1; while (i <= 3) { if (_root['notPassed' + i].data['np' + i] == _root.curLvl) { ++_root.lastLvl.data.lvl; _root['notPassed' + i].data['np' + i] = _root.lastLvl.data.lvl; break; } ++i; } ++_root.curLvl; if (_root.lastLvl.data.lvl == 31 and i < 4) { _root.gotoAndStop('outro'); } else { if (_root.curLvl <= 30) { i = 1; while (i <= 3) { if (_root['notPassed' + i].data['np' + i] == _root.curLvl) { _root.gotoAndStop('game'); break; } ++i; } if (i == 4) { _root.gotoAndStop('lvlSlct'); } } else { _root.gotoAndStop('lvlSlct'); } } } frame 10 { _root.gotoAndStop('lvlSlct'); } frame 11 { _root.gotoAndStop('mainMenu'); } frame 12 { _root.solMode = true; _root.h.removeMovieClip(); _root.gotoAndStop('game'); } frame 13 { function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = '__mochibot__'; mbc = 'mochibot.com'; g = _global ? _global : _level0._root; if (g[mb + swfid]) { return g[mb + swfid]; } s = System.security; x = mc._root.getSWFVersion; fv = x ? mc.getSWFVersion() : (_global ? 6 : 5); if (!s) { s = {}; } sb = s.sandboxType; if (sb == 'localWithFile') { return null; } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = (fv == 5) ? /:$version : System.capabilities.version; u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } __com_mochibot__('400dd243', this, 10301, true); } frame 13 { _root.soundFadeOut(_root.BGM); lvlSlctFR = this._currentframe; createEmptyMovieClip('transMC', 1000); transFadeIn(); } movieClip 582 { } movieClip 591 { frame 60 { stop(); str = 'Hey grandma,*********************************************** \nhere\'s the bag\nof diamonds you asked for.'; str += '***********************************************************************************************************************************'; voice.text = ''; curFR = 0; curWord = 0; _root.soundPlay(_root.lopovGlasS, 1); onEnterFrame = function () { if (curFR % 1 == 0) { word = str.charAt(curWord); if (word != '*' and curWord <= str.length) { voice.text += word; } ++curWord; if (curWord > str.length) { this.play(); } } ++curFR; }; } frame 80 { this._parent.play(); } } movieClip 598 { frame 33 { stop(); str = 'What?!******************* \nI said almonds, you little punk!'; str += '*************************************************************************'; curSound = 1; voice.text = ''; curFR = 0; curWord = 0; _root.soundPlay(_root.bakaGlasS, 1); onEnterFrame = function () { if (curFR % 2 == 0) { word = str.charAt(curWord); if (word != '*' and curWord <= str.length) { voice.text += word; } ++curWord; if (curWord > str.length) { this.play(); } } ++curFR; }; } frame 53 { this._parent.play(); } } movieClip 599 { frame 1 { stop(); h.gotoAndStop('Up'); _root.soundPlay(_root.vestiS, 999); } frame 60 { stop(); } frame 70 { stop(); _root.gameFR = _root._currentframe; _root.transToMM(400, _root.hTV); } } instance of movieClip 599 { onClipEvent (load) { this.swapDepths(-6999); } }




http://swfchan.com/42/206976/info.shtml
Created: 23/7 -2019 18:59:42 Last modified: 23/7 -2019 18:59:42 Server time: 22/12 -2024 07:04:45