Frame 1
function Encode64(intxt) {
var _local5;
var _local7;
var _local8;
var _local4;
var _local1;
var _local2 = new Array();
var _local10;
var _local9;
var _local6 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
_local7 = intxt.length;
_local8 = int(_local7 / 3);
_local5 = "";
_local4 = 0;
while (_local4 < _local8) {
_local1 = 0;
while (_local1 <= 2) {
if (typeof(intxt) == "string") {
_local2[_local1] = intxt.charCodeAt((_local4 * 3) + _local1);
} else {
_local2[_local1] = intxt[(_local4 * 3) + _local1];
}
_local1++;
}
_local5 = _local5 + Encq(_local2, _local6);
_local4++;
}
_local10 = _local7 % 3;
if (_local10 == 1) {
if (typeof(intxt) == "string") {
_local2[0] = intxt.charCodeAt(_local7 - 1);
_local2[1] = 0;
_local2[2] = 0;
} else {
_local2[0] = intxt[_local7 - 1];
_local2[1] = 0;
_local2[2] = 0;
}
_local9 = Encq(_local2, _local6);
_local5 = (_local5 + _local9.slice(0, 2)) + "==";
}
if (_local10 == 2) {
if (typeof(intxt) == "string") {
_local2[0] = intxt.charCodeAt(_local7 - 2);
_local2[1] = intxt.charCodeAt(_local7 - 1);
_local2[2] = 0;
} else {
_local2[0] = intxt[_local7 - 2];
_local2[1] = intxt[_local7 - 1];
_local2[2] = 0;
}
_local9 = Encq(_local2, _local6);
_local5 = (_local5 + _local9.slice(0, 3)) + "=";
}
return(_local5);
}
function Decode64(intxt) {
var _local10;
var _local2 = new Array();
var _local7 = new Array();
var _local3;
var _local6;
var _local5;
var _local8;
var _local1 = new Array();
var _local4;
_local10 = "";
_local3 = 0;
_local6 = 0;
while (_local6 <= 255) {
_local7[_local6] = -1;
_local6++;
}
_local7.splice(43, 1, 62);
_local7.splice(47, 11, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61);
_local7.splice(61, 1, 64);
_local7.splice(65, 26, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25);
_local7.splice(97, 26, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51);
_local5 = 0;
while (_local5 < intxt.length) {
_local8 = _local7[intxt.charCodeAt(_local5)];
if (_local8 >= 0) {
_local2[_local3] = _local8;
_local3++;
if (_local3 == 4) {
_local4 = Decq(_local2);
_local1.push(_local4[0]);
_local1.push(_local4[1]);
_local1.push(_local4[2]);
if (_local2[3] == 64) {
_local1.pop();
}
if (_local2[2] == 64) {
_local1.pop();
}
_local3 = 0;
}
}
_local5++;
}
return(_local1);
}
function Encq(btab, etab) {
var _local1;
var _local2;
_local1 = "";
_local2 = (btab[0] >> 2) & 63;
_local1 = _local1 + etab.charAt(_local2);
_local2 = ((btab[0] & 3) << 4) | ((btab[1] >> 4) & 15);
_local1 = _local1 + etab.charAt(_local2);
_local2 = ((btab[1] & 15) << 2) | ((btab[2] >> 6) & 3);
_local1 = _local1 + etab.charAt(_local2);
_local2 = btab[2] & 63;
_local1 = _local1 + etab.charAt(_local2);
return(_local1);
}
function Decq(btab) {
var _local3 = new Array();
var _local1;
outq = "";
_local1 = (btab[0] << 2) | ((btab[1] >> 4) & 3);
_local3[0] = _local1;
_local1 = ((btab[1] & 15) << 4) | ((btab[2] >> 2) & 15);
_local3[1] = _local1;
_local1 = ((btab[2] & 3) << 6) | btab[3];
_local3[2] = _local1;
return(_local3);
}
function BlowFish_init(key) {
var _local11 = new Array();
var _local10;
var _local12;
_local12 = key.length;
_local10 = 0;
while (_local10 < _local12) {
_local11[_local10] = key.charCodeAt(_local10);
_local10++;
}
var _local2;
var _local3;
var _local9;
var _local4;
_root.blowfish = new Object();
_root.blowfish.blf_P = new Array();
_root.blowfish.blf_S = new Array();
_root.blowfish.blf_S[0] = new Array();
_root.blowfish.blf_S[1] = new Array();
_root.blowfish.blf_S[2] = new Array();
_root.blowfish.blf_S[3] = new Array();
_local4 = new Array(608135816, 2242054355, 320440878, 57701188, 2752067618, 698298832, 137296536, 3964562569, 1160258022, 953160567, 3193202383, 887688300, 3232508343, 3380367581, 1065670069, 3041331479, 2450970073, 2306472731);
_local2 = 0;
while (_local2 <= 17) {
_root.blowfish.blf_P[_local2] = _local4[_local2];
_local2++;
}
_local4 = new Array(3509652390, 2564797868, 805139163, 3491422135, 3101798381, 1780907670, 3128725573, 4046225305, 614570311, 3012652279, 134345442, 2240740374, 1667834072, 1901547113, 2757295779, 4103290238, 227898511, 1921955416, 1904987480, 2182433518, 2069144605, 3260701109, 2620446009, 720527379, 3318853667, 677414384, 3393288472, 3101374703, 2390351024, 1614419982, 1822297739, 2954791486, 3608508353, 3174124327, 2024746970, 1432378464, 3864339955, 2857741204, 1464375394, 1676153920, 1439316330, 715854006, 3033291828, 289532110, 2706671279, 2087905683, 3018724369, 1668267050, 732546397, 1947742710, 3462151702, 2609353502, 2950085171, 1814351708, 2050118529, 680887927, 999245976, 1800124847, 3300911131, 1713906067, 1641548236, 4213287313, 1216130144, 1575780402);
_local2 = 0;
while (_local2 <= 63) {
_root.blowfish.blf_S[0][_local2] = _local4[_local2];
_local2++;
}
_local4 = new Array(4018429277, 3917837745, 3693486850, 3949271944, 596196993, 3549867205, 258830323, 2213823033, 772490370, 2760122372, 1774776394, 2652871518, 566650946, 4142492826, 1728879713, 2882767088, 1783734482, 3629395816, 2517608232, 2874225571, 1861159788, 326777828, 3124490320, 2130389656, 2716951837, 967770486, 1724537150, 2185432712, 2364442137, 1164943284, 2105845187, 998989502, 3765401048, 2244026483, 1075463327, 1455516326, 1322494562, 910128902, 469688178, 1117454909, 936433444, 3490320968, 3675253459, 1240580251, 122909385, 2157517691, 634681816, 4142456567, 3825094682, 3061402683, 2540495037, 79693498, 3249098678, 1084186820, 1583128258, 426386531, 1761308591, 1047286709, 322548459, 995290223, 1845252383, 2603652396, 3431023940, 2942221577);
_local2 = 0;
while (_local2 <= 63) {
_root.blowfish.blf_S[0][_local2 + 64] = _local4[_local2];
_local2++;
}
_local4 = new Array(3202600964, 3727903485, 1712269319, 422464435, 3234572375, 1170764815, 3523960633, 3117677531, 1434042557, 442511882, 3600875718, 1076654713, 1738483198, 4213154764, 2393238008, 3677496056, 1014306527, 4251020053, 793779912, 2902807211, 842905082, 4246964064, 1395751752, 1040244610, 2656851899, 3396308128, 445077038, 3742853595, 3577915638, 679411651, 2892444358, 2354009459, 1767581616, 3150600392, 3791627101, 3102740896, 284835224, 4246832056, 1258075500, 768725851, 2589189241, 3069724005, 3532540348, 1274779536, 3789419226, 2764799539, 1660621633, 3471099624, 4011903706, 913787905, 3497959166, 737222580, 2514213453, 2928710040, 3937242737, 1804850592, 3499020752, 2949064160, 2386320175, 2390070455, 2415321851, 4061277028, 2290661394, 2416832540);
_local2 = 0;
while (_local2 <= 63) {
_root.blowfish.blf_S[0][_local2 + 128] = _local4[_local2];
_local2++;
}
_local4 = new Array(1336762016, 1754252060, 3520065937, 3014181293, 791618072, 3188594551, 3933548030, 2332172193, 3852520463, 3043980520, 413987798, 3465142937, 3030929376, 4245938359, 2093235073, 3534596313, 375366246, 2157278981, 2479649556, 555357303, 3870105701, 2008414854, 3344188149, 4221384143, 3956125452, 2067696032, 3594591187, 2921233993, 2428461, 544322398, 577241275, 1471733935, 610547355, 4027169054, 1432588573, 1507829418, 2025931657, 3646575487, 545086370, 48609733, 2200306550, 1653985193, 298326376, 1316178497, 3007786442, 2064951626, 458293330, 2589141269, 3591329599, 3164325604, 727753846, 2179363840, 146436021, 1461446943, 4069977195, 705550613, 3059967265, 3887724982, 4281599278, 3313849956, 1404054877, 2845806497, 146425753, 1854211946);
_local2 = 0;
while (_local2 <= 63) {
_root.blowfish.blf_S[0][_local2 + 192] = _local4[_local2];
_local2++;
}
_local4 = new Array(1266315497, 3048417604, 3681880366, 3289982499, 2909710000, 1235738493, 2632868024, 2414719590, 3970600049, 1771706367, 1449415276, 3266420449, 422970021, 1963543593, 2690192192, 3826793022, 1062508698, 1531092325, 1804592342, 2583117782, 2714934279, 4024971509, 1294809318, 4028980673, 1289560198, 2221992742, 1669523910, 35572830, 157838143, 1052438473, 1016535060, 1802137761, 1753167236, 1386275462, 3080475397, 2857371447, 1040679964, 2145300060, 2390574316, 1461121720, 2956646967, 4031777805, 4028374788, 33600511, 2920084762, 1018524850, 629373528, 3691585981, 3515945977, 2091462646, 2486323059, 586499841, 988145025, 935516892, 3367335476, 2599673255, 2839830854, 265290510, 3972581182, 2759138881, 3795373465, 1005194799, 847297441, 406762289);
_local2 = 0;
while (_local2 <= 63) {
_root.blowfish.blf_S[1][_local2] = _local4[_local2];
_local2++;
}
_local4 = new Array(1314163512, 1332590856, 1866599683, 4127851711, 750260880, 613907577, 1450815602, 3165620655, 3734664991, 3650291728, 3012275730, 3704569646, 1427272223, 778793252, 1343938022, 2676280711, 2052605720, 1946737175, 3164576444, 3914038668, 3967478842, 3682934266, 1661551462, 3294938066, 4011595847, 840292616, 3712170807, 616741398, 312560963, 711312465, 1351876610, 322626781, 1910503582, 271666773, 2175563734, 1594956187, 70604529, 3617834859, 1007753275, 1495573769, 4069517037, 2549218298, 2663038764, 504708206, 2263041392, 3941167025, 2249088522, 1514023603, 1998579484, 1312622330, 694541497, 2582060303, 2151582166, 1382467621, 776784248, 2618340202, 3323268794, 2497899128, 2784771155, 503983604, 4076293799, 907881277, 423175695, 432175456);
_local2 = 0;
while (_local2 <= 63) {
_root.blowfish.blf_S[1][_local2 + 64] = _local4[_local2];
_local2++;
}
_local4 = new Array(1378068232, 4145222326, 3954048622, 3938656102, 3820766613, 2793130115, 2977904593, 26017576, 3274890735, 3194772133, 1700274565, 1756076034, 4006520079, 3677328699, 720338349, 1533947780, 354530856, 688349552, 3973924725, 1637815568, 332179504, 3949051286, 53804574, 2852348879, 3044236432, 1282449977, 3583942155, 3416972820, 4006381244, 1617046695, 2628476075, 3002303598, 1686838959, 431878346, 2686675385, 1700445008, 1080580658, 1009431731, 832498133, 3223435511, 2605976345, 2271191193, 2516031870, 1648197032, 4164389018, 2548247927, 300782431, 375919233, 238389289, 3353747414, 2531188641, 2019080857, 1475708069, 455242339, 2609103871, 448939670, 3451063019, 1395535956, 2413381860, 1841049896, 1491858159, 885456874, 4264095073, 4001119347);
_local2 = 0;
while (_local2 <= 63) {
_root.blowfish.blf_S[1][_local2 + 128] = _local4[_local2];
_local2++;
}
_local4 = new Array(1565136089, 3898914787, 1108368660, 540939232, 1173283510, 2745871338, 3681308437, 4207628240, 3343053890, 4016749493, 1699691293, 1103962373, 3625875870, 2256883143, 3830138730, 1031889488, 3479347698, 1535977030, 4236805024, 3251091107, 2132092099, 1774941330, 1199868427, 1452454533, 157007616, 2904115357, 342012276, 595725824, 1480756522, 206960106, 497939518, 591360097, 863170706, 2375253569, 3596610801, 1814182875, 2094937945, 3421402208, 1082520231, 3463918190, 2785509508, 435703966, 3908032597, 1641649973, 2842273706, 3305899714, 1510255612, 2148256476, 2655287854, 3276092548, 4258621189, 236887753, 3681803219, 274041037, 1734335097, 3815195456, 3317970021, 1899903192, 1026095262, 4050517792, 356393447, 2410691914, 3873677099, 3682840055);
_local2 = 0;
while (_local2 <= 63) {
_root.blowfish.blf_S[1][_local2 + 192] = _local4[_local2];
_local2++;
}
_local4 = new Array(3913112168, 2491498743, 4132185628, 2489919796, 1091903735, 1979897079, 3170134830, 3567386728, 3557303409, 857797738, 1136121015, 1342202287, 507115054, 2535736646, 337727348, 3213592640, 1301675037, 2528481711, 1895095763, 1721773893, 3216771564, 62756741, 2142006736, 835421444, 2531993523, 1442658625, 3659876326, 2882144922, 676362277, 1392781812, 170690266, 3921047035, 1759253602, 3611846912, 1745797284, 664899054, 1329594018, 3901205900, 3045908486, 2062866102, 2865634940, 3543621612, 3464012697, 1080764994, 553557557, 3656615353, 3996768171, 991055499, 499776247, 1265440854, 648242737, 3940784050, 980351604, 3713745714, 1749149687, 3396870395, 4211799374, 3640570775, 1161844396, 3125318951, 1431517754, 545492359, 4268468663, 3499529547);
_local2 = 0;
while (_local2 <= 63) {
_root.blowfish.blf_S[2][_local2] = _local4[_local2];
_local2++;
}
_local4 = new Array(1437099964, 2702547544, 3433638243, 2581715763, 2787789398, 1060185593, 1593081372, 2418618748, 4260947970, 69676912, 2159744348, 86519011, 2512459080, 3838209314, 1220612927, 3339683548, 133810670, 1090789135, 1078426020, 1569222167, 845107691, 3583754449, 4072456591, 1091646820, 628848692, 1613405280, 3757631651, 526609435, 236106946, 48312990, 2942717905, 3402727701, 1797494240, 859738849, 992217954, 4005476642, 2243076622, 3870952857, 3732016268, 765654824, 3490871365, 2511836413, 1685915746, 3888969200, 1414112111, 2273134842, 3281911079, 4080962846, 172450625, 2569994100, 980381355, 4109958455, 2819808352, 2716589560, 2568741196, 3681446669, 3329971472, 1835478071, 660984891, 3704678404, 4045999559, 3422617507, 3040415634, 1762651403);
_local2 = 0;
while (_local2 <= 63) {
_root.blowfish.blf_S[2][_local2 + 64] = _local4[_local2];
_local2++;
}
_local4 = new Array(1719377915, 3470491036, 2693910283, 3642056355, 3138596744, 1364962596, 2073328063, 1983633131, 926494387, 3423689081, 2150032023, 4096667949, 1749200295, 3328846651, 309677260, 2016342300, 1779581495, 3079819751, 111262694, 1274766160, 443224088, 298511866, 1025883608, 3806446537, 1145181785, 168956806, 3641502830, 3584813610, 1689216846, 3666258015, 3200248200, 1692713982, 2646376535, 4042768518, 1618508792, 1610833997, 3523052358, 4130873264, 2001055236, 3610705100, 2202168115, 4028541809, 2961195399, 1006657119, 2006996926, 3186142756, 1430667929, 3210227297, 1314452623, 4074634658, 4101304120, 2273951170, 1399257539, 3367210612, 3027628629, 1190975929, 2062231137, 2333990788, 2221543033, 2438960610, 1181637006, 548689776, 2362791313, 3372408396);
_local2 = 0;
while (_local2 <= 63) {
_root.blowfish.blf_S[2][_local2 + 128] = _local4[_local2];
_local2++;
}
_local4 = new Array(3104550113, 3145860560, 296247880, 1970579870, 3078560182, 3769228297, 1714227617, 3291629107, 3898220290, 166772364, 1251581989, 493813264, 448347421, 195405023, 2709975567, 677966185, 3703036547, 1463355134, 2715995803, 1338867538, 1343315457, 2802222074, 2684532164, 233230375, 2599980071, 2000651841, 3277868038, 1638401717, 4028070440, 3237316320, 6314154, 819756386, 300326615, 590932579, 1405279636, 3267499572, 3150704214, 2428286686, 3959192993, 3461946742, 1862657033, 1266418056, 963775037, 2089974820, 2263052895, 1917689273, 448879540, 3550394620, 3981727096, 150775221, 3627908307, 1303187396, 508620638, 2975983352, 2726630617, 1817252668, 1876281319, 1457606340, 908771278, 3720792119, 3617206836, 2455994898, 1729034894, 1080033504);
_local2 = 0;
while (_local2 <= 63) {
_root.blowfish.blf_S[2][_local2 + 192] = _local4[_local2];
_local2++;
}
_local4 = new Array(976866871, 3556439503, 2881648439, 1522871579, 1555064734, 1336096578, 3548522304, 2579274686, 3574697629, 3205460757, 3593280638, 3338716283, 3079412587, 564236357, 2993598910, 1781952180, 1464380207, 3163844217, 3332601554, 1699332808, 1393555694, 1183702653, 3581086237, 1288719814, 691649499, 2847557200, 2895455976, 3193889540, 2717570544, 1781354906, 1676643554, 2592534050, 3230253752, 1126444790, 2770207658, 2633158820, 2210423226, 2615765581, 2414155088, 3127139286, 673620729, 2805611233, 1269405062, 4015350505, 3341807571, 4149409754, 1057255273, 2012875353, 2162469141, 2276492801, 2601117357, 993977747, 3918593370, 2654263191, 753973209, 36408145, 2530585658, 25011837, 3520020182, 2088578344, 530523599, 2918365339, 1524020338, 1518925132);
_local2 = 0;
while (_local2 <= 63) {
_root.blowfish.blf_S[3][_local2] = _local4[_local2];
_local2++;
}
_local4 = new Array(3760827505, 3759777254, 1202760957, 3985898139, 3906192525, 674977740, 4174734889, 2031300136, 2019492241, 3983892565, 4153806404, 3822280332, 352677332, 2297720250, 60907813, 90501309, 3286998549, 1016092578, 2535922412, 2839152426, 457141659, 509813237, 4120667899, 652014361, 1966332200, 2975202805, 55981186, 2327461051, 676427537, 3255491064, 2882294119, 3433927263, 1307055953, 942726286, 933058658, 2468411793, 3933900994, 4215176142, 1361170020, 2001714738, 2830558078, 3274259782, 1222529897, 1679025792, 2729314320, 3714953764, 1770335741, 151462246, 3013232138, 1682292957, 1483529935, 471910574, 1539241949, 458788160, 3436315007, 1807016891, 3718408830, 978976581, 1043663428, 3165965781, 1927990952, 4200891579, 2372276910, 3208408903);
_local2 = 0;
while (_local2 <= 63) {
_root.blowfish.blf_S[3][_local2 + 64] = _local4[_local2];
_local2++;
}
_local4 = new Array(3533431907, 1412390302, 2931980059, 4132332400, 1947078029, 3881505623, 4168226417, 2941484381, 1077988104, 1320477388, 886195818, 18198404, 3786409000, 2509781533, 112762804, 3463356488, 1866414978, 891333506, 18488651, 661792760, 1628790961, 3885187036, 3141171499, 876946877, 2693282273, 1372485963, 791857591, 2686433993, 3759982718, 3167212022, 3472953795, 2716379847, 445679433, 3561995674, 3504004811, 3574258232, 54117162, 3331405415, 2381918588, 3769707343, 4154350007, 1140177722, 4074052095, 668550556, 3214352940, 367459370, 261225585, 2610173221, 4209349473, 3468074219, 3265815641, 314222801, 3066103646, 3808782860, 282218597, 3406013506, 3773591054, 379116347, 1285071038, 846784868, 2669647154, 3771962079, 3550491691, 2305946142);
_local2 = 0;
while (_local2 <= 63) {
_root.blowfish.blf_S[3][_local2 + 128] = _local4[_local2];
_local2++;
}
_local4 = new Array(453669953, 1268987020, 3317592352, 3279303384, 3744833421, 2610507566, 3859509063, 266596637, 3847019092, 517658769, 3462560207, 3443424879, 370717030, 4247526661, 2224018117, 4143653529, 4112773975, 2788324899, 2477274417, 1456262402, 2901442914, 1517677493, 1846949527, 2295493580, 3734397586, 2176403920, 1280348187, 1908823572, 3871786941, 846861322, 1172426758, 3287448474, 3383383037, 1655181056, 3139813346, 901632758, 1897031941, 2986607138, 3066810236, 3447102507, 1393639104, 373351379, 950779232, 625454576, 3124240540, 4148612726, 2007998917, 544563296, 2244738638, 2330496472, 2058025392, 1291430526, 424198748, 50039436, 29584100, 3605783033, 2429876329, 2791104160, 1057563949, 3255363231, 3075367218, 3463963227, 1469046755, 985887462);
_local2 = 0;
while (_local2 <= 63) {
_root.blowfish.blf_S[3][_local2 + 192] = _local4[_local2];
_local2++;
}
var _local8;
var _local6;
var _local7;
var _local5;
_local3 = 0;
_local2 = 0;
while (_local2 <= 17) {
_local8 = 0;
_local9 = 0;
while (_local9 <= 3) {
_local8 = (_local8 << 8) | _local11[_local3];
_local3 = _local3 + 1;
if (_local3 >= _local12) {
_local3 = 0;
}
_local9++;
}
_root.blowfish.blf_P[_local2] = _root.blowfish.blf_P[_local2] ^ _local8;
_local2++;
}
_local6 = 0;
_local7 = 0;
_local2 = 0;
while (_local2 <= 17) {
_local5 = DoBlowEnc(_local6, _local7);
_root.blowfish.blf_P[_local2] = _local5[0];
_root.blowfish.blf_P[_local2 + 1] = _local5[1];
_local6 = _local5[0];
_local7 = _local5[1];
_local2 = _local2 + 2;
}
_local2 = 0;
while (_local2 <= 3) {
_local3 = 0;
while (_local3 <= 255) {
_local5 = DoBlowEnc(_local6, _local7);
_root.blowfish.blf_S[_local2][_local3] = _local5[0];
_root.blowfish.blf_S[_local2][_local3 + 1] = _local5[1];
_local6 = _local5[0];
_local7 = _local5[1];
_local3 = _local3 + 2;
}
_local2++;
}
}
function BlowFish_enc64str(intxt) {
var _local11;
var _local16;
var _local10;
var _local1;
var _local2;
var _local4 = new Array();
var _local3 = new Array();
var _local15;
var _local14;
var _local6;
var _local7;
var _local8;
var _local9;
var _local12;
var _local13;
_local16 = intxt.length;
_local13 = ((int(_local16 / 8) + 1) * 8) - _local16;
_local12 = "";
_local1 = 0;
while (_local1 <= _local13) {
_local12 = _local12 + chr(_local13);
_local1++;
}
intxt = intxt + _local12;
_local16 = intxt.length;
_local10 = int(_local16 / 8);
_local1 = 0;
while (_local1 < _local10) {
_local2 = 0;
while (_local2 <= 3) {
_local4[_local2] = intxt.charCodeAt((_local1 * 8) + _local2);
_local2++;
}
_local15 = (((_local4[0] << 24) | (_local4[1] << 16)) | (_local4[2] << 8)) | _local4[3];
_local2 = 0;
while (_local2 <= 3) {
_local4[_local2] = intxt.charCodeAt(((_local1 * 8) + _local2) + 4);
_local2++;
}
_local14 = (((_local4[0] << 24) | (_local4[1] << 16)) | (_local4[2] << 8)) | _local4[3];
_local3[_local1 * 2] = _local15;
_local3[(_local1 * 2) + 1] = _local14;
_local1++;
}
_local1 = 0;
while (_local1 < (_local10 * 2)) {
ret = DoBlowEnc(_local3[_local1], _local3[_local1 + 1]);
_local3[_local1] = ret[0];
_local3[_local1 + 1] = ret[1];
_local1 = _local1 + 2;
}
_local11 = new Array();
_local1 = 0;
while (_local1 < _local10) {
_local6 = (_local3[_local1 * 2] & 4278190080) >>> 24;
_local7 = (_local3[_local1 * 2] & 16711680) >>> 16;
_local8 = (_local3[_local1 * 2] & 65280) >>> 8;
_local9 = _local3[_local1 * 2] & 255;
_local11.push(_local6, _local7, _local8, _local9);
_local6 = (_local3[(_local1 * 2) + 1] & 4278190080) >>> 24;
_local7 = (_local3[(_local1 * 2) + 1] & 16711680) >>> 16;
_local8 = (_local3[(_local1 * 2) + 1] & 65280) >>> 8;
_local9 = _local3[(_local1 * 2) + 1] & 255;
_local11.push(_local6, _local7, _local8, _local9);
_local1++;
}
return(Encode64(_local11));
}
function BlowFish_dec64str(intxt) {
var _local5;
var _local15;
var _local11;
var _local1;
var _local2;
var _local4 = new Array();
var _local3 = new Array();
var _local13;
var _local12;
var _local10;
var _local7;
var _local8;
var _local9;
var _local14;
var _local6;
_local6 = Decode64(intxt);
_local15 = _local6.length;
_local11 = int(_local15 / 8);
_local1 = 0;
while (_local1 < _local11) {
_local2 = 0;
while (_local2 <= 3) {
_local4[_local2] = _local6[(_local1 * 8) + _local2];
_local2++;
}
_local13 = (((_local4[0] << 24) | (_local4[1] << 16)) | (_local4[2] << 8)) | _local4[3];
_local2 = 0;
while (_local2 <= 3) {
_local4[_local2] = _local6[((_local1 * 8) + _local2) + 4];
_local2++;
}
_local12 = (((_local4[0] << 24) | (_local4[1] << 16)) | (_local4[2] << 8)) | _local4[3];
_local3[_local1 * 2] = _local13;
_local3[(_local1 * 2) + 1] = _local12;
_local1++;
}
_local1 = 0;
while (_local1 < (_local11 * 2)) {
ret = DoBlowDec(_local3[_local1], _local3[_local1 + 1]);
_local3[_local1] = ret[0];
_local3[_local1 + 1] = ret[1];
_local1 = _local1 + 2;
}
_local5 = "";
_local1 = 0;
while (_local1 < _local11) {
_local10 = (_local3[_local1 * 2] & 4278190080) >>> 24;
_local7 = (_local3[_local1 * 2] & 16711680) >>> 16;
_local8 = (_local3[_local1 * 2] & 65280) >>> 8;
_local9 = _local3[_local1 * 2] & 255;
_local5 = _local5 + String.fromCharCode(_local10, _local7, _local8, _local9);
_local10 = (_local3[(_local1 * 2) + 1] & 4278190080) >>> 24;
_local7 = (_local3[(_local1 * 2) + 1] & 16711680) >>> 16;
_local8 = (_local3[(_local1 * 2) + 1] & 65280) >>> 8;
_local9 = _local3[(_local1 * 2) + 1] & 255;
_local5 = _local5 + String.fromCharCode(_local10, _local7, _local8, _local9);
_local1++;
}
_local14 = _local5.slice(-1).charCodeAt(0);
if (_local14 > 8) {
_local14 = 0;
}
_local5 = _local5.substring(0, _local5.length - _local14);
return(_local5);
}
function DoBlowEnc(dat1, dat2) {
var _local4;
var _local5;
var _local6 = new Array();
_local4 = 0;
while (_local4 <= 15) {
dat1 = dat1 ^ _root.blowfish.blf_P[_local4];
dat2 = dat2 ^ blf_F(dat1);
_local5 = dat1;
dat1 = dat2;
dat2 = _local5;
_local4++;
}
_local5 = dat1;
dat1 = dat2;
dat2 = _local5;
dat2 = dat2 ^ _root.blowfish.blf_P[16];
dat1 = dat1 ^ _root.blowfish.blf_P[17];
_local6[0] = dat1;
_local6[1] = dat2;
return(_local6);
}
function DoBlowDec(dat1, dat2) {
var _local6 = new Array();
var _local4;
var _local5;
_local4 = 17;
while (_local4 >= 2) {
dat1 = dat1 ^ _root.blowfish.blf_P[_local4];
dat2 = dat2 ^ blf_F(dat1);
_local5 = dat1;
dat1 = dat2;
dat2 = _local5;
_local4 = _local4 - 1;
}
_local5 = dat1;
dat1 = dat2;
dat2 = _local5;
dat2 = dat2 ^ _root.blowfish.blf_P[1];
dat1 = dat1 ^ _root.blowfish.blf_P[0];
_local6[0] = dat1;
_local6[1] = dat2;
return(_local6);
}
function blf_F(x) {
var _local4;
var _local5;
var _local6;
var _local7;
var _local2;
_local4 = (x & 4278190080) >>> 24;
_local5 = (x & 16711680) >>> 16;
_local6 = (x & 65280) >>> 8;
_local7 = x & 255;
_local2 = _root.blowfish.blf_S[0][_local4] + _root.blowfish.blf_S[1][_local5];
_local2 = _local2 ^ _root.blowfish.blf_S[2][_local6];
_local2 = _local2 + _root.blowfish.blf_S[3][_local7];
return(_local2);
}
function makeQuerystring(obj) {
var _local1 = "";
_local1 = obj.action;
_local1 = _local1 + obj.userid;
_local1 = _local1 + obj.sid;
_local1 = _local1 + obj.gameid;
_local1 = _local1 + obj.rn;
_local1 = _local1 + "wD9c84X0vA";
return(_local1);
}
function getTracker(trackWhat) {
var _local2 = new LoadVars();
_local2.gameid = _global.gameid;
_local2.action = trackWhat;
_local2.sid = _global.sid;
_local2.userid = _global.userid;
_local2.rn = _global.rn;
return(_local2);
}
function onLoadInit(mc) {
imageLoadCount++;
if (imageLoadCount == imageArray.length) {
externalImagesLoaded = true;
}
mc._visible = false;
}
function onLoadError(target_mc, errorCode, httpStatus) {
NetDebug.trace(">> loadListener.onLoadError()");
NetDebug.trace(">> ==========================");
NetDebug.trace(">> errorCode: " + errorCode);
NetDebug.trace(">> httpStatus: " + httpStatus);
}
function Create_Stage() {
root.createEmptyMovieClip("gameEMC", root.getNextHighestDepth());
if (passmask) {
gameEMC.swapDepths(passmask);
}
root.gameEMC.attachMovie("BG", "BG", root.gameEMC.getNextHighestDepth());
MapMC = root.gameEMC.createEmptyMovieClip("sceneEMCA", root.gameEMC.getNextHighestDepth());
root.gameEMC.createEmptyMovieClip("enemyEMC", root.gameEMC.getNextHighestDepth());
root.gameEMC.createEmptyMovieClip("playerEMC", root.gameEMC.getNextHighestDepth());
EnemyPath = root.gameEMC.enemyEMC;
root.gameEMC.playerEMC.attachMovie("PlayerMC", "PlayerMC", root.gameEMC.playerEMC.getNextHighestDepth(), {_x:18, _y:280});
AttackBody = root.gameEMC.playerEMC.PlayerMC;
AttackBody._alpha = 0;
root.gameEMC.createEmptyMovieClip("UIEMC", root.gameEMC.getNextHighestDepth());
UI = root.gameEMC.UIEMC.attachMovie("UIMC", "UIMC", root.gameEMC.UIEMC.getNextHighestDepth());
if (playerbody_no == 1) {
AttackBody.gotoAndPlay("ice");
UI.LifeDisplay.gotoAndStop(8);
} else if (playerbody_no == 2) {
AttackBody.gotoAndPlay("red");
UI.LifeDisplay.gotoAndStop(16);
}
}
function Game_Start() {
startforframe_time = 0;
ShootZT = false;
pause_all = false;
if (!passmask) {
this.attachMovie("BG2", "passmask", this.getNextHighestDepth());
passmask.gotoAndPlay("gonow2");
}
if (leven == 1) {
Map_ArrayY = [0];
AttackBody._x = 28;
AttackBody._y = 250;
}
if (leven == 2) {
Map_ArrayY = [0];
AttackBody._x = 40;
AttackBody._y = 220;
} else if (leven == 3) {
Map_ArrayY = [];
Map_ArrayY[22] = -473;
Map_ArrayY[39] = 411;
AttackBody._x = 18;
AttackBody._y = 230;
} else if (leven == 4) {
Map_ArrayY = [];
Map_ArrayY[37] = 546;
AttackBody._x = 18;
AttackBody._y = 270;
}
play_music("bj" + leven, true);
passlevel = false;
if (passdistinction != 1) {
if (teststart) {
MapPing = teststart;
teststart = undefined;
} else {
MapPing = 1;
}
} else {
MapPing++;
}
startframe = MapPing;
AttchMap_Name = "mapMC" + leven;
var _local2 = root.gameEMC.sceneEMCA.attachMovie(AttchMap_Name, "mapMC" + this.MapPing, this.MapPing);
newmap = _local2.MapL;
_local2.Num = this.MapPing;
_local2.gotoAndStop(MapPing);
_local2.MapL._visible = display_land;
InitialObject(root.gameEMC.playerEMC.PlayerMC);
StartMove(root.gameEMC.playerEMC.PlayerMC);
root.UI.head.gotoAndStop(root.playerbody_no);
root.UI.bt1.gotoAndStop(root.playerbody_no);
root.UI.bt2.gotoAndStop(root.playerbody_no);
root.UI.LifeDisplay.gotoAndStop(root.life + ((root.playerbody_no - 1) * 8));
root.UI.displayresult();
root.GetScore(0);
}
function MoveAll() {
if (passlevel and ((newmap._parent._x + newmap._parent._parent._x) >= 10)) {
return(undefined);
}
if (AttackBody.HitMC_T._parent.MapFX == "UP") {
if (MoveMapMinY < 300) {
MoveMapMinY = MoveMapMinY + 6;
MoveMapMaxY = 340;
}
} else if (AttackBody.HitMC_T._parent.MapFX == "DOWN") {
if (MoveMapMaxY > 180) {
MoveMapMinY = 60;
MoveMapMaxY = MoveMapMaxY - 6;
}
} else {
MoveMapMinY = -130;
MoveMapMaxY = 450;
var _local1 = AttackBody.HitMC_T._parent._y + AttackBody.HitMC_T._parent._parent._y;
if (_local1 != 0) {
if (_local1 > 5) {
root.gameEMC.playerEMC._y = root.gameEMC.playerEMC._y - 5;
root.gameEMC.enemyEMC._y = root.gameEMC.enemyEMC._y - 5;
root.gameEMC.sceneEMCA._y = root.gameEMC.sceneEMCA._y - 5;
root.gameEMC.SNOW._y = root.gameEMC.SNOW._y - 5;
} else if (_local1 < -5) {
root.gameEMC.playerEMC._y = root.gameEMC.playerEMC._y + 5;
root.gameEMC.enemyEMC._y = root.gameEMC.enemyEMC._y + 5;
root.gameEMC.sceneEMCA._y = root.gameEMC.sceneEMCA._y + 5;
root.gameEMC.SNOW._y = root.gameEMC.SNOW._y + 5;
} else {
root.gameEMC.playerEMC._y = -AttackBody.HitMC_T._parent._y;
root.gameEMC.enemyEMC._y = -AttackBody.HitMC_T._parent._y;
root.gameEMC.sceneEMCA._y = -AttackBody.HitMC_T._parent._y;
root.gameEMC.SNOW._y = -AttackBody.HitMC_T._parent._y;
}
}
}
if (BossDisplay) {
if ((ChengePlayerXY()._X < 10) and (AttackBody.speed < BossMC.MoveSpeed)) {
if (AttackBody.Sp_ZT == "Run") {
AttackBody._x = AttackBody._x + (BossMC.MoveSpeed + 2);
} else {
AttackBody._x = AttackBody._x + (BossMC.MoveSpeed + 2);
}
} else if (ChengePlayerXY()._X > BossMaxX) {
if (AttackBody.Sp_ZT == "Run") {
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -6;
root.AttackBody.Jump_x = -6;
AttackBody.jump_attack = false;
} else {
AttackBody.Jump_x = -0.01;
}
}
MoveSpeedNum = BossMC.MoveSpeed;
MoveSpeedNumY = 0;
} else {
MapMove_AimX = ChengePlayerXY()._X;
MapMove_AimY = ChengePlayerXY()._Y;
if (MapMove_AimX > MoveMapMaxX) {
MoveSpeedNum = MapMove_AimX - MoveMapMaxX;
} else if (((MapMove_AimX < MoveMapMinX) and (MapPing > 2)) and ((AttackBody._rotation > 90) or (AttackBody._rotation < -90))) {
MoveSpeedNum = MapMove_AimX - MoveMapMinX;
}
var _local2 = MapMove_AimY - MoveMapMaxY;
if (MapMove_AimY > MoveMapMaxY) {
if ((AttackBody.HitMC_T._parent.mapmax_y + AttackBody.HitMC_T._parent._parent._y) > 380) {
MoveSpeedNumY = MapMove_AimY - MoveMapMaxY;
}
} else if (MapMove_AimY < MoveMapMinY) {
MoveSpeedNumY = MapMove_AimY - MoveMapMinY;
}
}
root.gameEMC.playerEMC._y = root.gameEMC.playerEMC._y - MoveSpeedNumY;
root.gameEMC.enemyEMC._y = root.gameEMC.enemyEMC._y - MoveSpeedNumY;
root.gameEMC.sceneEMCA._y = root.gameEMC.sceneEMCA._y - MoveSpeedNumY;
root.gameEMC.SNOW._y = root.gameEMC.SNOW._y - MoveSpeedNumY;
MoveSpeedNumY = 0;
root.gameEMC.playerEMC._x = root.gameEMC.playerEMC._x - MoveSpeedNum;
root.gameEMC.enemyEMC._x = root.gameEMC.enemyEMC._x - MoveSpeedNum;
root.gameEMC.sceneEMCA._x = root.gameEMC.sceneEMCA._x - MoveSpeedNum;
root.gameEMC.SNOW._x = root.gameEMC.SNOW._x - MoveSpeedNum;
MoveSpeedNum = 0;
CtrlMapDisplay(root.gameEMC.sceneEMCA);
}
function CtrlMapDisplay(MapBox) {
for (var _local6 in MapBox) {
if (((MapBox._x + MapBox[_local6]._x) < 10) and (!MapBox["mapMC" + (MapBox[_local6].Num + 1)])) {
this.MapPing++;
if (root.Map_ArrayY[this.MapPing] == undefined) {
root.Map_ArrayY[this.MapPing] = 0;
}
var _local3 = root.gameEMC.sceneEMCA.attachMovie(AttchMap_Name, "mapMC" + this.MapPing, this.MapPing, {_x:MapBox[_local6]._x + 550, _y:MapBox[_local6]._y + root.Map_ArrayY[this.MapPing]});
_local3.gotoAndStop(MapPing);
_local3.Num = this.MapPing;
_local3.MapL._visible = display_land;
newmap = _local3.MapL;
}
if ((MapBox._x + MapBox[_local6]._x) < -600) {
MapBox[_local6].removeMovieClip();
}
}
}
function GetScore(Num) {
score = score + Num;
var _local1 = 1;
while (_local1 < 10) {
if (_local1 > String(score).length) {
UI["NO" + _local1].gotoAndStop(1 + ((root.playerbody_no - 1) * 10));
} else {
UI["NO" + _local1].gotoAndStop((Number(String(score).charAt(String(score).length - _local1)) + 1) + ((playerbody_no - 1) * 10));
}
_local1++;
}
}
function GetAwardScore(num, place_x, place_y) {
var _local4 = root.gameEMC.createEmptyMovieClip("AwardScore" + root.gameEMC.getNextHighestDepth(), root.gameEMC.getNextHighestDepth());
_local4._x = place_x;
_local4._y = place_y;
var num_length = String(num).length;
var display_time = 20;
var num_box = new Array();
_local4.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (((display_time % 3) == 0) and (num_length > num_box.length)) {
var _local3 = this.attachMovie("sc_mc2", "sc_mc2" + this.getNextHighestDepth(), this.getNextHighestDepth());
if (num_box.length == 0) {
_local3.attachMovie("plus", "plus" + this.getNextHighestDepth(), this.getNextHighestDepth(), {_x:-20});
}
_local3._x = num_box.length * 10;
_local3.gotoAndStop(Number(String(num).charAt(num_box.length)) + 1);
num_box.push(_local3._name);
}
var _local2 = 0;
while (_local2 < num_box.length) {
if (this[num_box[_local2]]._y > -30) {
this[num_box[_local2]]._y = this[num_box[_local2]]._y - 3;
}
_local2++;
}
display_time--;
if (display_time == 0) {
this.removeMovieClip();
}
};
}
function gameover() {
BossDisplay = undefined;
BossMC = undefined;
play_soundAction("lost");
delete AttackBody.onEnterFrame;
gameEMC.removeMovieClip();
gotoAndStop ("gameover");
}
function gamestartforframe() {
if (UI.gametime <= 0) {
return(undefined);
}
if (startforframe_time == 0) {
play_music("diaoya");
_root.gameEMC.attachMovie("BG", "BGte", _root.gameEMC.getNextHighestDepth());
gameEMC.BGte._alpha = 0;
}
if (startforframe_time < 100) {
startforframe_time++;
gameEMC.BGte._alpha = startforframe_time;
return(undefined);
}
startforframe_time = 0;
ShootZT = false;
AttackBody.speed = 0;
gamestrattime = UI.gametime;
BossDisplay = undefined;
BossMC = undefined;
if (root.life <= 0) {
root.gameover();
return(undefined);
}
delete AttackBody.onEnterFrame;
gameEMC.removeMovieClip();
if (leven2 == 1) {
MapPing = 0;
gotoAndPlay ("initial");
} else {
MapPing = playframe - 1;
gotoAndPlay ("initial");
}
}
function GetDistance(x1, y1, x2, y2) {
return(Math.sqrt(((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2))));
}
function ChengePlayerXY() {
var _local1 = new Object();
_local1._X = root.gameEMC.playerEMC.PlayerMC._x + root.gameEMC.playerEMC._x;
_local1._Y = root.gameEMC.playerEMC.PlayerMC._y + root.gameEMC.playerEMC._y;
return(_local1);
}
function BodyDead(BodyName) {
BodyName.removeMovieClip();
}
function CountXY(StX, StY, Rota_C, Speed_C) {
var _local1 = new Object();
_local1.X = StX + (Speed_C * Math.cos(Rota_C / 57.29577951472));
_local1.Y = StY + (Speed_C * Math.sin(Rota_C / 57.29577951472));
return(_local1);
}
function npc_move(who, distance, circumgyrate) {
var _local5 = hit_map_mc(who);
var _local4 = who._x + who._parent._x;
var _local6 = who._y + who._parent._y;
var _local2 = 0;
if ((distance < 0) and (who._xscale < 0)) {
who._xscale = 100;
} else if ((distance > 0) and (who._xscale > 0)) {
who._xscale = -100;
}
if (_local5.hitTest(_local4 + distance, _local6 + _local2, true)) {
while (_local5.hitTest(_local4 + distance, _local6 + _local2, true)) {
_local2--;
if (_local2 < -20) {
if (!_local5.hitTest(_local4 - distance, _local6 + _local2, true)) {
who.speed = who.speed * -1;
} else {
who.removeMovieClip();
}
who._x = who._x - who.speed;
return(undefined);
}
}
} else {
while (!_local5.hitTest(_local4 + distance, _local6 + _local2, true)) {
_local2++;
if (_local2 > 20) {
if (circumgyrate) {
npc_jump(who, distance, 0);
} else {
who.speed = who.speed * -1;
who._x = who._x - (distance * 2);
}
return(undefined);
}
}
_local2 = _local2 - 1;
}
who._x = who._x + distance;
who._y = who._y + _local2;
}
function npc_jump(who, distance_x, distance_y) {
if (!who.jump_mc) {
who.createEmptyMovieClip("jump_mc", who._parent.getNextHighestDepth());
}
if (distance_y != 0) {
who._yscale = 70;
}
who.move_y = distance_y;
who.move_x = distance_x;
who.sp_zt = "jump";
who.jump_mc.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (this._parent._yscale < 100) {
this._parent._yscale = this._parent._yscale + 10;
} else {
this._parent._y = this._parent._y + this._parent.move_y;
this._parent._x = this._parent._x + this._parent.move_x;
this._parent.move_y = this._parent.move_y + 1;
if (root.hit_map_mc(this._parent).hitTest(chenge_coordinate(who).rx, chenge_coordinate(who).ry, true) and (this._parent.move_y > 0)) {
this._parent.sp_zt = "run";
delete this.onEnterFrame;
}
}
};
}
function hit_map_mc(who) {
for (var _local4 in root.MapMC) {
var _local2;
var _local1 = chenge_coordinate(who).rx - (root.MapMC[_local4]._x + root.MapMC._x);
if ((_local1 > 0) and (_local1 <= 550)) {
_local2 = root.MapMC[_local4].MapL;
return(_local2);
}
}
}
function chenge_coordinate(who) {
var _local1 = new Object();
_local1.rx = who._x + who._parent._x;
_local1.ry = who._y + who._parent._y;
return(_local1);
}
function check_dorp(body, body_x, body_y, land, distance) {
if (land.hitTest(body_x + distance, body_y + 10, true)) {
return(false);
}
body.Sp_ZT = "Drop";
body.Dorp_x = distance * 0.5;
return(true);
}
function AttachSnow2(who) {
var snow_box = new Array();
var snow_x = new Array();
var snow_y = new Array();
var _local2 = 0;
while (_local2 < 8) {
var _local5 = who.attachMovie("snow", "snow" + who.getNextHighestDepth(), who.getNextHighestDepth());
_local5._y = _local5._y - 20;
snow_box[_local2] = _local5._name;
if ((_local2 % 2) == 1) {
who[snow_box[_local2]]._x = who[snow_box[_local2]]._x + (Math.cos((_local2 * 45) * 0.01745) * 40);
who[snow_box[_local2]]._y = who[snow_box[_local2]]._y + (Math.sin((_local2 * 45) * 0.01745) * 40);
snow_x[_local2] = Math.cos((_local2 * 45) * 0.01745) * 1;
snow_y[_local2] = Math.sin((_local2 * 45) * 0.01745) * 1;
} else {
who[snow_box[_local2]]._x = who[snow_box[_local2]]._x + (Math.cos((_local2 * 45) * 0.01745) * 40);
who[snow_box[_local2]]._y = who[snow_box[_local2]]._y + (Math.sin((_local2 * 45) * 0.01745) * 40);
snow_x[_local2] = Math.cos((_local2 * 45) * 0.01745) * 1;
snow_y[_local2] = Math.sin((_local2 * 45) * 0.01745) * 1;
}
_local2++;
}
who.createEmptyMovieClip("onentermc", who._parent.getNextHighestDepth());
who.moveable2 = false;
who.timetotal = 30;
who.onentermc.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
var _local2 = 0;
while (_local2 < 8) {
this._parent[snow_box[_local2]]._x = this._parent[snow_box[_local2]]._x - snow_x[_local2];
this._parent[snow_box[_local2]]._y = this._parent[snow_box[_local2]]._y - snow_y[_local2];
this._parent[snow_box[_local2]]._rotation = this._parent[snow_box[_local2]]._rotation + 20;
_local2++;
}
this._parent.timetotal--;
if (this._parent.timetotal <= 0) {
this._parent.moveable2 = true;
_local2 = 0;
while (_local2 < 8) {
this._parent[snow_box[_local2]].removeMovieClip();
_local2++;
}
}
};
}
function AttachSnow(who) {
var snow_box = new Array();
var snow_x = new Array();
var snow_y = new Array();
var _local2 = 0;
while (_local2 < 8) {
var _local4 = who.attachMovie("snow", "snow" + who.getNextHighestDepth(), who.getNextHighestDepth());
snow_box[_local2] = _local4._name;
if ((_local2 % 2) == 1) {
snow_x[_local2] = Math.cos((_local2 * 45) * 0.01745) * 3;
snow_y[_local2] = Math.sin((_local2 * 45) * 0.01745) * 3;
} else {
snow_x[_local2] = Math.cos((_local2 * 45) * 0.01745) * 3;
snow_y[_local2] = Math.sin((_local2 * 45) * 0.01745) * 3;
}
_local2++;
}
who.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
var _local2 = 0;
while (_local2 < 8) {
this[snow_box[_local2]]._x = this[snow_box[_local2]]._x + snow_x[_local2];
this[snow_box[_local2]]._y = this[snow_box[_local2]]._y + snow_y[_local2];
this[snow_box[_local2]]._rotation = this[snow_box[_local2]]._rotation + 20;
_local2++;
}
};
}
function ComboFunciton(body) {
if (BossMC) {
return(undefined);
}
if (combo_num > 0) {
EnemyPath.combo.removeMovieClip();
var _local1 = EnemyPath.attachMovie("combo", "combo", EnemyPath.getNextHighestDepth(), {_x:body._x, _y:body._y});
_local1.mc.gotoAndStop(combo_num);
GetScore(combo_num * 200);
}
combo_num++;
}
function gamepass1() {
leven2++;
passdistinction = 1;
BossDisplay = undefined;
this.attachMovie("BG2", "passmask", this.getNextHighestDepth());
}
function gamepass2() {
stop_soundAction("bj" + leven);
leven++;
passdistinction = 2;
leven2 = 1;
BossDisplay = undefined;
this.attachMovie("BG2", "passmask", this.getNextHighestDepth());
}
function gamepassall() {
stop_soundAction("bj" + leven);
passdistinction = 3;
this.attachMovie("BG2", "passmask", this.getNextHighestDepth());
}
function remove_all() {
root.gameEMC.removeMovieClip();
}
function BoosSuffer(MC, finish) {
var _local2 = new Color(MC);
var _local1 = new Object();
if (finish) {
_local1 = {ra:"100", rb:"0", ga:"100", gb:"0"};
} else {
_local1 = {ra:"100", rb:"255", ga:"100", gb:"40"};
}
_local2.setTransform(_local1);
}
function playball(place_x, place_y, type) {
var _local2 = EnemyPath.attachMovie("diamond", "diamond" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y - 40});
_local2.gotoAndStop(type);
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (this.hitTest(root.AttackBody)) {
if (type == 1) {
root.ballA = root.ballA + 10;
root.ballB = 0;
root.playerbody_no = 1;
root.AttackBody.gotoAndPlay("ice");
} else if (type == 2) {
root.ballB = root.ballB + 10;
root.ballA = 0;
root.playerbody_no = 2;
root.AttackBody.gotoAndPlay("red");
}
root.UI.head.gotoAndStop(type);
root.UI.bt1.gotoAndStop(type);
root.UI.bt2.gotoAndStop(type);
root.UI.displayresult();
root.UI.LifeDisplay.gotoAndStop(root.life + ((type - 1) * 8));
root.GetScore(0);
root.play_soundAction("upgrade");
this.removeMovieClip();
}
};
}
function attachsnow() {
var Move_y = ((random(30) / 10) + 3);
if (root.wind) {
var _local3 = root.gameEMC.SNOW.attachMovie("snow", "snow" + root.gameEMC.SNOW.getNextHighestDepth(), root.gameEMC.SNOW.getNextHighestDepth(), {_x:(random(600) + AttackBody._x) + 130});
} else {
var _local3 = root.gameEMC.SNOW.attachMovie("snow", "snow" + root.gameEMC.SNOW.getNextHighestDepth(), root.gameEMC.SNOW.getNextHighestDepth(), {_x:(random(600) + AttackBody._x) + 30});
}
_local3.gotoAndStop(random(3) + 1);
_local3.addr = random(10);
_local3.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
this._x = this._x - 1;
if (root.wind) {
this._x = this._x - 6;
}
this._y = this._y + Move_y;
if ((this._y + this._parent._y) > 400) {
this.removeMovieClip();
}
this._rotation = this._rotation + this.addr;
for (var _local2 in root.MapMC) {
if (root.MapMC[_local2].MapL.hitTest(this._x + this._parent._x, this._y + this._parent._y, true)) {
this.removeMovieClip();
}
}
};
}
function InitialObject(Path) {
path.jump_attack = true;
Path.attack = false;
Path.PlayerStartTime = 20;
Path.MaxSpeed = 10;
Path.MaxJumpY = 23;
Path.speed = 0;
Path.Ping = 0;
Path.SpeedPing = 0;
Path.Sp_ZT = "Run";
Path.Dorp_x = 0;
Path.Dorp_y = 0;
Path.Jump_x = 0;
Path.Jump_y = 0;
Path.KeyX = 0;
Path.Jump_AddSpeed = 1.6;
Path.Jump_AddRotation = 0;
Path.Jump_ZT = false;
Path.HitMC_T;
Path.affix_mc;
Path.startRo = 90;
Path.startRo2 = 60;
Path.thisRotatiom = Path._rotation;
Path.CountXY = function (StX, StY, Rota_C, Speed_C) {
var _local1 = new Object();
_local1.X = StX + (Speed_C * Math.cos(Rota_C / 57.29577951472));
_local1.Y = StY + (Speed_C * Math.sin(Rota_C / 57.29577951472));
return(_local1);
};
Path.CountRotation = function (point1, point2) {
return(57.29577951472 * Math.atan((point2.Y - point1.Y) / (point2.X - point1.X)));
};
Path.CheakJump = function (distance) {
if (this.HitMC_T.hitTest(root.ChengePlayerXY()._X, root.ChengePlayerXY()._Y, true)) {
var _local2 = 1;
while (this.HitMC_T.hitTest(root.ChengePlayerXY()._X, root.ChengePlayerXY()._Y - _local2, true)) {
_local2++;
if (_local2 > 30) {
if (distance == 0) {
root.AttackBody._x = root.AttackBody._x - (0.03 * this._xscale);
} else {
root.AttackBody._x = root.AttackBody._x - (((5 + Math.abs(distance)) / 100) * this._xscale);
this.Jump_x = (-distance) * 0.2;
this._y = this._y - this.Jump_y;
}
return(undefined);
}
}
root.AttackBody._y = root.AttackBody._y - _local2;
if (this.Jump_y > 0) {
this.Jump_AddRotation = 0;
this.thisRotatiom = this._rotation;
this.Sp_ZT = "Run";
this.Jump_y = 0;
this.Jump_x = 0;
root.add_speed = false;
if (Key.isDown(root.key_right)) {
this.speed = distance * 0.6;
}
if (Key.isDown(root.key_lift)) {
this.speed = distance * 0.6;
}
}
} else {
this._x = this._x + distance;
}
if (this.HitMC_T.hitTest(root.ChengePlayerXY()._X, root.ChengePlayerXY()._Y - 60, true)) {
this._y = this._y + 10;
this.Jump_y = 0;
}
};
Path.GetDistance = function (x1, y1, x2, y2) {
return(Math.sqrt(((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2))));
};
Path.MoveDead = function () {
root.life--;
if (root.life <= 0) {
if (this.Sp_ZT != "dead") {
root.UI.LifeDisplay._visible = false;
root.AttackBody.mc.gotoAndStop("dead");
this.Sp_ZT = "dead";
this.PlayerStartTime = 100;
this.attack = false;
delete root.AttackBody.onEnterFrame;
}
} else {
root.UI.LifeDisplay.gotoAndStop(root.life + ((root.playerbody_no - 1) * 8));
root.jump_power = 20;
root.shoot_power = 1;
this.PlayerStartTime = 100;
this.attack = false;
this.speed = 0;
this.Jump_x = 0;
this.Jump_y = 0;
root.play_soundAction("playdead");
}
};
Path.MoveBody = function (distance) {
var _local7 = hit_map_mc(who);
var _local3 = root.ChengePlayerXY()._X;
var _local4 = root.ChengePlayerXY()._Y;
var _local2 = 0;
if ((_local3 < 10) and (distance < 0)) {
this.speed = 0;
return(undefined);
}
var _local6 = distance;
if (this.HitMC_T.hitTest(_local3 + distance, _local4, true)) {
while (this.HitMC_T.hitTest(_local3 + distance, _local4 + _local2, true)) {
_local2--;
if (_local2 < -15) {
return(undefined);
}
}
} else {
while (!this.HitMC_T.hitTest(_local3 + distance, _local4 + _local2, true)) {
_local2++;
if (_local2 > 15) {
this.Sp_ZT = "Jump";
this.Jump_y = -3;
this.KeyX = 1.5 * (this._xscale / 100);
return(undefined);
}
}
_local2--;
}
this._y = this._y + _local2;
this._x = this._x + _local6;
};
Path.check_hit = function () {
for (var _local3 in root.MapMC) {
var _local2;
if (this.Sp_ZT == "Jump") {
if (this.Jump_x != 0) {
_local2 = this.Jump_x;
} else {
_local2 = this.KeyX;
}
} else {
_local2 = this.speed;
}
if (_local2 > 0) {
if (((root.MapMC[_local3]._x + root.MapMC._x) <= root.ChengePlayerXY()._X) and ((root.MapMC[_local3]._x + root.MapMC._x) >= 0)) {
this.HitMC_T = root.MapMC[_local3].MapL;
}
} else if ((((root.MapMC[_local3]._x + root.MapMC._x) + 550) >= root.ChengePlayerXY()._X) and ((root.MapMC[_local3]._x + root.MapMC._x) <= 0)) {
this.HitMC_T = root.MapMC[_local3].MapL;
}
}
};
}
function StartMove(Body) {
Body.Sp_ZT = "Run";
Body.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (this.Sp_ZT == "dead") {
return(undefined);
}
if ((!root.gameEMC.sceneEMCA.hitTest(root.ChengePlayerXY()._X, root.ChengePlayerXY()._Y - 60, true)) and (root.ChengePlayerXY()._Y > 200)) {
root.gamestartforframe();
}
if (this.PlayerStartTime > 0) {
this.PlayerStartTime--;
this._alpha = ((this.PlayerStartTime % 5) + 1) * 20;
} else if (!this.attack) {
this.attack = true;
this._alpha = 100;
}
this.check_hit();
if (this.Sp_ZT == "Run") {
this.Jump_x = 0;
root.key_listener();
if (root.combo_num != 0) {
root.combo_num = 0;
}
if (this.speed == 0) {
if (!root.playershootZT) {
Body.mc.gotoAndStop("stop");
}
} else if ((((this.speed != root.playmovespeed) and (this.speed != (-root.playmovespeed))) and (!root.runable)) and (Math.abs(this.speed) > 1)) {
if (!root.playershootZT) {
Body.mc.gotoAndStop("Slowdown");
}
} else if (!root.playershootZT) {
Body.mc.gotoAndStop("Run");
if (Math.abs(this.speed) > 6) {
if ((Body.mc.BodyMC._currentframe + 1) < Body.mc.BodyMC._totalframes) {
Body.mc.BodyMC.gotoAndPlay(Body.mc.BodyMC._currentframe + 1);
} else {
Body.mc.BodyMC.gotoAndPlay(1);
}
}
}
if (root.wind) {
this.speed = this.speed - 1;
}
this.MoveBody(this.speed);
root.MoveAll();
} else if (this.Sp_ZT == "Jump") {
if (this.Jump_y > 0) {
if (!root.playershootZT) {
Body.mc.gotoAndStop("Down");
}
} else if (!root.playershootZT) {
Body.mc.gotoAndStop("Up");
}
root.key_listener();
if (!this.Jump_AddRotation) {
if (this._rotation != 0) {
if (this._rotation >= 5) {
this._rotation = this._rotation - 5;
} else if ((this._rotation < 5) and (this._rotation > -5)) {
this._rotation = 0;
} else {
this._rotation = this._rotation + 5;
}
}
} else {
this._rotation = this._rotation + this.Jump_AddRotation;
}
if ((root.ChengePlayerXY()._X < 10) and (this.KeyX <= 0)) {
this.Jump_x = 0;
this.KeyX = 0;
}
var _local2;
if (this.Jump_x != 0) {
_local2 = this.Jump_x;
} else {
_local2 = this.KeyX;
}
if (this.KeyX > 0) {
this._xscale = 100;
} else if (this.KeyX < 0) {
this._xscale = -100;
}
this.Jump_y = this.Jump_y + this.Jump_AddSpeed;
if (this.Jump_y > this.MaxJumpY) {
this.Jump_y = this.MaxJumpY;
}
this._y = this._y + this.Jump_y;
if ((root.ChengePlayerXY()._X < 10) and (_local2 < 0)) {
_local2 = 0;
}
this.CheakJump(_local2);
root.MoveAll(this.Jump_x);
} else if (this.Sp_ZT == "Drop") {
if (this.Dorp_y > this.MaxSpeed) {
this.Dorp_y = this.MaxSpeed;
}
if (this._rotation != 0) {
if (this._rotation >= 5) {
this._rotation = this._rotation - 5;
} else if ((this._rotation < 5) and (this._rotation > -5)) {
this._rotation = 0;
} else {
this._rotation = this._rotation + 5;
}
}
if (root.ChengePlayerXY()._X < 10) {
this.Dorp_x = 0;
}
this.Dorp_y = this.Dorp_y + this.Jump_AddSpeed;
if (this.Dorp_y > this.MaxJumpY) {
this.Dorp_y = this.MaxJumpY;
}
this._x = this._x + this.Dorp_x;
this._y = this._y + this.Dorp_y;
root.MoveAll(this.Dorp_x);
this.CheakJump();
}
};
}
function PlayerShoot() {
if (ShootZT) {
return(undefined);
}
play_soundAction("shootball");
AttackBody.mc.gotoAndStop("shoot");
playershootZT = true;
if (ballA > 0) {
ShootMC = EnemyPath.attachMovie("ball", "ball" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth());
ShootMC._x = (-EnemyPath._x) + root.ChengePlayerXY()._X;
ShootMC._y = ((-EnemyPath._y) + root.ChengePlayerXY()._Y) - 40;
ShootZT = true;
if (AttackBody._xscale > 0) {
ShootMC.SpeedX = 12;
ShootMC._x = ShootMC._x + 28;
} else {
ShootMC.SpeedX = -12;
ShootMC._x = ShootMC._x - 28;
}
ShootMC.SpeedY = 0;
ShootMC.Hit = 0;
ShootMC.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
this._x = this._x + this.SpeedX;
this._y = this._y + this.SpeedY;
this.SpeedY = this.SpeedY + 1.8;
for (var _local2 in root.EnemyPath) {
if ((_local2 != this._name) and root.EnemyPath[_local2].Hit.hitTest(this._x + root.EnemyPath._x, this._y + root.EnemyPath._y, true)) {
root.EnemyPath[_local2].moveable = false;
if (root.EnemyPath[_local2].mc_name == "bugbear_L6") {
root.EnemyPath[_local2].gotoAndStop("shrink");
root.EnemyPath[_local2].mc.gotoAndPlay(1);
root.ShootZT = false;
ShootMC = undefined;
this.removeMovieClip();
} else {
root.EnemyPath[_local2].life--;
if ((!root.EnemyPath[_local2].life) > 0) {
root.EnemyPath[_local2].gotoAndPlay("dead");
root.ShootZT = false;
ShootMC = undefined;
this.removeMovieClip();
} else {
root.ShootZT = false;
ShootMC = undefined;
root.EnemyPath[_local2].suffer = 2;
root.BoosSuffer(root.EnemyPath[_local2]);
this.removeMovieClip();
}
}
}
if (root.BossMC and root.EnemyPath[_local2].Hit_a.hitTest(this._x + root.EnemyPath._x, this._y + root.EnemyPath._y, true)) {
this.SpeedX = this.SpeedX * -1;
}
}
for (var _local3 in root.MapMC) {
if (root.MapMC[_local3].MapL.hitTest(this._x + root.EnemyPath._x, this._y + root.EnemyPath._y, true)) {
if (this.Hit >= 2) {
root.ShootZT = false;
this.removeMovieClip();
ShootMC = undefined;
}
if (this.SpeedY != -14) {
this.SpeedY = -14;
}
this.Hit++;
return(undefined);
}
}
if ((((this._x + root.EnemyPath._x) > 550) or ((this._x + root.EnemyPath._x) < -10)) or ((this._y + root.EnemyPath._y) > 380)) {
root.ShootZT = false;
this.removeMovieClip();
}
this.Hit = 0;
};
} else if (ballB > 0) {
ShootMC.removeMovieClip();
ShootMC = EnemyPath.attachMovie("ball2", "ball" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth());
ShootMC.gotoAndStop("move");
ShootMC._x = (-EnemyPath._x) + root.ChengePlayerXY()._X;
ShootMC._y = ((-EnemyPath._y) + root.ChengePlayerXY()._Y) - 40;
ShootZT = true;
if (AttackBody._xscale > 0) {
ShootMC.SpeedX = 16;
ShootMC._x = ShootMC._x + 28;
} else {
ShootMC.SpeedX = -16;
ShootMC._x = ShootMC._x - 28;
}
ShootMC.SpeedY = -6;
ShootMC.Hit = 0;
ShootMC.burnt_time = 40;
ShootMC.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
this._x = this._x + this.SpeedX;
this._y = this._y + this.SpeedY;
for (var _local2 in root.EnemyPath) {
if ((_local2 != this._name) and root.EnemyPath[_local2].Hit.hitTest(this.Hit_a)) {
root.EnemyPath[_local2].moveable = false;
if (root.EnemyPath[_local2].mc_name == "bugbear_L6") {
root.EnemyPath[_local2].gotoAndStop("shrink");
root.EnemyPath[_local2].mc.gotoAndPlay(1);
root.ShootZT = false;
ShootMC = undefined;
this.removeMovieClip();
} else {
root.EnemyPath[_local2].life--;
if ((!root.EnemyPath[_local2].life) > 0) {
root.play_soundAction("shootbody");
root.EnemyPath[_local2].gotoAndPlay("dead2");
root.ShootZT = false;
ShootMC = undefined;
this.removeMovieClip();
} else {
root.ShootZT = false;
ShootMC = undefined;
root.EnemyPath[_local2].suffer = 2;
root.BoosSuffer(root.EnemyPath[_local2]);
this.removeMovieClip();
}
}
}
if (((_local2 != this._name) and root.BossMC) and root.EnemyPath[_local2].Hit_a.hitTest(this._x + root.EnemyPath._x, this._y + root.EnemyPath._y, true)) {
this.SpeedX = this.SpeedX * -1;
}
}
if (this.SpeedX != 0) {
this.SpeedY = this.SpeedY + 1.8;
for (var _local3 in root.MapMC) {
if (root.MapMC[_local3].MapL.hitTest(this._x + root.EnemyPath._x, this._y + root.EnemyPath._y, true)) {
if (this.Hit >= 2) {
root.ShootZT = false;
this.removeMovieClip();
ShootMC = undefined;
}
if (this.SpeedY != -14) {
this.SpeedY = 0;
this.SpeedX = 0;
root.ShootZT = false;
this.gotoAndStop("stoped");
}
this.Hit++;
return(undefined);
}
}
} else {
this.burnt_time--;
}
if ((((((this._x + root.EnemyPath._x) > 550) or ((this._x + root.EnemyPath._x) < -10)) or ((this._y + root.EnemyPath._y) > 380)) or ((this._x + root.EnemyPath._x) < -10)) or (this.burnt_time <= 0)) {
root.ShootZT = false;
this.removeMovieClip();
}
this.Hit = 0;
};
}
}
function play_soundAction(what, cyc, time) {
if (this[what] == undefined) {
this[what] = new Sound();
this[what].attachSound(what);
}
if (game_sounds) {
if (!cyc) {
this[what].stop(what);
if (time != undefined) {
this[what].start(time, 1);
} else {
this[what].start();
}
} else {
this[what].start(0, 999);
}
}
}
function stop_soundAction(what) {
this[what].stop(what);
}
function play_music(what, cyc) {
if (this[what] == undefined) {
this[what] = new Sound();
this[what].attachSound(what);
}
if (game_music) {
if (now_music != what) {
now_music = what;
stopAllSounds();
if (!cyc) {
this[what].start();
} else {
this[what].start(0, 999);
}
}
}
}
function AttachBarBody(mc_name, start_x, start_y) {
var _local2 = EnemyPath.attachMovie(mc_name, "enemybody" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:start_x, _y:start_y});
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (this.Hit.hitTest(AttackBody)) {
root.HitFunction3();
}
if ((this._parent._x + this._x) < -50) {
this.removeMovieClip();
}
};
}
function checksuffer(who) {
if (who.suffer >= 0) {
who.suffer--;
if (who.suffer == 0) {
root.BoosSuffer(who, true);
who.moveable = true;
who.suffer = undefined;
}
}
}
function AttachLandBody(mc_name, start_x, start_y, speed, move_time, start_time, circumgyrate, dofunction, life) {
var te_mc = EnemyPath.attachMovie(mc_name, "enemybody" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:start_x, _y:start_y});
te_mc.mc_name = mc_name;
te_mc.life = life;
te_mc.speed = speed;
te_mc.total_time = move_time;
te_mc.accumulative_time = start_time;
te_mc.thisRotatiom = 0;
te_mc.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
root.checksuffer(this);
if ((this.total_time == 0) and (this.sp_zt != "jump")) {
npc_move(this, -this.speed, true);
} else if (this.sp_zt != "jump") {
if ((this.moveable == true) or (this.moveable == undefined)) {
if (this.accumulative_time > 0) {
npc_move(this, -this.speed, circumgyrate);
} else if (this.accumulative_time < 0) {
npc_move(this, this.speed, circumgyrate);
}
te_mc.accumulative_time--;
if (te_mc.accumulative_time < (-te_mc.total_time)) {
te_mc.accumulative_time = te_mc.total_time;
}
}
}
if (this.Hit.hitTest(AttackBody)) {
if (((AttackBody.Sp_ZT == "Jump") and (AttackBody.Jump_y > 0)) and (this._y > AttackBody._y)) {
if (AttackBody.jump_attack) {
ComboFunciton(this);
AttackBody.Jump_y = -20;
AttackBody._y = AttackBody._y + AttackBody.Jump_y;
if (root.playerbody_no == 1) {
root.play_soundAction("iceboom");
this.gotoAndPlay("dead");
} else if (root.playerbody_no == 2) {
root.play_soundAction("fireboom");
this.gotoAndPlay("dead2");
}
delete this.onEnterFrame;
}
} else if ((this.sp_zt2 == "run") or (this.sp_zt2 == undefined)) {
root[dofunction](this);
} else if (this.sp_zt2 == "shrink") {
this.total_time = 0;
this.moveable = undefined;
this.mc.gotoAndStop(5);
if (this._x > root.AttackBody._x) {
this.speed = -12;
} else {
this.speed = 12;
}
}
}
if (((this._parent._x + this._x) < -150) or ((this._parent._y + this._y) > 400)) {
this.removeMovieClip();
}
};
}
function AttachSkyBody(mc_name, start_x, start_y, speedx, move_time1, start_time1, speedy, move_time2, start_time2, dofunction, life) {
var te_mc = EnemyPath.attachMovie(mc_name, "enemybody" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:start_x, _y:start_y});
te_mc.total_time1 = move_time1;
te_mc.accumulative_time1 = start_time1;
te_mc.total_time2 = move_time2;
te_mc.accumulative_time2 = start_time2;
te_mc.thisRotatiom = 0;
te_mc.life = life;
if (root.BossMC) {
root.AttachSnow2(te_mc);
}
te_mc.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
root.checksuffer(this);
if (this.moveable2 == false) {
this._alpha = 98;
this._x = this._x + BossMC.MoveSpeed;
BoosSuffer(this, false);
return(undefined);
}
if (!(this._alpha === 100)) {
BoosSuffer(this, true);
this._alpha = 100;
}
if (this.total_time == 0) {
npc_move(this, -this.speed, circumgyrate);
} else {
if (this.accumulative_time1 > 0) {
this._x = this._x + speedx;
} else if (this.accumulative_time1 < 0) {
this._x = this._x - speedx;
}
te_mc.accumulative_time1--;
if (te_mc.accumulative_time1 < (-te_mc.total_time1)) {
te_mc.accumulative_time1 = te_mc.total_time1;
}
if (this.accumulative_time2 > 0) {
this._y = this._y + speedy;
} else if (this.accumulative_time2 < 0) {
this._y = this._y - speedy;
}
te_mc.accumulative_time2--;
if (te_mc.accumulative_time2 < (-te_mc.total_time2)) {
te_mc.accumulative_time2 = te_mc.total_time2;
}
}
if (this.Hit.hitTest(AttackBody)) {
if (((AttackBody.Sp_ZT == "Jump") and (AttackBody.Jump_y > 0)) and ((this._y + this._parent._y) > root.ChengePlayerXY()._Y)) {
if (AttackBody.jump_attack) {
ComboFunciton(this);
AttackBody._y = AttackBody._y - AttackBody.Jump_y;
AttackBody.Jump_y = -20;
if (BossMC) {
AttackBody.Jump_y = -22;
}
if (AttackBody.Jump_y < -22) {
AttackBody.Jump_y = -22;
}
if (root.playerbody_no == 1) {
root.play_soundAction("iceboom");
this.gotoAndPlay("dead");
} else if (root.playerbody_no == 2) {
root.play_soundAction("fireboom");
this.gotoAndPlay("dead2");
}
delete this.onEnterFrame;
}
} else {
root[dofunction](this);
}
}
if ((this._parent._x + this._x) < -50) {
this.removeMovieClip();
}
};
}
function AttachJumpBody(mc_name, start_x, start_y, speed, move_time, start_time, jumpspeed_x, jumpspeed_y, jumptime, dofunction, life) {
var te_mc = EnemyPath.attachMovie(mc_name, "enemybody" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:start_x, _y:start_y});
te_mc.speed = speed;
te_mc.total_time = move_time;
te_mc.thisRotatiom = 0;
te_mc.accumulative_time = start_time;
te_mc.sp_zt = "run";
te_mc.life = life;
te_mc.total_time_junp = jumptime;
if (root.BossMC) {
root.AttachSnow2(te_mc);
}
te_mc.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
root.checksuffer(this);
if (this.moveable2 == false) {
this._alpha = 98;
this._x = this._x + BossMC.MoveSpeed;
BoosSuffer(this, false);
return(undefined);
}
if (!(this._alpha === 100)) {
BoosSuffer(this, true);
this._alpha = 100;
}
if (this.sp_zt == "run") {
if (this.total_time == 0) {
npc_move(this, -this.speed, circumgyrate);
} else if ((this.moveable == true) or (this.moveable == undefined)) {
if (this.accumulative_time > 0) {
npc_move(this, -this.speed);
} else if (this.accumulative_time < 0) {
npc_move(this, this.speed);
}
te_mc.accumulative_time--;
if (te_mc.accumulative_time < (-te_mc.total_time)) {
te_mc.accumulative_time = te_mc.total_time;
}
}
total_time_junp--;
if (total_time_junp <= 0) {
root.npc_jump(this, jumpspeed_x, jumpspeed_y);
total_time_junp = jumptime;
}
}
if (this.Hit.hitTest(AttackBody)) {
if ((AttackBody.Sp_ZT == "Jump") and (AttackBody.Jump_y > 0)) {
if (AttackBody.jump_attack) {
ComboFunciton(this);
AttackBody.Jump_y = -20;
if (root.playerbody_no == 1) {
root.play_soundAction("iceboom");
this.gotoAndPlay("dead");
} else if (root.playerbody_no == 2) {
root.play_soundAction("fireboom");
this.gotoAndPlay("dead2");
}
delete this.onEnterFrame;
}
} else {
root[dofunction](this);
}
}
if ((this._parent._x + this._x) < -50) {
this.removeMovieClip();
}
};
}
function AttachShootBody(mc_name, start_x, start_y, shoot_time) {
var _local2 = EnemyPath.attachMovie(mc_name, "enemybody" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:start_x, _y:start_y});
_local2.total_time = 1;
_local2.sp_zt = "stand";
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if ((this.sp_zt == "stand") and ((this._parent._x + this._x) < 600)) {
this.total_time--;
if ((this.total_time == 0) and (this._currentframe == 1)) {
this.sp_zt = "shoot";
this.gotoAndPlay("shoot");
this.total_time = shoot_time + random(50);
}
}
if ((this.sp_zt == "shoot") and this.shootable) {
this.sp_zt = "stand";
if (mc_name == "icebody") {
icebody_Shoot(this);
} else {
Flower_Shoot(this);
}
}
if (this.Hit.hitTest(AttackBody)) {
if ((AttackBody.Sp_ZT == "Jump") and (AttackBody.Jump_y > 0)) {
if (AttackBody.jump_attack) {
ComboFunciton(this);
AttackBody.Jump_y = -20;
if (root.playerbody_no == 1) {
root.play_soundAction("iceboom");
this.gotoAndPlay("dead");
} else if (root.playerbody_no == 2) {
root.play_soundAction("fireboom");
this.gotoAndPlay("dead2");
}
delete this.onEnterFrame;
}
} else {
root.HitFunction1();
}
}
if ((this._parent._x + this._x) < -50) {
this.removeMovieClip();
}
};
}
function Flower_Shoot(MC) {
var _local2 = EnemyPath.attachMovie("ball_flower", "ball_flower" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:MC._x - 60, _y:MC._y - 40});
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
this._x = this._x - 4;
if (this.hitTest(root.AttackBody) and root.AttackBody.attack) {
root.HitFunction1();
this.removeMovieClip();
}
if (root.hit_map_mc(this).hitTest(this._x + this._parent._x, this._y + this._parent._y, true)) {
this.removeMovieClip();
}
};
}
function icebody_Shoot(MC) {
var _local2 = EnemyPath.attachMovie("iceball", "iceball" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:MC._x, _y:MC._y - 40});
_local2.sp_zt = "still";
_local2.movespeed = -4;
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (this.sp_zt == "still") {
root.npc_jump(this, this.movespeed, 0);
} else if (this.sp_zt == "run") {
root.npc_move(this, this.movespeed, true);
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
}
if (this.hitTest(root.AttackBody) and root.AttackBody.attack) {
root.HitFunction1();
}
if (((this._x + this._parent._x) < -50) or ((this._y + this._parent._y) > 400)) {
this.removeMovieClip();
}
};
}
function HitFunction1() {
if (AttackBody.attack) {
root.AttackBody.MoveDead();
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -6;
root.AttackBody.Jump_x = 0;
AttackBody.jump_attack = false;
}
}
function HitFunction2(body) {
delete body.onEnterFrame;
body.gotoAndStop("ropy");
var teY = 1;
var RopyTime = 100;
root.play_soundAction("slm");
body.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (this.Hit.hitTest(AttackBody) and AttackBody.attack) {
root.AttackBody.speed = 0;
root.AttackBody._x = root.AttackBody._x + teY;
teY = teY * -1;
root.KeyAbled = false;
} else {
root.KeyAbled = true;
}
RopyTime--;
if (RopyTime <= 0) {
root.KeyAbled = true;
this.removeMovieClip();
}
};
}
function HitFunction3() {
if (AttackBody.attack) {
root.AttackBody.MoveDead();
if (root.AttackBody.Sp_ZT == "Jump") {
root.AttackBody.Jump_x = 6;
} else {
root.AttackBody.Jump_x = -10;
root.AttackBody.Sp_ZT = "Jump";
}
root.AttackBody.Jump_y = -6;
AttackBody.jump_attack = false;
} else {
if (root.AttackBody.Sp_ZT == "Jump") {
root.AttackBody.Jump_x = 6;
} else {
root.AttackBody.Jump_x = -10;
}
root.AttackBody.Jump_y = -6;
root.AttackBody.Sp_ZT = "Jump";
}
}
function AttachAward(type, place_x, place_y, drop) {
var _local2 = EnemyPath.attachMovie("award", "award" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y});
_local2.gotoAndStop(type);
if (drop) {
npc_jump(_local2, (random(100) - 70) / 10, ((-random(150)) / 10) - 4);
}
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (this.sp_zt == "run") {
this._y = this._y - 30;
this.sp_zt = undefined;
}
if (this.hitTest(root.AttackBody)) {
root.play_soundAction("upgrade");
if (type == 1) {
GetScore(500);
GetAwardScore(500, this._x + root.EnemyPath._x, this._y + root.EnemyPath._y);
} else if (type == 2) {
GetAwardScore(100, this._x + root.EnemyPath._x, this._y + root.EnemyPath._y);
GetScore(100);
} else if (type == 3) {
root.jump_power = 22;
} else if (type == 4) {
root.jump_power = 24;
} else if (type == 5) {
if (root.shoot_power < 5) {
root.shoot_power = root.shoot_power + 1;
} else {
GetAwardScore(300, this._x + root.EnemyPath._x, this._y + root.EnemyPath._y);
}
} else if (type == 6) {
if (root.life < 8) {
root.life = root.life + 1;
root.UI.LifeDisplay.gotoAndStop(root.life + ((root.playerbody_no - 1) * 8));
} else {
GetScore(200);
GetAwardScore(200, this._x + root.EnemyPath._x, this._y + root.EnemyPath._y);
}
}
this.removeMovieClip();
}
if ((this._parent._x + this._x) < -50) {
this.removeMovieClip();
}
};
}
function jumpobject(bobyname, place_x, place_y, jump_y, jump_x) {
var _local3 = EnemyPath.attachMovie(bobyname, bobyname + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y});
_local3.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
var _local2 = ChengePlayerXY();
if (this.hitTest(_local2._X, _local2._Y, false) and (AttackBody.Sp_ZT != "Jump")) {
AttackBody.Sp_ZT = "Jump";
root.play_soundAction("jump2");
this.play();
if (jump_x) {
AttackBody.Jump_x = jump_x;
}
AttackBody.Jump_y = jump_y;
}
if ((root.EnemyPath._x + this._x) < -60) {
this.removeMovieClip();
}
};
}
function MoveWater1(place_x, place_y) {
var _local2 = EnemyPath.attachMovie("billow", "billow" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y});
var te_landmc = newmap.attachMovie("billowland", "billow" + newmap.getNextHighestDepth(), newmap.getNextHighestDepth(), {_x:place_x - (newmap._x + newmap._parent._x), _y:place_y - (newmap._y + newmap._parent._y)});
var swingtimeL = 0;
var movespeed = 0.4;
var tespeed = (newmap._y + newmap._parent._y);
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
swingtimeL++;
if (swingtimeL == 20) {
movespeed = movespeed * -1;
swingtimeL = 0;
}
this._y = this._y + movespeed;
te_landmc._y = this._y - tespeed;
if (this.hitTest(root.ChengePlayerXY()._X, root.ChengePlayerXY()._Y + 4, false) and (root.AttackBody.Jump_y >= 0)) {
if (root.AttackBody._y > (this._y + 30)) {
root.AttackBody.Jump_y = 0;
root.AttackBody.Jump_x = 0;
root.AttackBody._y = root.AttackBody._y - 2;
} else {
root.AttackBody._y = this._y;
root.AttackBody.Sp_ZT = "Run";
}
}
if ((root.EnemyPath._x + this._x) < -60) {
this.removeMovieClip();
}
};
}
function MoveWater2(place_x, place_y, speed, time) {
var _local2 = EnemyPath.attachMovie("billow", "billow" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y});
var te_landmc = newmap.attachMovie("billowland", "billow" + newmap.getNextHighestDepth(), newmap.getNextHighestDepth(), {_x:place_x - (newmap._x + newmap._parent._x), _y:place_y - (newmap._y + newmap._parent._y)});
var swingtimeL = 0;
var movespeed = speed;
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
swingtimeL++;
if (swingtimeL == time) {
movespeed = movespeed * -1;
swingtimeL = 0;
}
this._x = this._x + movespeed;
te_landmc._x = te_landmc._x + movespeed;
if ((this.hitTest(root.ChengePlayerXY()._X, root.ChengePlayerXY()._Y + 4, false) and (root.AttackBody.Jump_y >= 0)) and (root.AttackBody._y < (this._y + 30))) {
root.AttackBody._x = root.AttackBody._x + movespeed;
root.AttackBody._y = this._y;
root.AttackBody.Sp_ZT = "Run";
}
};
if ((root.EnemyPath._x + this._x) < -60) {
this.removeMovieClip();
}
}
function MoveWater3(place_x, place_y) {
var _local2 = EnemyPath.attachMovie("billow", "billow" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y});
var te_landmc = newmap.attachMovie("billowland", "billow" + newmap.getNextHighestDepth(), newmap.getNextHighestDepth(), {_x:place_x - (newmap._x + newmap._parent._x), _y:place_y - (newmap._y + newmap._parent._y)});
_local2.sp_zt = 1;
_local2.start_y = _local2._y;
_local2.shootlong = 60;
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (this.hitTest(root.ChengePlayerXY()._X, root.ChengePlayerXY()._Y + 4, false) and (root.ChengePlayerXY()._Y < (this._y + 50))) {
if (this.sp_zt == 1) {
this.sp_zt = 2;
root.AttackBody._y = this._y;
root.AttackBody.Sp_ZT = "Run";
}
}
if (this.sp_zt == 2) {
this._y = this._y - 20;
root.AttackBody._y = root.AttackBody._y - 20;
te_landmc._y = te_landmc._y - 20;
if (this._y < (this.start_y - this.shootlong)) {
this.sp_zt = 3;
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -21;
root.AttackBody.KeyX = 0;
}
} else if (this.sp_zt == 3) {
this._y = this._y + 10;
te_landmc._y = te_landmc._y + 10;
if (this._y > this.start_y) {
this.sp_zt = 1;
te_landmc._y = te_landmc._y + (this.start_y - this._y);
this._y = this.start_y;
}
}
if ((root.EnemyPath._x + this._x) < -60) {
this.removeMovieClip();
}
};
}
function waterballMC(place_x, place_y) {
water_ball = EnemyPath.attachMovie("waterball", "waterball" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y});
water_ball.sp_zt = "still";
water_ball.mc.gotoAndStop(1);
var move_x = 6.5;
var _local2 = 0;
water_ball.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if ((this._x < (root.AttackBody._x - 100)) and (this.sp_zt == "still")) {
this.sp_zt = "Jump";
}
if (this.sp_zt == "run") {
root.npc_move(this, move_x, true);
if ((this._x > (root.stopballMC._x + root.stopballMC._parent._x)) and (move_x > -6)) {
move_x = move_x - 0.4;
}
} else if (this.sp_zt == "Jump") {
this.mc.play();
root.npc_jump(this, 0, 0);
}
if (this.Hit.hitTest(root.AttackBody) and root.AttackBody.attack) {
root.HitFunction1();
}
};
}
function passmarkerMC(place_x, place_y) {
var _local2 = EnemyPath.attachMovie("passmarker", "passmarker" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y});
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (this.hitTest(AttackBody)) {
root.gamepass1();
this.removeMovieClip();
}
};
}
function eddyluntMC(bodyname, place_x, place_y, angle) {
var add_angle = angle;
var _local3 = EnemyPath.attachMovie(bodyname, bodyname + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y});
var _local2 = 1;
while (_local2 < 7) {
_local3["lunt" + _local2].angle = 0;
_local3["lunt" + _local2].startplace = _local3["lunt" + _local2]._y;
_local2++;
}
_local3.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
var _local2 = 1;
while (_local2 < 7) {
this["lunt" + _local2].angle = this["lunt" + _local2].angle + add_angle;
this["lunt" + _local2].angle = this["lunt" + _local2].angle % 360;
this["lunt" + _local2]._x = this["lunt" + _local2].startplace * Math.sin(this["lunt" + _local2].angle / 57.29578);
this["lunt" + _local2]._y = this["lunt" + _local2].startplace * Math.cos(this["lunt" + _local2].angle / 57.29578);
if (this["lunt" + _local2].hitTest(root.AttackBody) and root.AttackBody.attack) {
root.HitFunction1();
}
_local2++;
}
if ((root.EnemyPath._x + this._x) < -260) {
this.removeMovieClip();
}
};
}
function dorplandMC(bodyname, place_x, place_y) {
var _local2 = EnemyPath.attachMovie(bodyname, bodyname + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y});
var te_landmc = newmap.attachMovie(bodyname, bodyname + newmap.getNextHighestDepth(), newmap.getNextHighestDepth(), {_x:place_x - (newmap._x + newmap._parent._x), _y:place_y - (newmap._y + newmap._parent._y)});
_local2.sp_zt = "still";
_local2.dorptime = 10;
_local2.dorp_y = 0;
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if ((this.hitTest(root.ChengePlayerXY()._X, root.ChengePlayerXY()._Y + 4, false) and (root.AttackBody.Jump_y >= 0)) and (this.sp_zt == "still")) {
root.AttackBody._y = this._y;
root.AttackBody.Sp_ZT = "Run";
this.sp_zt = "dorp";
}
if (this.sp_zt == "dorp") {
this.dorptime--;
if ((this.dorptime > 0) and (this.dorptime < 40)) {
this._rotation = random(10) - 5;
} else if (this.dorptime < 0) {
this._rotation = 0;
this.sp_zt = "dorped";
}
} else if (this.sp_zt == "dorped") {
if (this.dorp_y < 21) {
this.dorp_y = this.dorp_y + 1.2;
}
this._y = this._y + this.dorp_y;
te_landmc._y = te_landmc._y + this.dorp_y;
}
if (((root.EnemyPath._x + this._x) < -60) or ((root.EnemyPath._y + this._y) > 450)) {
this.removeMovieClip();
}
};
}
function MoveLandMC(bodyname, place_x, place_y, speed, time) {
var _local3 = EnemyPath.attachMovie(bodyname, bodyname + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y});
var te_landmc = newmap.attachMovie(bodyname, bodyname + newmap.getNextHighestDepth(), newmap.getNextHighestDepth(), {_x:place_x - (newmap._x + newmap._parent._x), _y:place_y - (newmap._y + newmap._parent._y)});
var swingtimeL = 0;
var movespeed = speed;
_local3.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
swingtimeL++;
if (swingtimeL == time) {
movespeed = movespeed * -1;
swingtimeL = 0;
}
this._x = this._x + movespeed;
te_landmc._x = te_landmc._x + movespeed;
if (this.hitTest(root.ChengePlayerXY()._X, root.ChengePlayerXY()._Y + 4, false) and (root.AttackBody.Jump_y >= 0)) {
root.AttackBody._x = root.AttackBody._x + movespeed;
root.AttackBody._y = this._y;
root.AttackBody.Sp_ZT = "Run";
}
if ((root.EnemyPath._x + this._x) < -60) {
this.removeMovieClip();
}
};
}
function MoveLandMC2(place_x, place_y) {
var _local2 = EnemyPath.attachMovie("foliage", "foliage" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y});
var _local3 = newmap.attachMovie("foliageland", "foliageland" + newmap.getNextHighestDepth(), newmap.getNextHighestDepth(), {_x:place_x - (newmap._x + newmap._parent._x), _y:place_y - (newmap._y + newmap._parent._y)});
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
this.gotoAndStop(1);
if (this.hitTest(root.ChengePlayerXY()._X, root.ChengePlayerXY()._Y + 4, false) and (root.AttackBody.Jump_y >= 0)) {
root.AttackBody._y = this._y;
this.gotoAndStop(2);
root.AttackBody.Sp_ZT = "Run";
}
if ((root.EnemyPath._x + this._x) < -60) {
this.removeMovieClip();
}
};
}
function NPC2_1(mc_name, start_x, start_y, speed, move_time, start_time, dofunction, life) {
var te_mc = EnemyPath.attachMovie(mc_name, "enemybody" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:start_x, _y:start_y});
te_mc.mc_name = mc_name;
te_mc.life = life;
te_mc.speed = speed;
te_mc.total_time = move_time;
te_mc.accumulative_time = start_time;
te_mc.thisRotatiom = 0;
te_mc.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (this.suffer >= 0) {
this.suffer--;
if (this.suffer == 0) {
root.BoosSuffer(this, true);
this.moveable = true;
this.suffer = undefined;
}
}
if (this.total_time == 0) {
npc_move(this, -this.speed, circumgyrate);
} else if ((this.moveable == true) or (this.moveable == undefined)) {
if (this.accumulative_time > 0) {
npc_move(this, -this.speed, circumgyrate);
} else if (this.accumulative_time < 0) {
npc_move(this, this.speed, circumgyrate);
}
te_mc.accumulative_time--;
if (te_mc.accumulative_time < (-te_mc.total_time)) {
te_mc.accumulative_time = te_mc.total_time;
}
}
if (this.Hit.hitTest(AttackBody)) {
root[dofunction](this);
}
if ((this._parent._x + this._x) < -150) {
this.removeMovieClip();
}
};
}
function NPC2_2(mc_name, start_x, start_y, speed, move_time, start_time, rool_start_time, rool_time, dofunction, life) {
var te_mc = EnemyPath.attachMovie(mc_name, "enemybody" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:start_x, _y:start_y});
te_mc.speed = speed;
te_mc.total_time = move_time;
te_mc.thisRotatiom = 0;
te_mc.accumulative_time = start_time;
te_mc.total_time_roll = rool_start_time + rool_time;
te_mc.addspeed = 1;
te_mc.sp_zt = "run";
if (!life) {
te_mc.life = 5;
} else {
te_mc.life = life;
}
te_mc.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
root.checksuffer(this);
if (sp_zt == "jump") {
} else {
total_time_roll--;
if (total_time_roll <= rool_time) {
this.addspeed = 2;
if (this.accumulative_time > 0) {
npc_move(this, (-this.speed) * this.addspeed);
} else if (this.accumulative_time < 0) {
npc_move(this, this.speed * this.addspeed);
}
this.Body._rotation = this.Body._rotation - (10 * Math.abs(this.speed));
}
if (total_time_roll <= 0) {
this.addspeed = 1;
this.Body._rotation = 0;
total_time_roll = rool_start_time + rool_time;
}
if (this.total_time == 0) {
npc_move(this, (-this.speed) * this.addspeed);
this.Body._rotation = this.Body._rotation - (3 * Math.abs(this.speed));
} else if ((this.moveable == true) or (this.moveable == undefined)) {
if (this.accumulative_time > 0) {
npc_move(this, (-this.speed) * this.addspeed);
} else if (this.accumulative_time < 0) {
npc_move(this, this.speed * this.addspeed);
}
this.Body._rotation = this.Body._rotation - (3 * Math.abs(this.speed));
te_mc.accumulative_time--;
if (te_mc.accumulative_time < (-te_mc.total_time)) {
te_mc.accumulative_time = te_mc.total_time;
}
}
}
if (this.Hit.hitTest(AttackBody)) {
if (((AttackBody.Sp_ZT == "Jump") and (AttackBody.Jump_y > 0)) and (this.life <= 5)) {
if (AttackBody.jump_attack) {
ComboFunciton(this);
AttackBody.Jump_y = -20;
if (root.playerbody_no == 1) {
root.play_soundAction("iceboom");
this.gotoAndPlay("dead");
} else if (root.playerbody_no == 2) {
root.play_soundAction("fireboom");
this.gotoAndPlay("dead2");
}
delete this.onEnterFrame;
}
} else {
root[dofunction](this);
}
}
if ((this._parent._x + this._x) < -50) {
this.removeMovieClip();
}
};
}
function NPC2_3(mc_name, start_x, start_y, speed, move_time, start_time, jumpspeed_x, jumpspeed_y, jumptime, dofunction, life) {
var te_mc = EnemyPath.attachMovie(mc_name, "enemybody" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:start_x, _y:start_y});
te_mc.speed = speed;
te_mc.total_time = move_time;
te_mc.thisRotatiom = 0;
te_mc.accumulative_time = start_time;
te_mc.sp_zt = "run";
te_mc.life = life;
te_mc.total_time_junp = jumptime;
if (root.BossMC) {
root.AttachSnow2(te_mc);
}
te_mc.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
root.checksuffer(this);
if (this.moveable2 == false) {
this._alpha = 98;
this._x = this._x + BossMC.MoveSpeed;
BoosSuffer(this, false);
return(undefined);
}
if (!(this._alpha === 100)) {
BoosSuffer(this, true);
this._alpha = 100;
}
if (this.sp_zt == "run") {
if (this.total_time == 0) {
npc_move(this, -this.speed, circumgyrate);
} else if ((this.moveable == true) or (this.moveable == undefined)) {
if (this.accumulative_time > 0) {
npc_move(this, -this.speed);
} else if (this.accumulative_time < 0) {
npc_move(this, this.speed);
}
te_mc.accumulative_time--;
if (te_mc.accumulative_time < (-te_mc.total_time)) {
te_mc.accumulative_time = te_mc.total_time;
}
}
total_time_junp--;
if (total_time_junp <= 0) {
root.npc_jump(this, jumpspeed_x, jumpspeed_y);
total_time_junp = jumptime;
}
}
if (this.Hit.hitTest(AttackBody)) {
root[dofunction](this);
}
if ((this._parent._x + this._x) < -50) {
this.removeMovieClip();
}
};
}
function NPC2_4(start_x, start_y) {
var _local2 = EnemyPath.attachMovie("fire", "enemybody" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:start_x, _y:start_y});
_local2.shoottime = 100;
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
this.shoottime--;
if ((this.shoottime < 40) and (random(10) == 0)) {
root.shootfire(this);
}
if (this.shoottime == 0) {
this.shoottime = 100;
}
if ((this._parent._x + this._x) < -50) {
this.removeMovieClip();
}
};
}
function shootfire(who) {
var _local2 = EnemyPath.attachMovie("fireball", "enemybody" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:who._x, _y:who._y});
_local2.speed_x = (random(40) / 10) - 2;
_local2.speed_y = -(random(6) + 14);
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
this._y = this._y + this.speed_y;
this._x = this._x + this.speed_x;
this.speed_y = this.speed_y + 0.8;
if (this.hitTest(root.AttackBody)) {
root.HitFunction1();
}
if (((this._parent._x + this._x) < -50) or (this._y > who._y)) {
this.removeMovieClip();
}
};
}
function dropbrierMC(place_x, place_y, speed, droptime, strattime) {
var _local2 = EnemyPath.attachMovie("dropbrier", "dropbrier" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y});
_local2.movespeed = speed;
_local2.timetatol = strattime;
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
this.timetatol--;
if (this.timetatol < 0) {
this.movespeed = -speed;
} else if (this.timetatol > 0) {
this.movespeed = speed;
}
if (this.timetatol == (-droptime)) {
this.timetatol = droptime;
}
this._y = this._y + this.movespeed;
if (this.Hit.hitTest(root.AttackBody)) {
root.HitFunction1();
}
if ((this._parent._x + this._x) < -50) {
this.removeMovieClip();
}
};
}
function turnland(start_x, start_y, speed) {
var _local3 = EnemyPath.attachMovie("cane", "enemybody" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:start_x, _y:start_y});
_local3.te_mc1 = _local3.attachMovie("land3", "cane" + _local3.getNextHighestDepth(), _local3.getNextHighestDepth(), {_x:100, _y:0});
_local3.te_landmc1 = newmap.attachMovie("land3", "dropland2" + newmap.getNextHighestDepth(), newmap.getNextHighestDepth(), {_x:(start_x + 100) - (newmap._x + newmap._parent._x), _y:start_y - (newmap._y + newmap._parent._y)});
_local3.te_mc2 = _local3.attachMovie("land3", "cane" + _local3.getNextHighestDepth(), _local3.getNextHighestDepth(), {_x:0, _y:100});
_local3.te_landmc2 = newmap.attachMovie("land3", "dropland2" + newmap.getNextHighestDepth(), newmap.getNextHighestDepth(), {_x:start_x - (newmap._x + newmap._parent._x), _y:(start_y + 100) - (newmap._y + newmap._parent._y)});
_local3.te_mc3 = _local3.attachMovie("land3", "cane" + _local3.getNextHighestDepth(), _local3.getNextHighestDepth(), {_x:-100, _y:0});
_local3.te_landmc3 = newmap.attachMovie("land3", "dropland2" + newmap.getNextHighestDepth(), newmap.getNextHighestDepth(), {_x:(start_x - 100) - (newmap._x + newmap._parent._x), _y:start_y - (newmap._y + newmap._parent._y)});
_local3.te_mc4 = _local3.attachMovie("land3", "cane" + _local3.getNextHighestDepth(), _local3.getNextHighestDepth(), {_x:0, _y:-100});
_local3.te_landmc4 = newmap.attachMovie("land3", "dropland2" + newmap.getNextHighestDepth(), newmap.getNextHighestDepth(), {_x:start_x - (newmap._x + newmap._parent._x), _y:(start_y - 100) - (newmap._y + newmap._parent._y)});
_local3.te_landmcstart_x = start_x - (newmap._x + newmap._parent._x);
_local3.te_landmcstart_y = start_y - (newmap._y + newmap._parent._y);
startplace = 100;
_local3.te_mc1.angle = 0;
_local3.te_mc2.angle = 90;
_local3.te_mc3.angle = 180;
_local3.te_mc4.angle = 270;
_local3.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
this.mc1._rotation = this.mc1._rotation - speed;
this.mc2._rotation = this.mc2._rotation - speed;
var _local2 = 1;
while (_local2 < 5) {
this["te_mc" + _local2].angle = this["te_mc" + _local2].angle + speed;
this["te_mc" + _local2].angle = this["te_mc" + _local2].angle % 360;
this["te_mc" + _local2].movespeedx = (startplace * Math.sin(this["te_mc" + _local2].angle / 57.29578)) - this["te_mc" + _local2]._x;
this["te_mc" + _local2]._x = startplace * Math.sin(this["te_mc" + _local2].angle / 57.29578);
this["te_mc" + _local2]._y = startplace * Math.cos(this["te_mc" + _local2].angle / 57.29578);
this["te_landmc" + _local2]._x = this["te_mc" + _local2]._x + this.te_landmcstart_x;
this["te_landmc" + _local2]._y = this["te_mc" + _local2]._y + this.te_landmcstart_y;
if (this["te_mc" + _local2].hitTest(root.ChengePlayerXY()._X, root.ChengePlayerXY()._Y + 4, false) and (root.AttackBody.Jump_y >= 0)) {
root.AttackBody._x = root.AttackBody._x + this["te_mc" + _local2].movespeedx;
root.AttackBody._y = this["te_mc" + _local2]._y + this["te_mc" + _local2]._parent._y;
root.AttackBody.Sp_ZT = "Run";
}
_local2++;
}
};
}
function slideland(bodyname, place_x, place_y, speed) {
var te_mc = EnemyPath.attachMovie(bodyname, bodyname + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y});
var te_landmc = newmap.attachMovie(bodyname, bodyname + newmap.getNextHighestDepth(), newmap.getNextHighestDepth(), {_x:place_x - (newmap._x + newmap._parent._x), _y:place_y - (newmap._y + newmap._parent._y)});
te_mc.sp_zt = "still";
te_mc.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if ((this.hitTest(root.ChengePlayerXY()._X, root.ChengePlayerXY()._Y + 4, false) and (root.AttackBody.Jump_y >= 0)) and (this.sp_zt == "still")) {
if (root.AttackBody._y < ((this._y + this._parent._y) + 20)) {
root.AttackBody._y = this._y;
root.AttackBody.Sp_ZT = "Run";
this.sp_zt = "dorped";
} else {
root.AttackBody.Jump_x = -6 * (root.AttackBody._xscale / 100);
}
}
if (!this.hitTest(root.ChengePlayerXY()._X, root.ChengePlayerXY()._Y + 4, false)) {
te_mc.sp_zt = "still";
}
if (this.sp_zt == "dorped") {
this._y = this._y + speed;
te_landmc._y = te_landmc._y + speed;
}
if (((root.EnemyPath._x + this._x) < -60) or ((root.EnemyPath._y + this._y) > 450)) {
this.removeMovieClip();
}
};
}
function AttachSkyBody2(mc_name, start_x, start_y, speedx, life) {
var _local2 = EnemyPath.attachMovie(mc_name, "enemybody" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:start_x, _y:start_y});
_local2.life = life;
var speedy = Math.abs(2 * speedx);
var starty = _local2._y;
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
this._x = this._x + speedx;
if ((Math.abs(this._x - root.AttackBody._x) < 250) and (this._y >= starty)) {
root.checksuffer(this);
this._x = this._x + speedx;
this._y = this._y + speedy;
if ((root.hit_map_mc(this).hitTest(this._x + this._parent._x, (this._y + this._parent._y) + 20, true) or (this._y > root.AttackBody._y)) and (speedy > 0)) {
speedy = speedy * -1;
}
}
if (this.Hit.hitTest(AttackBody)) {
if (((AttackBody.Sp_ZT == "Jump") and (AttackBody.Jump_y > 0)) and ((this._y + this._parent._y) > root.ChengePlayerXY()._Y)) {
if (AttackBody.jump_attack) {
ComboFunciton(this);
AttackBody._y = AttackBody._y - AttackBody.Jump_y;
AttackBody.Jump_y = -AttackBody.Jump_y;
if (BossMC) {
AttackBody.Jump_y = -22;
}
if (AttackBody.Jump_y < -22) {
AttackBody.Jump_y = -22;
}
if (root.playerbody_no == 1) {
root.play_soundAction("iceboom");
this.gotoAndPlay("dead");
} else if (root.playerbody_no == 2) {
root.play_soundAction("fireboom");
this.gotoAndPlay("dead2");
}
delete this.onEnterFrame;
}
} else {
root.HitFunction1();
}
}
if ((this._parent._x + this._x) < -50) {
this.removeMovieClip();
}
};
}
function AttachLandBody3(mc_name, start_x, start_y, speed, move_time, start_time, circumgyrate, dofunction, life) {
var te_mc = EnemyPath.attachMovie(mc_name, "enemybody" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:start_x, _y:start_y});
te_mc.mc_name = mc_name;
te_mc.life = life;
te_mc.speed = speed;
te_mc.total_time = move_time;
te_mc.accumulative_time = start_time;
te_mc.thisRotatiom = 0;
te_mc.sp_zt = "run";
te_mc.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
root.checksuffer(this);
if (this.sp_zt == "jump") {
return(undefined);
}
if (Math.abs(this._x - root.AttackBody._x) < 100) {
if (((this._x > root.AttackBody._x) and (this._xscale == 100)) or ((this._x < root.AttackBody._x) and (this._xscale == -100))) {
this.speed = speed * 4;
}
this.accumulative_time = this.accumulative_time - 3;
} else {
this.speed = speed;
}
if (this.total_time == 0) {
npc_move(this, -this.speed, circumgyrate);
} else if ((this.moveable == true) or (this.moveable == undefined)) {
if (this.accumulative_time > 0) {
npc_move(this, -this.speed, true);
} else if (this.accumulative_time < 0) {
npc_move(this, this.speed, true);
}
te_mc.accumulative_time--;
if (te_mc.accumulative_time < (-te_mc.total_time)) {
te_mc.accumulative_time = te_mc.total_time;
}
}
if (this.Hit.hitTest(AttackBody)) {
if (((AttackBody.Sp_ZT == "Jump") and (AttackBody.Jump_y > 0)) and (this._y > AttackBody._y)) {
if (AttackBody.jump_attack) {
AttackBody.Jump_y = -20;
this.life = this.life - 5;
if (this.life > 0) {
this.suffer = 2;
root.BoosSuffer(this);
} else {
ComboFunciton(this);
AttackBody._y = AttackBody._y + AttackBody.Jump_y;
if (root.playerbody_no == 1) {
root.play_soundAction("iceboom");
this.gotoAndPlay("dead");
} else if (root.playerbody_no == 2) {
root.play_soundAction("fireboom");
this.gotoAndPlay("dead2");
}
delete this.onEnterFrame;
}
}
} else {
root[dofunction](this);
}
}
if (((this._parent._x + this._x) < -150) or ((this._parent._y + this._y) > 400)) {
this.removeMovieClip();
}
};
}
function icelandMC1(mc_name, place_x, place_y, dorpplace) {
var _local2 = EnemyPath.attachMovie(mc_name, mc_name + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y});
var te_landmc = newmap.attachMovie(mc_name, mc_name + newmap.getNextHighestDepth(), newmap.getNextHighestDepth(), {_x:place_x - (newmap._x + newmap._parent._x), _y:place_y - (newmap._y + newmap._parent._y)});
if (dorpplace == 0) {
_local2.gotoAndStop("dead");
_local2.sp_zt = "drop";
return(undefined);
}
_local2.gotoAndStop(1);
_local2.sp_zt = "still";
_local2.tedorp_y = 0;
_local2.alldrop = 0;
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (this.sp_zt == "drop") {
if ((this.tedorp_y + this.alldrop) < dorpplace) {
this.tedorp_y = this.tedorp_y + 1;
this._y = this._y + this.tedorp_y;
te_landmc._y = te_landmc._y + this.tedorp_y;
this.alldrop = this.alldrop + this.tedorp_y;
} else {
delete this.onEnterFrame;
}
}
};
}
function icelandMC2(mc_name, place_x, place_y) {
var _local2 = EnemyPath.attachMovie(mc_name, mc_name + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y});
var te_landmc = newmap.attachMovie("iceland2bj", mc_name + newmap.getNextHighestDepth(), newmap.getNextHighestDepth(), {_x:place_x - (newmap._x + newmap._parent._x), _y:place_y - (newmap._y + newmap._parent._y)});
_local2.gotoAndStop(1);
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (this.sp_zt == "drop") {
te_landmc.gotoAndStop("dead");
delete this.onEnterFrame;
}
};
}
function magicbox(place_x, place_y) {
var _local2 = EnemyPath.attachMovie("box", "box" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:place_x, _y:place_y});
_local2.gotoAndStop(1);
_local2.life = 5 + random(3);
_local2.thistype = random(2) + 1;
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
root.checksuffer(this);
if (this.sp_zt == "jump") {
return(undefined);
}
if (((((this._x - root.AttackBody._x) < 150) and ((this._x - root.AttackBody._x) > 0)) and (this.thistype == 1)) and (this._currentframe == 1)) {
this.gotoAndStop("attack");
root.npc_jump(this, -6, -13);
}
if (this.Hit.hitTest(AttackBody)) {
if (((AttackBody.Sp_ZT == "Jump") and (AttackBody.Jump_y > 0)) and (this._y > AttackBody._y)) {
if (AttackBody.jump_attack) {
AttackBody.Jump_y = -20;
AttackBody._y = AttackBody._y + AttackBody.Jump_y;
ComboFunciton(this);
this.gotoAndPlay("dead");
delete this.onEnterFrame;
}
} else if (this.thistype == 1) {
root.HitFunction1();
} else {
this.gotoAndPlay("dead");
}
}
if (((this._parent._x + this._x) < -150) or ((this._parent._y + this._y) > 400)) {
this.removeMovieClip();
}
};
}
function key_listener() {
if (root.pause_all) {
return(undefined);
}
if ((!KeyAbled) or add_speed) {
return(undefined);
}
var _local3 = Key.getCode();
if (!Key.isDown(_local3)) {
_local3 = 0;
}
var _local4 = getTimer();
if (Key.isDown(key_up)) {
if (!Key_Array_ZT[key_up]) {
Key_Array_ZT[key_up] = 1;
if (AttackBody.Sp_ZT != "Jump") {
AttackBody.Jump_AddRotation = this.Jump_r;
AttackBody.jump_attack = true;
AttackBody.Jump_y = -root.jump_power;
play_soundAction("jump", false, 0.05);
AttackBody.KeyX = 0;
AttackBody.speed = 0;
AttackBody.Sp_ZT = "Jump";
}
}
} else {
Key_Array_ZT[key_up] = 0;
}
if (Key.isDown(key_lift)) {
root.runable = true;
if (AttackBody.Sp_ZT == "Jump") {
if (AttackBody.KeyX > -3) {
AttackBody.KeyX = -3;
} else if (AttackBody.KeyX > -9) {
AttackBody.KeyX = AttackBody.KeyX - 0.5;
}
} else if (AttackBody.Sp_ZT == "Run") {
AttackBody._xscale = -100;
if (AttackBody.speed > -3) {
AttackBody.speed = AttackBody.speed - (addspeed * 2);
}
if (AttackBody.speed > (-playmovespeed)) {
AttackBody.speed = AttackBody.speed - addspeed;
} else {
AttackBody.speed = -playmovespeed;
}
}
} else if (Key.isDown(key_right)) {
root.runable = true;
if (AttackBody.Sp_ZT == "Jump") {
if (AttackBody.KeyX < 3) {
AttackBody.KeyX = 3;
} else if (AttackBody.KeyX < 9) {
AttackBody.KeyX = AttackBody.KeyX + 0.5;
}
} else if (AttackBody.Sp_ZT == "Run") {
AttackBody._xscale = 100;
if (AttackBody.speed < 3) {
AttackBody.speed = AttackBody.speed + (addspeed * 2);
}
if (AttackBody.speed < playmovespeed) {
AttackBody.speed = AttackBody.speed + addspeed;
} else {
AttackBody.speed = playmovespeed;
}
}
} else if (AttackBody.Sp_ZT == "Run") {
if (AttackBody.HitMC_T._parent.icelandface) {
root.runable = false;
AttackBody.speed = AttackBody.speed * 0.94;
if (Math.abs(AttackBody.speed) < 1) {
AttackBody.speed = 0;
}
} else {
root.runable = false;
AttackBody.speed = AttackBody.speed * 0.9;
if (Math.abs(AttackBody.speed) < 3) {
AttackBody.speed = 0;
}
}
} else if (AttackBody.Sp_ZT == "Jump") {
AttackBody.KeyX = AttackBody.KeyX * 0.92;
}
if (Key.isDown(32) and (!Key_Array_ZT[32])) {
Key_Array_ZT[32] = 1;
PlayerShoot();
}
var _local2 = 0;
while (_local2 < 100) {
if (((Key_Array_ZT[_local2] == 1) and (_local2 != _local3)) and (key_up != _local2)) {
Key_Array_ZT[_local2] = 0;
}
_local2++;
}
}
function AttachBoss1(X, Y) {
if (BossMC) {
return(undefined);
}
BossMC = EnemyPath.attachMovie("Boss1", "BOSSMC", EnemyPath.getNextHighestDepth(), {_x:X, _y:Y});
BossMC.gotoAndStop("sleep");
BossMC.Name = "Boss";
BossMC.Life = 15;
BossMC.StartX = 430;
BossMC.StartY = 103;
BossMC.MoveSpeed = 3;
BossMaxX = 540;
Boss1Move();
}
function Boss1Move() {
var AttackTotal = 100;
var AttackTime = 100;
var te_MoveX = 0;
var te_MoveS = 1;
BossMC.SporeZT = "fly";
BossMC.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (((root.EnemyPath._x + this._x) <= this.StartX) and (!BossDisplay)) {
BossDisplay = true;
this.mc.play();
}
if (BossDisplay) {
if ((this.SporeZT == "fly") or (this.SporeZT == "fitout")) {
AttackTotal--;
}
BossMC._x = BossMC._x + BossMC.MoveSpeed;
}
if (this._currentframe == 1) {
this.SporeZT = "fly";
te_MoveX++;
if (te_MoveX > 30) {
this._y = this._y + te_MoveS;
} else {
this._y = this._y - te_MoveS;
}
if (te_MoveX >= 60) {
te_MoveX = 0;
}
if ((this.Life <= 0) and (this.SporeZT != "remove")) {
this.Life = 0;
this.gotoAndStop("reMove");
}
} else if (((this.SporeZT == "attack1") and (this.mc._currentframe == this.mc._totalframes)) and (this.mc._totalframes > 1)) {
root.AttachSkyBody("bugbear_L7", this._x - 50, 278, 1, 1000, 0, 1, 10, 0, "HitFunction1");
root.AttachSkyBody("bugbear_L7", this._x + 50, 248, 1, 1000, 0, 1, 10, 0, "HitFunction1");
this.gotoAndStop("Fly");
AttackTotal = AttackTime;
} else if ((this.SporeZT == "attack2") and (this.attack_step == 2)) {
if (!this.attackMC) {
if (random(2) == 0) {
Boss1_Attack2("attack2");
} else {
Boss1_Attack3(this);
}
}
AttackTotal = AttackTime;
} else if (((this.SporeZT == "attack3") and (this.mc._currentframe == this.mc._totalframes)) and (this.mc._totalframes > 1)) {
root.AttachSkyBody("bugbear_L7", this._x + 50, 278, 1, 1000, 0, 1, 10, 0, "HitFunction1");
root.AttachSkyBody("bugbear_L7", this._x - 50, 248, 1, 1000, 0, 1, 10, 0, "HitFunction1");
this.gotoAndStop("Fly");
AttackTotal = AttackTime;
} else if (this.SporeZT == "dead") {
if ((this.mc._currentframe == this.mc._totalframes) and (this.mc._totalframes > 1)) {
this.Life--;
if (this.Life <= 0) {
this.SporeZT = "remove";
this.gotoAndStop("reMove");
} else {
this.gotoAndStop("fly");
}
}
} else if (this.SporeZT == "remove") {
root.getaward(this._x, this._y);
if ((this.mc._currentframe == this.mc._totalframes) and (this.mc._totalframes > 1)) {
root.gamepass();
root.BossMC = undefined;
this.removeMovieClip();
}
}
if (AttackTotal == 0) {
this.SporeZT = "fitout";
this.gotoAndStop("fitout");
} else if (AttackTotal == -10) {
var _local2 = random(3);
AttackTotal = AttackTime;
this.KeyNum = new Array();
if (_local2 == 0) {
this.SporeZT = "attack1";
this.gotoAndStop("attack1");
} else if (_local2 == 1) {
this.SporeZT = "attack2";
this.gotoAndStop("attack2");
} else if (_local2 == 2) {
this.SporeZT = "attack3";
this.gotoAndStop("attack1");
}
}
if (this.Hit_a.hitTest(root.AttackBody)) {
if ((AttackBody.Jump_y > 0) and ((((this._y + this._parent._y) + this.Hit_a._y) + 22) > root.ChengePlayerXY()._Y)) {
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -6;
root.AttackBody.Jump_x = -6;
root.BossMC.Life = root.BossMC.Life - 5;
this.gotoAndPlay("dead");
} else {
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -6;
root.AttackBody.Jump_x = -6;
if (AttackBody.attack) {
root.AttackBody.MoveDead();
AttackBody.jump_attack = false;
}
}
}
if (this.suffer > 0) {
this.suffer--;
if (this.suffer == 0) {
BoosSuffer(this, true);
}
}
};
}
function Boss1_Attack2(Str) {
BossMC.gotoAndStop(Str);
var AttTime = 60;
BossMC.createEmptyMovieClip("attackMC", BossMC.getNextHighestDepth());
BossMC.attackMC.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
_parent.BossMaxX = 540;
AttTime--;
if (AttTime > 0) {
root.BossMC._x = root.BossMC._x - 15;
if (this._parent.Hit_b.hitTest(root.AttackBody) and AttackBody.attack) {
if ((AttackBody.Sp_ZT == "Jump") and (AttackBody.Jump_y > 0)) {
if (AttackBody.jump_attack) {
AttackBody._y = AttackBody._y - (AttackBody.Jump_y * 1.5);
AttackBody.Jump_y = (-AttackBody.Jump_y) * 0.9;
root.BossMC.suffer = 4;
root.BoosSuffer(root.BossMC);
}
} else if (AttackBody.attack) {
root.AttackBody.MoveDead();
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -10;
root.AttackBody.Jump_x = -6;
}
}
} else if ((AttTime <= 0) and (AttTime >= -58)) {
root.BossMC._x = root.BossMC._x + 15;
if (this._parent.Hit_b.hitTest(root.AttackBody)) {
if ((AttackBody.Sp_ZT == "Jump") and (AttackBody.Jump_y > 0)) {
if (AttackBody.jump_attack) {
AttackBody._y = AttackBody._y - (AttackBody.Jump_y * 1.5);
AttackBody.Jump_y = (-AttackBody.Jump_y) * 0.9;
root.BossMC.suffer = 4;
root.BoosSuffer(root.BossMC);
}
} else if (AttackBody.attack) {
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -10;
root.AttackBody.Jump_x = -6;
root.AttackBody.MoveDead();
}
}
} else {
BossMC.mc.play();
if (BossMC.attack_step == 3) {
BossMC.gotoAndStop("fly");
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
}
function Boss1_Attack3(body) {
BossMC.gotoAndStop("attack2");
var AttTime = 100;
BossMC.createEmptyMovieClip("attackMC", BossMC.getNextHighestDepth());
BossMC.attackMC.randnu = random(2);
BossMC.attackMC.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
_parent.BossMaxX = 540;
AttTime--;
if (((AttTime % 50) == 0) and (this.randnu == 0)) {
root.AttachSkyBody("waterball2", body._x, body._y + 100, 1, 1000, 0, 3, 40, 20, "HitFunction1");
root.AttachSkyBody("waterball2", body._x, body._y + 100, 1, 1000, 0, 3, 40, -20, "HitFunction1");
}
if (((AttTime % 30) == 0) and (this.randnu == 1)) {
root.AttachSkyBody("waterball2", body._x, body._y + 100, 1, 1000, 0, 6, 20, 0, "HitFunction1");
}
if (AttTime <= 0) {
BossMC.mc.play();
if (BossMC.attack_step == 3) {
BossMC.gotoAndStop("fly");
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
}
function AttachBoss2(X, Y) {
if (BossMC) {
return(undefined);
}
BossMC = EnemyPath.attachMovie("Boss2", "BOSSMC", EnemyPath.getNextHighestDepth(), {_x:X, _y:Y});
BossMC.Name = "Boss";
BossMC.Life = 30;
BossMC.StartX = 460;
BossMC.StartY = 147;
BossMC.MoveSpeed = 3;
BossMC.gotoAndStop("sleep");
BossMaxX = 550;
BossMC.suffer = 0;
Boss2Move();
}
function Boss2Move() {
var AttackTotal = 120;
var AttackTime = 120;
var te_MoveX = 0;
var te_MoveS = 1.5;
BossMC.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (((root.EnemyPath._x + this._x) <= this.StartX) and (!BossDisplay)) {
BossDisplay = true;
this.mc.play();
}
if (BossDisplay) {
if ((this.SporeZT == "fly") or (this.SporeZT == "fitout")) {
AttackTotal--;
}
BossMC._x = BossMC._x + BossMC.MoveSpeed;
}
if (this._currentframe == 1) {
this.SporeZT = "fly";
te_MoveX++;
if (te_MoveX > 30) {
this._y = this._y + te_MoveS;
} else {
this._y = this._y - te_MoveS;
}
if (te_MoveX >= 60) {
te_MoveX = 0;
}
} else if (((this.SporeZT == "attack1") and (this.mc._currentframe == this.mc._totalframes)) and (this.mc._totalframes > 1)) {
var _local2 = random(5);
if (_local2 == 0) {
root.AttachSkyBody("bugbear_L4", this._x - 40, this._y + 120, 1, 1000, 0, 3, 30, 15, "HitFunction1");
root.AttachSkyBody("bugbear_L4", this._x - 40, this._y + 120, 1, 1000, 0, 3, 30, -15, "HitFunction1");
} else if (_local2 == 1) {
EnemyPath.attachMovie("addsnake", "addsnake" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:this._x - 30, _y:this._y - 70});
root.AttachSnake(this._x - 80, this._y - 30, 6, 2);
root.AttachSnake(this._x - 80, this._y - 30, 6, 6);
root.AttachSnake(this._x - 80, this._y - 30, 6, 10);
} else if (_local2 == 2) {
root.AttachSkyBody("bugbear_L4", this._x - 40, this._y + 100, 1, 1000, 0, 1, 10, 0, "HitFunction1");
root.AttachSkyBody("bugbear_L4", this._x + 40, this._y + 50, 1, 1000, 0, 1, 10, 0, "HitFunction1");
} else if (_local2 == 3) {
root.AttachSkyBody("bugbear_L4", this._x - 40, this._y + 100, 1, 1000, 0, 0, 1000, 0, "HitFunction1");
root.AttachSkyBody("bugbear_L4", this._x + 40, this._y + 20, 1, 1000, 0, 0, 1000, 0, "HitFunction1");
} else if (_local2 == 4) {
root.AttachSkyBody("bugbear_L4", this._x - 40, this._y + 100, 1, 1000, 0, 0, 1000, 0, "HitFunction1");
root.AttachSkyBody("bugbear_L4", this._x + 40, this._y + 90, 1, 1000, 0, 0, 1000, 0, "HitFunction1");
}
this.SporeZT = "fly";
AttackTotal = AttackTime;
this.gotoAndStop("Fly");
} else if (this.SporeZT == "dead") {
if ((this.mc._currentframe == this.mc._totalframes) and (this.mc._totalframes > 1)) {
this.Life = this.Life - 5;
if ((this.Life <= 0) and (this.SporeZT != "remove")) {
this.Life = 0;
this.gotoAndStop("reMove");
} else {
this.gotoAndStop("Fly");
}
}
} else if (this.SporeZT == "remove") {
root.getaward(this._x, this._y);
if ((this.mc._currentframe == this.mc._totalframes) and (this.mc._totalframes > 1)) {
root.BossMC = undefined;
this.removeMovieClip();
}
}
if (AttackTotal == 0) {
this.SporeZT = "fitout";
this.gotoAndStop("fitout");
} else if (AttackTotal == -30) {
this.SporeZT = "attack1";
this.gotoAndStop("attack1");
}
if (this.Hit_a.hitTest(root.AttackBody)) {
if ((AttackBody.Jump_y > 0) and ((((this._y + this._parent._y) + this.Hit_a._y) + 22) > root.ChengePlayerXY()._Y)) {
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -6;
root.AttackBody.Jump_x = -6;
this.gotoAndPlay("dead");
} else {
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -6;
root.AttackBody.Jump_x = -6;
if (AttackBody.attack) {
root.AttackBody.MoveDead();
AttackBody.jump_attack = false;
}
}
}
if (this.suffer > 0) {
this.suffer--;
if (this.suffer == 0) {
BoosSuffer(this, true);
}
}
if ((this.Life <= 0) and (this.SporeZT != "remove")) {
this.Life = 0;
this.gotoAndStop("reMove");
}
};
}
function AttachSnake(X, Y, speesx, speedy) {
var T_MoveSpeedX = speesx;
var T_MoveSpeedY = speedy;
var _local2 = EnemyPath.attachMovie("snake", "snake" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:X, _y:Y});
var teTotal = 0;
_local2.Name = "snake";
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
this._x = this._x - T_MoveSpeedX;
this._y = this._y + T_MoveSpeedY;
if (root.AttackBody.hitTest(this.Hit) and AttackBody.attack) {
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -6;
root.AttackBody.Jump_x = -6;
root.AttackBody.MoveDead();
AttackBody.jump_attack = false;
}
teTotal++;
if (teTotal > 100) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
function AttachBoss3(X, Y) {
if (BossMC) {
return(undefined);
}
BossMC = EnemyPath.attachMovie("Boss3", "BOSSMC", EnemyPath.getNextHighestDepth(), {_x:X, _y:Y});
BossMC.Name = "Boss";
BossMC.Life = 30;
BossMC.StartX = 430;
BossMC.StartY = 103;
BossMC.MoveSpeed = 3;
BossMC.gotoAndStop("sleep");
BossMaxX = 550;
Boss3Move();
}
function Boss3Move() {
var AttackTotal = 120;
var AttackTime = 120;
var te_MoveX = 0;
var te_MoveS = 1.5;
BossMC.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (((root.EnemyPath._x + this._x) <= this.StartX) and (!BossDisplay)) {
BossDisplay = true;
this.mc.play();
}
if (BossDisplay) {
if ((this.SporeZT == "fly") or (this.SporeZT == "fitout")) {
AttackTotal--;
}
BossMC._x = BossMC._x + BossMC.MoveSpeed;
}
if (this._currentframe == 1) {
this.SporeZT = "fly";
te_MoveX++;
if (te_MoveX > 30) {
this._y = this._y + te_MoveS;
} else {
this._y = this._y - te_MoveS;
}
if (te_MoveX >= 60) {
te_MoveX = 0;
}
} else if (this.SporeZT == "attack1") {
if (!this.attackMC) {
Boss3_Attack1("attack1");
}
AttackTotal = AttackTime;
} else if (((this.SporeZT == "attack2") and (this.mc._currentframe == this.mc._totalframes)) and (this.mc._totalframes > 1)) {
root.AttachFeather(this._x - 60, this._y - 20);
root.AttachFeather(this._x - 60, this._y + 100);
this.SporeZT = "fly";
AttackTotal = AttackTime;
this.gotoAndStop("Fly");
} else if (((this.SporeZT == "attack3") and (this.mc._currentframe == this.mc._totalframes)) and (this.mc._totalframes > 1)) {
root.AttachSkyBody("bugbear_Y1", this._x - 40, this._y + 150, 1, 1000, 0, 1, 10, 0, "HitFunction1");
root.AttachSkyBody("bugbear_Y1", this._x + 40, this._y + 100, 1, 1000, 0, 1, 10, 0, "HitFunction1");
AttackTotal = AttackTime;
this.SporeZT = "fly";
this.gotoAndStop("Fly");
} else if (this.SporeZT == "dead") {
AttackTotal = AttackTime;
if ((this.mc._currentframe == this.mc._totalframes) and (this.mc._totalframes > 1)) {
if (this.Life <= 0) {
this.SporeZT = "remove";
this.gotoAndStop("reMove");
} else {
this.gotoAndStop("Fly");
}
}
} else if (this.SporeZT == "remove") {
root.getaward(this._x, this._y);
if ((this.mc._currentframe == this.mc._totalframes) and (this.mc._totalframes > 1)) {
root.BossMC = undefined;
this.removeMovieClip();
}
}
if (AttackTotal == 0) {
this.SporeZT = "fitout";
this.gotoAndStop("fitout");
} else if (AttackTotal == -10) {
var _local2 = random(3);
AttackTotal = AttackTime;
if (_local2 == 0) {
this.SporeZT = "attack1";
this.gotoAndStop("attack1");
Boss3_Attack1();
} else if (_local2 == 1) {
this.SporeZT = "attack2";
this.gotoAndStop("attack2");
} else if (_local2 == 2) {
this.SporeZT = "attack3";
this.gotoAndStop("attack3");
}
}
if (this.Hit_a.hitTest(root.AttackBody)) {
if ((AttackBody.Jump_y > 0) and ((((this._y + this._parent._y) + this.Hit_a._y) + 22) > root.ChengePlayerXY()._Y)) {
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -6;
root.AttackBody.Jump_x = -6;
this.Life = this.Life - 5;
this.gotoAndPlay("dead");
} else {
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -6;
root.AttackBody.Jump_x = -6;
if (AttackBody.attack) {
root.AttackBody.MoveDead();
AttackBody.jump_attack = false;
}
}
}
if (this.suffer > 0) {
this.suffer--;
if (this.suffer == 0) {
BoosSuffer(this, true);
}
}
};
}
function Boss3_Attack1(Str) {
BossMC.gotoAndStop(Str);
var AttTime = 60;
BossMC.createEmptyMovieClip("attackMC", BossMC.getNextHighestDepth());
BossMC.attackMC.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
AttTime--;
if (AttTime > 0) {
root.BossMC._x = root.BossMC._x - 10;
} else if ((AttTime <= 0) and (AttTime >= -58)) {
root.BossMC._x = root.BossMC._x + 10;
} else {
BossMC.gotoAndStop("fly");
delete this.onEnterFrame;
this.removeMovieClip();
}
if (this._parent.Hit_b.hitTest(root.AttackBody) and AttackBody.attack) {
if ((AttackBody.Sp_ZT == "Jump") and (AttackBody.Jump_y > 0)) {
if (AttackBody.jump_attack) {
AttackBody._y = AttackBody._y - (AttackBody.Jump_y * 1.5);
AttackBody.Jump_y = -15;
root.BossMC.suffer = 4;
root.BossMC.Life = root.BossMC.Life - 3;
root.BoosSuffer(root.BossMC);
}
} else if (AttackBody.attack) {
root.AttackBody.MoveDead();
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -15;
root.AttackBody.Jump_x = -6;
}
}
};
}
function Boss3_Attack2() {
BossMC.gotoAndPlay("attack2");
}
function Boss3_Attack3() {
BossMC.gotoAndPlay("attack3");
}
function AttachFeather(X, Y) {
var T_MoveSpeedX = 8;
var T_MoveSpeedY = 5;
var _local2 = EnemyPath.attachMovie("feather", "feather" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:X, _y:Y});
var teTotal = 0;
_local2.Name = "Feather";
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
this._x = this._x - T_MoveSpeedX;
this._y = this._y + T_MoveSpeedY;
if (root.AttackBody.hitTest(this.Hit) and AttackBody.attack) {
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -6;
root.AttackBody.Jump_x = -6;
root.AttackBody.MoveDead();
AttackBody.jump_attack = false;
}
teTotal++;
if (teTotal > 100) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
function AttachBoss4(X, Y) {
if (BossMC) {
return(undefined);
}
BossMC = EnemyPath.attachMovie("Boss4", "BOSSMC", EnemyPath.getNextHighestDepth(), {_x:X, _y:Y});
BossMC.Name = "Boss";
BossMC.Life = 40;
BossMC.StartX = 430;
BossMC.StartY = 103;
BossMC.MoveSpeed = 3;
BossMC.gotoAndStop("sleep");
BossMaxX = 550;
Boss4Move();
}
function Boss4Move() {
var AttackTotal = 150;
var AttackTime = 150;
var te_MoveX = 0;
var te_MoveS = 1.5;
BossMC.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (((root.EnemyPath._x + this._x) <= this.StartX) and (!BossDisplay)) {
this.mc.play();
BossDisplay = true;
}
if (BossDisplay) {
if ((this.SporeZT == "fly") or (this.SporeZT == "fitout")) {
AttackTotal--;
}
BossMC._x = BossMC._x + BossMC.MoveSpeed;
}
if (this._currentframe == 1) {
this.SporeZT = "fly";
te_MoveX++;
if (te_MoveX > 30) {
this._y = this._y + te_MoveS;
} else {
this._y = this._y - te_MoveS;
}
if (te_MoveX >= 60) {
te_MoveX = 0;
}
} else if (((this.SporeZT == "attack1") and (this.mc._currentframe == this.mc._totalframes)) and (this.mc._totalframes > 1)) {
this.SporeZT = "fly";
AttackTotal = AttackTime;
var _local3 = random(3);
if (_local3 == 0) {
AttachMissile1(this._x, this._y);
} else if (_local3 == 1) {
AttachMissile2(this._x + 50, 847);
AttachMissile2(this._x - 100, 847);
AttachMissile2(this._x - 250, 847);
} else {
AttachMissile3(this._x + 50, 607);
AttachMissile3(this._x - 100, 607);
AttachMissile3(this._x - 250, 607);
}
this.gotoAndStop("Fly");
} else if (((this.SporeZT == "attack2") and (this.mc._currentframe == this.mc._totalframes)) and (this.mc._totalframes > 1)) {
root.AttachFeather(this._x - 60, this._y - 20);
root.AttachFeather(this._x - 60, this._y + 100);
this.SporeZT = "fly";
AttackTotal = AttackTime;
this.gotoAndStop("Fly");
} else if (((this.SporeZT == "attack3") and (this.mc._currentframe == this.mc._totalframes)) and (this.mc._totalframes > 1)) {
root.AttachSkyBody("bugbear_Y1", this._x - 40, this._y + 150, 1, 1000, 0, 1, 10, 0, "HitFunction1");
root.AttachSkyBody("bugbear_Y1", this._x + 40, this._y + 100, 1, 1000, 0, 1, 10, 0, "HitFunction1");
AttackTotal = AttackTime;
this.SporeZT = "fly";
this.gotoAndStop("Fly");
} else if (this.SporeZT == "dead") {
AttackTotal = AttackTime;
if ((this.mc._currentframe == this.mc._totalframes) and (this.mc._totalframes > 1)) {
if (this.Life <= 0) {
this.SporeZT = "remove";
this.gotoAndStop("reMove");
} else {
this.gotoAndStop("Fly");
}
}
} else if (this.SporeZT == "remove") {
root.getaward(this._x, this._y);
if ((this.mc._currentframe == this.mc._totalframes) and (this.mc._totalframes > 1)) {
root.BossMC = undefined;
this.removeMovieClip();
}
}
if (AttackTotal == 0) {
this.SporeZT = "fitout";
this.gotoAndStop("fitout");
} else if (AttackTotal == -30) {
var _local2 = 0;
AttackTotal = AttackTime;
if (_local2 == 0) {
this.SporeZT = "attack1";
this.gotoAndStop("attack1");
} else if (_local2 == 1) {
this.SporeZT = "attack2";
this.gotoAndStop("attack2");
} else if (_local2 == 2) {
this.SporeZT = "attack3";
this.gotoAndStop("attack3");
}
}
if (this.Hit_a.hitTest(root.AttackBody)) {
if ((AttackBody.Jump_y > 0) and ((((this._y + this._parent._y) + this.Hit_a._y) + 22) > root.ChengePlayerXY()._Y)) {
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -6;
root.AttackBody.Jump_x = -6;
this.Life = this.Life - 5;
this.gotoAndPlay("dead");
} else {
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -6;
root.AttackBody.Jump_x = -6;
if (AttackBody.attack) {
root.AttackBody.MoveDead();
AttackBody.jump_attack = false;
}
}
}
if (this.suffer > 0) {
this.suffer--;
if (this.suffer == 0) {
BoosSuffer(this, true);
}
}
};
}
function AttachMissile1(X, Y) {
var add_y = 10;
var T_MoveSpeedX = -6;
var _local2 = EnemyPath.attachMovie("missile", "missile" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:X, _y:Y});
_local2.gotoAndStop("step1");
var _local3 = 0;
_local2.step = 1;
_local2.Name = "Missile";
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
this._x = this._x + T_MoveSpeedX;
if (add_y > 0) {
add_y--;
this._y = this._y + 1;
}
if (root.AttackBody.hitTest(this.Hit)) {
if (((root.AttackBody.Sp_ZT == "Jump") and (AttackBody.Jump_y > 0)) and ((((this._y + this._parent._y) + this.Hit._y) + 22) > root.ChengePlayerXY()._Y)) {
AttackBody.Jump_y = -21;
this.step++;
if (this.step < 5) {
} else {
this.gotoAndPlay("boom");
}
this.suffer = 4;
this._y = this._y + 8;
root.BoosSuffer(this);
} else if (AttackBody.attack) {
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -6;
root.AttackBody.Jump_x = -6;
root.AttackBody.MoveDead();
}
}
if (((this._x + this._parent._x) < -10) and (T_MoveSpeedX < 0)) {
T_MoveSpeedX = 9;
this._xscale = -100;
}
if (((this._x + this._parent._x) > 580) and (T_MoveSpeedX > 0)) {
T_MoveSpeedX = -6;
this._xscale = 100;
}
if (this.suffer > 0) {
this.suffer--;
this._y = this._y - 2;
if (this.suffer == 0) {
BoosSuffer(this, true);
}
}
};
}
function AttachMissile2(X, Y) {
var _local2 = EnemyPath.attachMovie("missile2", "missile" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:X, _y:Y});
_local2.display_time = 20;
_local2.gotoAndStop("below");
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if ((root.BossMC == undefined) and (this._x > (root.AttackBody._x + 200))) {
return(undefined);
}
if (this.display_time > -2) {
if ((this.display_time % 3) == 1) {
root.AttachSnow(this._x, this._y);
}
this.display_time--;
} else if (root.AttackBody.hitTest(this.Hit) and AttackBody.attack) {
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -6;
root.AttackBody.MoveDead();
AttackBody.jump_attack = false;
}
if (this.display_time == 0) {
this.gotoAndPlay("ground");
}
if ((this._x + this._parent._x) < -20) {
this.removeMovieClip();
}
};
}
function AttachMissile3(X, Y) {
var _local3 = EnemyPath.attachMovie("missile3", "missile" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:X, _y:Y});
_local3.gotoAndStop("drop");
_local3.add_y = 0;
_local3.sp_zt = "drop";
_local3.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
if (this.add_y < 18) {
this.add_y = this.add_y + 0.8;
}
if (this._y < 847) {
this._y = this._y + this.add_y;
} else if (this.sp_zt != "stand") {
this._y = 847;
var _local2 = 0;
while (_local2 < 10) {
root.AttachSnow(this._x, this._y);
_local2++;
}
this.sp_zt = "stand";
this.gotoAndStop("stand");
}
if (root.AttackBody.hitTest(this.Hit) and AttackBody.attack) {
root.AttackBody.Sp_ZT = "Jump";
root.AttackBody.Jump_y = -6;
root.AttackBody.Jump_x = -6;
root.AttackBody.MoveDead();
AttackBody.jump_attack = false;
}
if ((this._x + this._parent._x) < -20) {
this.removeMovieClip();
}
};
}
function AttachSnow(X, Y) {
var _local2 = EnemyPath.attachMovie("snow", "snow" + EnemyPath.getNextHighestDepth(), EnemyPath.getNextHighestDepth(), {_x:X, _y:Y});
_local2.add_x = (random(60) - 30) / 10;
_local2.gotoAndStop(5);
_local2.add_y = -((random(60) / 10) + 4);
_local2.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
this._rotation = this._rotation + 10;
this.add_y = this.add_y + 0.5;
this._x = this._x + this.add_x;
this._y = this._y + this.add_y;
this._alpha = this._alpha - 5;
if (this._alpha <= 10) {
this.removeMovieClip();
}
};
}
function getaward(placex, placey) {
if (random(8) == 1) {
var _local1 = random(100);
if (_local1 < 40) {
root.AttachAward(2, placex, placey, true);
} else if ((_local1 > 40) and (_local1 < 60)) {
root.AttachAward(1, placex, placey, true);
} else {
root.AttachAward(6, placex, placey, true);
}
}
}
function load_picture(which, url) {
which.loadMovie(loadassetpath + url);
}
function preload_assets(where) {
trace("start to load assets");
where.createEmptyMovieClip("image_mc", this.getNextHighestDepth());
where.image_mc._visible = 0;
Listener = new Object();
Listener.onLoadInit = function (target_mc) {
trace(((("loaded assets " + loadassetpath) + pic_array[picLoaded]) + " to ") + target_mc);
_root.load_mc.nextFrame();
if ((++picLoaded) < picAll) {
preload_assets(where, pic_array[picLoaded]);
} else {
image_loder.removeListener();
delete image_loder;
delete Listener;
image_mc.removeMovieClip();
gotoAndStop ("startgame");
trace("all done!");
}
};
Listener.onLoadError = function () {
gotoAndStop ("startgame");
};
image_loder = new MovieClipLoader();
image_loder.addListener(Listener);
image_loder.loadClip(loadassetpath + pic_array[picLoaded], where.image_mc);
}
startTime = getTimer();
_global.trackingURL = unescape(url);
if ((url == undefined) and (sw7 != undefined)) {
_global.trackingURL = unescape(sw7).split("&")[2].split("=")[1].split("?")[0];
uuid = unescape(sw7).split("&")[2].split("=")[2];
}
_global.scoreURL = unescape(sw4);
_global.gameid = sw6;
_global.userid = uuid;
_global.sid = session_id;
_global.rn = Math.random(1E21);
_global.scoreURL = unescape(_global.scoreURL);
_global.trackingVars = _global.trackingURL.split("?");
_global.trackingURL = _global.trackingVars[0];
_global.objTrackingVars = new Object();
if (uuid != undefined) {
_global.objTrackingVars.uuid = uuid;
}
var trackingArr = _global.trackingVars[1].split("&");
for (var prop in trackingArr) {
var myVars = trackingArr[prop].split("=");
if (myVars[1] != "") {
_global.objTrackingVars[myVars[0]] = myVars[1];
}
}
_global.scoreVars = _global.scoreURL.split("?");
_global.scoreURL = _global.scoreVars[0];
_global.objScoreVars = new Object();
if (challengeUuid != undefined) {
_global.objScoreVars.challengeUuid = challengeUuid;
}
_global.scoreArr = _global.scoreVars[1].split("&");
for (var prop in _global.scoreArr) {
var myVars = _global.scoreArr[prop].split("=");
if (myVars[1] != "") {
_global.objScoreVars[myVars[0]] = myVars[1];
}
}
trackerOnLoad = function (success) {
if (success) {
trace("success");
} else {
NetDebug.trace("error on script");
}
infomessage = "Return from tracking";
};
trackingGameLoaded = function () {
endTime = getTimer();
downloadTime = Math.round((endTime - startTime) / 1000);
_global.tracker = new LoadVars();
_global.tracker = getTracker("load");
_global.tracker.d1 = _downloadTime;
var _local3 = com.meychi.ascrypt.MD5.calculate(makeQuerystring(_global.tracker));
_global.tracker.cr = _local3;
for (var _local2 in _global.objTrackingVars) {
_global.tracker[_local2] = _global.objTrackingVars[_local2];
}
_global.tracker.sendAndLoad(_global.trackingURL, _global.tracker, "GET");
_global.tracker.onLoad = trackerOnLoad;
};
trackingGameStart = function () {
_global.startGameTime = getTimer();
_global.tracker = new LoadVars();
_global.tracker = getTracker("play");
var _local3 = com.meychi.ascrypt.MD5.calculate(makeQuerystring(_global.tracker));
_global.tracker.cr = _local3;
for (var _local2 in _global.objTrackingVars) {
_global.tracker[_local2] = _global.objTrackingVars[_local2];
}
_global.tracker.sendAndLoad(_global.trackingURL, _global.tracker, "GET");
_global.tracker.onLoad = trackerOnLoad;
};
trackingGameOver = function () {
_global.endGameTime = getTimer();
_global.tracker = new LoadVars();
_global.tracker = getTracker("over");
var _local3 = com.meychi.ascrypt.MD5.calculate(makeQuerystring(_global.tracker));
_global.tracker.cr = _local3;
for (var _local2 in _global.objTrackingVars) {
_global.tracker[_local2] = _global.objTrackingVars[_local2];
}
_global.tracker.sendAndLoad(_global.trackingURL, _global.tracker, "GET");
_global.tracker.onLoad = trackerOnLoad;
};
trackingGameQuit = function () {
_global.totalSecondsPlayed = Math.round((_global.endGameTime - _global.startGameTime) / 1000);
_global.endGameTime = getTimer();
_global.tracker = new LoadVars();
_global.tracker = getTracker("quit");
_global.tracker.d1 = _global._global.totalSecondsPlayed;
var _local3 = com.meychi.ascrypt.MD5.calculate(makeQuerystring(_global.tracker));
_global.tracker.cr = _local3;
for (var _local2 in _global.objTrackingVars) {
_global.tracker[_local2] = _global.objTrackingVars[_local2];
}
_global.tracker.sendAndLoad(_global.trackingURL, _global.tracker, "GET");
_global.tracker.onLoad = trackerOnLoad;
};
submitScore = function (s) {
if (!_global.isShim) {
}
var _local3;
var _local6 = new Date();
var _local11 = ((_local6.getHours() < 10) ? ("0" + _local6.getHours().toString()) : (_local6.getHours().toString()));
var _local9 = ((_local6.getMinutes() < 10) ? ("0" + _local6.getMinutes().toString()) : (_local6.getMinutes().toString()));
var _local10 = ((_local6.getSeconds() < 10) ? ("0" + _local6.getSeconds().toString()) : (_local6.getSeconds().toString()));
var _local8 = (_local11 + _local9) + _local10;
trace(_local8);
_local3 = ("gamename=" + _global.gameName) + "&";
_local3 = _local3 + (("score=" + s) + "&");
_local3 = _local3 + (("pn=" + sw3) + "&");
_local3 = _local3 + (("sf=" + (cheated ? "0" : "1")) + "&");
_local3 = _local3 + "np=1&";
totalGames = (isNaN(totalGames) ? 0 : (totalGames));
_local3 = _local3 + (("ng=" + totalGames) + "&");
_local3 = _local3 + "nr=0&";
secondsPlayed = (isNaN(secondsPlayed) ? 1 : (secondsPlayed));
_local3 = _local3 + (("tp=" + secondsPlayed) + "&");
_local3 = _local3 + "ms=11243&";
_local3 = _local3 + "mr=0&";
_local3 = _local3 + "bd=0&";
_local3 = _local3 + "pi=6&";
downloadTime = (isNaN(downloadTime) ? 0 : (downloadTime));
_local3 = _local3 + (("ds=" + downloadTime.toString()) + "&");
_local3 = _local3 + "dt=&";
_local3 = _local3 + (((("ss=" + System.capabilities.screenResolutionX) + "by") + System.capabilities.screenResolutionY) + "&");
_local3 = _local3 + "sp=none&";
_local3 = _local3 + "sn=&";
_local3 = _local3 + (("tt=" + _local8) + "&");
gameVersion = (isNaN(gameVersion) ? 1 : (gameVersion));
_local3 = _local3 + (("vr=" + gameVersion) + "&");
_local3 = _local3 + ("gid=" + _global.gameid);
cr = com.meychi.ascrypt.MD5.calculate(_local3 + _global.keyString);
_local3 = _local3 + ("&cr=" + cr);
strBlow = BlowFish_enc64str(_local3);
p = strBlow;
if (_global.scoreURL.length > 0) {
var _local4 = [];
for (var _local7 in _global.objScoreVars) {
_local4.push((_local7 + "=") + _global.objScoreVars[_local7]);
}
var _local5 = 0;
while (_local5 < _local4.length) {
p = p + "&";
p = p + _local4[_local5];
_local5++;
}
}
var _local5 = 0;
while (_local5 < _global.scoreArr.length) {
p = p + "&";
p = p + _global.scoreArr[_local5];
_local5++;
}
flashScoreUrl = (_global.scoreURL + "?param=") + p;
if (!_global.isShim) {
getURL (flashScoreUrl);
}
isQuitting = 1;
_root.isQuitting = 1;
if (_global.isShim) {
getURL ("lingo:respondToSubmit");
}
};
_global.sendCommand = function (what) {
if (!isShim) {
switch (what) {
case "trackingGameLoaded" :
trackingGameLoaded();
break;
case "trackingGameStart" :
trackingGameStart();
break;
case "trackingGameOver" :
trackingGameOver();
break;
case "trackingGameQuit" :
trackingGameQuit();
}
}
var _local1 = new LocalConnection();
_local1.send("lc_name", "methodToExecute", what);
};
_global.keyString = "k4UvVemqp9";
_global.gameName = "fireandice";
BlowFish_init(_global.keyString);
var imageArray = ["icon", "logos"];
var imageExtensionArray = [".png", ".png"];
imageLoadCount = 0;
for (var i in imageArray) {
this.createEmptyMovieClip(imageArray[i] + "_mc", this.getNextHighestDepth());
}
assetpath = ((sw9 == undefined) ? "assets/" : (sw9.toString()));
var imageLoader = new MovieClipLoader();
imageLoader.addListener(this);
for (var i in imageArray) {
imageLoader.loadClip((assetpath + imageArray[i]) + imageExtensionArray[i], this[imageArray[i] + "_mc"]);
}
_global.drawBitmap = function (what, where) {
if (w == undefined) {
myBitmapData = new flash.display.BitmapData(_root[what + "_mc"]._width, _root[what + "_mc"]._height, true, 16777215);
} else {
myBitmapData = new flash.display.BitmapData(w, h, true, 16777215);
}
myBitmapData.draw(_root[what + "_mc"]);
where.attachBitmap(myBitmapData, 1, "auto", true);
};
System.security.allowInsecureDomain("*.*.*");
stop();
_global.root = this;
_quality = "HIGH";
var display_land = false;
var MoveMapMaxX = 220;
var MoveMapMinX = 60;
var MoveMapMinY = -130;
var MoveMapMaxY = 420;
var MoveSpeedNum = 0;
var MoveSpeedNumY = 0;
var MapMove_AimX;
var MapMove_AimY;
var AttchMap_Name;
var leven = 0;
var leven2 = 1;
var passdistinction = undefined;
var Map_ArrayY;
var MapMC;
var MapPing;
var startframe;
var UI;
var newmap;
var wind = false;
var playertype;
var pause_all;
var ShootMC;
var ShootZT = false;
var startforframe_time;
var EnemyPath;
var AttackBody;
var BulletSpeed = 30;
var BossMC;
var BulletAble = false;
var add_speed = false;
var stopballMC;
var water_ball;
var TimeBox = 0;
var TimeIntervar = 250;
var KeySkillShoot = new Array();
var key_lift = 37;
var key_right = 39;
var key_up = 38;
var key_Shoot = 32;
var Key_Array_ZT = new Array();
var Key_Slowdown = false;
var KeyAbled = true;
var playershootZT = false;
var combo_num = 0;
var passlevel = false;
var addspeed = 0.2;
var runable = true;
var playmovespeed = 7;
var BossDisplay = false;
var BossMaxX;
fscommand ("allowscale", false);
stop();
var picLoaded = 0;
var picAll = 1;
var loadassetpath = ((_level0.sw9 == undefined) ? "images/" : (_level0.sw9));
this.onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
preload_assets(this);
delete this.onEnterFrame;
}
};
var ballA = 10;
var ballB = 0;
var score = 0;
var life = 8;
var jump_power = 20;
var shoot_power = 1;
var game_music = true;
var game_sounds = true;
var now_music = undefined;
var key_down = 38;
var playframe = 1;
var gamestrattime;
var bj = new Sound();
var sound_all = false;
var playerbody_no = 1;
if (!game_score) {
var game_score = 0;
}
Frame 22
submit._visible = 0;
b1._x = 180;
b2._x = 180;
submit.onRelease = function () {
if (game_score != undefined) {
submitScore(game_score);
} else {
submitScore(0);
}
sendCommand("trackingGameQuit");
};
b2.onPress = (b1.onPress = function () {
root.play_soundAction("asou1");
});
b2.onRollOver = (b1.onRollOver = function () {
root.play_soundAction("asou2");
});
b2.onRelease = function () {
leven = 1;
leven2 = 1;
Key.removeListener(key_listener_C);
sendCommand("trackingGameStart");
gotoAndPlay ("initial");
};
b1.onRelease = function () {
attachMovie("helpMC", "helpMC", this.getNextHighestDepth(), {_x:0, _y:0});
b1.enabled = false;
b2.enabled = false;
};
var temusic = ("bj" + String(random(4) + 1));
play_music(temusic, true);
sendCommand("trackingGameLoaded");
var teststart = undefined;
Instance of Symbol 1232 MovieClip in Frame 22
on (release) {
getURL ("http://playcow.com", "_blank");
}
Frame 33
Create_Stage();
Key.removeListener(key_listener_C);
gotoAndStop ("gaming");
Frame 44
stop();
Game_Start();
Frame 56
submit._visible = 0;
but1._x = 200;
stop_soundAction("bj" + leven);
sendCommand("trackingGameOver");
if (game_score < score) {
game_score = score;
}
but1.onPress = (submit.onPress = function () {
root.play_soundAction("asou1");
});
but1.onRollOver = (submit.onRollOver = function () {
root.play_soundAction("asou2");
});
but1.onPress = function () {
stopAllSounds();
MapPing = 1;
gotoAndStop ("preloader");
};
submit.onPress = function () {
submitScore(game_score);
sendCommand("trackingGameQuit");
};
Instance of Symbol 1232 MovieClip in Frame 56
on (release) {
getURL ("http://playcow.com", "_blank");
}
Instance of Symbol 1234 MovieClip in Frame 56
on (release) {
getURL ("http://playedoff.com/mario", "_blank");
}
Frame 68
submit._visible = 0;
but1._x = 200;
root.play_soundAction("pass");
var i = 1;
while (i < 10) {
if (i > String(root.score).length) {
this["NO" + i].gotoAndStop(1);
} else {
this["NO" + i].gotoAndStop(Number(String(root.score).charAt(String(root.score).length - i)) + 1);
}
i++;
}
mc.gotoAndStop(playerbody_no);
sendCommand("trackingGameOver");
if (game_score < score) {
game_score = score;
}
but1.onPress = (submit.onPress = function () {
root.play_soundAction("asou1");
});
but1.onRollOver = (submit.onRollOver = function () {
root.play_soundAction("asou2");
});
submit.onPress = function () {
submitScore(game_score);
sendCommand("trackingGameQuit");
};
but1.onRelease = function () {
MapPing = 0;
gotoAndPlay ("loading");
};
Symbol 32 MovieClip Frame 1
this.loadMovie(root.loadassetpath + root.pic_array[0]);
Symbol 298 MovieClip [mapMC1] Frame 2
root.AttachLandBody("bugbear_L7", 32 + (550 * (_currentframe - root.startframe)), 318 + _y, 3, 150, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L8", 87 + (550 * (_currentframe - root.startframe)), 324 + _y, 3, 150, 0, true, "HitFunction2");
root.AttachLandBody("bugbear_L7", 446 + (550 * (_currentframe - root.startframe)), 322 + _y, -3, 150, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L8", 505 + (550 * (_currentframe - root.startframe)), 316 + _y, -3, 150, 0, true, "HitFunction2");
root.playball(268 + (550 * (_currentframe - root.startframe)), 321 + _y, random(2) + 1);
Symbol 298 MovieClip [mapMC1] Frame 3
root.AttachLandBody("bugbear_L7", -533 + (550 * (_currentframe - root.startframe)), 320 + _y, 7, 80, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L7", 204 + (550 * (_currentframe - root.startframe)), 209 + _y, 4, 70, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L7", 487 + (550 * (_currentframe - root.startframe)), 209 + _y, -4, 70, 0, true, "HitFunction1");
root.AttachAward(2, 520 + (550 * (_currentframe - root.startframe)), 138 + _y);
root.AttachAward(2, 535 + (550 * (_currentframe - root.startframe)), 95 + _y);
Symbol 298 MovieClip [mapMC1] Frame 4
root.AttachLandBody("bugbear_L7", 78 + (550 * (_currentframe - root.startframe)), 209 + _y, 4, 70, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L7", 216 + (550 * (_currentframe - root.startframe)), 209 + _y, -4, 70, 35, true, "HitFunction1");
root.AttachLandBody("bugbear_L7", 364 + (550 * (_currentframe - root.startframe)), 209 + _y, -4, 70, 0, true, "HitFunction1");
root.AttachSkyBody("bugbear_L7", 423 + (550 * (_currentframe - root.startframe)), 203 + _y, 0, 0, 0, 0.5, 25, 0, "HitFunction1");
root.AttachSkyBody("bugbear_L7", 521 + (550 * (_currentframe - root.startframe)), 203 + _y, 0, 0, 0, 0.5, 25, 0, "HitFunction1");
root.AttachBarBody("bar1", 508 + (550 * (_currentframe - root.startframe)), 320 + _y);
root.AttachAward(2, 13 + (550 * (_currentframe - root.startframe)), 94 + _y);
root.AttachAward(2, 30 + (550 * (_currentframe - root.startframe)), 138 + _y);
root.AttachAward(2, 399 + (550 * (_currentframe - root.startframe)), 106 + _y);
root.AttachAward(2, 442 + (550 * (_currentframe - root.startframe)), 106 + _y);
root.AttachAward(2, 487 + (550 * (_currentframe - root.startframe)), 106 + _y);
root.AttachAward(2, 527 + (550 * (_currentframe - root.startframe)), 106 + _y);
root.playball(238 + (550 * (_currentframe - root.startframe)), 208 + _y, random(2) + 1);
root.magicbox(333 + (550 * (_currentframe - root.startframe)), 204 + _y);
Symbol 298 MovieClip [mapMC1] Frame 5
root.AttachSkyBody("bugbear_L7", 45 + (550 * (_currentframe - root.startframe)), 203 + _y, 0, 0, 0, 0.5, 25, 0, "HitFunction1");
root.AttachSkyBody("bugbear_L7", 140 + (550 * (_currentframe - root.startframe)), 203 + _y, 0, 0, 0, 0.5, 25, 0, "HitFunction1");
root.AttachLandBody("bugbear_L6", 213 + (550 * (_currentframe - root.startframe)), 213 + _y, 1, 260, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L6", 354 + (550 * (_currentframe - root.startframe)), 213 + _y, -1, 260, 130, true, "HitFunction1");
root.AttachLandBody("bugbear_L6", 488 + (550 * (_currentframe - root.startframe)), 213 + _y, -1, 260, 0, true, "HitFunction1");
root.AttachAward(2, 21 + (550 * (_currentframe - root.startframe)), 106 + _y);
root.AttachAward(2, 66 + (550 * (_currentframe - root.startframe)), 106 + _y);
root.AttachAward(2, 109 + (550 * (_currentframe - root.startframe)), 106 + _y);
root.AttachAward(2, 152 + (550 * (_currentframe - root.startframe)), 106 + _y);
Symbol 298 MovieClip [mapMC1] Frame 6
root.AttachLandBody("bugbear_L6", 2358 + (550 * (_currentframe - root.startframe)), 251 + _y, -1, 40, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L6", 430 + (550 * (_currentframe - root.startframe)), 125 + _y, -1, 40, 0, true, "HitFunction1");
root.AttachAward(2, 16 + (550 * (_currentframe - root.startframe)), 89 + _y);
root.AttachAward(2, 39 + (550 * (_currentframe - root.startframe)), 89 + _y);
root.AttachAward(2, 16 + (550 * (_currentframe - root.startframe)), 112 + _y);
root.AttachAward(2, 39 + (550 * (_currentframe - root.startframe)), 112 + _y);
root.AttachSkyBody("bugbear_L7", 41 + (550 * (_currentframe - root.startframe)), 190 + _y, 0, 0, 0, -2, 50, 0, "HitFunction1");
Symbol 298 MovieClip [mapMC1] Frame 7
root.AttachLandBody("bugbear_L6", 66 + (550 * (_currentframe - root.startframe)), 223 + _y, 1, 400, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L6", 166 + (550 * (_currentframe - root.startframe)), 223 + _y, 1, 400, 100, true, "HitFunction1");
root.AttachLandBody("bugbear_L6", 266 + (550 * (_currentframe - root.startframe)), 223 + _y, 1, 400, 200, true, "HitFunction1");
root.AttachLandBody("bugbear_L6", 366 + (550 * (_currentframe - root.startframe)), 223 + _y, 1, 400, 300, true, "HitFunction1");
root.AttachLandBody("bugbear_L6", 466 + (550 * (_currentframe - root.startframe)), 223 + _y, 1, 400, 400, true, "HitFunction1");
root.AttachAward(2, 9 + (550 * (_currentframe - root.startframe)), 112 + _y);
root.AttachAward(2, 31 + (550 * (_currentframe - root.startframe)), 112 + _y);
root.AttachAward(2, 522 + (550 * (_currentframe - root.startframe)), 93 + _y);
root.AttachAward(2, 540 + (550 * (_currentframe - root.startframe)), 93 + _y);
Symbol 298 MovieClip [mapMC1] Frame 8
root.MoveWater1(314 + (550 * (_currentframe - root.startframe)), 187 + _y);
root.AttachSkyBody("bugbear_L7", 279 + (550 * (_currentframe - root.startframe)), 130 + _y, 0, 0, 0, -2, 50, 0, "HitFunction1");
root.AttachSkyBody("bugbear_L7", 279 + (550 * (_currentframe - root.startframe)), 230 + _y, 0, 0, 0, 2, 50, 0, "HitFunction1");
root.AttachSkyBody("bugbear_L7", 420 + (550 * (_currentframe - root.startframe)), 130 + _y, 0, 0, 0, -2, 50, 0, "HitFunction1");
root.AttachSkyBody("bugbear_L7", 420 + (550 * (_currentframe - root.startframe)), 230 + _y, 0, 0, 0, 2, 50, 0, "HitFunction1");
root.AttachAward(2, 270 + (550 * (_currentframe - root.startframe)), 21 + _y);
root.AttachAward(2, 270 + (550 * (_currentframe - root.startframe)), 64 + _y);
root.AttachAward(2, 335 + (550 * (_currentframe - root.startframe)), 61 + _y);
root.AttachAward(2, 335 + (550 * (_currentframe - root.startframe)), 101 + _y);
root.AttachAward(2, 335 + (550 * (_currentframe - root.startframe)), 134 + _y);
root.AttachAward(2, 403 + (550 * (_currentframe - root.startframe)), 21 + _y);
root.AttachAward(2, 403 + (550 * (_currentframe - root.startframe)), 64 + _y);
root.playball(120 + (550 * (_currentframe - root.startframe)), 149 + _y, random(2) + 1);
Symbol 298 MovieClip [mapMC1] Frame 9
root.MoveWater1(462 + (550 * (_currentframe - root.startframe)), 189 + _y);
root.MoveWater2(165 + (550 * (_currentframe - root.startframe)), 261 + _y, -2, 70);
root.MoveWater2(260 + (550 * (_currentframe - root.startframe)), 241 + _y, 2, 70);
root.AttachAward(2, 74 + (550 * (_currentframe - root.startframe)), 105 + _y);
root.AttachAward(2, 74 + (550 * (_currentframe - root.startframe)), 153 + _y);
root.AttachAward(2, 442 + (550 * (_currentframe - root.startframe)), 70 + _y);
root.AttachAward(2, 442 + (550 * (_currentframe - root.startframe)), 100 + _y);
root.AttachAward(2, 442 + (550 * (_currentframe - root.startframe)), 130 + _y);
root.AttachAward(2, 442 + (550 * (_currentframe - root.startframe)), 160 + _y);
Symbol 298 MovieClip [mapMC1] Frame 10
root.AttachLandBody("bugbear_L7", 105 + (550 * (_currentframe - root.startframe)), 127 + _y, 4, 80, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L7", 287 + (550 * (_currentframe - root.startframe)), 174 + _y, -4, 80, 40, true, "HitFunction1");
root.AttachLandBody("bugbear_L7", 445 + (550 * (_currentframe - root.startframe)), 215 + _y, -4, 80, 0, true, "HitFunction1");
root.AttachAward(2, 21 + (550 * (_currentframe - root.startframe)), 50 + _y);
root.AttachAward(2, 21 + (550 * (_currentframe - root.startframe)), 80 + _y);
root.AttachAward(2, 21 + (550 * (_currentframe - root.startframe)), 110 + _y);
root.AttachAward(6, 290 + (550 * (_currentframe - root.startframe)), 129 + _y);
root.magicbox(460 + (550 * (_currentframe - root.startframe)), 196 + _y);
Symbol 298 MovieClip [mapMC1] Frame 11
root.AttachLandBody("bugbear_L7", 81 + (550 * (_currentframe - root.startframe)), 210 + _y, 4, 40, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L7", 210 + (550 * (_currentframe - root.startframe)), 210 + _y, -4, 40, 0, true, "HitFunction1");
root.waterballMC(419 + (550 * (_currentframe - root.startframe)), 114 + _y);
Symbol 298 MovieClip [mapMC1] Frame 13
root.AttachBarBody("bar1", 262 + (550 * (_currentframe - root.startframe)), 300 + _y);
Symbol 298 MovieClip [mapMC1] Frame 14
root.passmarkerMC(400 + (550 * (_currentframe - root.startframe)), 164 + _y);
root.stopballMC = this.stopball;
this.stopball._visible = false;
Symbol 298 MovieClip [mapMC1] Frame 15
root.passlevel = true;
Symbol 298 MovieClip [mapMC1] Frame 16
root.playframe = this._currentframe;
Symbol 298 MovieClip [mapMC1] Frame 17
root.AttachLandBody("bugbear_L6", 39 + (550 * (_currentframe - root.startframe)), (330 + _y) - 30, 1, 300, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L7", 369 + (550 * (_currentframe - root.startframe)), (330 + _y) - 100, 2, 0, 0, true, "HitFunction1");
root.magicbox(245 + (550 * (_currentframe - root.startframe)), 307 + _y);
root.AttachAward(2, 406 + (550 * (_currentframe - root.startframe)), (70 + _y) - 30);
root.AttachAward(2, 406 + (550 * (_currentframe - root.startframe)), (100 + _y) - 30);
root.AttachAward(2, 406 + (550 * (_currentframe - root.startframe)), (130 + _y) - 30);
root.AttachAward(2, 406 + (550 * (_currentframe - root.startframe)), (160 + _y) - 30);
root.AttachAward(2, 505 + (550 * (_currentframe - root.startframe)), (70 + _y) - 30);
root.AttachAward(2, 505 + (550 * (_currentframe - root.startframe)), (100 + _y) - 30);
root.AttachAward(2, 505 + (550 * (_currentframe - root.startframe)), (130 + _y) - 30);
root.AttachAward(2, 505 + (550 * (_currentframe - root.startframe)), (160 + _y) - 30);
Symbol 298 MovieClip [mapMC1] Frame 18
root.AttachLandBody("bugbear_L6", 187 + (550 * (_currentframe - root.startframe)), 316 + _y, 1, 220, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L6", 352 + (550 * (_currentframe - root.startframe)), (330 + _y) - 30, -1, 220, 0, true, "HitFunction1");
root.AttachAward(2, 202 + (550 * (_currentframe - root.startframe)), 59 + _y);
root.AttachAward(2, 202 + (550 * (_currentframe - root.startframe)), 81 + _y);
root.AttachAward(2, 259 + (550 * (_currentframe - root.startframe)), 258 + _y);
root.AttachAward(2, 259 + (550 * (_currentframe - root.startframe)), 145 + _y);
root.playball(128 + (550 * (_currentframe - root.startframe)), 150 + _y, random(2) + 1);
Symbol 298 MovieClip [mapMC1] Frame 19
root.AttachAward(1, 507 + (550 * (_currentframe - root.startframe)), 100 + _y);
root.AttachAward(2, 507 + (550 * (_currentframe - root.startframe)), 150 + _y);
root.AttachAward(2, 507 + (550 * (_currentframe - root.startframe)), 180 + _y);
root.AttachAward(2, 507 + (550 * (_currentframe - root.startframe)), 210 + _y);
root.AttachAward(2, 507 + (550 * (_currentframe - root.startframe)), 230 + _y);
root.MoveWater1(382 + (550 * (_currentframe - root.startframe)), 260 + _y);
root.MoveWater1(468 + (550 * (_currentframe - root.startframe)), 261 + _y);
root.AttachBarBody("bar1", -22 + (550 * (_currentframe - root.startframe)), 330 + _y);
root.AttachSkyBody("bugbear_L7", 386 + (550 * (_currentframe - root.startframe)), 261 + _y, 0, 0, 0, 1, 100, 0, "HitFunction1");
root.AttachLandBody("bugbear_L7", 429 + (550 * (_currentframe - 1)), 215 + _y, 3, 70, 70, false, "HitFunction1");
Symbol 298 MovieClip [mapMC1] Frame 20
root.MoveWater2(0 + (550 * (_currentframe - root.startframe)), 292 + _y, 2, 50);
root.AttachSkyBody("bugbear_L7", 184 + (550 * (_currentframe - root.startframe)), 227 + _y, 1, 150, 0, 0, 0, 0, "HitFunction1");
root.AttachSkyBody("bugbear_L7", 257 + (550 * (_currentframe - root.startframe)), 277 + _y, -1, 150, 0, 0, 0, 0, "HitFunction1");
Symbol 298 MovieClip [mapMC1] Frame 21
root.AttachLandBody("bugbear_L7", 136 + (550 * (_currentframe - root.startframe)), 300 + _y, -3, 80, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L7", 198 + (550 * (_currentframe - root.startframe)), 306 + _y, -3, 80, 0, true, "HitFunction1");
root.AttachAward(2, 270 + (550 * (_currentframe - root.startframe)), 216 + _y);
root.AttachAward(2, 245 + (550 * (_currentframe - root.startframe)), 239 + _y);
root.AttachAward(2, 270 + (550 * (_currentframe - root.startframe)), 239 + _y);
root.AttachAward(2, 293 + (550 * (_currentframe - root.startframe)), 239 + _y);
root.playball(149 + (550 * (_currentframe - root.startframe)), 316 + _y, random(2) + 1);
Symbol 298 MovieClip [mapMC1] Frame 22
root.AttachLandBody("bugbear_L7", 417 + (550 * (_currentframe - root.startframe)), 300 + _y, -3, 200, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L7", 475 + (550 * (_currentframe - root.startframe)), 310 + _y, -3, 200, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L7", 532 + (550 * (_currentframe - root.startframe)), 317 + _y, -3, 200, 0, true, "HitFunction1");
Symbol 298 MovieClip [mapMC1] Frame 23
root.AttachLandBody("bugbear_L7", -623 + (550 * (_currentframe - root.startframe)), 266 + _y, 7, 80, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L7", -568 + (550 * (_currentframe - root.startframe)), 266 + _y, 7, 80, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L6", 182 + (550 * (_currentframe - root.startframe)), 269 + _y, -1, 60, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L6", 274 + (550 * (_currentframe - root.startframe)), 201 + _y, -1, 60, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L6", 395 + (550 * (_currentframe - root.startframe)), (151 + _y) - 30, -1, 60, 0, true, "HitFunction1");
root.AttachBarBody("bar1", 410 + (550 * (_currentframe - root.startframe)), (340 + _y) - 30);
root.AttachBarBody("bar1", 480 + (550 * (_currentframe - root.startframe)), (340 + _y) - 30);
root.AttachAward(1, 404 + (550 * (_currentframe - root.startframe)), 72 + _y);
Symbol 298 MovieClip [mapMC1] Frame 24
root.AttachLandBody("bugbear_L8", 96 + (550 * (_currentframe - root.startframe)), (328 + _y) - 30, -2, 30, 0, true, "HitFunction2");
root.AttachLandBody("bugbear_L8", 240 + (550 * (_currentframe - root.startframe)), (330 + _y) - 30, -2, 30, 0, true, "HitFunction2");
root.AttachLandBody("bugbear_L6", 527 + (550 * (_currentframe - root.startframe)), (147 + _y) - 30, -1, 60, 0, true, "HitFunction1");
root.AttachBarBody("bar1", 109 + (550 * (_currentframe - root.startframe)), (340 + _y) - 30);
root.AttachBarBody("bar1", 171 + (550 * (_currentframe - root.startframe)), (340 + _y) - 30);
Symbol 298 MovieClip [mapMC1] Frame 25
root.MoveWater2(345 + (550 * (_currentframe - root.startframe)), 305 + _y, 2, 70);
root.AttachSkyBody("bugbear_L7", 338 + (550 * (_currentframe - root.startframe)), 156 + _y, 0, 0, 0, 2, 50, 0, "HitFunction1");
root.AttachSkyBody("bugbear_L7", 505 + (550 * (_currentframe - root.startframe)), 256 + _y, 0, 0, 0, 1, 50, 0, "HitFunction1");
root.AttachAward(1, 42 + (550 * (_currentframe - root.startframe)), 76 + _y);
Symbol 298 MovieClip [mapMC1] Frame 26
root.AttachLandBody("bugbear_L8", 108 + (550 * (_currentframe - root.startframe)), (332 + _y) - 30, 2, 150, 0, true, "HitFunction2");
root.AttachLandBody("bugbear_L8", 296 + (550 * (_currentframe - root.startframe)), (332 + _y) - 30, -2, 150, 75, true, "HitFunction2");
root.AttachLandBody("bugbear_L8", 415 + (550 * (_currentframe - root.startframe)), (332 + _y) - 30, -2, 150, 0, true, "HitFunction2");
root.playball(410 + (550 * (_currentframe - root.startframe)), (321 + _y) - 30, random(2) + 1);
root.magicbox(532 + (550 * (_currentframe - root.startframe)), 305 + _y);
Symbol 298 MovieClip [mapMC1] Frame 27
root.passmarkerMC(363 + (550 * (_currentframe - root.startframe)), 264 + _y);
Symbol 298 MovieClip [mapMC1] Frame 28
root.passlevel = true;
Symbol 298 MovieClip [mapMC1] Frame 29
root.MoveWater3(324 + (550 * (_currentframe - root.startframe)), 320 + _y);
root.MoveWater1(493 + (550 * (_currentframe - root.startframe)), 237 + _y);
root.AttachAward(2, 354 + (550 * (_currentframe - root.startframe)), 80 + _y);
root.AttachAward(2, 354 + (550 * (_currentframe - root.startframe)), 110 + _y);
root.AttachAward(2, 354 + (550 * (_currentframe - root.startframe)), 130 + _y);
root.AttachAward(2, 354 + (550 * (_currentframe - root.startframe)), 160 + _y);
root.AttachAward(2, 354 + (550 * (_currentframe - root.startframe)), 180 + _y);
root.playball(203 + (550 * (_currentframe - root.startframe)), 296 + _y, random(2) + 1);
root.playframe = this._currentframe;
Symbol 298 MovieClip [mapMC1] Frame 30
root.MoveWater3(73 + (550 * (_currentframe - root.startframe)), 320 + _y);
root.MoveWater2(152 + (550 * (_currentframe - root.startframe)), 261 + _y, 2, 100);
root.MoveWater1(493 + (550 * (_currentframe - root.startframe)), 237 + _y);
root.AttachSkyBody("bugbear_L7", 416 + (550 * (_currentframe - root.startframe)), 178 + _y, 2, 150, 0, 0, 0, 0, "HitFunction1");
root.AttachAward(2, 90 + (550 * (_currentframe - root.startframe)), 80 + _y);
root.AttachAward(2, 90 + (550 * (_currentframe - root.startframe)), 110 + _y);
root.AttachAward(2, 90 + (550 * (_currentframe - root.startframe)), 130 + _y);
root.AttachAward(2, 90 + (550 * (_currentframe - root.startframe)), 160 + _y);
root.AttachAward(2, 90 + (550 * (_currentframe - root.startframe)), 50 + _y);
Symbol 298 MovieClip [mapMC1] Frame 31
root.MoveWater3(77 + (550 * (_currentframe - root.startframe)), 320 + _y);
root.MoveWater3(255 + (550 * (_currentframe - root.startframe)), 320 + _y);
root.MoveWater3(431 + (550 * (_currentframe - root.startframe)), 320 + _y);
root.AttachSkyBody("bugbear_L7", 516 + (550 * (_currentframe - root.startframe)), 178 + _y, 2, 150, 0, 0, 0, 0, "HitFunction1");
root.AttachAward(1, 157 + (550 * (_currentframe - root.startframe)), 140 + _y);
root.AttachAward(1, 324 + (550 * (_currentframe - root.startframe)), 142 + _y);
root.AttachAward(1, 468 + (550 * (_currentframe - root.startframe)), 140 + _y);
Symbol 298 MovieClip [mapMC1] Frame 32
root.AttachLandBody("bugbear_L6", 116 + (550 * (_currentframe - root.startframe)), (323 + _y) - 30, -1, 500, 400, true, "HitFunction1");
root.AttachLandBody("bugbear_L6", 216 + (550 * (_currentframe - root.startframe)), (323 + _y) - 30, -1, 500, 300, true, "HitFunction1");
root.AttachLandBody("bugbear_L6", 316 + (550 * (_currentframe - root.startframe)), (323 + _y) - 30, -1, 500, 200, true, "HitFunction1");
root.AttachLandBody("bugbear_L6", 416 + (550 * (_currentframe - root.startframe)), (323 + _y) - 30, -1, 500, 100, true, "HitFunction1");
root.playball(234 + (550 * (_currentframe - root.startframe)), 321 + _y, random(2) + 1);
root.AttachAward(6, 499 + (550 * (_currentframe - root.startframe)), (242 + _y) - 30);
Symbol 298 MovieClip [mapMC1] Frame 33
root.AttachLandBody("bugbear_L7", 360 + (550 * (_currentframe - root.startframe)), (279 + _y) - 30, 4, 80, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L7", 539 + (550 * (_currentframe - root.startframe)), (261 + _y) - 30, -4, 80, 40, true, "HitFunction1");
root.AttachAward(1, 264 + (550 * (_currentframe - root.startframe)), (214 + _y) - 30);
Symbol 298 MovieClip [mapMC1] Frame 34
root.playball(533 + (550 * (_currentframe - root.startframe)), 319 + _y, random(2) + 1);
Symbol 298 MovieClip [mapMC1] Frame 35
root.AttachLandBody("bugbear_L7", 60 + (550 * (_currentframe - root.startframe)), 316 + _y, -2, 200, 200, true, "HitFunction1");
root.AttachLandBody("bugbear_L8", 0 + (550 * (_currentframe - root.startframe)), 316 + _y, -2, 200, 200, true, "HitFunction2");
root.AttachLandBody("bugbear_L7", 260 + (550 * (_currentframe - root.startframe)), 316 + _y, -2, 200, 100, true, "HitFunction1");
root.AttachLandBody("bugbear_L8", 200 + (550 * (_currentframe - root.startframe)), 316 + _y, -2, 200, 100, true, "HitFunction2");
root.AttachLandBody("bugbear_L7", 460 + (550 * (_currentframe - root.startframe)), 316 + _y, -2, 200, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L8", 400 + (550 * (_currentframe - root.startframe)), 316 + _y, -2, 200, 0, true, "HitFunction2");
root.magicbox(358 + (550 * (_currentframe - root.startframe)), 307 + _y);
Symbol 298 MovieClip [mapMC1] Frame 36
root.MoveWater1(65 + (550 * (_currentframe - root.startframe)), 274 + _y);
root.MoveWater1(197 + (550 * (_currentframe - root.startframe)), 229 + _y);
root.MoveWater1(330 + (550 * (_currentframe - root.startframe)), 175 + _y);
root.MoveWater3(484 + (550 * (_currentframe - root.startframe)), 310 + _y);
root.AttachSkyBody("bugbear_L7", 416 + (550 * (_currentframe - root.startframe)), 178 + _y, 2, 150, 0, 0, 0, 0, "HitFunction1");
root.AttachAward(1, 140 + (550 * (_currentframe - root.startframe)), 129 + _y);
root.AttachAward(1, 309 + (550 * (_currentframe - root.startframe)), 129 + _y);
root.AttachAward(1, 467 + (550 * (_currentframe - root.startframe)), 129 + _y);
Symbol 298 MovieClip [mapMC1] Frame 37
root.MoveWater1(94 + (550 * (_currentframe - root.startframe)), 219 + _y);
root.MoveWater2(263 + (550 * (_currentframe - root.startframe)), 279 + _y, 2, 120);
root.AttachSkyBody("bugbear_L7", 285 + (550 * (_currentframe - root.startframe)), 194 + _y, 0, 0, 0, 2, 80, 0, "HitFunction1");
root.AttachSkyBody("bugbear_L7", 476 + (550 * (_currentframe - root.startframe)), 194 + _y, 0, 0, 0, 2, 80, 0, "HitFunction1");
Symbol 298 MovieClip [mapMC1] Frame 38
root.AttachLandBody("bugbear_L7", 195 + (550 * (_currentframe - root.startframe)), 310 + _y, 4, 40, 0, true, "HitFunction1");
root.AttachLandBody("bugbear_L7", 412 + (550 * (_currentframe - root.startframe)), 310 + _y, -4, 40, 0, true, "HitFunction1");
Symbol 298 MovieClip [mapMC1] Frame 40
root.AttachBoss1(430 + (550 * (this._currentframe - root.startframe)), 173 + this._y);
Symbol 426 MovieClip [mapMC2] Frame 2
root.jumpobject("JumpMC2", 115 + (550 * (_currentframe - root.startframe)), 290 + _y, -26, 0);
root.eddyluntMC("eddylunt1", 29 + (550 * (_currentframe - root.startframe)), 176 + _y, 3);
root.NPC2_1("bugbear_L1", 200 + (550 * (_currentframe - root.startframe)), 188 + _y, 2, 55, 0, "HitFunction1");
root.AttachAward(2, 369 + (550 * (_currentframe - root.startframe)), 106 + _y);
root.AttachAward(2, 526 + (550 * (_currentframe - root.startframe)), 106 + _y);
Symbol 426 MovieClip [mapMC2] Frame 3
root.NPC2_2("bugbear_L5", 183 + (550 * (_currentframe - root.startframe)), 327 + _y, -1.5, 150, 150, 130, 20, "HitFunction1");
root.NPC2_1("bugbear_L1", 25 + (550 * (_currentframe - root.startframe)), 188 + _y, 2, 35, 0, "HitFunction1");
root.AttachAward(1, 224 + (550 * (_currentframe - root.startframe)), 115 + _y);
root.playball(521 + (550 * (_currentframe - root.startframe)), 210 + _y, random(2) + 1);
Symbol 426 MovieClip [mapMC2] Frame 4
root.NPC2_3("bugbear_L1", 323 + (550 * (_currentframe - root.startframe)), 323 + _y, -2, 100, 0, 0, -6, 60, "HitFunction1");
root.NPC2_3("bugbear_L1", 523 + (550 * (_currentframe - root.startframe)), 323 + _y, -2, 400, 0, 0, -6, 60, "HitFunction1");
Symbol 426 MovieClip [mapMC2] Frame 5
root.dorplandMC("dorpland", 379 + (550 * (_currentframe - root.startframe)), 217 + _y);
root.dorplandMC("dorpland", 483 + (550 * (_currentframe - root.startframe)), 116 + _y);
root.AttachAward(2, 121 + (550 * (_currentframe - root.startframe)), 190 + _y);
root.AttachAward(2, 121 + (550 * (_currentframe - root.startframe)), 221 + _y);
root.AttachAward(2, 407 + (550 * (_currentframe - root.startframe)), 148 + _y);
root.AttachAward(1, 487 + (550 * (_currentframe - root.startframe)), 148 + _y);
root.AttachAward(1, 487 + (550 * (_currentframe - root.startframe)), 190 + _y);
root.playball(240 + (550 * (_currentframe - root.startframe)), 172 + _y, random(2) + 1);
Symbol 426 MovieClip [mapMC2] Frame 6
root.MoveLandMC("dorpland", 44 + (550 * (_currentframe - root.startframe)), 279 + _y, 2, 40);
root.AttachAward(2, 111 + (550 * (_currentframe - root.startframe)), 173 + _y);
root.AttachAward(2, 229 + (550 * (_currentframe - root.startframe)), 139 + _y);
root.AttachAward(2, 229 + (550 * (_currentframe - root.startframe)), 116 + _y);
root.AttachAward(2, 229 + (550 * (_currentframe - root.startframe)), 92 + _y);
Symbol 426 MovieClip [mapMC2] Frame 7
root.AttachBarBody("bar2", 290 + (550 * (_currentframe - root.startframe)), 327 + _y);
root.AttachBarBody("bar2", 466 + (550 * (_currentframe - root.startframe)), 327 + _y);
root.AttachAward(2, 351 + (550 * (_currentframe - root.startframe)), 84 + _y);
root.AttachAward(2, 381 + (550 * (_currentframe - root.startframe)), 84 + _y);
root.AttachAward(2, 411 + (550 * (_currentframe - root.startframe)), 84 + _y);
root.MoveLandMC("dorpland", 510 + (550 * (_currentframe - root.startframe)), 230 + _y, 0, 40000);
Symbol 426 MovieClip [mapMC2] Frame 8
root.AttachBarBody("bar2", -22 + (550 * (_currentframe - root.startframe)), 327 + _y);
root.NPC2_1("bugbear_L1", 316 + (550 * (_currentframe - root.startframe)), 327 + _y, 4, 50, 0, "HitFunction1");
root.NPC2_1("bugbear_L1", 533 + (550 * (_currentframe - root.startframe)), 327 + _y, -4, 50, 0, "HitFunction1");
Symbol 426 MovieClip [mapMC2] Frame 9
root.AttachAward(2, 131 + (550 * (_currentframe - root.startframe)), 208 + _y);
root.AttachAward(2, 348 + (550 * (_currentframe - root.startframe)), 158 + _y);
root.AttachAward(2, 367 + (550 * (_currentframe - root.startframe)), 158 + _y);
Symbol 426 MovieClip [mapMC2] Frame 10
root.NPC2_2("bugbear_L5_2", 334 + (550 * (_currentframe - root.startframe)), 340 + _y, -0.5, 600, 600, 100000, 1, "HitFunction1", 100);
root.AttachAward(1, 117 + (550 * (_currentframe - root.startframe)), 201 + _y);
root.playball(323 + (550 * (_currentframe - root.startframe)), 167 + _y, random(2) + 1);
Symbol 426 MovieClip [mapMC2] Frame 11
root.NPC2_1("bugbear_L1", 332 + (550 * (_currentframe - root.startframe)), 327 + _y, 4, 50, 0, "HitFunction1");
root.NPC2_1("bugbear_L1", 505 + (550 * (_currentframe - root.startframe)), 327 + _y, -4, 50, 0, "HitFunction1");
Symbol 426 MovieClip [mapMC2] Frame 12
root.NPC2_1("bugbear_L1", 19 + (550 * (_currentframe - root.startframe)), 327 + _y, 4, 50, 0, "HitFunction1");
root.NPC2_1("bugbear_L1", 302 + (550 * (_currentframe - root.startframe)), 327 + _y, -4, 50, 0, "HitFunction1");
root.magicbox(223 + (550 * (_currentframe - root.startframe)), 332 + _y);
Symbol 426 MovieClip [mapMC2] Frame 13
root.passmarkerMC(443 + (550 * (_currentframe - root.startframe)), 294 + _y);
Symbol 426 MovieClip [mapMC2] Frame 14
root.passlevel = true;
Symbol 426 MovieClip [mapMC2] Frame 15
root.playframe = this._currentframe;
Symbol 426 MovieClip [mapMC2] Frame 16
root.NPC2_1("bugbear_L1", 232 + (550 * (_currentframe - root.startframe)), 323 + _y, -4, 50, 0, "HitFunction1");
Symbol 426 MovieClip [mapMC2] Frame 17
root.NPC2_1("bugbear_L1", -602 + (550 * (_currentframe - root.startframe)), 323 + _y, 7, 100, 0, "HitFunction1");
root.NPC2_1("bugbear_L1", -554 + (550 * (_currentframe - root.startframe)), 323 + _y, 7, 100, 0, "HitFunction1");
root.NPC2_1("bugbear_L1", 392 + (550 * (_currentframe - root.startframe)), 211 + _y, -7, 100, 0, "HitFunction1");
root.NPC2_1("bugbear_L1", 438 + (550 * (_currentframe - root.startframe)), 211 + _y, -7, 100, 0, "HitFunction1");
root.AttachAward(2, 276 + (550 * (_currentframe - root.startframe)), 126 + _y);
root.AttachAward(2, 306 + (550 * (_currentframe - root.startframe)), 126 + _y);
root.AttachAward(2, 336 + (550 * (_currentframe - root.startframe)), 126 + _y);
root.AttachAward(2, 366 + (550 * (_currentframe - root.startframe)), 126 + _y);
root.playball(253 + (550 * (_currentframe - root.startframe)), 144 + _y, random(2) + 1);
Symbol 426 MovieClip [mapMC2] Frame 18
root.NPC2_1("bugbear_L1", 392 + (550 * (_currentframe - root.startframe)), 215 + _y, -4, 400, 0, "HitFunction1");
root.NPC2_1("bugbear_L1", 438 + (550 * (_currentframe - root.startframe)), 215 + _y, -4, 400, 0, "HitFunction1");
root.NPC2_1("bugbear_L1", 492 + (550 * (_currentframe - root.startframe)), 215 + _y, -4, 400, 0, "HitFunction1");
root.magicbox(374 + (550 * (_currentframe - root.startframe)), 221 + _y);
Symbol 426 MovieClip [mapMC2] Frame 19
root.MoveLandMC("dorpland", 103 + (550 * (_currentframe - root.startframe)), 172 + _y, 0, 10000);
root.MoveLandMC("dorpland", 230 + (550 * (_currentframe - root.startframe)), 99 + _y, 0, 10000);
root.MoveLandMC("dorpland", 360 + (550 * (_currentframe - root.startframe)), 172 + _y, 0, 10000);
root.MoveLandMC("dorpland", 437 + (550 * (_currentframe - root.startframe)), 172 + _y, 2, 40);
root.eddyluntMC("eddylunt1", 224 + (550 * (_currentframe - root.startframe)), 185 + _y, 3);
root.AttachAward(1, 119 + (550 * (_currentframe - root.startframe)), 110 + _y);
root.AttachAward(1, 270 + (550 * (_currentframe - root.startframe)), 40 + _y);
root.AttachAward(1, 423 + (550 * (_currentframe - root.startframe)), 110 + _y);
Symbol 426 MovieClip [mapMC2] Frame 20
root.NPC2_4(32 + (550 * (_currentframe - root.startframe)), 338 + _y);
root.AttachSkyBody("bugbear_L4", 287 + (550 * (_currentframe - root.startframe)), 258 + _y, 0, 0, 0, -2, 100, 100, "HitFunction1", 3);
root.MoveLandMC("dorpland", 82 + (550 * (_currentframe - root.startframe)), 203 + _y, 2, 80);
root.MoveLandMC("dorpland", 329 + (550 * (_currentframe - root.startframe)), 129 + _y, 3, 60);
Symbol 426 MovieClip [mapMC2] Frame 21
root.AttachSkyBody("bugbear_L4", 199 + (550 * (_currentframe - root.startframe)), 164 + _y, 0, 0, 0, -2, 50, 50, "HitFunction1", 3);
root.AttachSkyBody("bugbear_L4", 258 + (550 * (_currentframe - root.startframe)), 164 + _y, 2, 100, 0, 0, 0, 0, "HitFunction1", 3);
root.AttachSkyBody("bugbear_L4", 287 + (550 * (_currentframe - root.startframe)), 164 + _y, 2, 100, 100, 0, 0, 0, "HitFunction1", 3);
root.AttachAward(2, 235 + (550 * (_currentframe - root.startframe)), 60 + _y);
root.AttachAward(2, 329 + (550 * (_currentframe - root.startframe)), 60 + _y);
root.AttachAward(2, 423 + (550 * (_currentframe - root.startframe)), 60 + _y);
root.playball(263 + (550 * (_currentframe - root.startframe)), 217 + _y, random(2) + 1);
Symbol 426 MovieClip [mapMC2] Frame 22
root.dorplandMC("dorpland", 63 + (550 * (_currentframe - root.startframe)), 219 + _y);
root.dorplandMC("dorpland", 160 + (550 * (_currentframe - root.startframe)), 141 + _y);
root.dorplandMC("dorpland", 341 + (550 * (_currentframe - root.startframe)), 208 + _y);
root.dorplandMC("dorpland", 438 + (550 * (_currentframe - root.startframe)), 147 + _y);
root.AttachSkyBody("bugbear_L4", 250 + (550 * (_currentframe - root.startframe)), 168 + _y, 0, 0, 0, 2, 50, 50, "HitFunction1", 3);
root.AttachSkyBody("bugbear_L4", 250 + (550 * (_currentframe - root.startframe)), 268 + _y, 0, 0, 0, 2, 50, 0, "HitFunction1", 3);
root.AttachSkyBody("bugbear_L4", 524 + (550 * (_currentframe - root.startframe)), 168 + _y, 0, 0, 0, 2, 50, 50, "HitFunction1", 3);
root.AttachSkyBody("bugbear_L4", 524 + (550 * (_currentframe - root.startframe)), 268 + _y, 0, 0, 0, 2, 50, 0, "HitFunction1", 3);
Symbol 426 MovieClip [mapMC2] Frame 23
root.AttachLandBody("bugbear_L4", 70 + (550 * (_currentframe - root.startframe)), 277 + _y, 4, 100, 0, true, "HitFunction1", 3);
root.AttachLandBody("bugbear_L4", 522 + (550 * (_currentframe - root.startframe)), 277 + _y, -4, 100, 0, true, "HitFunction1", 3);
root.AttachAward(2, 97 + (550 * (_currentframe - root.startframe)), 116 + _y);
root.AttachAward(2, 97 + (550 * (_currentframe - root.startframe)), 134 + _y);
root.AttachAward(2, 119 + (550 * (_currentframe - root.startframe)), 116 + _y);
root.AttachAward(2, 119 + (550 * (_currentframe - root.startframe)), 134 + _y);
Symbol 426 MovieClip [mapMC2] Frame 24
root.AttachLandBody("bugbear_L4", 100 + (550 * (_currentframe - root.startframe)), 216 + _y, 3, 60, 0, true, "HitFunction1", 3);
root.AttachLandBody("bugbear_L4", 160 + (550 * (_currentframe - root.startframe)), 216 + _y, -3, 60, 40, true, "HitFunction1", 3);
root.AttachLandBody("bugbear_L4", 220 + (550 * (_currentframe - root.startframe)), 216 + _y, -3, 60, 20, true, "HitFunction1", 3);
root.AttachLandBody("bugbear_L4", 280 + (550 * (_currentframe - root.startframe)), 216 + _y, -3, 60, 0, true, "HitFunction1", 3);
root.eddyluntMC("eddylunt1", 535 + (550 * (_currentframe - root.startframe)), 54 + _y, 3);
root.NPC2_2("bugbear_L5_2", 538 + (550 * (_currentframe - root.startframe)), 329 + _y, -0.5, 100, 100, 100000, 1, "HitFunction1", 100);
root.playball(303 + (550 * (_currentframe - root.startframe)), 157 + _y, random(2) + 1);
Symbol 426 MovieClip [mapMC2] Frame 25
root.AttachLandBody("bugbear_L4", 240 + (550 * (_currentframe - root.startframe)), 216 + _y, 3, 60, 0, true, "HitFunction1", 3);
root.AttachLandBody("bugbear_L4", 300 + (550 * (_currentframe - root.startframe)), 216 + _y, -3, 60, 40, true, "HitFunction1", 3);
root.AttachLandBody("bugbear_L4", 360 + (550 * (_currentframe - root.startframe)), 216 + _y, -3, 60, 20, true, "HitFunction1", 3);
root.AttachLandBody("bugbear_L4", 420 + (550 * (_currentframe - root.startframe)), 216 + _y, -3, 60, 0, true, "HitFunction1", 3);
Symbol 426 MovieClip [mapMC2] Frame 26
root.passmarkerMC(396 + (550 * (_currentframe - root.startframe)), 182 + _y);
root.AttachAward(2, 140 + (550 * (_currentframe - root.startframe)), 165 + _y);
root.AttachAward(2, 125 + (550 * (_currentframe - root.startframe)), 136 + _y);
root.AttachAward(2, 160 + (550 * (_currentframe - root.startframe)), 136 + _y);
root.AttachAward(2, 110 + (550 * (_currentframe - root.startframe)), 108 + _y);
root.AttachAward(2, 178 + (550 * (_currentframe - root.startframe)), 108 + _y);
root.AttachAward(2, 95 + (550 * (_currentframe - root.startframe)), 79 + _y);
root.AttachAward(2, 196 + (550 * (_currentframe - root.startframe)), 79 + _y);
Symbol 426 MovieClip [mapMC2] Frame 27
root.passlevel = true;
Symbol 426 MovieClip [mapMC2] Frame 28
root.playframe = this._currentframe;
root.playball(298 + (550 * (_currentframe - root.startframe)), 178 + _y, random(2) + 1);
Symbol 426 MovieClip [mapMC2] Frame 29
root.AttachSkyBody("bugbear_L4", 5 + (550 * (this._currentframe - root.startframe)), 175 + _y, 0, 0, 0, 2, 50, 50, "HitFunction1", 3);
root.AttachJumpBody("bugbear_L4", 66 + (550 * (this._currentframe - root.startframe)), 272 + this._y, 2, 200, 0, 0, -8, 80, "HitFunction1", 3);
root.AttachJumpBody("bugbear_L4", 515 + (550 * (this._currentframe - root.startframe)), 272 + this._y, -2, 200, 0, 0, -8, 80, "HitFunction1", 3);
Symbol 426 MovieClip [mapMC2] Frame 30
root.AttachLandBody("bugbear_L4", 92 + (550 * (_currentframe - root.startframe)), 272 + _y, 3, 30, 0, true, "HitFunction1", 3);
root.AttachLandBody("bugbear_L4", 213 + (550 * (_currentframe - root.startframe)), 272 + _y, -3, 30, 0, true, "HitFunction1", 3);
root.MoveLandMC("dorpland", 502 + (550 * (_currentframe - root.startframe)), 130 + _y, 0, 0);
root.eddyluntMC("eddylunt1", 540 + (550 * (_currentframe - root.startframe)), 183 + _y, -3);
root.AttachAward(2, 27 + (550 * (_currentframe - root.startframe)), 58 + _y);
root.AttachAward(2, 27 + (550 * (_currentframe - root.startframe)), 102 + _y);
root.AttachAward(1, 481 + (550 * (_currentframe - root.startframe)), 58 + _y);
root.AttachAward(1, 481 + (550 * (_currentframe - root.startframe)), 91 + _y);
Symbol 426 MovieClip [mapMC2] Frame 31
root.MoveLandMC("dorpland", 449 + (550 * (_currentframe - root.startframe)), 106 + _y, 0, 0);
root.eddyluntMC("eddylunt1", 530 + (550 * (_currentframe - root.startframe)), 160 + _y, -3);
root.playball(131 + (550 * (_currentframe - root.startframe)), 72 + _y, random(2) + 1);
Symbol 426 MovieClip [mapMC2] Frame 32
root.eddyluntMC("eddylunt2", 327 + (550 * (_currentframe - root.startframe)), 176 + _y, 3);
Symbol 426 MovieClip [mapMC2] Frame 33
root.eddyluntMC("eddylunt2", 239 + (550 * (_currentframe - root.startframe)), 190 + _y, -3);
root.MoveLandMC("dorpland", 142 + (550 * (_currentframe - root.startframe)), 158 + _y, 2, 80);
root.AttachLandBody("bugbear_L4", 355 + (550 * (_currentframe - root.startframe)), 215 + _y, 3, 50, 0, true, "HitFunction1", 3);
root.AttachLandBody("bugbear_L4", 500 + (550 * (_currentframe - root.startframe)), 215 + _y, -3, 50, 0, true, "HitFunction1", 3);
root.magicbox(274 + (550 * (_currentframe - root.startframe)), 271 + _y);
Symbol 426 MovieClip [mapMC2] Frame 34
root.dorplandMC("dorpland", 80 + (550 * (_currentframe - root.startframe)), 185 + _y);
root.dorplandMC("dorpland", 292 + (550 * (_currentframe - root.startframe)), 216 + _y);
root.dorplandMC("dorpland", 480 + (550 * (_currentframe - root.startframe)), 185 + _y);
root.AttachSkyBody("bugbear_L4", 165 + (550 * (this._currentframe - root.startframe)), 267 + _y, 0, 0, 0, -2, 50, 50, "HitFunction1", 3);
root.AttachSkyBody("bugbear_L4", 381 + (550 * (this._currentframe - root.startframe)), 207 + _y, 0, 0, 0, 2, 50, 50, "HitFunction1", 3);
root.AttachAward(2, 120 + (550 * (_currentframe - root.startframe)), 113 + _y);
root.AttachAward(2, 224 + (550 * (_currentframe - root.startframe)), 113 + _y);
root.AttachAward(2, 352 + (550 * (_currentframe - root.startframe)), 113 + _y);
root.AttachAward(2, 455 + (550 * (_currentframe - root.startframe)), 113 + _y);
Symbol 426 MovieClip [mapMC2] Frame 35
root.dorplandMC("dorpland", 61 + (550 * (_currentframe - root.startframe)), 208 + _y);
root.dorplandMC("dorpland", 445 + (550 * (_currentframe - root.startframe)), 208 + _y);
root.AttachSkyBody("bugbear_L4", 165 + (550 * (this._currentframe - root.startframe)), 267 + _y, 0, 0, 0, -1, 30, 30, "HitFunction1", 3);
root.AttachSkyBody("bugbear_L4", 265 + (550 * (this._currentframe - root.startframe)), 267 + _y, 0, 0, 0, 1, 30, 30, "HitFunction1", 3);
root.AttachSkyBody("bugbear_L4", 365 + (550 * (this._currentframe - root.startframe)), 267 + _y, 0, 0, 0, -1, 30, 30, "HitFunction1", 3);
root.AttachAward(2, 112 + (550 * (_currentframe - root.startframe)), 105 + _y);
root.AttachAward(2, 112 + (550 * (_currentframe - root.startframe)), 130 + _y);
root.AttachAward(2, 156 + (550 * (_currentframe - root.startframe)), 117 + _y);
root.AttachAward(2, 156 + (550 * (_currentframe - root.startframe)), 142 + _y);
root.AttachAward(2, 389 + (550 * (_currentframe - root.startframe)), 113 + _y);
root.AttachAward(2, 389 + (550 * (_currentframe - root.startframe)), 135 + _y);
root.AttachAward(2, 421 + (550 * (_currentframe - root.startframe)), 132 + _y);
root.AttachAward(2, 421 + (550 * (_currentframe - root.startframe)), 156 + _y);
Symbol 426 MovieClip [mapMC2] Frame 36
root.NPC2_1("bugbear_L1", 277 + (550 * (_currentframe - root.startframe)), 264 + _y, 4, 70, 0, "HitFunction1");
root.NPC2_1("bugbear_L1", 405 + (550 * (_currentframe - root.startframe)), 264 + _y, -4, 70, 0, "HitFunction1");
root.NPC2_1("bugbear_L1", 524 + (550 * (_currentframe - root.startframe)), 264 + _y, -4, 70, 0, "HitFunction1");
root.playball(60 + (550 * (_currentframe - root.startframe)), 144 + _y, random(2) + 1);
root.AttachAward(6, 352 + (550 * (_currentframe - root.startframe)), 135 + _y);
Symbol 426 MovieClip [mapMC2] Frame 37
root.eddyluntMC("eddylunt1", 543 + (550 * (_currentframe - root.startframe)), 283 + _y, -3);
Symbol 426 MovieClip [mapMC2] Frame 38
root.NPC2_2("bugbear_L5_2", 430 + (550 * (_currentframe - root.startframe)), 212 + _y, -0.5, 1000, 1000, 100000, 1, "HitFunction1", 100);
Symbol 426 MovieClip [mapMC2] Frame 39
root.AttachBoss2(480 + (550 * (this._currentframe - root.startframe)), 183 + this._y);
Symbol 619 MovieClip [mapMC3] Frame 2
root.NPC2_1("bugbear_L1", 138 + (550 * (_currentframe - root.startframe)), 314 + _y, -2, 200, 0, "HitFunction1");
root.NPC2_1("bugbear_L1", 498 + (550 * (_currentframe - root.startframe)), 159 + _y, -2, 50, 0, "HitFunction1");
root.NPC2_3("bugbear_L1", 197 + (550 * (_currentframe - root.startframe)), 318 + _y, -2, 400, 0, 0, -12, 60, "HitFunction1");
root.AttachAward(2, 266 + (550 * (_currentframe - root.startframe)), 90 + _y);
root.AttachAward(2, 306 + (550 * (_currentframe - root.startframe)), 90 + _y);
root.AttachAward(2, 340 + (550 * (_currentframe - root.startframe)), 90 + _y);
root.AttachAward(2, 377 + (550 * (_currentframe - root.startframe)), 52 + _y);
root.AttachAward(2, 414 + (550 * (_currentframe - root.startframe)), 52 + _y);
root.AttachAward(2, 452 + (550 * (_currentframe - root.startframe)), 52 + _y);
root.playball(310 + (550 * (_currentframe - root.startframe)), 198 + _y, random(2) + 1);
Symbol 619 MovieClip [mapMC3] Frame 3
root.slideland("dropland3", 280 + (550 * (_currentframe - root.startframe)), 204 + _y, 2);
root.slideland("dropland3", 430 + (550 * (_currentframe - root.startframe)), 170 + _y, 2);
root.AttachAward(1, 324 + (550 * (_currentframe - root.startframe)), 88 + _y);
root.AttachAward(1, 453 + (550 * (_currentframe - root.startframe)), 88 + _y);
Symbol 619 MovieClip [mapMC3] Frame 4
root.MoveLandMC2(184 + (550 * (_currentframe - root.startframe)), 160 + _y);
root.MoveLandMC2(248 + (550 * (_currentframe - root.startframe)), 160 + _y);
root.MoveLandMC2(377 + (550 * (_currentframe - root.startframe)), 100 + _y);
root.MoveLandMC2(440 + (550 * (_currentframe - root.startframe)), 100 + _y);
root.AttachSkyBody2("bugbear_Y1", 519 + (550 * (_currentframe - root.startframe)), 86 + _y, -2);
root.AttachAward(2, 185 + (550 * (_currentframe - root.startframe)), 138 + _y);
root.AttachAward(2, 243 + (550 * (_currentframe - root.startframe)), 110 + _y);
root.AttachAward(2, 330 + (550 * (_currentframe - root.startframe)), 76 + _y);
root.AttachAward(2, 364 + (550 * (_currentframe - root.startframe)), 76 + _y);
Symbol 619 MovieClip [mapMC3] Frame 5
root.MoveLandMC2(57 + (550 * (_currentframe - root.startframe)), 168 + _y);
root.MoveLandMC2(115 + (550 * (_currentframe - root.startframe)), 168 + _y);
root.MoveLandMC2(206 + (550 * (_currentframe - root.startframe)), 269 + _y);
root.MoveLandMC2(265 + (550 * (_currentframe - root.startframe)), 269 + _y);
root.MoveLandMC2(385 + (550 * (_currentframe - root.startframe)), 161 + _y);
root.AttachSkyBody2("bugbear_Y1", 485 + (550 * (_currentframe - root.startframe)), 88 + _y, -3);
root.dropbrierMC(269 + (550 * (_currentframe - root.startframe)), 48 + _y, 2.5, 80, 80, "HitFunction1");
root.AttachAward(1, 275 + (550 * (_currentframe - root.startframe)), 139 + _y);
root.AttachAward(1, 275 + (550 * (_currentframe - root.startframe)), 179 + _y);
root.playball(106 + (550 * (_currentframe - root.startframe)), 147 + _y, random(2) + 1);
Symbol 619 MovieClip [mapMC3] Frame 6
root.AttachSkyBody2("bugbear_Y1", 505 + (550 * (_currentframe - root.startframe)), 137 + _y, -3);
root.AttachSkyBody2("bugbear_Y1", 322 + (550 * (_currentframe - root.startframe)), 80 + _y, -3);
root.AttachSkyBody2("bugbear_Y1", 445 + (550 * (_currentframe - root.startframe)), 166 + _y, -3);
root.slideland("dropland3", 26 + (550 * (_currentframe - root.startframe)), 189 + _y, 4);
root.MoveLandMC2(128 + (550 * (_currentframe - root.startframe)), 136 + _y);
root.MoveLandMC2(272 + (550 * (_currentframe - root.startframe)), 101 + _y);
root.MoveLandMC2(332 + (550 * (_currentframe - root.startframe)), 101 + _y);
root.MoveLandMC2(466 + (550 * (_currentframe - root.startframe)), 244 + _y);
root.AttachAward(2, 60 + (550 * (_currentframe - root.startframe)), 125 + _y);
root.AttachAward(2, 94 + (550 * (_currentframe - root.startframe)), 125 + _y);
root.AttachAward(2, 452 + (550 * (_currentframe - root.startframe)), 101 + _y);
root.AttachAward(2, 473 + (550 * (_currentframe - root.startframe)), 125 + _y);
Symbol 619 MovieClip [mapMC3] Frame 7
root.dropbrierMC(123 + (550 * (_currentframe - root.startframe)), 240 + _y, 2, 50, 20, "HitFunction1");
root.dropbrierMC(227 + (550 * (_currentframe - root.startframe)), 220 + _y, 2, 50, 30, "HitFunction1");
root.dropbrierMC(324 + (550 * (_currentframe - root.startframe)), 200 + _y, 2, 50, 40, "HitFunction1");
root.dropbrierMC(417 + (550 * (_currentframe - root.startframe)), 180 + _y, 2, 50, 50, "HitFunction1");
Symbol 619 MovieClip [mapMC3] Frame 8
root.magicbox(442 + (550 * (_currentframe - root.startframe)), 321 + _y);
root.dropbrierMC(81 + (550 * (_currentframe - root.startframe)), 300 + _y, 5, 40, 0, "HitFunction1");
root.dropbrierMC(174 + (550 * (_currentframe - root.startframe)), 100 + _y, 5, 40, 40, "HitFunction1");
root.dropbrierMC(275 + (550 * (_currentframe - root.startframe)), 300 + _y, 5, 40, 0, "HitFunction1");
root.dropbrierMC(373 + (550 * (_currentframe - root.startframe)), 100 + _y, 5, 40, 40, "HitFunction1");
root.dropbrierMC(470 + (550 * (_currentframe - root.startframe)), 300 + _y, 5, 40, 0, "HitFunction1");
root.AttachAward(2, 0 + (550 * (_currentframe - root.startframe)), 150 + _y);
root.AttachAward(2, 0 + (550 * (_currentframe - root.startframe)), 190 + _y);
root.AttachAward(2, 0 + (550 * (_currentframe - root.startframe)), 230 + _y);
root.AttachAward(1, 81 + (550 * (_currentframe - root.startframe)), 200 + _y);
root.AttachAward(1, 174 + (550 * (_currentframe - root.startframe)), 200 + _y);
root.AttachAward(1, 275 + (550 * (_currentframe - root.startframe)), 200 + _y);
root.AttachAward(1, 373 + (550 * (_currentframe - root.startframe)), 200 + _y);
root.AttachAward(1, 470 + (550 * (_currentframe - root.startframe)), 200 + _y);
Symbol 619 MovieClip [mapMC3] Frame 9
root.AttachSkyBody2("bugbear_Y1", 498 + (550 * (_currentframe - root.startframe)), 114 + _y, -3);
root.MoveLandMC2(278 + (550 * (_currentframe - root.startframe)), 143 + _y);
root.MoveLandMC2(345 + (550 * (_currentframe - root.startframe)), 143 + _y);
root.MoveLandMC2(411 + (550 * (_currentframe - root.startframe)), 143 + _y);
root.MoveLandMC2(310 + (550 * (_currentframe - root.startframe)), 306 + _y);
root.MoveLandMC2(380 + (550 * (_currentframe - root.startframe)), 306 + _y);
root.MoveLandMC2(444 + (550 * (_currentframe - root.startframe)), 306 + _y);
root.AttachAward(2, 310 + (550 * (_currentframe - root.startframe)), 100 + _y);
root.AttachAward(2, 350 + (550 * (_currentframe - root.startframe)), 100 + _y);
root.AttachAward(2, 400 + (550 * (_currentframe - root.startframe)), 100 + _y);
root.AttachAward(2, 440 + (550 * (_currentframe - root.startframe)), 100 + _y);
root.AttachAward(2, 220 + (550 * (_currentframe - root.startframe)), 134 + _y);
root.AttachAward(2, 245 + (550 * (_currentframe - root.startframe)), 134 + _y);
root.playball(129 + (550 * (_currentframe - root.startframe)), 210 + _y, random(2) + 1);
Symbol 619 MovieClip [mapMC3] Frame 10
root.AttachLandBody3("bugbear_L3", 550 + (550 * (_currentframe - root.startframe)), 312 + _y, -1.5, 80, 0, true, "HitFunction1", 6);
root.AttachLandBody3("bugbear_L3", 450 + (550 * (_currentframe - root.startframe)), 312 + _y, -1.5, 80, 0, true, "HitFunction1", 6);
Symbol 619 MovieClip [mapMC3] Frame 11
root.jumpobject("JumpMC", 111 + (550 * (_currentframe - root.startframe)), 252 + _y, -20, 8);
root.AttachAward(2, 137 + (550 * (_currentframe - root.startframe)), 119 + _y);
root.AttachAward(2, 166 + (550 * (_currentframe - root.startframe)), 162 + _y);
root.AttachAward(2, 217 + (550 * (_currentframe - root.startframe)), 130 + _y);
root.AttachAward(2, 271 + (550 * (_currentframe - root.startframe)), 130 + _y);
root.AttachAward(2, 304 + (550 * (_currentframe - root.startframe)), 189 + _y);
root.AttachAward(2, 323 + (550 * (_currentframe - root.startframe)), 256 + _y);
root.playball(477 + (550 * (_currentframe - root.startframe)), 312 + _y, random(2) + 1);
Symbol 619 MovieClip [mapMC3] Frame 12
root.AttachShootBody("bugbear_L2", 521 + (550 * (_currentframe - 1)), 341 + _y, 80);
root.AttachShootBody("bugbear_L2", 421 + (550 * (_currentframe - 1)), 341 + _y, 80);
root.AttachLandBody3("bugbear_L3", 388 + (550 * (_currentframe - root.startframe)), 315 + _y, -1.5, 240, 0, true, "HitFunction1", 6);
Symbol 619 MovieClip [mapMC3] Frame 13
root.passmarkerMC(480 + (550 * (_currentframe - root.startframe)), 300 + _y);
Symbol 619 MovieClip [mapMC3] Frame 14
root.passlevel = true;
Symbol 619 MovieClip [mapMC3] Frame 15
root.playframe = this._currentframe;
root.playball(380 + (550 * (_currentframe - root.startframe)), 296 + _y, random(2) + 1);
Symbol 619 MovieClip [mapMC3] Frame 16
root.NPC2_1("bugbear_L1", 31 + (550 * (_currentframe - root.startframe)), 321 + _y, -2, 200, 0, "HitFunction1");
root.NPC2_1("bugbear_L1", 157 + (550 * (_currentframe - root.startframe)), 321 + _y, -2, 200, 0, "HitFunction1");
root.AttachAward(2, 374 + (550 * (_currentframe - root.startframe)), 111 + _y);
root.AttachAward(2, 430 + (550 * (_currentframe - root.startframe)), 111 + _y);
root.AttachAward(2, 488 + (550 * (_currentframe - root.startframe)), 111 + _y);
Symbol 619 MovieClip [mapMC3] Frame 17
root.NPC2_1("bugbear_L1", 513 + (550 * (_currentframe - root.startframe)), 317 + _y, -2, 170, 0, "HitFunction1");
root.AttachAward(2, 359 + (550 * (_currentframe - root.startframe)), 164 + _y);
root.AttachAward(2, 414 + (550 * (_currentframe - root.startframe)), 164 + _y);
root.AttachAward(2, 475 + (550 * (_currentframe - root.startframe)), 164 + _y);
Symbol 619 MovieClip [mapMC3] Frame 18
root.AttachShootBody("bugbear_L2", 531 + (550 * (_currentframe - 1)), 341 + _y, 80);
root.jumpobject("JumpMC", 105 + (550 * (_currentframe - root.startframe)), 256 + _y, -24, 8);
root.AttachAward(2, 117 + (550 * (_currentframe - root.startframe)), 156 + _y);
root.AttachAward(2, 220 + (550 * (_currentframe - root.startframe)), 156 + _y);
root.AttachAward(2, 262 + (550 * (_currentframe - root.startframe)), 156 + _y);
root.playball(412 + (550 * (_currentframe - root.startframe)), 294 + _y, random(2) + 1);
Symbol 619 MovieClip [mapMC3] Frame 19
root.jumpobject("JumpMC", 185 + (550 * (_currentframe - root.startframe)), 350 + _y, -26, 0);
root.AttachAward(2, 198 + (550 * (_currentframe - root.startframe)), 247 + _y);
root.AttachAward(2, 225 + (550 * (_currentframe - root.startframe)), 200 + _y);
root.AttachAward(2, 271 + (550 * (_currentframe - root.startframe)), 156 + _y);
Symbol 619 MovieClip [mapMC3] Frame 20
root.AttachShootBody("bugbear_L2", 152 + (550 * (_currentframe - root.startframe)), 153 + _y, 50);
Symbol 619 MovieClip [mapMC3] Frame 21
var MapFX = "UP";
root.jumpobject("JumpMC", 69 + (550 * (_currentframe - root.startframe)), 313 + _y, -24, 4);
root.jumpobject("JumpMC", 229 + (550 * (_currentframe - root.startframe)), 157 + _y, -23, 4);
root.jumpobject("JumpMC", 395 + (550 * (_currentframe - root.startframe)), 35 + _y, -30, 4);
root.AttachShootBody("bugbear_L2", 14 + (550 * (_currentframe - root.startframe)), 308 + _y, 20);
root.AttachAward(2, 82 + (550 * (_currentframe - root.startframe)), 227 + _y);
root.AttachAward(2, 267 + (550 * (_currentframe - root.startframe)), 103 + _y);
root.AttachAward(2, 394 + (550 * (_currentframe - root.startframe)), -65 + _y);
root.AttachAward(2, 394 + (550 * (_currentframe - root.startframe)), -115 + _y);
root.AttachAward(2, 394 + (550 * (_currentframe - root.startframe)), -165 + _y);
root.AttachAward(2, 394 + (550 * (_currentframe - root.startframe)), -215 + _y);
root.AttachAward(2, 394 + (550 * (_currentframe - root.startframe)), -265 + _y);
Symbol 619 MovieClip [mapMC3] Frame 22
root.AttachShootBody("bugbear_L2", 507 + (550 * (_currentframe - root.startframe)), 319 + _y, 80);
root.jumpobject("JumpMC", 52 + (550 * (_currentframe - root.startframe)), 248 + _y, -21, 0);
root.AttachAward(1, 125 + (550 * (_currentframe - root.startframe)), 100 + _y);
Symbol 619 MovieClip [mapMC3] Frame 23
root.AttachLandBody3("bugbear_L3", 150 + (550 * (_currentframe - root.startframe)), 317 + _y, -1.5, 150, 0, true, "HitFunction1", 6);
Symbol 619 MovieClip [mapMC3] Frame 24
root.AttachShootBody("bugbear_L2", 508 + (550 * (_currentframe - root.startframe)), 321 + _y, 80);
root.AttachShootBody("bugbear_L2", 75 + (550 * (_currentframe - root.startframe)), 211 + _y, 80);
root.playball(169 + (550 * (_currentframe - root.startframe)), 180 + _y, random(2) + 1);
root.magicbox(511 + (550 * (_currentframe - root.startframe)), 326 + _y);
Symbol 619 MovieClip [mapMC3] Frame 25
root.NPC2_1("bugbear_L1", 423 + (550 * (_currentframe - root.startframe)), 147 + _y, -2, 200, 0, "HitFunction1");
root.NPC2_1("bugbear_L1", 529 + (550 * (_currentframe - root.startframe)), 147 + _y, -2, 200, 0, "HitFunction1");
root.AttachSkyBody2("bugbear_Y1", 297 + (550 * (_currentframe - root.startframe)), 127 + _y, -2);
root.AttachAward(1, 174 + (550 * (_currentframe - root.startframe)), 111 + _y);
root.AttachAward(1, 324 + (550 * (_currentframe - root.startframe)), 113 + _y);
Symbol 619 MovieClip [mapMC3] Frame 26
root.NPC2_1("bugbear_L1", 226 + (550 * (_currentframe - root.startframe)), 210 + _y, -2, 20, 0, "HitFunction1");
root.NPC2_1("bugbear_L1", 381 + (550 * (_currentframe - root.startframe)), 261 + _y, -2, 20, 0, "HitFunction1");
root.AttachAward(1, 195 + (550 * (_currentframe - root.startframe)), 136 + _y);
root.AttachAward(1, 354 + (550 * (_currentframe - root.startframe)), 186 + _y);
root.AttachAward(1, 482 + (550 * (_currentframe - root.startframe)), 236 + _y);
Symbol 619 MovieClip [mapMC3] Frame 27
root.passmarkerMC(475 + (550 * (_currentframe - root.startframe)), 312 + _y);
Symbol 619 MovieClip [mapMC3] Frame 28
root.passlevel = true;
Symbol 619 MovieClip [mapMC3] Frame 29
root.playball(248 + (550 * (_currentframe - root.startframe)), 203 + _y, random(2) + 1);
root.playframe = this._currentframe;
Symbol 619 MovieClip [mapMC3] Frame 30
root.AttachShootBody("bugbear_L2", 250 + (550 * (_currentframe - root.startframe)), 241 + _y, 20);
root.jumpobject("JumpMC", 99 + (550 * (_currentframe - root.startframe)), 330 + _y, -20, 7);
root.NPC2_1("bugbear_L1", 454 + (550 * (_currentframe - root.startframe)), 173 + _y, -2, 50, 0, "HitFunction1");
root.AttachAward(1, 244 + (550 * (_currentframe - root.startframe)), 100 + _y);
Symbol 619 MovieClip [mapMC3] Frame 31
root.AttachShootBody("bugbear_L2", 520 + (550 * (_currentframe - root.startframe)), 348 + _y, 20);
root.AttachSkyBody2("bugbear_Y1", 472 + (550 * (_currentframe - root.startframe)), 106 + _y, -2);
root.turnland(158 + (550 * (_currentframe - root.startframe)), 217 + _y, 1);
root.AttachAward(2, 99 + (550 * (_currentframe - root.startframe)), 157 + _y);
root.AttachAward(2, 119 + (550 * (_currentframe - root.startframe)), 157 + _y);
root.AttachAward(2, 139 + (550 * (_currentframe - root.startframe)), 157 + _y);
Symbol 619 MovieClip [mapMC3] Frame 32
root.AttachShootBody("bugbear_L2", 239 + (550 * (_currentframe - root.startframe)), 268 + _y, 40);
root.AttachShootBody("bugbear_L2", 400 + (550 * (_currentframe - root.startframe)), 213 + _y, 40);
root.AttachSkyBody2("bugbear_Y1", 472 + (550 * (_currentframe - root.startframe)), 106 + _y, -2);
root.AttachAward(1, 375 + (550 * (_currentframe - root.startframe)), 100 + _y);
root.playball(90 + (550 * (_currentframe - root.startframe)), 275 + _y, random(2) + 1);
Symbol 619 MovieClip [mapMC3] Frame 33
root.NPC2_1("bugbear_L1", 80 + (550 * (_currentframe - root.startframe)), 145 + _y, -2, 100, 0, "HitFunction1");
root.NPC2_1("bugbear_L1", 162 + (550 * (_currentframe - root.startframe)), 145 + _y, -2, 100, 0, "HitFunction1");
root.magicbox(162 + (550 * (_currentframe - root.startframe)), 152 + _y);
Symbol 619 MovieClip [mapMC3] Frame 34
root.turnland(380 + (550 * (_currentframe - root.startframe)), 208 + _y, 2);
root.slideland("dropland3", 112 + (550 * (_currentframe - root.startframe)), 214 + _y, 2);
Symbol 619 MovieClip [mapMC3] Frame 35
root.turnland(174 + (550 * (_currentframe - root.startframe)), 208 + _y, -2);
root.slideland("dropland3", 392 + (550 * (_currentframe - root.startframe)), 146 + _y, 1);
root.slideland("dropland3", 492 + (550 * (_currentframe - root.startframe)), 146 + _y, 1);
Symbol 619 MovieClip [mapMC3] Frame 36
root.MoveLandMC2(54 + (550 * (_currentframe - root.startframe)), 216 + _y);
root.MoveLandMC2(124 + (550 * (_currentframe - root.startframe)), 216 + _y);
root.MoveLandMC2(187 + (550 * (_currentframe - root.startframe)), 216 + _y);
root.MoveLandMC2(256 + (550 * (_currentframe - root.startframe)), 216 + _y);
root.MoveLandMC2(328 + (550 * (_currentframe - root.startframe)), 216 + _y);
root.MoveLandMC2(391 + (550 * (_currentframe - root.startframe)), 116 + _y);
root.AttachAward(2, 111 + (550 * (_currentframe - root.startframe)), 155 + _y);
root.AttachAward(2, 200 + (550 * (_currentframe - root.startframe)), 155 + _y);
root.AttachAward(2, 164 + (550 * (_currentframe - root.startframe)), 155 + _y);
root.AttachAward(1, 436 + (550 * (_currentframe - root.startframe)), 66 + _y);
Symbol 619 MovieClip [mapMC3] Frame 37
root.MoveLandMC2(7 + (550 * (_currentframe - root.startframe)), 140 + _y);
root.MoveLandMC2(70 + (550 * (_currentframe - root.startframe)), 140 + _y);
root.MoveLandMC2(162 + (550 * (_currentframe - root.startframe)), 283 + _y);
root.MoveLandMC2(228 + (550 * (_currentframe - root.startframe)), 283 + _y);
root.MoveLandMC2(320 + (550 * (_currentframe - root.startframe)), 175 + _y);
root.MoveLandMC2(379 + (550 * (_currentframe - root.startframe)), 175 + _y);
root.playball(86 + (550 * (_currentframe - root.startframe)), 117 + _y, random(2) + 1);
Symbol 619 MovieClip [mapMC3] Frame 38
var MapFX = "DOWN";
mapmax_y = 910;
root.AttachSkyBody2("bugbear_Y1", 479 + (550 * (_currentframe - root.startframe)), 149 + _y, -2);
root.AttachSkyBody2("bugbear_Y1", -610 + (550 * (_currentframe - root.startframe)), 130 + _y, 2);
root.MoveLandMC2(0 + (550 * (_currentframe - root.startframe)), 179 + _y);
root.MoveLandMC2(78 + (550 * (_currentframe - root.startframe)), 291 + _y);
root.MoveLandMC2(143 + (550 * (_currentframe - root.startframe)), 291 + _y);
root.MoveLandMC2(160 + (550 * (_currentframe - root.startframe)), 419 + _y);
root.MoveLandMC2(214 + (550 * (_currentframe - root.startframe)), 419 + _y);
root.MoveLandMC2(272 + (550 * (_currentframe - root.startframe)), 538 + _y);
root.MoveLandMC2(337 + (550 * (_currentframe - root.startframe)), 538 + _y);
root.AttachAward(2, 153 + (550 * (_currentframe - root.startframe)), 196 + _y);
root.AttachAward(2, 243 + (550 * (_currentframe - root.startframe)), 341 + _y);
root.AttachAward(2, 335 + (550 * (_currentframe - root.startframe)), 455 + _y);
root.AttachAward(2, 440 + (550 * (_currentframe - root.startframe)), 445 + _y);
root.AttachAward(2, 505 + (550 * (_currentframe - root.startframe)), 445 + _y);
Symbol 619 MovieClip [mapMC3] Frame 39
root.AttachSkyBody2("bugbear_Y1", 506 + (550 * (_currentframe - root.startframe)), 115 + _y, -2);
Symbol 619 MovieClip [mapMC3] Frame 40
root.AttachBoss3(430 + (550 * (this._currentframe - root.startframe)), 177 + this._y);
Symbol 776 MovieClip [mapMC4] Frame 2
root.AttachSkyBody2("bat", 217 + (550 * (_currentframe - root.startframe)), 45 + _y, -3);
root.playball(103 + (550 * (_currentframe - root.startframe)), 254 + _y, random(2) + 1);
root.AttachMissile2(32 + (550 * (_currentframe - root.startframe)), 332 + _y);
root.AttachAward(2, 174 + (550 * (_currentframe - root.startframe)), 293 + _y);
root.AttachAward(2, 154 + (550 * (_currentframe - root.startframe)), 293 + _y);
root.AttachAward(2, 466 + (550 * (_currentframe - root.startframe)), 88 + _y);
root.AttachAward(2, 466 + (550 * (_currentframe - root.startframe)), 54 + _y);
Symbol 776 MovieClip [mapMC4] Frame 3
root.AttachLandBody3("ape", 60 + (550 * (_currentframe - root.startframe)), 167 + _y, -1.5, 150, 0, true, "HitFunction1", 3);
root.AttachLandBody3("ape", 475 + (550 * (_currentframe - root.startframe)), 278 + _y, -1.5, 150, 0, true, "HitFunction1", 3);
root.AttachAward(2, 445 + (550 * (_currentframe - root.startframe)), 197 + _y);
root.AttachAward(2, 445 + (550 * (_currentframe - root.startframe)), 164 + _y);
root.AttachAward(2, 445 + (550 * (_currentframe - root.startframe)), 133 + _y);
Symbol 776 MovieClip [mapMC4] Frame 4
root.AttachLandBody3("ape", 59 + (550 * (_currentframe - root.startframe)), 240 + _y, -2, 150, 0, true, "HitFunction1", 3);
root.AttachLandBody3("ape", 210 + (550 * (_currentframe - root.startframe)), 240 + _y, -1.5, 150, 0, true, "HitFunction1", 11);
root.AttachLandBody3("ape", 350 + (550 * (_currentframe - root.startframe)), 240 + _y, -1.5, 150, 0, true, "HitFunction1", 3);
root.AttachMissile2(238 + (550 * (_currentframe - root.startframe)), 254 + _y);
root.AttachAward(2, 315 + (550 * (_currentframe - root.startframe)), 197 + _y);
root.AttachAward(2, 315 + (550 * (_currentframe - root.startframe)), 142 + _y);
root.AttachAward(2, 315 + (550 * (_currentframe - root.startframe)), 118 + _y);
Symbol 776 MovieClip [mapMC4] Frame 5
root.AttachSkyBody2("bat", 377 + (550 * (_currentframe - root.startframe)), 63 + _y, -3);
root.AttachSkyBody2("bat", 464 + (550 * (_currentframe - root.startframe)), 63 + _y, -2);
root.AttachShootBody("icebody", 551 + (550 * (_currentframe - 1)), 264 + _y, 50);
root.AttachAward(2, 362 + (550 * (_currentframe - root.startframe)), 119 + _y);
root.AttachAward(2, 363 + (550 * (_currentframe - root.startframe)), 160 + _y);
root.AttachAward(2, 364 + (550 * (_currentframe - root.startframe)), 200 + _y);
Symbol 776 MovieClip [mapMC4] Frame 6
root.AttachSkyBody2("bat", 377 + (550 * (_currentframe - root.startframe)), 63 + _y, -2);
root.AttachSkyBody2("bat", 464 + (550 * (_currentframe - root.startframe)), 63 + _y, -3);
root.playball(31 + (550 * (_currentframe - root.startframe)), 227 + _y, random(2) + 1);
root.AttachMissile2(32 + (550 * (_currentframe - root.startframe)), 278 + _y);
root.AttachMissile2(200 + (550 * (_currentframe - root.startframe)), 278 + _y);
root.AttachMissile2(458 + (550 * (_currentframe - root.startframe)), 302 + _y);
root.AttachAward(1, 227 + (550 * (_currentframe - root.startframe)), 172 + _y);
Symbol 776 MovieClip [mapMC4] Frame 7
root.AttachShootBody("icebody", 564 + (550 * (_currentframe - 1)), 240 + _y, 50);
root.AttachAward(2, 405 + (550 * (_currentframe - root.startframe)), 151 + _y);
root.AttachAward(2, 442 + (550 * (_currentframe - root.startframe)), 151 + _y);
root.AttachAward(2, 442 + (550 * (_currentframe - root.startframe)), 177 + _y);
root.AttachAward(2, 405 + (550 * (_currentframe - root.startframe)), 177 + _y);
Symbol 776 MovieClip [mapMC4] Frame 8
root.AttachLandBody3("ape", 71 + (550 * (_currentframe - root.startframe)), 240 + _y, -2, 150, 0, true, "HitFunction1", 3);
root.AttachLandBody3("ape", 246 + (550 * (_currentframe - root.startframe)), 240 + _y, -1.5, 150, 0, true, "HitFunction1", 6);
root.AttachLandBody3("ape", 526 + (550 * (_currentframe - root.startframe)), 314 + _y, -1.5, 150, 0, true, "HitFunction1", 11);
root.playball(207 + (550 * (_currentframe - root.startframe)), 212 + _y, random(2) + 1);
root.AttachAward(1, 300 + (550 * (_currentframe - root.startframe)), 160 + _y);
root.magicbox(300 + (550 * (_currentframe - root.startframe)), 249 + _y);
Symbol 776 MovieClip [mapMC4] Frame 9
root.AttachLandBody3("ape", 398 + (550 * (_currentframe - root.startframe)), 265 + _y, -2, 150, 0, true, "HitFunction1", 3);
root.AttachLandBody3("ape", 443 + (550 * (_currentframe - root.startframe)), 265 + _y, -1.5, 150, 0, true, "HitFunction1", 6);
root.AttachLandBody3("ape", 489 + (550 * (_currentframe - root.startframe)), 265 + _y, -1.5, 150, 0, true, "HitFunction1", 3);
Symbol 776 MovieClip [mapMC4] Frame 10
root.AttachShootBody("icebody", 529 + (550 * (_currentframe - 1)), 319 + _y, 50);
root.AttachSkyBody2("bat", 343 + (550 * (_currentframe - root.startframe)), 194 + _y, -2);
root.AttachSkyBody2("bat", 424 + (550 * (_currentframe - root.startframe)), 194 + _y, -3);
root.playball(88 + (550 * (_currentframe - root.startframe)), 201 + _y, random(2) + 1);
root.AttachMissile2(91 + (550 * (_currentframe - root.startframe)), 277 + _y);
root.AttachAward(2, 317 + (550 * (_currentframe - root.startframe)), 194 + _y);
root.AttachAward(2, 344 + (550 * (_currentframe - root.startframe)), 194 + _y);
Symbol 776 MovieClip [mapMC4] Frame 11
root.AttachShootBody("icebody", 502 + (550 * (_currentframe - 1)), 319 + _y, 50);
root.AttachAward(2, 186 + (550 * (_currentframe - root.startframe)), 174 + _y);
root.AttachAward(2, 186 + (550 * (_currentframe - root.startframe)), 297 + _y);
root.AttachAward(2, 292 + (550 * (_currentframe - root.startframe)), 174 + _y);
root.AttachAward(2, 292 + (550 * (_currentframe - root.startframe)), 297 + _y);
root.AttachAward(2, 407 + (550 * (_currentframe - root.startframe)), 174 + _y);
root.AttachAward(2, 407 + (550 * (_currentframe - root.startframe)), 297 + _y);
Symbol 776 MovieClip [mapMC4] Frame 12
root.passmarkerMC(480 + (550 * (_currentframe - root.startframe)), 211 + _y);
root.AttachAward(6, 494 + (550 * (_currentframe - root.startframe)), 127 + _y);
Symbol 776 MovieClip [mapMC4] Frame 13
root.passlevel = true;
Symbol 776 MovieClip [mapMC4] Frame 14
root.playframe = this._currentframe;
Symbol 776 MovieClip [mapMC4] Frame 15
root.playball(34 + (550 * (_currentframe - root.startframe)), 318 + _y, random(2) + 1);
root.AttachShootBody("icebody", 299 + (550 * (_currentframe - root.startframe)), 212 + _y, 50);
root.AttachMissile2(515 + (550 * (_currentframe - root.startframe)), 177 + _y);
root.AttachAward(1, 224 + (550 * (_currentframe - root.startframe)), 295 + _y);
Symbol 776 MovieClip [mapMC4] Frame 16
root.AttachLandBody3("ape", 360 + (550 * (_currentframe - root.startframe)), 279 + _y, -1.5, 200, 0, true, "HitFunction1", 3);
root.AttachLandBody3("ape", 432 + (550 * (_currentframe - root.startframe)), 279 + _y, -1.5, 200, 0, true, "HitFunction1", 6);
root.playball(443 + (550 * (_currentframe - root.startframe)), 272 + _y, random(2) + 1);
root.AttachAward(2, 403 + (550 * (_currentframe - root.startframe)), 209 + _y);
root.AttachAward(2, 403 + (550 * (_currentframe - root.startframe)), 180 + _y);
Symbol 776 MovieClip [mapMC4] Frame 17
root.icelandMC1("iceland", 30 + (550 * (_currentframe - root.startframe)), _y, 300);
root.icelandMC1("iceland", 180 + (550 * (_currentframe - root.startframe)), _y, 250);
root.icelandMC1("iceland", 360 + (550 * (_currentframe - root.startframe)), _y, 220);
root.AttachSkyBody2("bat", 416 + (550 * (_currentframe - root.startframe)), 150 + _y, -2);
root.AttachSkyBody2("bat", 515 + (550 * (_currentframe - root.startframe)), 150 + _y, -2);
root.AttachAward(2, 146 + (550 * (_currentframe - root.startframe)), 154 + _y);
root.AttachAward(2, 146 + (550 * (_currentframe - root.startframe)), 184 + _y);
root.AttachAward(1, 295 + (550 * (_currentframe - root.startframe)), 123 + _y);
root.AttachAward(1, 468 + (550 * (_currentframe - root.startframe)), 123 + _y);
Symbol 776 MovieClip [mapMC4] Frame 18
root.icelandMC2("iceland2", 0 + (550 * (_currentframe - root.startframe)), _y);
root.dorplandMC("dropland2", 280 + (550 * (_currentframe - root.startframe)), 271 + _y);
root.dorplandMC("dropland2", 430 + (550 * (_currentframe - root.startframe)), 270 + _y);
root.AttachAward(2, 143 + (550 * (_currentframe - root.startframe)), 152 + _y);
root.AttachAward(2, 173 + (550 * (_currentframe - root.startframe)), 152 + _y);
root.AttachAward(2, 143 + (550 * (_currentframe - root.startframe)), 182 + _y);
root.AttachAward(2, 173 + (550 * (_currentframe - root.startframe)), 182 + _y);
root.AttachAward(2, 307 + (550 * (_currentframe - root.startframe)), 152 + _y);
root.AttachAward(2, 337 + (550 * (_currentframe - root.startframe)), 152 + _y);
root.AttachAward(2, 337 + (550 * (_currentframe - root.startframe)), 182 + _y);
root.AttachAward(2, 307 + (550 * (_currentframe - root.startframe)), 182 + _y);
root.AttachAward(2, 486 + (550 * (_currentframe - root.startframe)), 152 + _y);
root.AttachAward(2, 516 + (550 * (_currentframe - root.startframe)), 152 + _y);
root.AttachAward(2, 468 + (550 * (_currentframe - root.startframe)), 182 + _y);
root.AttachAward(2, 516 + (550 * (_currentframe - root.startframe)), 182 + _y);
Symbol 776 MovieClip [mapMC4] Frame 19
root.icelandMC1("iceland", 35 + (550 * (_currentframe - root.startframe)), 298 + _y, 0);
root.icelandMC1("iceland", 185 + (550 * (_currentframe - root.startframe)), 200 + _y, 0);
root.icelandMC1("iceland", 360 + (550 * (_currentframe - root.startframe)), _y, 220);
root.icelandMC1("iceland", 480 + (550 * (_currentframe - root.startframe)), _y, 190);
root.AttachSkyBody2("bat", 521 + (550 * (_currentframe - root.startframe)), 133 + _y, -2);
root.AttachAward(2, 137 + (550 * (_currentframe - root.startframe)), 123 + _y);
root.AttachAward(2, 173 + (550 * (_currentframe - root.startframe)), 152 + _y);
root.AttachAward(2, 311 + (550 * (_currentframe - root.startframe)), 123 + _y);
root.AttachAward(2, 311 + (550 * (_currentframe - root.startframe)), 152 + _y);
root.AttachAward(2, 448 + (550 * (_currentframe - root.startframe)), 123 + _y);
root.AttachAward(2, 448 + (550 * (_currentframe - root.startframe)), 152 + _y);
Symbol 776 MovieClip [mapMC4] Frame 20
root.AttachShootBody("icebody", 499 + (550 * (_currentframe - root.startframe)), 185 + _y, 50);
root.playball(177 + (550 * (_currentframe - root.startframe)), 142 + _y, random(2) + 1);
root.AttachMissile2(82 + (550 * (_currentframe - root.startframe)), 222 + _y);
root.playball(498 + (550 * (_currentframe - root.startframe)), 121 + _y, random(2) + 1);
root.AttachAward(2, 143 + (550 * (_currentframe - root.startframe)), 76 + _y);
root.AttachAward(2, 143 + (550 * (_currentframe - root.startframe)), 106 + _y);
root.AttachAward(2, 440 + (550 * (_currentframe - root.startframe)), 76 + _y);
root.AttachAward(2, 440 + (550 * (_currentframe - root.startframe)), 106 + _y);
Symbol 776 MovieClip [mapMC4] Frame 21
root.icelandMC1("iceland", 35 + (550 * (_currentframe - root.startframe)), 298 + _y, 0);
root.icelandMC1("iceland", 185 + (550 * (_currentframe - root.startframe)), 190 + _y, 0);
root.icelandMC1("iceland", 370 + (550 * (_currentframe - root.startframe)), _y, 220);
root.AttachAward(1, 169 + (550 * (_currentframe - root.startframe)), 130 + _y);
root.AttachAward(1, 442 + (550 * (_currentframe - root.startframe)), 130 + _y);
Symbol 776 MovieClip [mapMC4] Frame 22
root.playball(149 + (550 * (_currentframe - root.startframe)), 262 + _y, random(2) + 1);
root.AttachMissile2(185 + (550 * (_currentframe - root.startframe)), 282 + _y);
root.AttachMissile2(489 + (550 * (_currentframe - root.startframe)), 177 + _y);
root.AttachLandBody3("ape", 445 + (550 * (_currentframe - root.startframe)), 184 + _y, -1, 200, 0, true, "HitFunction1", 3);
root.AttachAward(2, 236 + (550 * (_currentframe - root.startframe)), 114 + _y);
root.AttachAward(2, 236 + (550 * (_currentframe - root.startframe)), 154 + _y);
Symbol 776 MovieClip [mapMC4] Frame 23
root.AttachShootBody("icebody", 20 + (550 * (_currentframe - root.startframe)), 170 + _y, 50);
root.AttachShootBody("icebody", 370 + (550 * (_currentframe - 1)), 277 + _y, 50);
root.AttachShootBody("icebody", 438 + (550 * (_currentframe - 1)), 277 + _y, 50);
root.passmarkerMC(442 + (550 * (_currentframe - root.startframe)), 253 + _y);
root.magicbox(162 + (550 * (_currentframe - root.startframe)), 197 + _y);
Symbol 776 MovieClip [mapMC4] Frame 24
root.passlevel = true;
Symbol 776 MovieClip [mapMC4] Frame 25
root.playframe = this._currentframe;
Symbol 776 MovieClip [mapMC4] Frame 26
var icelandface = true;
root.playball(108 + (550 * (_currentframe - root.startframe)), 271 + _y, random(2) + 1);
root.AttachShootBody("icebody", 20 + (550 * (_currentframe - root.startframe)), 321 + _y, 50);
root.AttachLandBody3("ape", 220 + (550 * (_currentframe - root.startframe)), 239 + _y, 1, 140, 0, true, "HitFunction1", 3);
root.AttachLandBody3("ape", 345 + (550 * (_currentframe - root.startframe)), 239 + _y, -1, 140, 70, true, "HitFunction1", 6);
root.AttachLandBody3("ape", 470 + (550 * (_currentframe - root.startframe)), 239 + _y, -1, 140, 0, true, "HitFunction1", 11);
root.AttachAward(2, 278 + (550 * (_currentframe - root.startframe)), 144 + _y);
root.AttachAward(2, 336 + (550 * (_currentframe - root.startframe)), 144 + _y);
root.AttachAward(2, 311 + (550 * (_currentframe - root.startframe)), 122 + _y);
Symbol 776 MovieClip [mapMC4] Frame 27
root.icelandMC1("iceland", 48 + (550 * (_currentframe - root.startframe)), 198 + _y, 0);
root.AttachLandBody3("ape", 515 + (550 * (_currentframe - root.startframe)), 268 + _y, -1, 200, 0, true, "HitFunction1", 3);
root.AttachSkyBody2("bat", 404 + (550 * (_currentframe - root.startframe)), 88 + _y, -3, 3);
root.AttachSkyBody2("bat", 477 + (550 * (_currentframe - root.startframe)), 88 + _y, -3, 3);
var icelandface = true;
Symbol 776 MovieClip [mapMC4] Frame 28
root.icelandMC1("iceland", 468 + (550 * (_currentframe - root.startframe)), 204 + _y, 0);
root.AttachSkyBody2("bat", 423 + (550 * (_currentframe - root.startframe)), 77 + _y, -3, 3);
root.AttachSkyBody2("bat", 489 + (550 * (_currentframe - root.startframe)), 77 + _y, -3, 3);
var icelandface = true;
Symbol 776 MovieClip [mapMC4] Frame 29
root.playball(213 + (550 * (_currentframe - root.startframe)), 135 + _y, random(2) + 1);
root.AttachMissile2(154 + (550 * (_currentframe - root.startframe)), 171 + _y);
root.AttachMissile2(446 + (550 * (_currentframe - root.startframe)), 181 + _y);
root.AttachLandBody3("ape", 414 + (550 * (_currentframe - root.startframe)), 160 + _y, -1, 200, 0, true, "HitFunction1", 3);
root.AttachAward(2, 250 + (550 * (_currentframe - root.startframe)), 70 + _y);
root.AttachAward(2, 306 + (550 * (_currentframe - root.startframe)), 70 + _y);
root.AttachAward(2, 281 + (550 * (_currentframe - root.startframe)), 50 + _y);
Symbol 776 MovieClip [mapMC4] Frame 30
root.AttachShootBody("icebody", 523 + (550 * (_currentframe - root.startframe)), 317 + _y, 50);
Symbol 776 MovieClip [mapMC4] Frame 31
root.playball(447 + (550 * (_currentframe - root.startframe)), 229 + _y, random(2) + 1);
root.AttachLandBody3("ape", 371 + (550 * (_currentframe - root.startframe)), 242 + _y, -1, 200, 0, true, "HitFunction1", 3);
root.AttachSkyBody("bat", 287 + (550 * (_currentframe - root.startframe)), 258 + _y, 3, 1000, 0, 2, 50, 0, "HitFunction1", 3);
root.AttachSkyBody("bat", 287 + (550 * (_currentframe - root.startframe)), 258 + _y, 3, 1000, 0, -2, 50, 0, "HitFunction1", 3);
root.AttachAward(2, 302 + (550 * (_currentframe - root.startframe)), 141 + _y);
root.AttachAward(2, 352 + (550 * (_currentframe - root.startframe)), 141 + _y);
root.AttachAward(2, 402 + (550 * (_currentframe - root.startframe)), 141 + _y);
var icelandface = true;
Symbol 776 MovieClip [mapMC4] Frame 32
root.icelandMC1("iceland", 48 + (550 * (_currentframe - root.startframe)), 198 + _y, 0);
root.AttachSkyBody("bat", 439 + (550 * (_currentframe - root.startframe)), 156 + _y, 3, 1000, 0, 0, 0, 0, "HitFunction1", 3);
root.AttachSkyBody("bat", 507 + (550 * (_currentframe - root.startframe)), 92 + _y, 3, 1000, 0, -2, 70, 0, "HitFunction1", 3);
root.AttachSkyBody("bat", 507 + (550 * (_currentframe - root.startframe)), 218 + _y, 3, 1000, 0, -2, 70, 70, "HitFunction1", 3);
root.AttachAward(2, 255 + (550 * (_currentframe - root.startframe)), 173 + _y);
root.AttachAward(2, 295 + (550 * (_currentframe - root.startframe)), 172 + _y);
root.AttachAward(2, 335 + (550 * (_currentframe - root.startframe)), 172 + _y);
root.AttachAward(2, 406 + (550 * (_currentframe - root.startframe)), 149 + _y);
root.AttachAward(2, 446 + (550 * (_currentframe - root.startframe)), 149 + _y);
root.AttachAward(2, 486 + (550 * (_currentframe - root.startframe)), 149 + _y);
var icelandface = true;
Symbol 776 MovieClip [mapMC4] Frame 33
root.icelandMC1("iceland", 468 + (550 * (_currentframe - root.startframe)), 204 + _y, 0);
root.AttachLandBody3("ape", 318 + (550 * (_currentframe - root.startframe)), 267 + _y, -1, 300, 0, true, "HitFunction1", 3);
root.AttachLandBody3("ape", 244 + (550 * (_currentframe - root.startframe)), 267 + _y, -1, 300, 0, true, "HitFunction1", 11);
root.AttachLandBody3("ape", 169 + (550 * (_currentframe - root.startframe)), 267 + _y, -1, 300, 0, true, "HitFunction1", 3);
root.AttachAward(2, 146 + (550 * (_currentframe - root.startframe)), 146 + _y);
root.AttachAward(2, 186 + (550 * (_currentframe - root.startframe)), 146 + _y);
root.AttachAward(1, 458 + (550 * (_currentframe - root.startframe)), 149 + _y);
var icelandface = true;
root.magicbox(289 + (550 * (_currentframe - root.startframe)), 266 + _y);
Symbol 776 MovieClip [mapMC4] Frame 34
root.playball(117 + (550 * (_currentframe - root.startframe)), 230 + _y, random(2) + 1);
root.AttachAward(2, 412 + (550 * (_currentframe - root.startframe)), 188 + _y);
root.AttachAward(2, 452 + (550 * (_currentframe - root.startframe)), 188 + _y);
root.AttachAward(2, 492 + (550 * (_currentframe - root.startframe)), 188 + _y);
var icelandface = true;
Symbol 776 MovieClip [mapMC4] Frame 35
root.AttachMissile2(60 + (550 * (_currentframe - root.startframe)), 332 + _y);
root.AttachMissile2(260 + (550 * (_currentframe - root.startframe)), 332 + _y);
root.AttachMissile2(460 + (550 * (_currentframe - root.startframe)), 332 + _y);
root.AttachShootBody("icebody", 528 + (550 * (_currentframe - root.startframe)), 322 + _y, 50);
root.AttachSkyBody2("bat", 267 + (550 * (_currentframe - root.startframe)), 81 + _y, -2, 3);
root.AttachSkyBody2("bat", 489 + (550 * (_currentframe - root.startframe)), 81 + _y, -2, 3);
root.AttachAward(1, 119 + (550 * (_currentframe - root.startframe)), 173 + _y);
root.AttachAward(1, 302 + (550 * (_currentframe - root.startframe)), 172 + _y);
root.AttachAward(1, 457 + (550 * (_currentframe - root.startframe)), 172 + _y);
Symbol 776 MovieClip [mapMC4] Frame 36
var MapFX = "DOWN";
mapmax_y = 890;
root.AttachAward(2, 116 + (550 * (_currentframe - root.startframe)), 330 + _y);
root.AttachAward(2, 180 + (550 * (_currentframe - root.startframe)), 378 + _y);
root.AttachAward(2, 245 + (550 * (_currentframe - root.startframe)), 428 + _y);
root.AttachAward(2, 310 + (550 * (_currentframe - root.startframe)), 476 + _y);
root.AttachAward(2, 375 + (550 * (_currentframe - root.startframe)), 524 + _y);
root.AttachAward(2, 442 + (550 * (_currentframe - root.startframe)), 537 + _y);
var icelandface = true;
Symbol 776 MovieClip [mapMC4] Frame 39
root.AttachBoss4(470 + (550 * (this._currentframe - root.startframe)), 220 + this._y);
Symbol 796 MovieClip Frame 7
stop();
Symbol 798 MovieClip Frame 11
stop();
Symbol 802 MovieClip Frame 13
root.playershootZT = false;
Symbol 811 MovieClip Frame 74
root.gameover();
Symbol 812 MovieClip [PlayerMC1] Frame 1
stop();
Symbol 832 MovieClip Frame 60
stop();
Symbol 909 MovieClip Frame 1
stop();
Symbol 910 MovieClip Frame 1
var i = 1;
while (i < 10) {
if (i > String(root.score).length) {
this["NO" + i].gotoAndStop(1);
} else {
this["NO" + i].gotoAndStop(Number(String(root.score).charAt(String(root.score).length - i)) + 1);
}
i++;
}
Symbol 918 MovieClip Frame 36
stop();
Symbol 949 MovieClip Frame 1
stop();
Symbol 953 MovieClip Frame 1
t1.gotoAndStop(root.leven + 1);
t2.gotoAndStop(root.leven2 + 1);
Symbol 954 MovieClip [BG2] Frame 20
root.remove_all();
Symbol 954 MovieClip [BG2] Frame 29
if (root.passdistinction == 1) {
this.gotoAndPlay("gonow");
} else if (root.passdistinction == 3) {
root.gotoAndStop("passall");
this.removeMovieClip();
}
Symbol 954 MovieClip [BG2] Frame 31
root.stop_soundAction("bj" + root.leven);
root.play_soundAction("pass");
mc.gotoAndStop(root.playerbody_no);
Symbol 954 MovieClip [BG2] Frame 217
root.gotoAndPlay("initial");
Symbol 954 MovieClip [BG2] Frame 238
root.KeyAbled = false;
Symbol 954 MovieClip [BG2] Frame 290
root.KeyAbled = true;
root.BossDisplay = undefined;
this.removeMovieClip();
Symbol 976 MovieClip [bugbear_L1] Frame 1
stop();
Hit._visible = false;
Symbol 976 MovieClip [bugbear_L1] Frame 15
this.attachMovie("ice", "ice", 1, {_y:-20});
Symbol 976 MovieClip [bugbear_L1] Frame 27
root.GetScore(100);
this.removeMovieClip();
Symbol 976 MovieClip [bugbear_L1] Frame 28
stop();
root.GetScore(100);
this.attachMovie("burnt", "burnt", 1, {_y:-20});
Symbol 1004 MovieClip [bugbear_L2] Frame 1
stop();
shootable = false;
Hit._visible = false;
Symbol 1004 MovieClip [bugbear_L2] Frame 2
Hit._visible = false;
Symbol 1004 MovieClip [bugbear_L2] Frame 7
shootable = true;
Hit._visible = false;
Symbol 1004 MovieClip [bugbear_L2] Frame 10
gotoAndStop (1);
Symbol 1004 MovieClip [bugbear_L2] Frame 12
this.attachMovie("ice", "ice", 1, {_y:-20});
Symbol 1004 MovieClip [bugbear_L2] Frame 21
root.GetScore(300);
this.removeMovieClip();
Symbol 1004 MovieClip [bugbear_L2] Frame 22
stop();
root.GetScore(300);
this.attachMovie("burnt", "burnt", 1, {_y:-20});
Symbol 1020 MovieClip [bugbear_L3] Frame 1
Hit._visible = false;
Symbol 1020 MovieClip [bugbear_L3] Frame 10
stop();
Symbol 1020 MovieClip [bugbear_L3] Frame 11
this.attachMovie("ice", "ice", 1, {_y:-20});
Symbol 1020 MovieClip [bugbear_L3] Frame 20
root.GetScore(300);
this.removeMovieClip();
Symbol 1020 MovieClip [bugbear_L3] Frame 21
stop();
root.GetScore(300);
this.attachMovie("burnt", "burnt", 1, {_y:-20});
Symbol 1043 MovieClip [bugbear_Y1] Frame 1
stop();
Hit._visible = false;
Symbol 1043 MovieClip [bugbear_Y1] Frame 11
this.attachMovie("ice", "ice", 1, {_y:-20});
Symbol 1043 MovieClip [bugbear_Y1] Frame 20
if (!root.BossMC) {
root.GetScore(300);
}
this.removeMovieClip();
Symbol 1043 MovieClip [bugbear_Y1] Frame 21
stop();
mc.gotoAndStop(1);
if (!root.BossMC) {
root.GetScore(300);
}
this.attachMovie("burnt", "burnt", 1, {_y:-20});
Symbol 1046 MovieClip [feather] Frame 1
Hit._visible = false;
Symbol 1051 MovieClip [iceland2bj] Frame 19
stop();
Symbol 1051 MovieClip [iceland2bj] Frame 30
stop();
Symbol 1054 MovieClip Frame 1
stop();
Symbol 1061 MovieClip Frame 1
_parent.Hit_a.gotoAndStop(1);
Symbol 1061 MovieClip Frame 10
_parent.Hit_a.gotoAndStop(2);
Symbol 1069 MovieClip Frame 136
root.BossMC = undefined;
root.UI.time_to_score();
Symbol 1070 MovieClip Frame 1
stop();
Symbol 1070 MovieClip Frame 12
_parent.gotoAndStop(1);
Symbol 1071 MovieClip [Boss3] Frame 1
Hit_a._visible = false;
if (adddenote) {
adddenote = false;
this.attachMovie("denote1", "denote1", this.getNextHighestDepth(), {_x:-100, _y:-40});
}
Symbol 1071 MovieClip [Boss3] Frame 15
denote1.removeMovieClip();
var AttZT = true;
Hit_a._visible = false;
Symbol 1071 MovieClip [Boss3] Frame 30
Hit_b._visible = false;
Symbol 1071 MovieClip [Boss3] Frame 42
Hit_a._visible = false;
Symbol 1071 MovieClip [Boss3] Frame 57
Hit_a._visible = false;
Symbol 1071 MovieClip [Boss3] Frame 71
KeyNum = new Array();
AttZT = false;
SporeZT = "dead";
root.play_soundAction("boss3_1");
stop();
denote1.removeMovieClip();
Symbol 1071 MovieClip [Boss3] Frame 85
stop();
root.play_soundAction("boss3_2");
Symbol 1071 MovieClip [Boss3] Frame 99
var adddenote = true;
Symbol 1094 MovieClip [bugbear_L4] Frame 1
stop();
Hit._visible = false;
Symbol 1094 MovieClip [bugbear_L4] Frame 13
this.attachMovie("ice", "ice", 1, {_y:-20});
Symbol 1094 MovieClip [bugbear_L4] Frame 24
if (!root.BossMC) {
root.GetScore(200);
}
this.removeMovieClip();
Symbol 1094 MovieClip [bugbear_L4] Frame 25
stop();
root.GetScore(200);
this.attachMovie("burnt", "burnt", 1, {_y:-20});
Symbol 1102 MovieClip [bugbear_L5] Frame 1
stop();
Hit._visible = false;
Symbol 1102 MovieClip [bugbear_L5] Frame 14
this.attachMovie("ice", "ice", 1, {_y:-20});
Symbol 1102 MovieClip [bugbear_L5] Frame 26
root.GetScore(200);
this.removeMovieClip();
Symbol 1102 MovieClip [bugbear_L5] Frame 27
stop();
root.GetScore(200);
this.attachMovie("burnt", "burnt", 1, {_y:-20});
Symbol 1121 MovieClip [JumpMC2] Frame 1
stop();
Symbol 1121 MovieClip [JumpMC2] Frame 2
root.GetScore(10);
Symbol 1146 MovieClip Frame 1
stop();
Symbol 1173 MovieClip Frame 6
_parent.Hit_a.gotoAndStop(2);
Symbol 1173 MovieClip Frame 16
_parent.Hit_a.gotoAndStop(3);
Symbol 1211 MovieClip Frame 126
root.gamepassall();
this.removeMovieClip();
Symbol 1212 MovieClip Frame 1
stop();
Symbol 1212 MovieClip Frame 12
_parent.gotoAndStop(1);
Symbol 1213 MovieClip [BOSS2] Frame 1
Hit._visible = false;
Hit_a._visible = false;
if (adddenote) {
adddenote = false;
this.attachMovie("denote1", "denote1", this.getNextHighestDepth(), {_x:-11, _y:-80});
}
Symbol 1213 MovieClip [BOSS2] Frame 17
Hit_a._visible = false;
Hit_a.gotoAndStop(2);
root.play_soundAction("beckon");
denote1.removeMovieClip();
Symbol 1213 MovieClip [BOSS2] Frame 34
Hit_a._visible = false;
Symbol 1213 MovieClip [BOSS2] Frame 51
KeyNum = new Array();
AttZT = false;
denote1.removeMovieClip();
this.SporeZT = "dead";
root.play_soundAction("boss2_1");
stop();
Symbol 1213 MovieClip [BOSS2] Frame 68
this.SporeZT = "remove";
root.play_soundAction("boss2_2");
Symbol 1213 MovieClip [BOSS2] Frame 85
var adddenote = true;
Symbol 1219 MovieClip Frame 1
stop();
Symbol 1229 MovieClip Frame 1
stop();
Symbol 1241 MovieClip Frame 1
stop();
Symbol 1246 MovieClip Frame 1
stop();
Symbol 1253 MovieClip Frame 10
stop();
Symbol 1261 MovieClip Frame 10
stop();
Symbol 1263 MovieClip Frame 1
stop();
Symbol 1270 MovieClip Frame 10
stop();
Symbol 1278 MovieClip Frame 10
stop();
Symbol 1280 MovieClip Frame 1
stop();
Symbol 1281 MovieClip [UIMC] Frame 1
function displayresult() {
t1.gotoAndStop((Math.floor(gametime / 10) + 1) + ((root.playerbody_no - 1) * 10));
t2.gotoAndStop(((gametime % 10) + 1) + ((root.playerbody_no - 1) * 10));
}
function time_to_score() {
delete this.onEnterFrame;
var tei = 0;
this.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
tei++;
if (tei > 2) {
tei = 0;
} else {
return(undefined);
}
gametime--;
root.GetScore(15);
displayresult();
root.play_soundAction("upgrade");
if (this.gametime <= 0) {
root.gamepass2();
delete this.onEnterFrame;
}
};
}
t1.gotoAndStop(1);
var gametime;
if (root.gamestrattime == undefined) {
if (root.leven2 == 3) {
gametime = 90;
} else {
gametime = 60;
}
} else {
gametime = root.gamestrattime;
root.gamestrattime = undefined;
}
var timeb = 1;
var timec = 1;
var timed = 0;
t1.gotoAndStop((Math.floor(gametime / 10) + 1) + ((root.playerbody_no - 1) * 10));
t2.gotoAndStop((gametime % 10) + ((root.playerbody_no - 1) * 10));
this.onEnterFrame = function () {
if (root.pause_all) {
return(undefined);
}
timed++;
if (timed < 160) {
return(undefined);
}
timed = 0;
gametime--;
if (gametime == 0) {
this.attachMovie("timeover", "timeover", this.getNextHighestDepth(), {_x:270, _y:173});
}
displayresult();
};
bu1.onRelease = function () {
if (root.pause_all) {
root.pause_all = false;
bu1.gotoAndStop(1);
} else {
bu1.gotoAndStop(2);
root.pause_all = true;
}
};
if (root.sound_all == false) {
bu2.gotoAndStop(1);
} else {
bu2.gotoAndStop(2);
}
bu2.onRelease = function () {
if (root.sound_all) {
root.bj.setVolume(100);
root.sound_all = false;
bu2.gotoAndStop(1);
} else {
root.bj.setVolume(0);
bu2.gotoAndStop(2);
root.sound_all = true;
}
};
Instance of Symbol 1232 MovieClip in Symbol 1281 MovieClip [UIMC] Frame 1
on (release) {
getURL ("http://playcow.com", "_blank");
}
Instance of Symbol 1234 MovieClip in Symbol 1281 MovieClip [UIMC] Frame 1
on (release) {
getURL ("http://playedoff.com/mario", "_blank");
}
Instance of Symbol 1235 MovieClip in Symbol 1281 MovieClip [UIMC] Frame 1
on (release) {
getURL ("http://playcow.com/", "_blank");
}
Symbol 1298 MovieClip Frame 1
_parent.moveable = false;
Symbol 1298 MovieClip Frame 7
_parent.moveable = true;
Symbol 1298 MovieClip Frame 13
_parent.moveable = false;
Symbol 1299 MovieClip Frame 54
this._parent.gotoAndStop(1);
Symbol 1302 MovieClip [bugbear_L6] Frame 1
stop();
Hit._visible = false;
this.sp_zt2 = "run";
Symbol 1302 MovieClip [bugbear_L6] Frame 10
Hit._visible = false;
this.sp_zt2 = "shrink";
Symbol 1302 MovieClip [bugbear_L6] Frame 19
this.attachMovie("ice", "ice", 1, {_y:-20});
Symbol 1302 MovieClip [bugbear_L6] Frame 26
stop();
root.GetScore(50);
Symbol 1302 MovieClip [bugbear_L6] Frame 28
stop();
root.GetScore(50);
this.attachMovie("burnt", "burnt", 1, {_y:-20});
Symbol 1322 MovieClip [bugbear_L7] Frame 1
stop();
Hit._visible = false;
Symbol 1322 MovieClip [bugbear_L7] Frame 10
this.attachMovie("ice", "ice", 1, {_y:-20});
Symbol 1322 MovieClip [bugbear_L7] Frame 18
stop();
if (!root.BossMC) {
root.GetScore(50);
}
Symbol 1322 MovieClip [bugbear_L7] Frame 19
stop();
if (!root.BossMC) {
root.GetScore(50);
}
this.attachMovie("burnt", "burnt", 1, {_y:-20});
Symbol 1341 MovieClip Frame 59
stop();
Symbol 1342 MovieClip Frame 5
stop();
Symbol 1343 MovieClip Frame 8
stop();
Symbol 1346 MovieClip [bugbear_L8] Frame 1
stop();
Hit._visible = false;
Symbol 1346 MovieClip [bugbear_L8] Frame 11
Hit._visible = false;
Symbol 1346 MovieClip [bugbear_L8] Frame 22
this.attachMovie("ice", "ice", 1, {_y:-20});
Symbol 1346 MovieClip [bugbear_L8] Frame 30
stop();
root.GetScore(50);
Symbol 1346 MovieClip [bugbear_L8] Frame 31
this.attachMovie("burnt", "burnt", 1, {_y:-20});
root.GetScore(50);
stop();
Symbol 1348 MovieClip Frame 1
gotoAndPlay(random(15));
Symbol 1348 MovieClip Frame 15
gotoAndPlay (2);
Symbol 1432 MovieClip Frame 1
_parent.attack_step = 1;
Symbol 1432 MovieClip Frame 16
_parent.attack_step = 2;
stop();
Symbol 1432 MovieClip Frame 25
_parent.attack_step = 3;
Symbol 1434 MovieClip Frame 1
_parent.attack_step = 1;
Symbol 1434 MovieClip Frame 16
stop();
_parent.attack_step = 2;
Symbol 1434 MovieClip Frame 25
_parent.attack_step = 3;
Symbol 1459 MovieClip Frame 108
root.UI.time_to_score();
root.BossMC = undefined;
this._parent.removeMovieClip();
Symbol 1460 MovieClip Frame 1
stop();
Symbol 1460 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 1461 MovieClip [BOSS1] Frame 1
Hit._visible = false;
Hit_a._visible = false;
if (adddenote) {
adddenote = false;
this.attachMovie("denote1", "denote1", this.getNextHighestDepth(), {_x:-11, _y:-80});
}
Symbol 1461 MovieClip [BOSS1] Frame 11
Hit_a._visible = false;
root.play_soundAction("beckon");
denote1.removeMovieClip();
Symbol 1461 MovieClip [BOSS1] Frame 21
Hit_a._visible = false;
Symbol 1461 MovieClip [BOSS1] Frame 31
Hit_b._visible = false;
Symbol 1461 MovieClip [BOSS1] Frame 41
Hit_b._visible = false;
Symbol 1461 MovieClip [BOSS1] Frame 51
this.SporeZT = "dead";
root.play_soundAction("boss1_1");
denote1.removeMovieClip();
stop();
Symbol 1461 MovieClip [BOSS1] Frame 61
stop();
root.play_soundAction("boss1_2");
this.SporeZT = "remove";
Symbol 1461 MovieClip [BOSS1] Frame 71
var adddenote = true;
Symbol 1527 MovieClip [snow] Frame 8
stop();
Symbol 1532 MovieClip [bar1] Frame 1
Hit._visible = false;
Symbol 1558 MovieClip [combo] Frame 31
this.removeMovieClip();
Symbol 1574 MovieClip Frame 6
_parent.Hit_a.gotoAndStop(2);
Symbol 1574 MovieClip Frame 33
_parent.Hit_a.gotoAndStop(3);
Symbol 1598 MovieClip Frame 121
root.UI.time_to_score();
root.BossMC = undefined;
this.removeMovieClip();
Symbol 1603 MovieClip Frame 1
stop();
Symbol 1603 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 1604 MovieClip [Boss4] Frame 1
Hit_a._visible = false;
if (adddenote) {
adddenote = false;
this.attachMovie("denote1", "denote1", this.getNextHighestDepth(), {_x:-100, _y:-100});
}
Symbol 1604 MovieClip [Boss4] Frame 17
Hit_a._visible = false;
denote1.removeMovieClip();
Symbol 1604 MovieClip [Boss4] Frame 34
Hit_a._visible = false;
root.play_soundAction("boss4_3");
Symbol 1604 MovieClip [Boss4] Frame 52
AttZT = false;
this.SporeZT = "dead";
root.play_soundAction("boss4_1");
stop();
denote1.removeMovieClip();
Symbol 1604 MovieClip [Boss4] Frame 69
this.SporeZT = "remove";
root.play_soundAction("boss4_2");
Symbol 1604 MovieClip [Boss4] Frame 85
var adddenote = true;
Symbol 1616 MovieClip [missile] Frame 1
Hit._visible = false;
Symbol 1616 MovieClip [missile] Frame 23
this.removeMovieClip();
Symbol 1624 MovieClip [missile2] Frame 11
Hit._visible = false;
Symbol 1624 MovieClip [missile2] Frame 20
stop();
Symbol 1628 MovieClip [missile3] Frame 1
Hit._visible = false;
Symbol 1628 MovieClip [missile3] Frame 11
Hit._visible = false;
Symbol 1629 MovieClip [PlayerMC2] Frame 1
stop();
Symbol 1650 MovieClip [ball2] Frame 1
Hit_a._visible = false;
Symbol 1650 MovieClip [ball2] Frame 11
Hit_a._visible = false;
Symbol 1660 MovieClip [ice] Frame 1
root.AttachSnow(this);
Symbol 1660 MovieClip [ice] Frame 8
root.play_soundAction("iceboom2");
Symbol 1660 MovieClip [ice] Frame 19
var terandom = random(10);
if (root.BossMC) {
terandom = 20;
}
if (terandom == 0) {
root.AttachAward(random(2) + 1, this._x + _parent._x, this._y + _parent._y);
} else if (terandom == 1) {
root.AttachAward(6, this._x + _parent._x, this._y + _parent._y);
}
Symbol 1660 MovieClip [ice] Frame 24
this._parent.removeMovieClip();
Symbol 1670 MovieClip [burnt] Frame 10
var terandom = random(10);
if (root.BossMC) {
terandom = 20;
}
if (terandom == 0) {
root.AttachAward(random(2) + 1, this._x + _parent._x, this._y + _parent._y);
} else if (terandom == 1) {
root.AttachAward(6, this._x + _parent._x, this._y + _parent._y);
}
root.play_soundAction("fireboom2");
Symbol 1670 MovieClip [burnt] Frame 19
this._parent.removeMovieClip();
Symbol 1696 MovieClip Frame 10
stop();
Symbol 1698 MovieClip [helpMC] Frame 4
function dofuncion() {
Key.removeListener(root.key_listener_C);
root.leven = 1;
root.leven2 = 1;
_root.sendCommand("trackingGameStart");
root.gotoAndPlay("initial");
this.removeMovieClip();
}
stop();
b2.onPress = (b1.onPress = function () {
root.play_soundAction("asou1");
});
b2.onRollOver = (b1.onRollOver = function () {
root.play_soundAction("asou2");
});
b2.onRelease = function () {
dofuncion();
};
b1.onRelease = function () {
root.b1.enabled = true;
root.b2.enabled = true;
play();
};
Instance of Symbol 1232 MovieClip in Symbol 1698 MovieClip [helpMC] Frame 4
on (release) {
getURL ("http://playcow.com", "_blank");
}
Symbol 1698 MovieClip [helpMC] Frame 7
this.removeMovieClip();
Symbol 1705 MovieClip [passmarker] Frame 1
stop();
this._visible = false;
Symbol 1715 MovieClip [waterball] Frame 1
Hit._visible = false;
Symbol 1719 MovieClip [bar2] Frame 1
Hit._visible = false;
Symbol 1720 MovieClip [bugbear_L5_2] Frame 1
stop();
Hit._visible = false;
Symbol 1720 MovieClip [bugbear_L5_2] Frame 14
this.attachMovie("ice", "ice", 1, {_y:-20});
Symbol 1720 MovieClip [bugbear_L5_2] Frame 26
root.GetScore(200);
this.removeMovieClip();
Symbol 1720 MovieClip [bugbear_L5_2] Frame 27
stop();
root.GetScore(200);
this.attachMovie("burnt", "burnt", 1, {_y:-20});
Symbol 1761 MovieClip [iceland] Frame 1
Hit._visible = false;
Symbol 1761 MovieClip [iceland] Frame 11
Hit._visible = false;
Symbol 1761 MovieClip [iceland] Frame 19
this.sp_zt = "drop";
stop();
Symbol 1761 MovieClip [iceland] Frame 29
this.sp_zt = "drop";
stop();
Symbol 1781 MovieClip Frame 4
stop();
Symbol 1782 MovieClip [iceland2] Frame 1
Hit._visible = false;
Symbol 1782 MovieClip [iceland2] Frame 19
stop();
Symbol 1782 MovieClip [iceland2] Frame 30
stop();
Symbol 1804 MovieClip [icebody] Frame 1
stop();
shootable = false;
Hit._visible = false;
Symbol 1804 MovieClip [icebody] Frame 2
Hit._visible = false;
Symbol 1804 MovieClip [icebody] Frame 7
shootable = true;
Hit._visible = false;
Symbol 1804 MovieClip [icebody] Frame 10
gotoAndStop (1);
Symbol 1804 MovieClip [icebody] Frame 12
this.attachMovie("ice", "ice", 1, {_y:-20});
Symbol 1804 MovieClip [icebody] Frame 21
root.GetScore(300);
this.removeMovieClip();
Symbol 1804 MovieClip [icebody] Frame 22
stop();
root.GetScore(300);
this.attachMovie("burnt", "burnt", 1, {_y:-20});
Symbol 1819 MovieClip [bat] Frame 1
stop();
Hit._visible = false;
Symbol 1819 MovieClip [bat] Frame 11
this.attachMovie("ice", "ice", 1, {_y:-20});
Symbol 1819 MovieClip [bat] Frame 20
root.GetScore(300);
this.removeMovieClip();
Symbol 1819 MovieClip [bat] Frame 21
stop();
mc.gotoAndStop(1);
root.GetScore(300);
this.attachMovie("burnt", "burnt", 1, {_y:-20});
Symbol 1842 MovieClip Frame 1
stop();
Symbol 1851 MovieClip [waterball2] Frame 1
Hit._visible = false;
Symbol 1859 MovieClip [dropbrier] Frame 1
Hit._visible = false;
Symbol 1860 MovieClip [PlayerMC] Frame 1
root.playerbody_no = 1;
Symbol 1860 MovieClip [PlayerMC] Frame 9
stop();
Symbol 1860 MovieClip [PlayerMC] Frame 10
root.playerbody_no = 2;
Symbol 1860 MovieClip [PlayerMC] Frame 19
stop();
Symbol 1869 MovieClip [ape] Frame 1
stop();
Hit._visible = false;
Symbol 1869 MovieClip [ape] Frame 11
this.attachMovie("ice", "ice", 1, {_y:-20});
Symbol 1869 MovieClip [ape] Frame 20
root.GetScore(300);
this.removeMovieClip();
Symbol 1869 MovieClip [ape] Frame 21
stop();
root.GetScore(300);
mc.gotoAndStop(1);
this.attachMovie("burnt", "burnt", 1, {_y:-20});
Symbol 1892 MovieClip [snake] Frame 1
Hit._visible = false;
Symbol 1893 MovieClip [addsnake] Frame 7
this.removeMovieClip();
Symbol 1923 MovieClip [timeover] Frame 90
root.gameover();
Symbol 1948 MovieClip Frame 38
stop();
Symbol 1952 MovieClip [box] Frame 1
Hit._visible = false;
Symbol 1952 MovieClip [box] Frame 11
Hit._visible = false;
root.play_soundAction("jump2");
Symbol 1952 MovieClip [box] Frame 22
root.play_soundAction("boxo");
Symbol 1952 MovieClip [box] Frame 28
if (this.thistype == 2) {
var terandom = random(4);
if (terandom == 0) {
root.AttachAward(random(2) + 1, this._x, this._y - 40);
} else if (terandom == 1) {
root.AttachAward(6, this._x, this._y - 40);
} else if (terandom == 2) {
root.playball(this._x, this._y, random(2) + 1);
}
}
Symbol 1952 MovieClip [box] Frame 32
this.removeMovieClip();
Symbol 1952 MovieClip [box] Frame 33
root.play_soundAction("boxopens");
root.play_soundAction("boxo");
Symbol 1952 MovieClip [box] Frame 39
if (this.thistype == 2) {
var terandom = random(4);
if (terandom == 0) {
root.AttachAward(random(2) + 1, this._x, this._y - 40);
} else if (terandom == 1) {
root.AttachAward(6, this._x, this._y - 40);
} else if (terandom == 2) {
root.playball(this._x, this._y, random(2) + 1);
}
}
Symbol 1952 MovieClip [box] Frame 43
this.removeMovieClip();
Symbol 2000 Button
on (release) {
getURL ("http://playedoff.com/mario", "_blank");
}
Symbol 2004 MovieClip Frame 1
this.loadMovie(root.loadassetpath + root.pic_array[1]);
Symbol 2025 MovieClip Frame 10
stop();
Symbol 2088 MovieClip Frame 54
stop();