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

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

- Music in Motion -.swf

This is the info page for
Flash #56293

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


Text
NEWGROUNDS API CONNECTOR

Place this movieclip on your root timeline.
This clip will automatically hide itself unless neeeded.
(Error messages appear on frames 2 and 3)

NOTICE!

You are not logged in!
As a result, any medals you unlock in this game will NOT
be saved to your profile.

ERROR!

We could not connect to the Newgrounds gateway.
If you are using an ad-blocking application, you may need
to disable it to unlock any medals you earn in this game.

Medal Popup
Place this clip on the root of your movie,
spanning any frames where medals are
called. (this clip is hidden)

medal name

MEDAL GET!

100pts

P

L

A

Y

>

Music in Motion

Copyright (C) 2008 Coolio-Niato

N

Arrow Keys to Move

Arrow Keys to Move

Lives

10

Run and Jump

Falling Blocks

Disco Disaster

Final Boss !!!

You Survived the Music!

E        X          I         T          >

GAME OVER

Better Luck Next Time

Exit >

ActionScript [AS1/AS2]

Frame 1
_root.API_Settings = {movie_id:7143, enc_key:"nUVcZmEzuZN1lMmGYitMeeBRKPJMzMC2", debug_mode:false, movie_version:""}; _root._quality = "Medium"; stopAllSounds(); _root.bytesLoaded = _root.getBytesLoaded(); _root.bytesTotal = _root.getBytesTotal(); _root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal)); _root.percentLoadedText = _root.percentLoaded + "%"; _root.bar.gotoAndStop(percentLoaded); _root.menu = new ContextMenu(); _root.menu.hideBuiltInItems();
Frame 2
if (_root.percentLoaded == 100) { gotoAndStop (3); } else { gotoAndPlay (1); }
Instance of Symbol 54 MovieClip in Frame 3
onClipEvent (enterFrame) { this.onPress = function () { getURL ("http://www.armorgames.com", "_blank"); }; }
Instance of Symbol 70 MovieClip in Frame 4
on (release) { getURL ("http://coolio-niato.newgrounds.com/", _blank); }
Frame 5
stop(); colorArray = new Array(238, 119, 119, 241, 241, 116, 116, 242, 115, 117, 240, 215, 117, 180, 240, 179, 119, 238, 237, 120, 180, 255, 208, 102, 102, 255, 102, 255, 102, 240, 226, 226, 20, 247, 0, 222, 179, 31, 216); array2 = new Array(211, 222, 235, 247, 259, 270, 282, 294, 307, 319, 331, 344, 355, 366, 379, 391, 403, 414, 426, 439, 450, 461, 473, 486, 497, 509, 522, 535, 546, 558, 570, 583, 593, 607, 619, 631, 642, 655, 668, 680, 692, 704, 716, 727, 739, 751, 764, 776, 788, 799, 812, 824, 835, 848, 860, 872, 885, 896, 907, 919, 932, 944, 956, 1030, 1042, 1053, 1065, 1076, 1089, 1101, 1112, 1123, 1136, 1148, 1160, 1172, 1183, 1195, 1207, 1218, 1230, 1243, 1255, 1267, 1279, 1292, 1303, 1315, 1328, 1340, 1352, 1364, 1376, 1387, 1399, 1411, 1423, 1435, 1448, 1460, 1472, 1484, 1496, 1508, 1520, 1533, 1544, 1556, 1569, 1581, 1592, 1604, 1616, 1629, 1640, 1653, 1665, 1677, 1690, 1702, 1713, 1724, 1737, 1749, 1761, 1773, 1785, 1797, 1809, 1820, 1832, 1844, 1856, 1869, 1882, 1893, 1904, 1916, 1928, 1941, 1953, 1964, 1976, 1989, 2001, 2013, 2025, 2037, 2047, 2060, 2072, 2084, 2096, 2107, 2120, 2133, 2146, 2158, 2170, 2181); pos = 0; num = 6; xspd = 0; xinc = 0.8; _root.medalmc._x = _root._x / -1; _root.medalmc._y = _root._y / -1; maxx = 10; yspd = 0; maxy = 15; grav = 1.6; jump = true; yspd = 5; jumpy = -19; charMove = function () { if (jump) { if (yspd < 0) { yspd = yspd + grav; if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, ((_root.char._y + yspd) - _root.char._height) + 5, true)) and (!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, ((_root.char._y + yspd) - _root.char._height) + 5, true))) { _root.char._y = _root.char._y + yspd; } else { while (true) { if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, ((_root.char._y - 1) - _root.char._height) + 5, true)) and (!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, ((_root.char._y - 1) - _root.char._height) + 5, true))) { _root.char._y--; } else { break; } } yspd = 0; } } else { if (yspd > 5) { _root.char.char.gotoAndPlay(25); } if (yspd < maxy) { yspd = yspd + grav; } else { yspd = maxy; } if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + yspd, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + yspd, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + yspd, true)))) { _root.char._y = _root.char._y + yspd; } else { while (true) { if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + 1, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + 1, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + 1, true)))) { _root.char._y++; } else { break; } } colorx = new Color(_root.char); colorx.setRGB(16777215); yspd = 0; jump = false; } if (_root.bees.hitTest(_root.char._x, _root.char._y, true) or (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) { while (true) { if (_root.bees.hitTest(_root.char._x, _root.char._y, true) or (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) { _root.char._y--; } else { break; } } trace(1); yspd = 0; jump = false; } } } else { if (_root.char.char._currentframe > 10) { _root.char.char.gotoAndStop(1); } if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + 1, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + 1, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + 1, true)))) { jump = true; yspd = 0; } if (Key.isDown(38)) { if (!spacekey) { spacekey = true; _root.char.char.gotoAndPlay(11); yspd = jumpy; jump = true; } } else { spacekey = false; } if (_root.bees.hitTest(_root.char._x, _root.char._y, true) or (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) { while (true) { if (_root.bees.hitTest(_root.char._x, _root.char._y, true) or (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) { _root.char._y--; } else { break; } } } } if (!Key.isDown(38)) { spacekey = false; } if (Math.abs(xspd) <= Math.abs(maxx)) { if (Key.isDown(37) and (!Key.isDown(39))) { if (!jump) { _root.char.char.play(); } _root.char._xscale = -100; xspd = xspd - xinc; } else if ((!Key.isDown(37)) and Key.isDown(39)) { if (!jump) { _root.char.char.play(); } _root.char._xscale = 100; xspd = xspd + xinc; } else { if (!jump) { _root.char.char.gotoAndStop(1); } if (xspd != 0) { if (Math.abs(xspd) > 1) { xspd = xspd - ((xinc * xspd) / Math.abs(xspd)); } else { xspd = 0; } } } } else { xspd = (maxx * xspd) / Math.abs(xspd); } if (_root.bees.hitTest((_root.char._x + xspd) + (((_root.char._width / 2) * xspd) / Math.abs(xspd)), _root.char._y - 3, true) or _root.bees.hitTest((_root.char._x + xspd) + (((_root.char._width / 2) * xspd) / Math.abs(xspd)), (_root.char._y - _root.char._height) + 7, true)) { while (true) { if ((!_root.bees.hitTest((_root.char._x + (((_root.char._width / 2) * xspd) / Math.abs(xspd))) + (xspd / Math.abs(xspd)), _root.char._y - 3, true)) and (!_root.bees.hitTest((_root.char._x + (((_root.char._width / 2) * xspd) / Math.abs(xspd))) + (xspd / Math.abs(xspd)), (_root.char._y - _root.char._height) + 7, true))) { _root.char._x = _root.char._x + (xspd / Math.abs(xspd)); } else { break; } } xspd = 0; } if (!jump) { while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, _root.char._y - (_root.char._height / 2), true)) { _root.char._x = _root.char._x + 1; } while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, _root.char._y - (_root.char._height / 2), true)) { _root.char._x = _root.char._x - 1; } while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, _root.char._y - 5, true)) { _root.char._x = _root.char._x + 1; } while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, _root.char._y - 5, true)) { _root.char._x = _root.char._x - 1; } while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, (_root.char._y - _root.char._height) + 5, true)) { _root.char._x = _root.char._x + 1; } while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, (_root.char._y - _root.char._height) + 5, true)) { _root.char._x = _root.char._x - 1; } } _root.char._x = _root.char._x + xspd; }; onEnterFrame = function () { if (_root.song._currentframe == 2295) { _root.song.gotoAndPlay(40); pos = 0; } if (_root.shadowthing._currentframe == 1) { charMove(); if (_root.song._currentframe == array2[pos]) { pos++; colorx = new Color(_root.bees["b" + num]); colorx.setRGB(16777215); if (num > 1) { colorx = new Color(_root.bees["b" + (num - 1)]); colorx.setRGB(16777215); } else { colorx = new Color(_root.bees.b13); colorx.setRGB(16777215); } numthing = Math.round(Math.random() * 12) * 3; colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]}; colorx.setTransform(colorT); colornum.push(colorT); num++; if (num > 13) { num = 1; } } } else { _root.song.stop(); } };
Instance of Symbol 115 MovieClip in Frame 5
onClipEvent (load) { hit = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { if (!hit) { hit = true; getURL ("http://armorgames.com/", _blank); } } else { hit = false; } }
Instance of Symbol 115 MovieClip in Frame 5
onClipEvent (load) { } onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { _root.shadowthing.play(); } }
Instance of Symbol 115 MovieClip in Frame 5
onClipEvent (load) { hit = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { if (!hit) { hit = true; _root.medalmc.medal_popup.unlockMedal("Menu Jumper"); } } else { hit = false; } }
Frame 6
colorArray = new Array(238, 119, 119, 241, 241, 116, 116, 242, 115, 117, 240, 215, 117, 180, 240, 179, 119, 238, 237, 120, 180, 255, 208, 102, 102, 255, 102, 255, 102, 240, 226, 226, 20, 247, 0, 222, 179, 31, 216); xspd = 0; xinc = 0.8; maxx = 10; yspd = 0; maxy = 15; grav = 1.6; jump = false; jumpy = -19; i = 0; bspeed = 4; spawner = 0; maxheight = 0; pos = 0; nonspawn = 0; row = 0; spacekey = false; songnum = 1; array1 = new Array(113, 117, 122, 161, 272, 278, 282, 322, 327, 334, 342, 347, 352, 357, 432, 437, 442, 482, 591, 597, 601, 623, 629, 638, 643, 651, 656, 661, 666, 671, 675, 682, 695, 701, 705, 714, 719, 729, 739, 744, 753, 763, 773, 778, 783, 793, 798, 809, 819, 824, 833, 843, 853, 858, 862, 873, 878, 888, 899, 904, 914, 923, 933, 938, 943, 953, 958, 968, 983, 993, 1003, 1013, 1019, 1023, 1034, 1039, 1049, 1060, 1065, 1074, 1084, 1093, 1098, 1103, 1113, 1119, 1128, 1138, 1143, 1153, 1163, 1172, 1178, 1183, 1194, 1199, 1210, 1219, 1224, 1234, 1244, 1254, 1259, 1272, 1278, 1289, 1300, 1306, 1314, 1342, 1354, 1363, 1373, 1384, 1393, 1404, 1414, 1424, 1434, 1444, 1454, 1464, 1473, 1483, 1492, 1503, 1513, 1523, 1533, 1544, 1552, 1563, 1573, 1583, 1594, 1604, 1613, 1623, 1633, 1642, 1661, 1674, 1684, 1724, 1762, 1804, 1820, 1834, 1844, 1882, 1924, 1933, 1968, 1974, 1978, 1990, 1995, 2004, 2015, 2020, 2030, 2035, 2052, 2057, 2062, 2070, 2075, 2084, 2094, 2099, 2109, 2114, 2131, 2136, 2141, 2150, 2155, 2165, 2175, 2180, 2190, 2194, 2211, 2218, 2221, 2230, 2236, 2244, 2254, 2259, 2269, 2274, 2285, 2294, 2305, 2315, 2325, 2336, 2346, 2355, 2365, 2374, 2385, 2394, 2404, 2415, 2426, 2435, 2444, 2454, 2465, 2475, 2485, 2496, 2505, 2515, 2524, 2535, 2545, 2555, 2566, 2575, 2584, 2593, 2602, 2644, 2683, 2724); changearray1 = new Array(70, 231, 390, 549, 641, 961, 1282, 1442, 1601, 1762, 1925, 2009, 2089, 2167, 2240, 2404, 2564, 2600, 2643, 2684); array2 = new Array(115, 211, 222, 235, 247, 259, 270, 282, 294, 307, 319, 331, 344, 355, 366, 379, 391, 403, 414, 426, 439, 450, 461, 473, 486, 497, 509, 522, 535, 546, 558, 570, 583, 593, 607, 619, 631, 642, 655, 668, 680, 692, 704, 716, 727, 739, 751, 764, 776, 788, 799, 812, 824, 835, 848, 860, 872, 885, 896, 907, 919, 932, 944, 956, 1030, 1042, 1053, 1065, 1076, 1089, 1101, 1112, 1123, 1136, 1148, 1160, 1172, 1183, 1195, 1207, 1218, 1230, 1243, 1255, 1267, 1279, 1292, 1303, 1315, 1328, 1340, 1352, 1364, 1376, 1387, 1399, 1411, 1423, 1435, 1448, 1460, 1472, 1484, 1496, 1508, 1520, 1533, 1544, 1556, 1569, 1581, 1592, 1604, 1616, 1629, 1640, 1653, 1665, 1677, 1690, 1702, 1713, 1724, 1737, 1749, 1761, 1773, 1785, 1797, 1809, 1820, 1832, 1844, 1856, 1869, 1882, 1893, 1904, 1916, 1928, 1941, 1953, 1964, 1976, 1989, 2001, 2013, 2025, 2037, 2047, 2060, 2072, 2084, 2096, 2107, 2120, 2133, 2146, 2158, 2170, 2181); changearray2 = new Array(114, 213, 403, 595, 788, 978, 1029, 1221, 1412, 1605, 1797, 1989, 2183); array3 = new Array(215, 226, 237, 249, 259, 270, 281, 292, 302, 314, 325, 337, 347, 357, 368, 379, 390, 401, 413, 423, 434, 444, 457, 467, 477, 488, 498, 510, 520, 531, 541, 553, 564, 575, 586, 598, 608, 621, 631, 641, 652, 664, 674, 685, 696, 706, 717, 728, 738, 828, 838, 849, 859, 870, 881, 892, 902, 913, 924, 935, 946, 957, 968, 979, 991, 1001, 1011, 1023, 1034, 1045, 1056, 1068, 1078, 1089, 1100, 1112, 1122, 1132, 1144, 1154, 1166, 1177, 1187, 1198, 1209, 1219, 1230, 1241, 1252, 1263, 1274, 1285, 1296, 1307, 1317, 1328, 1339, 1351, 1362, 1373, 1384, 1395, 1406, 1416, 1427, 1439, 1450, 1461, 1472, 1483, 1494, 1505, 1515, 1573, 1581, 1591, 1602, 1612, 1624, 1635, 1646, 1657, 1668, 1678, 1689, 1700, 1710, 1720, 1731, 1743, 1754, 1764, 1776, 1788, 1798, 1809, 1820, 1831, 1842, 1853, 1864, 1875, 1887, 1896, 1907, 1919, 1929, 1940, 1952, 1963, 1974, 1984, 1995, 2006, 2017, 2028, 2040, 2051, 2061, 2072, 2083, 2093, 2105, 2115, 2126, 2137, 2148, 2158, 2169, 2180, 2191, 2201, 2212, 2223, 2234, 2246, 2257, 2268, 2278, 2301, 2323, 2345, 2366, 2388, 2409, 2431); _root.song2.stop(); _root.song3.stop(); currentpillar = 0; lastlocation = 20; die = false; deathwait = 5; colornum = new Array(); _root.cbak._alpha = 50; changepos = 0; lastnum = 0; lives = 3; deadwait = 0; _root.song.gotoAndPlay(1); _root.char._x = Stage.width / 2; _root.char._y = Stage.height / 2; _root.song4.stop(); walkin = 0; _root.boss._xscale = 70; _root.boss._yscale = _root.boss._xscale; red = 0; lastnumber = 0; bosslives = 3; array4 = new Array(51, 64, 76, 90, 102, 116, 128, 139, 153, 166, 178, 192, 205, 218, 231, 243, 257, 270, 282, 296, 308, 321, 334, 347, 360, 373, 385, 399, 411, 424, 437, 449, 461, 474, 487, 501, 513, 527, 540, 552, 565, 578, 590, 603, 616, 629, 642, 654, 668, 681, 693, 707, 719, 732, 745, 758, 771, 784, 796, 810, 822, 836, 848, 861); onEnterFrame = function () { if ((_root.songnum == 1) or (songnum == 2)) { if (_root.char._y > 290) { _root.char._y = 260; } } if (songnum == 1) { if (_root.char._x > ((_root._x * -1) + Stage.width)) { _root.char._x = ((_root._x * -1) + Stage.width) - 60; } } _root.topcorner.lives = _root.lives; if (songnum == 1) { if ((_root.changearray1[changepos] + 40) == _root.song._currentframe) { changepos++; colorx = new Color(_root.cbak); colorx.setRGB(0); while (true) { numthing = Math.round(Math.random() * 12) * 3; if (numthing != lastnum) { lastnum = numthing; break; } } colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]}; colorx.setTransform(colorT); } if (_root.char._x < (_root._x * -1)) { deadwait++; if (deadwait > 5) { _root.lives--; _root.char._x = ((_root._x * -1) + (Stage.width / 2)) + 60; _root.char._y = _root.char._y - 70; colorx = new Color(_root.char); colorx.setRGB(16711680); xspd = 0; yspd = 0; deadwait = 0; } } else { charMove(); } if (_root.song._currentframe == 2850) { _root.medalmc.medal_popup.unlockMedal("Run and Jump"); _root.livesplus.play(); songnum = 2; _root.song2.play(); changepos = 0; pos = 0; } bspeed = bspeed + 0.00166666666666667; scrollScreen(); spawnPixels(); spawnObstacle(); camFollow(); } else if (songnum == 2) { if (_root.changearray2[changepos] == _root.song2._currentframe) { changepos++; colorx = new Color(_root.cbak); colorx.setRGB(0); while (true) { numthing = Math.round(Math.random() * 12) * 3; if (numthing != lastnum) { lastnum = numthing; break; } } colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]}; colorx.setTransform(colorT); } if (_root.song2._currentframe == 2296) { _root.ground.bounds.invisi.red.gotoAndStop(2); _root.medalmc.medal_popup.unlockMedal("Falling Blocks"); songnum = 3; pos = 0; _root.ground.bounds.base.play(); } _root.ground.bounds.invisi.gotoAndStop(2); if (_root.ground.bounds.top.topbar._currentframe == 1) { _root.ground.bounds.top.topbar.play(); } if (!die) { if (_root.deathwait == 5) { if (_root.char.char._currentframe == 30) { _root.char.char.gotoAndStop(1); } } else { xspd = 0; jump = false; yspd = 0; _root.deathwait++; } charMove(); } else if (_root.char.char._currentframe != 30) { _root.lives--; _root.char.char.gotoAndStop(30); } spawnPixels(); if (_root.char._x <= ((_root._x * -1) - 10)) { _root.char._x = (_root._x * -1) + 10; } if (_root.char._x >= (((_root._x * -1) + Stage.width) + 10)) { trace(1); _root.char._x = ((_root._x * -1) + Stage.width) - 10; } camFollow(); spawnBox(); } else if (songnum == 3) { _root.ground.bounds.invisi.red.gotoAndStop(2); spawnPixels(); if (_root.char._y > 290) { _root.cbak._alpha = _root.cbak._alpha - 0.5; if (_root.song3._currentframe == 1) { _root.song3.gotoAndPlay(50); } _root.char._x = _root.char._x + (((((_root._x * -1) + (Stage.width / 2)) + 20) - _root.char._x) / 20); _root.char._y = _root.char._y + 15; camFollow(); } else { charMove(); camFollow(); } if (_root.char.hitTest(_root.ground.circle)) { _root.livesplus.gotoAndPlay(3); startypos = _root.char.char._y; _root.char.char._y = _root.char.char._y - (_root.ground.circle._height / 2); distance = _root.ground.circle._height / 2; _root.char._x = _root.ground.circle._x + _root.ground._x; _root.char._y = _root.ground.circle._y + _root.ground._y; colorx = new Color(_root.cbak); colorx.setRGB(0); xspd = 0; yspd = 0; jump = false; yposition = 0; pos = 0; songnum = 4; } } else if (songnum == 4) { camFollow3(); if (_root.song3._currentframe >= 2582) { _root.cbak._alpha = 50; _root.char.char._y = startypos - distance; if (_root.char._rotation > 5) { _root.char._rotation = _root.char._rotation - (maxx / 3); _root.char.char.play(); _root.char._xscale = -100; } else if (_root.char._rotation < -5) { _root.char._rotation = _root.char._rotation + (maxx / 3); _root.char.char.play(); _root.char._xscale = 100; } else { _root.char._rotation = 0; } if (_root.char._rotation == 0) { _root.char.char.gotoAndStop(1); if (_root.ground.circle._currentframe < 8) { _root.ground.circle.gotoAndPlay(8); } _root.ground.tris.gotoAndStop(2); if (_root.ground.circle._currentframe >= 12) { _root.char.char._y = startypos; _root.char._y = _root.char._y - (_root.ground.circle._height / 2); _root.medalmc.medal_popup.unlockMedal("Disco Disaster"); songnum = 5; xspd = 0; yspd = 0; jump = false; yposition = 0; pos = 0; } } } else { _root.cbak._alpha = 100; charMove2(); triMove(); } } else if (songnum == 5) { _root.char.char.gotoAndStop(20); _root.char._y = _root.char._y + 15; if (_root.char.hitTest(_root.ground.basefull)) { _root.livesplus.play(); _root.boss._x = ((_root._x * -1) + Stage.width) + 10; songnum = 6; _root.song4.play(); pos = 1; } spawnPixels(); camFollow(); } else if (songnum == 6) { if (_root.char.hitTest(_root.boss.area) and (_root.boss.red._alpha == 0)) { if (deadwait == 0) { if (_root.char._x < _root.boss._x) { xspd = -20; } else { xspd = 20; } deadwait++; _root.lives--; colorx = new Color(_root.char); colorx.setRGB(16711680); } } if (deadwait > 0) { deadwait++; if (deadwait > 60) { deadwait = 0; colorx = new Color(_root.char); colorx.setRGB(16777215); } } if (_root.song4._currentframe == 40) { pos = 0; } if (_root.song4._currentframe >= 880) { _root.boss.red._alpha = 30; } if (jump) { if (_root.boss.hitTest(_root.char._x, _root.char._y, true) and (_root.boss._currentframe < 40)) { if (yspd > 0) { if (red == 0) { if (_root.song4._currentframe >= 880) { bosslives--; _root.boss.red.gotoAndStop(1); if (bosslives > 0) { _root.song4.gotoAndPlay(20); pos = 0; } else { _root.song4.stop(); _root.shadowthing._x = (_root._x * -1) + Stage.width; _root.shadowthing._y = _root._y * -1; _root.shadowthing.gotoAndStop(1); } yspd = -16; red = 1; } } } } } if (red >= 1) { _root.boss.red._alpha = 100; red++; if (red == 15) { _root.boss.red._alpha = 0; red = 0; } } walkin++; if (walkin == 1) { pos = 0; _root.boss.gotoAndStop(1); } if (_root.song4._currentframe == (_root.array4[pos] - 4)) { pos++; if (_root.boss._currentframe == 1) { while (true) { attacks = (3 - bosslives) + 2; if (attacks <= 3) { option = Math.ceil(Math.random() * attacks); if ((option >= 2) and (lastnumber == 1)) { break; } if (option == 1) { break; } } else { option = Math.ceil(Math.random() * 3); if ((option >= 2) and (lastnumber == 1)) { break; } if (option == 1) { break; } } } lastnumber = option; if (option == 1) { _root.boss.gotoAndPlay(2); } else if (option == 2) { _root.boss.gotoAndPlay(26); } else if (option == 3) { _root.boss.gotoAndPlay(32); } } if (_root.char._x < _root.boss._x) { _root.boss._xscale = 70; } else { _root.boss._xscale = -70; } } if (bosslives > 1) { if (((_root.boss._currentframe > 1) and (_root.boss._currentframe < 10)) or ((_root.boss._currentframe >= 14) and (_root.boss._currentframe < 21))) { _root.boss._x = _root.boss._x + (((3 * _root.boss._xscale) / Math.abs(_root.boss._xscale)) * -1); } } else if (((_root.boss._currentframe > 1) and (_root.boss._currentframe < 10)) or ((_root.boss._currentframe >= 14) and (_root.boss._currentframe < 21))) { _root.boss._x = _root.boss._x + (((4 * _root.boss._xscale) / Math.abs(_root.boss._xscale)) * -1); } charMove(); camFollow4(); spawnPixels(); if (bosslives <= 0) { if (_root.boss._currentframe < 40) { _root.boss.gotoAndPlay(40); } } } _root.topcorner.gotoAndStop(songnum); _root.topcorner._x = _root._x * -1; _root.topcorner._y = _root._y * -1; _root.livesplus._x = (_root._x * -1) + 220; _root.livesplus._y = (_root._y * -1) + 40; if (_root.lives <= 0) { _root.gotoAndStop(8); } _root.medalmc._x = _root._x / -1; _root.medalmc._y = _root._y / -1; }; triMove = function () { if (_root.ground.circle._currentframe == 2) { colorx = new Color(_root.ground.circle); colorx.setRGB(0); colorx.setTransform(_root.colornum[0]); _root.colornum.splice(0, 1); } if (_root.song3._currentframe == (array3[pos] - 32)) { pos++; do { number = Math.random() * 16; number = Math.ceil(number); rotationx = 22.5 * (number - 1); rotationx2 = _root.char._rotation; if (rotationx2 < 0) { rotationx2 = rotationx2 + 360; } } while (_root.ground.tris["t" + number]._currentframe != 1); colorx = new Color(_root.ground.tris["t" + number]); colorx.setRGB(0); numthing = Math.round(Math.random() * 12) * 3; colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]}; colorx.setTransform(colorT); colornum.push(colorT); _root.ground.tris["t" + number].play(); } }; charMove2 = function () { if (!jump) { if (_root.char._alpha == 100) { x = 1; while (x < 17) { rotationx = 22.5 * (x - 1); rotationx2 = _root.char._rotation; if (rotationx2 < 0) { rotationx2 = rotationx2 + 360; } if (Math.abs(rotationx2 - rotationx) < 15) { if ((_root.ground.tris["t" + x]._currentframe >= 31) and (_root.ground.tris["t" + x]._currentframe < 34)) { _root.char.char.gotoAndPlay(11); yspd = jumpy; jump = true; colorx = new Color(_root.char); colorx.setRGB(16711680); colorx = new Color(_root.cbak); colorx.setRGB(16777215); lives--; yposition = 0; } } x++; } } } if (!jump) { colorx = new Color(_root.char); colorx.setRGB(16777215); colorx = new Color(_root.cbak); colorx.setRGB(0); } if (Math.abs(xspd) <= Math.abs(maxx)) { if (Key.isDown(37) and (!Key.isDown(39))) { if (!jump) { _root.char.char.play(); } _root.char._xscale = -100; xspd = xspd - xinc; } else if ((!Key.isDown(37)) and Key.isDown(39)) { if (!jump) { _root.char.char.play(); } _root.char._xscale = 100; xspd = xspd + xinc; } else { if (!jump) { _root.char.char.gotoAndStop(1); } if (xspd != 0) { if (Math.abs(xspd) > 1) { xspd = xspd - ((xinc * xspd) / Math.abs(xspd)); } else { xspd = 0; } } } } else { xspd = (maxx * xspd) / Math.abs(xspd); } _root.char._rotation = _root.char._rotation + (xspd / 3); if (jump) { if (yspd < 0) { yspd = yspd + grav; _root.char.char._y = _root.char.char._y + yspd; yposition = yposition + yspd; } else { if (yspd > 5) { _root.char.char.gotoAndPlay(25); } if (yspd < maxy) { yspd = yspd + grav; } else { yspd = maxy; } _root.char.char._y = _root.char.char._y + yspd; yposition = yposition + yspd; if (yposition > 0) { yposition = 0; _root.char.char._y = startypos - distance; jump = false; } } } else { if (_root.char.char._currentframe > 10) { _root.char.char.gotoAndStop(1); } if (Key.isDown(38)) { if (!spacekey) { spacekey = true; _root.char.char.gotoAndPlay(11); yspd = jumpy; jump = true; yposition = 0; } } else { spacekey = false; } } if (!Key.isDown(38)) { spacekey = false; } }; camFollow3 = function () { _root._x = ((Stage.width / 2) - _root.char._x) - (Math.sin(_root.char._rotation * (Math.PI/180)) * distance); _root._y = ((Stage.height / 2) - _root.char._y) + (Math.cos(_root.char._rotation * (Math.PI/180)) * distance); }; spawnBox = function () { if (_root.song2._currentframe == (array2[pos] - 95)) { pos++; i++; duplicateMovieClip (_root.ground.randbox, "r" + i, _root.ground.getNextHighestDepth()); _root.ground["r" + i]._y = -400; _root.ground["r" + i]._x = ((_root._x * -1) + (Math.random() * (Stage.width - 70))) + 35; } }; playCrusher = function () { if (_root.song2._currentframe == (array2[pos] - 25)) { pos++; do { currentpillar = Math.ceil(Math.random() * 15); } while (_root.ground.bounds.top["p" + currentpillar]._currentframe != 1); colorx = new Color(_root.ground.bounds.top["p" + currentpillar]); colorx.setRGB(0); numthing = Math.round(Math.random() * 12) * 3; colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]}; colorx.setTransform(colorT); _root.ground.bounds.top["p" + currentpillar].play(); } }; spawnObstacle = function () { if (_root.song._currentframe == (array1[pos] - 32)) { i++; pos++; duplicateMovieClip (_root.ground.plat, "g" + i, _root.ground.getNextHighestDepth()); _root.ground["g" + i]._x = (_root.ground.bounds._x + _root.ground.bounds._width) + (bspeed * 10); if ((maxheight + 100) < 800) { if ((maxheight - 100) > 80) { if (Math.random() > 0.5) { _root.ground["g" + i].actions.yscale = (maxheight + (Math.random() * 100)) + 100; } else { _root.ground["g" + i].actions.yscale = (maxheight - (Math.random() * 100)) + 100; } } else { _root.ground["g" + i].actions.yscale = (maxheight + (Math.random() * 100)) + 100; } } else { _root.ground["g" + i].actions.yscale = (maxheight - (Math.random() * 100)) + 100; } maxheight = _root.ground["g" + i].actions.yscale - 100; if (maxheight > 800) { maxheight = 800; } if (maxheight < 20) { maxheight = 20; } nonspawn = 0; } else { _root._xscale = 100; _root._yscale = 100; nonspawn++; if (nonspawn > 50) { maxheight = 20; } } }; spawnPixels = function () { wait = 0; duplicateMovieClip (_root.pixel, "p" + i, _root.getNextHighestDepth()); _root["p" + i]._x = (_root.char._x + (Math.random() * 10)) - 5; _root["p" + i]._y = ((_root.char._y - (_root.char._height / 2)) + (Math.random() * 20)) - 10; _root["p" + i]._alpha = 70; i++; }; scrollScreen = function () { _root._x = _root._x - bspeed; _root.ground.bounds._x = _root.ground.bounds._x + bspeed; _root.ground.circle._x = _root.ground.circle._x + bspeed; _root.ground.tris._x = _root.ground.tris._x + bspeed; _root.cbak._x = _root.cbak._x + bspeed; _root.ground.basefull._x = _root.ground.basefull._x + bspeed; _root.boss._x = _root.boss._x + bspeed; }; camFollow = function () { _root._y = ((Stage.height / 6) * 5) - _root.char._y; }; camFollow4 = function () { _root._y = ((Stage.height / 3) * 2) - _root.char._y; }; camFollow2 = function () { _root._y = ((Stage.height / 8) * 7) - _root.char._y; }; camFall = function () { _root._y = _root._y - 5; _root.ground.bounds.invisi._y = _root.ground.bounds.invisi._y + 5; }; charMove = function () { if (jump) { if (yspd < 0) { yspd = yspd + grav; if ((!_root.ground.hitTest((_root.char._x - (_root.char._width / 2)) + 2, ((_root.char._y + yspd) - _root.char._height) + 5, true)) and (!_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) - 2, ((_root.char._y + yspd) - _root.char._height) + 5, true))) { _root.char._y = _root.char._y + yspd; } else { while (true) { if ((!_root.ground.hitTest((_root.char._x - (_root.char._width / 2)) + 2, ((_root.char._y - 1) - _root.char._height) + 5, true)) and (!_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) - 2, ((_root.char._y - 1) - _root.char._height) + 5, true))) { _root.char._y--; } else { break; } } yspd = 0; } } else { if (yspd > 5) { _root.char.char.gotoAndPlay(25); } if (yspd < maxy) { yspd = yspd + grav; } else { yspd = maxy; } if ((!_root.ground.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + yspd, true)) and ((!_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + yspd, true)) and (!_root.ground.hitTest(_root.char._x, _root.char._y + yspd, true)))) { _root.char._y = _root.char._y + yspd; } else { while (true) { if ((!_root.ground.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + 1, true)) and ((!_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + 1, true)) and (!_root.ground.hitTest(_root.char._x, _root.char._y + 1, true)))) { _root.char._y++; } else { break; } } if (_root.songnum != 6) { colorx = new Color(_root.char); colorx.setRGB(16777215); } yspd = 0; jump = false; } if (_root.ground.hitTest(_root.char._x, _root.char._y, true) or (_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.ground.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) { while (true) { if (_root.ground.hitTest(_root.char._x, _root.char._y, true) or (_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.ground.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) { _root.char._y--; } else { break; } } trace(1); yspd = 0; jump = false; } } } else { if (_root.char.char._currentframe > 10) { _root.char.char.gotoAndStop(1); } if ((!_root.ground.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + 1, true)) and ((!_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + 1, true)) and (!_root.ground.hitTest(_root.char._x, _root.char._y + 1, true)))) { jump = true; yspd = 0; } if (Key.isDown(38)) { if (!spacekey) { spacekey = true; _root.char.char.gotoAndPlay(11); yspd = jumpy; jump = true; } } else { spacekey = false; } if (_root.ground.hitTest(_root.char._x, _root.char._y, true) or (_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.ground.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) { while (true) { if (_root.ground.hitTest(_root.char._x, _root.char._y, true) or (_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.ground.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) { _root.char._y--; yspd = 0; } else { break; } } } } if (!Key.isDown(38)) { spacekey = false; } if (Math.abs(xspd) <= Math.abs(maxx)) { if (Key.isDown(37) and (!Key.isDown(39))) { if (!jump) { _root.char.char.play(); } _root.char._xscale = -100; xspd = xspd - xinc; } else if ((!Key.isDown(37)) and Key.isDown(39)) { if (!jump) { _root.char.char.play(); } _root.char._xscale = 100; xspd = xspd + xinc; } else { if (!jump) { _root.char.char.gotoAndStop(1); } if (xspd != 0) { if (Math.abs(xspd) > 1) { xspd = xspd - ((xinc * xspd) / Math.abs(xspd)); } else { xspd = 0; } } } } else { xspd = (maxx * xspd) / Math.abs(xspd); } if (_root.ground.hitTest((_root.char._x + xspd) + (((_root.char._width / 2) * xspd) / Math.abs(xspd)), _root.char._y - 3, true) or _root.ground.hitTest((_root.char._x + xspd) + (((_root.char._width / 2) * xspd) / Math.abs(xspd)), (_root.char._y - _root.char._height) + 7, true)) { while (true) { if ((!_root.ground.hitTest((_root.char._x + (((_root.char._width / 2) * xspd) / Math.abs(xspd))) + (xspd / Math.abs(xspd)), _root.char._y - 3, true)) and (!_root.ground.hitTest((_root.char._x + (((_root.char._width / 2) * xspd) / Math.abs(xspd))) + (xspd / Math.abs(xspd)), (_root.char._y - _root.char._height) + 7, true))) { _root.char._x = _root.char._x + (xspd / Math.abs(xspd)); } else { break; } } xspd = 0; } if (!jump) { while (_root.ground.hitTest((_root.char._x - (_root.char._width / 2)) - 2, _root.char._y - (_root.char._height / 2), true)) { _root.char._x = _root.char._x + 1; } while (_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) + 2, _root.char._y - (_root.char._height / 2), true)) { _root.char._x = _root.char._x - 1; } while (_root.ground.hitTest((_root.char._x - (_root.char._width / 2)) - 2, _root.char._y - 5, true)) { _root.char._x = _root.char._x + 1; } while (_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) + 2, _root.char._y - 5, true)) { _root.char._x = _root.char._x - 1; } while (_root.ground.hitTest((_root.char._x - (_root.char._width / 2)) - 2, (_root.char._y - _root.char._height) + 5, true)) { _root.char._x = _root.char._x + 1; } while (_root.ground.hitTest((_root.char._x + (_root.char._width / 2)) + 2, (_root.char._y - _root.char._height) + 5, true)) { _root.char._x = _root.char._x - 1; } } _root.char._x = _root.char._x + xspd; };
Frame 7
stop(); _root._x = 0; _root._y = 0; _root.char._x = 51; _root.char._y = 219; _root.medalmc._x = _root._x / -1; _root.medalmc._y = _root._y / -1; _root.medalmc.medal_popup.unlockMedal("Music Maniac"); colorArray = new Array(238, 119, 119, 241, 241, 116, 116, 242, 115, 117, 240, 215, 117, 180, 240, 179, 119, 238, 237, 120, 180, 255, 208, 102, 102, 255, 102, 255, 102, 240, 226, 226, 20, 247, 0, 222, 179, 31, 216); array2 = new Array(41, 55, 65, 72, 81, 89, 94, 106, 116, 123, 131, 139, 146, 152, 158, 165, 170, 177, 182, 188, 193, 223, 237, 250, 262, 273, 279, 289, 296, 302, 314, 324, 329, 335, 343, 350, 357, 365, 372, 377, 383, 392, 398, 459, 470, 481, 485, 491, 499, 505, 511, 524, 532, 538, 543, 549, 556, 563, 568, 575, 582, 587, 595, 603, 609, 641, 654, 667, 680, 690, 695, 701, 708, 713, 720, 733, 742, 747, 752, 759, 766, 772, 777, 784, 791, 797, 803, 807, 813, 819, 851, 861, 867, 873, 877, 883, 888, 894, 907, 916, 921, 927, 933, 939, 945, 951, 957, 964, 968, 976, 985, 991, 1024, 1037, 1050, 1063, 1073, 1078, 1087, 1095, 1102, 1116, 1126, 1131, 1141, 1148, 1156, 1162, 1170, 1176, 1182, 1187, 1195, 1202, 1260, 1272, 1283, 1289, 1294, 1300, 1307, 1313, 1325, 1335, 1341, 1347, 1353, 1359, 1365, 1377, 1388, 1393, 1398, 1405, 1410, 1443, 1455, 1468, 1481, 1492, 1497, 1503, 1509, 1515, 1521, 1533, 1544, 1550, 1555, 1562, 1567, 1574, 1585, 1597, 1602, 1611, 1618, 1652, 1686, 1694, 1702, 1708, 1713, 1719, 1726, 1732, 1743, 1752, 1759, 1766, 1775, 1783, 1789, 1795, 1802, 1807, 1813, 1822, 1828); pos = 0; num = 3; xspd = 0; xinc = 0.8; maxx = 10; yspd = 0; maxy = 15; grav = 1.6; jump = false; jumpy = -19; _root.song.gotoAndPlay(40); charMove = function () { if (jump) { if (yspd < 0) { yspd = yspd + grav; if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, ((_root.char._y + yspd) - _root.char._height) + 5, true)) and (!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, ((_root.char._y + yspd) - _root.char._height) + 5, true))) { _root.char._y = _root.char._y + yspd; } else { while (true) { if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, ((_root.char._y - 1) - _root.char._height) + 5, true)) and (!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, ((_root.char._y - 1) - _root.char._height) + 5, true))) { _root.char._y--; } else { break; } } yspd = 0; } } else { if (yspd > 5) { _root.char.char.gotoAndPlay(25); } if (yspd < maxy) { yspd = yspd + grav; } else { yspd = maxy; } if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + yspd, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + yspd, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + yspd, true)))) { _root.char._y = _root.char._y + yspd; } else { while (true) { if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + 1, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + 1, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + 1, true)))) { _root.char._y++; } else { break; } } colorx = new Color(_root.char); colorx.setRGB(16777215); yspd = 0; jump = false; } } } else { if (_root.char.char._currentframe > 10) { _root.char.char.gotoAndStop(1); } if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + 1, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + 1, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + 1, true)))) { jump = true; yspd = 0; } if (Key.isDown(38)) { if (!spacekey) { spacekey = true; _root.char.char.gotoAndPlay(11); yspd = jumpy; jump = true; } } else { spacekey = false; } if (_root.bees.hitTest(_root.char._x, _root.char._y, true) or (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) { while (true) { if (_root.bees.hitTest(_root.char._x, _root.char._y, true) or (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) { _root.char._y--; } else { break; } } } } if (!Key.isDown(38)) { spacekey = false; } if (Math.abs(xspd) <= Math.abs(maxx)) { if (Key.isDown(37) and (!Key.isDown(39))) { if (!jump) { _root.char.char.play(); } _root.char._xscale = -100; xspd = xspd - xinc; } else if ((!Key.isDown(37)) and Key.isDown(39)) { if (!jump) { _root.char.char.play(); } _root.char._xscale = 100; xspd = xspd + xinc; } else { if (!jump) { _root.char.char.gotoAndStop(1); } if (xspd != 0) { if (Math.abs(xspd) > 1) { xspd = xspd - ((xinc * xspd) / Math.abs(xspd)); } else { xspd = 0; } } } } else { xspd = (maxx * xspd) / Math.abs(xspd); } if (_root.bees.hitTest((_root.char._x + xspd) + (((_root.char._width / 2) * xspd) / Math.abs(xspd)), _root.char._y - 3, true) or _root.bees.hitTest((_root.char._x + xspd) + (((_root.char._width / 2) * xspd) / Math.abs(xspd)), (_root.char._y - _root.char._height) + 7, true)) { while (true) { if ((!_root.bees.hitTest((_root.char._x + (((_root.char._width / 2) * xspd) / Math.abs(xspd))) + (xspd / Math.abs(xspd)), _root.char._y - 3, true)) and (!_root.bees.hitTest((_root.char._x + (((_root.char._width / 2) * xspd) / Math.abs(xspd))) + (xspd / Math.abs(xspd)), (_root.char._y - _root.char._height) + 7, true))) { _root.char._x = _root.char._x + (xspd / Math.abs(xspd)); } else { break; } } xspd = 0; } if (!jump) { while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, _root.char._y - (_root.char._height / 2), true)) { _root.char._x = _root.char._x + 1; } while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, _root.char._y - (_root.char._height / 2), true)) { _root.char._x = _root.char._x - 1; } while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, _root.char._y - 5, true)) { _root.char._x = _root.char._x + 1; } while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, _root.char._y - 5, true)) { _root.char._x = _root.char._x - 1; } while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, (_root.char._y - _root.char._height) + 5, true)) { _root.char._x = _root.char._x + 1; } while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, (_root.char._y - _root.char._height) + 5, true)) { _root.char._x = _root.char._x - 1; } } _root.char._x = _root.char._x + xspd; }; onEnterFrame = function () { if (_root.song._currentframe == 2295) { _root.song.gotoAndPlay(40); pos = 0; } charMove(); if (_root.song._currentframe == array2[pos]) { pos++; colorx = new Color(_root.bees["b" + num]); colorx.setRGB(16777215); if (num != 3) { colorx = new Color(_root.bees["b" + (num - 1)]); colorx.setRGB(16777215); } else { colorx = new Color(_root.bees.b14); colorx.setRGB(16777215); } numthing = Math.round(Math.random() * 12) * 3; colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]}; colorx.setTransform(colorT); colornum.push(colorT); num++; if (num > 14) { num = 3; } } };
Instance of Symbol 115 MovieClip in Frame 7
onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { _root.gotoAndStop(5); } }
Instance of Symbol 115 MovieClip in Frame 7
onClipEvent (load) { hit = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { if (!hit) { hit = true; getURL ("http://armorgames.com/", _blank); } } else { hit = false; } }
Frame 8
stop(); _root._x = 0; _root._y = 0; _root.char._x = 51; _root.char._y = 219; colorArray = new Array(238, 119, 119, 241, 241, 116, 116, 242, 115, 117, 240, 215, 117, 180, 240, 179, 119, 238, 237, 120, 180, 255, 208, 102, 102, 255, 102, 255, 102, 240, 226, 226, 20, 247, 0, 222, 179, 31, 216); array2 = new Array(211, 222, 235, 247, 259, 270, 282, 294, 307, 319, 331, 344, 355, 366, 379, 391, 403, 414, 426, 439, 450, 461, 473, 486, 497, 509, 522, 535, 546, 558, 570, 583, 593, 607, 619, 631, 642, 655, 668, 680, 692, 704, 716, 727, 739, 751, 764, 776, 788, 799, 812, 824, 835, 848, 860, 872, 885, 896, 907, 919, 932, 944, 956, 1030, 1042, 1053, 1065, 1076, 1089, 1101, 1112, 1123, 1136, 1148, 1160, 1172, 1183, 1195, 1207, 1218, 1230, 1243, 1255, 1267, 1279, 1292, 1303, 1315, 1328, 1340, 1352, 1364, 1376, 1387, 1399, 1411, 1423, 1435, 1448, 1460, 1472, 1484, 1496, 1508, 1520, 1533, 1544, 1556, 1569, 1581, 1592, 1604, 1616, 1629, 1640, 1653, 1665, 1677, 1690, 1702, 1713, 1724, 1737, 1749, 1761, 1773, 1785, 1797, 1809, 1820, 1832, 1844, 1856, 1869, 1882, 1893, 1904, 1916, 1928, 1941, 1953, 1964, 1976, 1989, 2001, 2013, 2025, 2037, 2047, 2060, 2072, 2084, 2096, 2107, 2120, 2133, 2146, 2158, 2170, 2181); pos = 0; num = 6; xspd = 0; xinc = 0.8; maxx = 10; yspd = 0; maxy = 15; grav = 1.6; jump = false; jumpy = -19; charMove = function () { if (jump) { if (yspd < 0) { yspd = yspd + grav; if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, ((_root.char._y + yspd) - _root.char._height) + 5, true)) and (!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, ((_root.char._y + yspd) - _root.char._height) + 5, true))) { _root.char._y = _root.char._y + yspd; } else { while (true) { if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, ((_root.char._y - 1) - _root.char._height) + 5, true)) and (!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, ((_root.char._y - 1) - _root.char._height) + 5, true))) { _root.char._y--; } else { break; } } yspd = 0; } } else { if (yspd > 5) { _root.char.char.gotoAndPlay(25); } if (yspd < maxy) { yspd = yspd + grav; } else { yspd = maxy; } if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + yspd, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + yspd, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + yspd, true)))) { _root.char._y = _root.char._y + yspd; } else { while (true) { if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + 1, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + 1, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + 1, true)))) { _root.char._y++; } else { break; } } colorx = new Color(_root.char); colorx.setRGB(16777215); yspd = 0; jump = false; } } } else { if (_root.char.char._currentframe > 10) { _root.char.char.gotoAndStop(1); } if ((!_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y + 1, true)) and ((!_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y + 1, true)) and (!_root.bees.hitTest(_root.char._x, _root.char._y + 1, true)))) { jump = true; yspd = 0; } if (Key.isDown(38)) { if (!spacekey) { spacekey = true; _root.char.char.gotoAndPlay(11); yspd = jumpy; jump = true; } } else { spacekey = false; } if (_root.bees.hitTest(_root.char._x, _root.char._y, true) or (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) { while (true) { if (_root.bees.hitTest(_root.char._x, _root.char._y, true) or (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) - 2, _root.char._y, true) or _root.bees.hitTest((_root.char._x - (_root.char._width / 2)) + 2, _root.char._y, true))) { _root.char._y--; } else { break; } } } } if (!Key.isDown(38)) { spacekey = false; } if (Math.abs(xspd) <= Math.abs(maxx)) { if (Key.isDown(37) and (!Key.isDown(39))) { if (!jump) { _root.char.char.play(); } _root.char._xscale = -100; xspd = xspd - xinc; } else if ((!Key.isDown(37)) and Key.isDown(39)) { if (!jump) { _root.char.char.play(); } _root.char._xscale = 100; xspd = xspd + xinc; } else { if (!jump) { _root.char.char.gotoAndStop(1); } if (xspd != 0) { if (Math.abs(xspd) > 1) { xspd = xspd - ((xinc * xspd) / Math.abs(xspd)); } else { xspd = 0; } } } } else { xspd = (maxx * xspd) / Math.abs(xspd); } if (_root.bees.hitTest((_root.char._x + xspd) + (((_root.char._width / 2) * xspd) / Math.abs(xspd)), _root.char._y - 3, true) or _root.bees.hitTest((_root.char._x + xspd) + (((_root.char._width / 2) * xspd) / Math.abs(xspd)), (_root.char._y - _root.char._height) + 7, true)) { while (true) { if ((!_root.bees.hitTest((_root.char._x + (((_root.char._width / 2) * xspd) / Math.abs(xspd))) + (xspd / Math.abs(xspd)), _root.char._y - 3, true)) and (!_root.bees.hitTest((_root.char._x + (((_root.char._width / 2) * xspd) / Math.abs(xspd))) + (xspd / Math.abs(xspd)), (_root.char._y - _root.char._height) + 7, true))) { _root.char._x = _root.char._x + (xspd / Math.abs(xspd)); } else { break; } } xspd = 0; } if (!jump) { while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, _root.char._y - (_root.char._height / 2), true)) { _root.char._x = _root.char._x + 1; } while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, _root.char._y - (_root.char._height / 2), true)) { _root.char._x = _root.char._x - 1; } while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, _root.char._y - 5, true)) { _root.char._x = _root.char._x + 1; } while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, _root.char._y - 5, true)) { _root.char._x = _root.char._x - 1; } while (_root.bees.hitTest((_root.char._x - (_root.char._width / 2)) - 2, (_root.char._y - _root.char._height) + 5, true)) { _root.char._x = _root.char._x + 1; } while (_root.bees.hitTest((_root.char._x + (_root.char._width / 2)) + 2, (_root.char._y - _root.char._height) + 5, true)) { _root.char._x = _root.char._x - 1; } } _root.char._x = _root.char._x + xspd; }; onEnterFrame = function () { if (_root.song._currentframe == 2295) { _root.song.gotoAndPlay(40); pos = 0; } charMove(); if (_root.song._currentframe == array2[pos]) { pos++; colorx = new Color(_root.bees["b" + num]); colorx.setRGB(16777215); if (num > 1) { colorx = new Color(_root.bees["b" + (num - 1)]); colorx.setRGB(16777215); } else { colorx = new Color(_root.bees.b4); colorx.setRGB(16777215); } numthing = Math.round(Math.random() * 12) * 3; colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]}; colorx.setTransform(colorT); colornum.push(colorT); num++; if (num > 4) { num = 1; } } }; _root.medalmc._x = _root._x / -1; _root.medalmc._y = _root._y / -1;
Instance of Symbol 115 MovieClip in Frame 8
onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { _root.gotoAndStop(5); } }
Instance of Symbol 115 MovieClip in Frame 8
onClipEvent (load) { hit = false; } onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { if (!hit) { hit = true; getURL ("http://armorgames.com/", _blank); } } else { hit = false; } }
Symbol 23 Button
on (release) { this._visible = false; }
Symbol 32 MovieClip Frame 1
_visible = false; var checkConnection = function (event) { if (!event.success) { _visible = true; gotoAndStop (3); } }; if (com.Newgrounds.NewgroundsAPI.isNewgrounds() || (_root.API_Settings.debug_mode)) { com.Newgrounds.NewgroundsAPI.addEventListener(com.Newgrounds.NewgroundsAPI.events.MOVIE_CONNECTED, checkConnection); if ((!com.Newgrounds.NewgroundsAPI.hasUserSession()) && (!_root.API_Settings.debug_mode)) { _visible = true; gotoAndStop (2); } } com.Newgrounds.NewgroundsAPI.setMovieVersion(_root.API_Settings.movie_version); com.Newgrounds.NewgroundsAPI.connectMovie(_root.API_Settings.movie_id, _root.API_Settings.enc_key, _root.API_Settings.debug_mode); com.Newgrounds.NewgroundsAPI.loadMedals(); stop();
Symbol 45 MovieClip Frame 1
function unlockMedal(m_name) { clearInterval(pop_delay); var _local1 = com.Newgrounds.NewgroundsAPI.getMedals(); var _local2 = null; for (i in _local1) { if (_local1[i].medal_name == m_name) { _local2 = _local1[i]; medal_name = _local2.medal_name; medal_value = _local2.medal_value + "pts"; com.Newgrounds.NewgroundsAPI.unlockMedal(medal_name); pop_delay = setInterval(endDelay, 3000); _visible = true; gotoAndPlay (2); break; } } } function endDelay(params) { gotoAndPlay (10); clearInterval(pop_delay); } var pop_delay; var medal_name = "?????"; var medal_value = "???"; _visible = false;
Symbol 45 MovieClip Frame 10
var myBitmapData = flash.display.BitmapData.loadBitmap(medal_name + ".jpg"); medal_icon.attachBitmap(myBitmapData, 111); stop();
Symbol 255 MovieClip [__Packages.com.Newgrounds.BaseN] Frame 0
class com.Newgrounds.BaseN { var ceiling, hashIndex, bitSize, hashVal, i; function BaseN (hash) { ceiling = 100000000000000; if (hash) { hashIndex = hash; } else { hashIndex = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~@#$%^&*()+|;/"; } bitSize = hashIndex.length; hashVal = new Object(); i = 0; while (i < bitSize) { hashVal[hashIndex.charAt(i)] = i; i++; } } function verify(s) { if (hashVal[s] != undefined) { return(true); } return(false); } function encode(n, minchars) { debug.lastencode = ""; if (typeof(i) != "string") { n = n.toString(); } if (n.charAt(0) == "-") { var _local3 = "-"; n = n.substring(1); } else { var _local3 = ""; } if (String(n).indexOf(".") > -1) { var _local4 = String(n).split(".", 2); return(((_local3 + baseNEncoder(_local4[0], minchars)) + ".") + baseNEncoder(_local4[1])); } debug.lastencode = debug.lastencode + "\tNo decimal\r"; return(_local3 + baseNEncoder(n, minchars)); } function decode(s) { var _local4 = 1; if (s.charAt(0) == "-") { _local4 = -1; s = s.substring(1, s.length); } var _local3 = s.indexOf("."); if (_local3 > -1) { var _local5 = Math.pow(10, baseNDecoder(s.substring(_local3 + 1, s.length))); return((baseNDecoder(s.substring(0, _local3)) / _local5) * _local4); } return(baseNDecoder(s) * _local4); } function baseNEncoder(n, minchars) { if (!minchars) { minchars = 1; } var _local4 = ""; while (n != 0) { n = Math.round(n); var _local3 = n % bitSize; if (Math.round(_local3) != _local3) { trace((((((((("BaseN failed on " + n) + "%") + bitSize) + " = ") + _local3) + " ") + int(n)) + " ") + int(bitSize)); } _local4 = hashIndex.charAt(_local3) + _local4; debug.lastencode = debug.lastencode + (((((((("\t-> n:" + n) + " % bitSize:") + bitSize) + " = ") + _local3) + ", final char=") + _local4) + newline); n = n - _local3; n = n / bitSize; } if (minchars) { while (_local4.length < minchars) { _local4 = hashIndex.charAt(0) + _local4; } } return(_local4); } function baseNDecoder(s) { var _local2 = 0; var _local6 = 0; i = 0; while (i < s.length) { var _local3 = s.charAt((s.length - i) - 1); if (_local3 == hashIndex.charAt(0)) { var _local5 = 0; } else { var _local5 = hashVal[_local3] * Math.pow(bitSize, i); } _local2 = _local2 + _local5; if (_local2 >= ceiling) { _local6 = _local6 + ((_local2 - (_local2 % ceiling)) / ceiling); _local2 = _local2 % ceiling; } i++; } if (_local6 > 0) { _local2 = "" + _local2; while (_local2.length < (ceiling.toString().length - 1)) { _local2 = "0" + _local2; } _local2 = ("" + _local6) + _local2; } return(_local2); } var debug = new Object(); }
Symbol 256 MovieClip [__Packages.com.Newgrounds.NewgroundsAPIError] Frame 0
class com.Newgrounds.NewgroundsAPIError { var message, name, alias; function NewgroundsAPIError (error, msg) { if (Number(error).toString() == String(error)) { error = Number(error); } else if (error_codes[String(error)]) { error = error_codes[String(error)]; } else { error = 0; } code = error; message = msg; name = error_names[error]; alias = aliases[error]; } static function init_codes() { var _local2 = new Object(); var _local1 = 0; while (_local1 < aliases.length) { _local2[aliases[_local1]] = _local1; _local1++; } return(_local2); } static function init_names() { var _local5 = new Array(); var _local3 = 0; while (_local3 < aliases.length) { var _local2 = aliases[_local3].toLowerCase().split("_"); var _local1 = 0; while (_local1 < _local2.length) { _local2[_local1] = _local2[_local1].substr(0, 1).toUpperCase() + _local2[_local1].substr(1, _local2[_local1].length); for (var _local4 in always_caps) { if (_local2[_local1].toUpperCase() == always_caps[_local4]) { _local2[_local1] = _local2[_local1].toUpperCase(); } } _local1++; } _local5[_local3] = _local2.join(" "); _local3++; } return(_local5); } function isError() { return(true); } static var aliases = new Array("UNKNOWN_ERROR", "INVALID_API_ID", "MISSING_PARAM", "INVALID_STAT_ID", "INVALID_COMMAND_ID", "FLASH_ADS_NOT_APPROVED", "PERMISSION_DENIED", "IDENTIFICATION_REQUIRED", "INVALID_EMAIL_ADDRESS", "BANNED_USER", "SESSION_EXPIRED", "INVALID_SCORE", "INVALID_MEDAL", "INVALID_FOLDER", "FILE_NOT_FOUND", "SITE_ID_REQUIRED", "UPLOAD_IN_PROGRESS", "USER_CANCELLED", "CONFIRM_REQUEST", "CONNECTION_FAILED"); static var always_caps = new Array("API", "URL", "ID"); static var error_codes = init_codes(); static var error_names = init_names(); var code = 0; }
Symbol 257 MovieClip [__Packages.com.Newgrounds.NewgroundsAPI] Frame 0
class com.Newgrounds.NewgroundsAPI { static var version, user_email, movie_id, debug, session_id, publisher_id, timeout, connected, tracker_id, encryption_key, user_id, user_name, host, error_format, normal_format, link_format, header_format, ad_url, ad_swf_url; function NewgroundsAPI () { } static function setMovieVersion(v) { if (v) { version = String(v); } } static function setUserEmail(e) { user_email = e; } static function getOfficialVersionURL() { var _local1 = (((((GATEWAY_URL + "?tracker_id=") + movie_id) + "&command_id=") + getCommandID("loadOfficalVersion")) + "&seed=") + Math.random(); if (debug) { _local1 = _local1 + "&debug=1"; } return(_local1); } static function hasUserSession() { if (session_id && (publisher_id)) { return(true); } if (_root.NewgroundsAPI_PublisherID && (_root.NewgroundsAPI_SessionID)) { return(true); } return(false); } static function isNewgrounds() { return(((publisher_id == 1) || (_root.NewgroundsAPI_PublisherID == 1)) || (getHost().toLowerCase().indexOf("ungrounded.net") > -1)); } static function hasPublisher() { return(publisher_id || (_root.NewgroundsAPI_PublisherID)); } static function hasUserEmail() { if (user_email) { return(true); } return(false); } static function connectionTimeOut() { clearInterval(timeout); callListener(events.MOVIE_CONNECTED, false, new com.Newgrounds.NewgroundsAPIError("CONNECTION_FAILED", "Connection to NewgroundsAPI gateway timed out.")); } static function connectMovie(m_id, encrypt_key, debug_mode) { if (connected) { return(undefined); } var _local2 = function () { com.Newgrounds.NewgroundsAPI.connectionTimeOut(); }; timeout = setInterval(_local2, 8000, null); if (!m_id) { fatalError("NewgroundsAPI.connectMovie() - missing required movie_id parameter", "connectMovie"); } movie_id = String(m_id); tracker_id = Number(movie_id.substring(0, movie_id.indexOf(":"))); encryption_key = encrypt_key; debug = debug_mode; if (_root.NewgroundsAPI_PublisherID) { publisher_id = _root.NewgroundsAPI_PublisherID; if (_root.NewgroundsAPI_SessionID) { session_id = _root.NewgroundsAPI_SessionID; } } else { publisher_id = 1; session_id = null; user_id = 0; user_name = "Guest"; } if (_root.NewgroundsAPI_UserName) { user_name = _root.NewgroundsAPI_UserName; } if (_root.NewgroundsAPI_UserID) { user_id = _root.NewgroundsAPI_UserID; } connected = true; sendCommand("connectMovie", {host:getHost(), movie_version:version}); } static function getHost() { if (!host) { var _local1 = _url; if ((_local1.indexOf("http://") > -1) or (_local1.indexOf("https://") > -1)) { host = _local1.split("/")[2].toLowerCase(); } else { host = "localhost"; } } return(host); } static function loadNewgrounds() { sendCommand("loadNewgrounds", {host:getHost()}, true); } static function loadMySite() { sendCommand("loadMySite", {host:getHost()}); } static function loadCustomLink(link) { sendCommand("loadCustomLink", {host:getHost(), link:link}, true); } static function logCustomEvent(event) { sendCommand("logCustomEvent", {host:getHost(), event:event}); } static function postScore(score, value, get_best) { if ((!score) or (value == undefined)) { sendError({command_id:getCommandID("postScore")}, new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", "missing required parameter(s)")); return(undefined); } sendSecureCommand("postScore", {score:score, value:value, get_best:get_best}); } static function getTodaysScores(score, params) { getScores(score, "t", params, "getTodaysScores"); } static function getYesterdaysScores(score, params) { getScores(score, "y", params, "getYesterdaysScores"); } static function getThisWeeksScores(score, params) { getScores(score, "w", params, "getThisWeeksScores"); } static function getThisMonthsScores(score, params) { getScores(score, "m", params, "getThisMonthsScores"); } static function getThisYearsScores(score, params) { getScores(score, "y", params, "getThisYearsScores"); } static function getAlltimeScores(score, params) { getScores(score, "a", params, "getAlltimeScores"); } static function getScores(score, period, params, command_name) { if (!score) { sendError({command_id:getCommandID(command_name)}, new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", "missing required score name")); return(undefined); } if (!params) { params = new Object(); } if (!hasUserSession()) { callListener(events.SCORES_LOADED, false, new com.Newgrounds.NewgroundsAPIError("SITE_ID_REQUIRED", ("Host '" + getHost()) + "' does not have high scores enabled")); return(undefined); } params.publisher_id = publisher_id; params.period = period; params.score = score; if (params.user_id) { var _local3 = period; } else { var _local3 = period + "-u"; } if (score_page_counts[_local3] == undefined) { params.request_page_count = true; } sendCommand("getScores", params); } static function unlockMedal(medal, get_score) { if (!medal) { sendError({command_id:getCommandID("unlockMedal")}, new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", "missing required medal name")); return(undefined); } var _local1 = new Object(); _local1.medal = medal; if (get_score) { _local1.get_score = get_score; } sendSecureCommand("unlockMedal", _local1); } static function loadMedals() { if (medals) { callListener(events.MEDALS_LOADED, true, {medals:medals}); return(undefined); } var _local1 = new Object(); if (hasUserSession()) { _local1.publisher_id = publisher_id; _local1.user_id = user_id; } sendCommand("getMedals", _local1); } static function getMedals() { return(medals); } static function saveLocal(save_id, save_data, size_allocation) { if (!sharedObjects[save_id]) { sharedObjects[save_id] = SharedObject.getLocal((("ng_ap_secure_" + movie_id) + "_") + save_id); } sharedObjects[save_id].data[save_id] = encodeData(save_data); sharedObjects[save_id].flush(); } static function loadLocal(save_id) { if (!sharedObjects[save_id]) { sharedObjects[save_id] = SharedObject.getLocal((("ng_ap_secure_" + movie_id) + "_") + save_id); } sharedObjects[save_id].flush(); if (sharedObjects[save_id].data[save_id]) { return(decodeData(sharedObjects[save_id].data[save_id])); } return(null); } static function encodeData(data) { return(compressHex(com.Newgrounds.RC4.encrypt(com.Newgrounds.JSON.encode(data), encryption_key))); } static function decodeData(base) { return(com.Newgrounds.JSON.decode(com.Newgrounds.RC4.decrypt(uncompressHex(base), encryption_key))); } static function compressHex(hex_value) { var _local5 = hex_value.length % 6; var _local4 = ""; var _local1 = 0; while (_local1 < hex_value.length) { var _local2 = Number("0x" + hex_value.substr(_local1, 6)); _local4 = _local4 + compressor.encode(_local2, 4); _local1 = _local1 + 6; } return(_local5 + _local4); } static function uncompressHex(base_value) { var _local8 = Number(base_value.charAt(0)); var _local7 = ""; var _local3; var _local2 = 1; while (_local2 < base_value.length) { var _local6 = base_value.substr(_local2, 4); var _local5 = compressor.decode(_local6); var _local1 = dec2hex(_local5); if ((_local2 + 4) < base_value.length) { _local3 = 6; } else { _local3 = _local8; } while (_local1.length < _local3) { _local1 = "0" + _local1; } _local7 = _local7 + _local1; _local2 = _local2 + 4; } return(_local7); } static function dec2hex(dec) { var _local4 = "0123456789ABCDEF"; var _local3 = ""; while (dec > 0) { var _local2 = dec % 16; _local3 = _local4.charAt(_local2) + _local3; dec = (dec - _local2) / 16; } return(_local3); } static function saveFile(folder, filename, contents, thumbnail_source) { if (!save_file) { save_file = new com.Newgrounds.NewgroundsAPISaveFile(movie_id, folder, filename); save_file.setContents(contents); if (thumbnail_source) { save_file.setThumbnail(thumbnail_source); } save_file.onError = function (msg) { var _local1 = new com.Newgrounds.NewgroundsAPIError("PERMISSION_DENIED", msg); com.Newgrounds.NewgroundsAPI.sendError({command_id:com.Newgrounds.NewgroundsAPI.getCommandID("saveFile")}, _local1); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, false, _local1); }; save_file.onCancel = function (msg) { var _local1 = new com.Newgrounds.NewgroundsAPIError("USER_CANCELLED", msg); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, false, _local1); }; save_file.submit(); } else { var _local1 = new com.Newgrounds.NewgroundsAPIError("UPLOAD_IN_PROGRESS", "Please wait for the previous file to finish uploading"); sendError({command_id:getCommandID("saveFile")}, _local1); callListener(events.FILE_SAVED, false, _local1); } } static function checkFilePrivs(folder, filename) { if (user_id) { var _local1 = user_id; } else { var _local1 = 0; } var _local2 = {folder:folder, filename:filename, user_id:_local1, publisher_id:publisher_id}; sendCommand("checkFilePrivs", _local2); } static function finishFileSave(folder, filename, description, share, file, thumbnail) { var _local2; _local2 = {folder:folder, filename:filename, description:description, share:share}; var _local1; _local1 = {file:file, thumbnail:thumbnail}; sendSecureCommand("saveFile", _local2, null, _local1); } static function getFiles(folder, options) { var _local7 = {name:1, date:2, score:3}; var _local2 = {user_only:false, sort_on:"date", page:1, results_per_page:20, sort_descending:true}; var _local6 = new Array(); for (var _local10 in _local7) { _local6.push(("'" + _local10) + "'"); } var _local4 = new Array(); for (var _local9 in _local2) { _local4.push(("'" + _local9) + "'"); } if (options.sort_descending && (!_local7[options.sort_descending])) { var _local3 = new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", (("'" + options.sort_descending) + "' is not a valid sort_on value. Valid values are: ") + _local6.join(", ")); sendError({command_id:getCommandID("getFiles")}, _local3); delete options.sort_descending; } var _local8; if (options) { for (var _local10 in options) { if (_local2[_local10] == undefined) { var _local3 = new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", (("'" + _local10) + "' is not a valid option. Valid options are: ") + _local4.join(", ")); sendError({command_id:getCommandID("getFiles")}, _local3); delete options[_local10]; } else if (typeof(options[_local10]) != typeof(_local2[_local10])) { var _local3 = new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", (("option '" + _local10) + "' should be the following type: ") + typeof(_local2[_local10])); sendError({command_id:getCommandID("getFiles")}, _local3); delete options[_local10]; } } _local8 = options; } else { _local8 = new Object(); } if (hasUserSession()) { _local8.publisher_id = publisher_id; _local8.user_id = user_id; } _local8.folder = folder; sendCommand("getFiles", _local8); } static function getConfirmation(command_name, event, msg, target, confirm, cancel) { var _local1 = new com.Newgrounds.NewgroundsAPIError("CONFIRM_REQUEST", msg); _local1.confirm = function () { target[confirm](); }; _local1.cancel = function () { target[cancel](); }; _local1.command = getCommandID(command_name); callListener(event, false, _local1); } static function doBlockHost(event) { _root.stop(); initTextFormats(); _root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth()); _root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100); _root.NGAPI_deny_host_overlay.beginFill(6684672); _root.NGAPI_deny_host_overlay.moveTo(0, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, 0); _root.NGAPI_deny_host_overlay.endFill(); var _local2 = ("This movie has not been approved for use on " + getHost()) + "."; _local2 = _local2 + "\r\rFor an aproved copy, please visit:\r"; var _local4 = _local2.length; _local2 = _local2 + event.data.movie_url; var _local3 = _local2.length; _root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200); _root.NGAPI_deny_host_overlay.error.text = "ERROR!"; _root.NGAPI_deny_host_overlay.error.setTextFormat(error_format); _root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200); _root.NGAPI_deny_host_overlay.message.text = _local2; _root.NGAPI_deny_host_overlay.message.multiline = true; _root.NGAPI_deny_host_overlay.message.wordWrap = true; _root.NGAPI_deny_host_overlay.message.html = true; _root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format); link_format.url = event.data.redirect_url; _root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format); } static function onNewVersionAvailable(event) { _root.stop(); initTextFormats(); var _local2 = new Object(); _local2.x = Stage.width / 2; _local2.y = Stage.height / 2; _root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth()); _root.NGAPI_new_version_overlay.lineStyle(1, 0, 100); _root.NGAPI_new_version_overlay.beginFill(0, 70); _root.NGAPI_new_version_overlay.moveTo(-10, -10); _root.NGAPI_new_version_overlay.lineTo(-10, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, -10); _root.NGAPI_new_version_overlay.lineTo(-10, -10); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.lineStyle(10, 0, 100); _root.NGAPI_new_version_overlay.beginFill(51); _root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120); _root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120); _root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80); _root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80); _root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000); _root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100); _root.NGAPI_new_version_overlay.exit.beginFill(0, 50); _root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110); _root.NGAPI_new_version_overlay.exit.endFill(); _root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94); _root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94); _root.NGAPI_new_version_overlay.exit.onMouseUp = function () { if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) { _root.NGAPI_new_version_overlay.removeMovieClip(); } }; var _local3 = (("Version " + event.data.movie_version) + " is now available at:") + newline; var _local6 = _local3.length; _local3 = _local3 + event.data.movie_url; var _local4 = _local3.length; _root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000); _root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80); _root.NGAPI_new_version_overlay.newversion.text = "New Version Available!"; _root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format); _root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40); _root.NGAPI_new_version_overlay.message.text = _local3; _root.NGAPI_new_version_overlay.message.multiline = true; _root.NGAPI_new_version_overlay.message.wordWrap = true; _root.NGAPI_new_version_overlay.message.html = true; _root.NGAPI_new_version_overlay.message.setTextFormat(normal_format); link_format.url = event.data.redirect_url; _root.NGAPI_new_version_overlay.message.setTextFormat(_local6, _local4, link_format); } static function initTextFormats() { if (!error_format) { error_format = new TextFormat(); error_format.font = "Arial Black"; error_format.size = 48; error_format.color = 16711680 /* 0xFF0000 */; } if (!header_format) { header_format = new TextFormat(); header_format.font = "Arial Black"; header_format.size = 24; header_format.color = 16777215 /* 0xFFFFFF */; } if (!normal_format) { normal_format = new TextFormat(); normal_format.font = "Arial"; normal_format.bold = true; normal_format.size = 12; normal_format.color = 16777215 /* 0xFFFFFF */; } if (!link_format) { link_format = new TextFormat(); link_format.color = 16776960 /* 0xFFFF00 */; link_format.underline = true; } } static function doEvent(e) { switch (getCommandName(e.command_id)) { case "connectMovie" : clearInterval(timeout); sendMessage("You have successfully connected to the Newgrounds API Gateway"); sendMessage(("Movie identified as \"" + e.movie_name) + "\""); callListener(events.MOVIE_CONNECTED, e.success, {movie_name:e.movie_name}); var _local4 = false; if (e.ad_status === -1) { var _local6 = "This movie was not approved to run Flash Ads."; sendWarning(_local6); sendWarning(("visit " + AD_TERMS_URL) + " to view our approval guidelines"); if (!e.ad_url) { callListener(events.ADS_APPROVED, false, new com.Newgrounds.NewgroundsAPIError("FLASH_ADS_NOT_APPROVED", _local6)); } else { _local4 = true; } } else if (e.ad_status === 0) { var _local6 = "Flash Ads are currently awaiting approval."; sendNotice(_local6); if (!e.ad_url) { callListener(events.ADS_APPROVED, false, new com.Newgrounds.NewgroundsAPIError("FLASH_ADS_NOT_APPROVED", _local6)); } else { _local4 = true; } } if (e.ad_url) { ad_url = unescape(e.ad_url); if (!_local4) { sendMessage("This movie has been approved to run Flash Ads!"); } callListener(events.ADS_APPROVED, true); } if (e.deny_host) { var _local6 = getHost() + " does not have permission to run this movie!"; sendWarning(_local6); sendWarning("\tUpdate your API configuration to unblock " + getHost()); callListener(events.HOST_BLOCKED, true, {movie_url:unescape(e.movie_url), redirect_url:getOfficialVersionURL()}); } if (e.movie_version) { sendWarning("According to your API Configuration, this version is out of date."); if (version) { sendWarning("\tThe this movie is version " + version); } sendWarning("\tThe most current version is " + e.movie_version); callListener(events.NEW_VERSION_AVAILABLE, true, {movie_version:e.movie_version, movie_url:unescape(e.movie_url), redirect_url:getOfficialVersionURL()}); } if (e.request_portal_url) { sendCommand("setPortalID", {portal_url:_url}); } break; case "logCustomEvent" : if (e.success) { sendMessage(("Event '" + e.event) + "' was logged."); } callListener(events.EVENT_LOGGED, e.success, {event:e.event}); break; case "postScore" : var _local7; if (e.success) { var _local3 = "User"; if (user_email) { _local3 = user_email; } else if (user_name) { _local3 = user_name; } sendMessage(((((_local3 + " posted ") + e.value) + " to '") + e.score) + "'"); _local7 = {score:e.score, value:e.value, username:_local3}; } callListener(events.SCORE_POSTED, e.success, _local7); break; case "getScores" : _local7 = new Object(); if (e.user_id) { var _local5 = e.period; } else { var _local5 = e.period + "-u"; } if (e.total_pages) { score_page_counts[_local5] = e.total_pages; } _local7.user_id = e.user_id; _local7.current_page = e.current_page; _local7.total_pages = score_page_counts[_local5]; _local7.scores = e.scores; _local7.period = getPeriodName(e.period); callListener(events.SCORES_LOADED, e.success, _local7); break; case "unlockMedal" : if (medals) { var _local2 = 0; while (_local2 < medals.length) { if (medals[_local2].medal_name === e.medal_name) { medals[_local2].medal_unlocked = true; break; } _local2++; } } _local7 = {medal_name:e.medal_name, medal_value:e.medal_value, medal_difficulty:e.medal_difficulty}; callListener(events.MEDAL_UNLOCKED, e.success, _local7); break; case "getMedals" : medals = e.medals; _local7 = {medals:e.medals}; callListener(events.MEDALS_LOADED, e.success, _local7); break; case "getFiles" : break; case "getSystemFiles" : break; case "saveFile" : save_file = null; _local7 = {file_id:e.file_id, filename:e.filename, file_url:e.file_url, thumbnail:e.thumbnail, icon:e.icon}; callListener(events.FILE_SAVED, e.success, _local7); break; case "checkFilePrivs" : if (save_file) { save_file.checkPrivs(e); } else { _local7 = {filename:e.filename, folder:e.folder, can_read:e.can_read, can_write:e.can_write}; callListener(events.FILE_PRIVS_LOADED, e.success, _local7); } } } static function setDefaultListeners() { var _local1 = new Array(); _local1[events.HOST_BLOCKED] = {listener:doBlockHost}; _local1[events.NEW_VERSION_AVAILABLE] = {listener:onNewVersionAvailable}; return(_local1); } static function addEventListener(event, listener, params) { listeners[event] = {listener:listener, params:params}; } static function removeEventListener(event) { delete listeners[event]; } static function getEventName(event) { for (var _local2 in events) { if (events[_local2] == event) { return(_local2); } } return(undefined); } static function callListener(event, success, data, target) { echo("Fired Event: " + getEventName(event)); if (listeners[event]) { if (data.isError()) { listeners[event].listener({event:event, success:success, error:data, target:target}, listeners[event].params); } else { listeners[event].listener({event:event, success:success, data:data, target:target}, listeners[event].params); } } } static function getCommandName(id) { return(id); } static function getCommandID(name) { return(name); } static function getPeriodAliases() { var _local1 = new Object(); for (var _local2 in period_aliases) { _local1[period_aliases[_local2].alias] = _local2; } return(_local1); } static function getPeriodName(p) { for (var _local2 in period_aliases) { if (_local2 == p) { return(period_aliases[_local2].name); } } return(null); } static function getPeriodAlias(p) { for (var _local2 in period_aliases) { if (_local2 == p) { return(period_aliases[_local2].alias); } } return(null); } static function sendError(c, e) { trace((((((("[NewgroundsAPI ERROR] :: " + getCommandName(c.command_id)) + "() - ") + e.name) + ":") + newline) + "\t\t\t\t") + e.message); } static function sendWarning(m, c) { if (c) { m = m + ((("\r[NewgroundsAPI WARNING] :: \tSee " + COMMANDS_WIKI_URL) + c.toLowerCase()) + " for additional information."); } trace("[NewgroundsAPI WARNING] :: " + m); } static function sendNotice(m, c) { if (c) { m = m + ((("\r[NewgroundsAPI NOTICE] :: \tSee " + COMMANDS_WIKI_URL) + c.toLowerCase()) + " for additional information."); } trace("[NewgroundsAPI NOTICE] :: " + m); } static function fatalError(m, c) { if (c) { m = m + ((("\r\tSee " + COMMANDS_WIKI_URL) + c.toLowerCase()) + " for additional information."); } throw (((("***ERROR*** frame=" + _root._currentframe) + ", class=NewgroundsAPI") + newline) + newline) + m; } static function sendSecureCommand(command, secure_params, unsecure_params, files) { if (((!debug) && (!hasUserSession())) && (!hasUserEmail())) { sendError({command_id:getCommandID(command)}, new com.Newgrounds.NewgroundsAPIError("IDENTIFICATION_REQUIRED", ("You must be logged in or provide an e-mail address ( using NewgroundsAPI.setUserEmail(\"name@domain.com\"); ) to use " + command) + "().")); return(undefined); } if (!command) { fatalError("Missing command", "sendSecureCommand"); } if (!secure_params) { fatalError("Missing secure_params", "sendSecureCommand"); } if (!unsecure_params) { unsecure_params = new Object(); } var _local2 = ""; var _local1 = 0; while (_local1 < 16) { _local2 = _local2 + compression_radix.charAt(Math.floor(Math.random() * compression_radix.length)); _local1++; } if (debug) { secure_params.session_id = ""; } else { secure_params.session_id = session_id; } secure_params.as_version = 2; secure_params.user_email = user_email; secure_params.publisher_id = publisher_id; secure_params.seed = _local2; secure_params.command_id = getCommandID(command); var _local8 = com.Newgrounds.MD5.calculate(_local2); var _local6 = com.Newgrounds.RC4.encrypt(com.Newgrounds.JSON.encode(secure_params), encryption_key); var _local7 = _local8 + _local6; unsecure_params.secure = compressHex(_local7); sendCommand("securePacket", unsecure_params, false, files); } static function sendCommand(command, params, open_browser, files) { if ((!connected) and (command != "connectMovie")) { var _local11 = (("NewgroundsAPI." + command) + "() - NewgroundsAPI.connectMovie() must be called before this command can be called") + newline; fatalError(_local11, "connectMovie"); } if (open_browser) { var _local1 = new Object(); } else { var _local1 = new LoadVars(); } _local1.command_id = getCommandID(command); _local1.tracker_id = movie_id; if (debug) { _local1.debug = debug; } if (params) { for (var _local8 in params) { _local1[_local8] = params[_local8]; } } if (files) { for (var _local8 in files) { _local1[_local8] = files[_local8]; } } echo(("OUTPUT: \r" + com.Newgrounds.JSON.encode(_local1)) + newline); if (open_browser) { var _local5 = (GATEWAY_URL + "?seed=") + Math.random(); for (var _local8 in _local1) { _local5 = _local5 + ((("&" + escape(_local8)) + "=") + escape(_local1[_local8])); } getURL (_local5, "_blank"); _local1.removeMovieClip(); } else { var _local9 = new LoadVars(); _local9.onData = function (data) { com.Newgrounds.NewgroundsAPI.echo(("INPUT: \r" + data) + newline); if (data) { var _local1 = com.Newgrounds.JSON.decode(data); } else { var _local1 = {success:false}; } if (!_local1.success) { var _local3 = new com.Newgrounds.NewgroundsAPIError(_local1.error_code, _local1.error_msg); com.Newgrounds.NewgroundsAPI.sendError(_local1, _local3); } else { com.Newgrounds.NewgroundsAPI.doEvent(_local1); } }; var _local4 = new Array(); for (var _local7 in _local1) { _local4.push((_local7 + "=") + escape(_local1[_local7])); } echo((("POST " + GATEWAY_URL) + "?") + _local4.join("&")); _local1.sendAndLoad((GATEWAY_URL + "?seed=") + Math.random(), _local9, "POST"); } } static function renderAd(target) { if (ad_swf_url) { target.background = target.createEmptyMovieClip("background", 100); target.background.beginFill(0); target.background.moveTo(0, 0); target.background.lineTo(300, 0); target.background.lineTo(300, 250); target.background.lineTo(0, 250); target.background.lineTo(0, 0); target.background.endFill(); target.mask = target.createEmptyMovieClip("mask", 101); target.mask.beginFill(0); target.mask.moveTo(0, 0); target.mask.lineTo(300, 0); target.mask.lineTo(300, 250); target.mask.lineTo(0, 250); target.mask.lineTo(0, 0); target.mask.endFill(); target.clip = target.createEmptyMovieClip("clip", 102); target.clip.ad = target.clip.createEmptyMovieClip("ad", 100); target.clip.setMask(target.mask); loadMovie (ad_swf_url, target.clip.ad); callListener(events.AD_ATTACHED, true, null, target); } else { callListener(events.AD_ATTACHED, false, new com.Newgrounds.NewgroundsAPIError("FLASH_ADS_NOT_APPROVED", "Unable to render ad")); } } static function attachFlashAd(target) { System.security.allowDomain("http://server.cpmstar.com"); System.security.allowDomain("http://www.cpmstar.com"); System.security.allowDomain("https://server.cpmstar.com"); System.security.allowDomain("https://www.cpmstar.com"); System.security.allowInsecureDomain("http://server.cpmstar.com"); System.security.allowInsecureDomain("http://www.cpmstar.com"); System.security.allowInsecureDomain("https://server.cpmstar.com"); System.security.allowInsecureDomain("https://www.cpmstar.com"); sendMessage("You may get a security sandbox violation from this ad. This is nothing to worry about!"); if (resetAdTimer()) { if (ad_url) { var _local1 = new LoadVars(); _local1.onData = function (data) { if (data) { com.Newgrounds.NewgroundsAPI.ad_swf_url = data; } else { com.Newgrounds.NewgroundsAPI.ad_swf_url = null; } com.Newgrounds.NewgroundsAPI.renderAd(target); }; if (ad_url.indexOf("?") > -1) { _local1.load((ad_url + "&random=") + Math.random()); } else { _local1.load((ad_url + "?random=") + Math.random()); } } } else { renderAd(target); } } static function resetAdTimer() { if (!ad_url) { return(false); } var _local1 = new Date(); if (_local1.getTime() >= ad_reset) { ad_reset = _local1.getTime() + 300000; return(true); } return(false); } static function sendMessage(m, r) { var _local1 = "[NewgroundsAPI] :: " + m; if (r) { return(_local1); } trace(_local1); } static function echo(m) { if (do_echo) { trace(m); } } static var do_echo = false; static var GATEWAY_URL = "http://www.ngads.com/gateway_v2.php"; static var AD_TERMS_URL = "http://www.newgrounds.com/wiki/flashads/terms/"; static var COMMANDS_WIKI_URL = "http://www.newgrounds.com/wiki/flashapi/commands/"; static var ad_reset = 0; static var save_file = null; static var medals = null; static var score_page_counts = new Object(); static var compression_radix = "/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X"; static var compressor = new com.Newgrounds.BaseN(compression_radix); static var errors = com.Newgrounds.NewgroundsAPIError.init_codes(); static var sharedObjects = new Object(); static var events = {MOVIE_CONNECTED:1, ADS_APPROVED:2, AD_ATTACHED:3, HOST_BLOCKED:4, NEW_VERSION_AVAILABLE:5, EVENT_LOGGED:6, SCORE_POSTED:7, SCORES_LOADED:8, MEDAL_UNLOCKED:9, MEDALS_LOADED:10, FILE_PRIVS_LOADED:11, FILE_SAVED:12}; static var listeners = setDefaultListeners(); static var periods = getPeriodAliases(); static var period_aliases = {t:{name:"Today", alias:"TODAY"}, p:{name:"Yesterday", alias:"YESTERDAY"}, w:{name:"This Week", alias:"THIS_WEEK"}, m:{name:"This Month", alias:"THIS_MONTH"}, y:{name:"This Year", alias:"THIS_YEAR"}, a:{name:"All-Time", alias:"ALL_TIME"}}; }
Symbol 258 MovieClip [__Packages.com.Newgrounds.NewgroundsAPISaveFile] Frame 0
class com.Newgrounds.NewgroundsAPISaveFile { var tracker_id, folder, filename, contents, thumbnail, icon_url, thumbnail_url, description, scan, scanner; function NewgroundsAPISaveFile (tracker_id, folder, filename) { this.tracker_id = tracker_id; this.folder = folder; this.filename = filename; contents = null; thumbnail = null; icon_url = null; thumbnail_url = null; } function setDescription(description) { this.description = description; } function setShared(share) { this.share = share; } function setContents(contents) { this.contents = contents; } function setThumbnail(thumb) { if (thumb) { thumbnail = thumb; } else { thumbnail = null; } } function onError(msg) { trace("[NewgroundsAPISaveFile ERROR] :: " + msg); } function onCancel(msg) { trace("[NewgroundsAPISaveFile] :: " + msg); } function submit() { scan = null; com.Newgrounds.NewgroundsAPI.checkFilePrivs(folder, filename); } function checkPrivs(p) { if (p.success) { if (p.can_write) { can_write = p.can_write; if (p.exists) { com.Newgrounds.NewgroundsAPI.getConfirmation("saveFile", com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, ("File '" + filename) + "' exists, overwrite?", this, "startFile", "cancelFile"); } else { startFile(); } } else { onError("This filename is owned by another user."); } } else { onError("There was a problem looking up your file's details"); } } function cancelFile() { onCancel("Overwrite was cancelled"); } function startFile() { if (can_write) { if (thumbnail) { scanner = new com.Newgrounds.ImageScanner(thumbnail); scanner.setCallback(this, "writeFile"); scanner.startScan(100, 100, true); } else { writeFile(); } } else { onError(("You cannot write to filename \"" + filename) + "\""); } } function writeFile(img) { trace("FINISHED"); com.Newgrounds.NewgroundsAPI.finishFileSave(folder, filename, description, share, com.Newgrounds.JSON.encode(contents), img); } var can_write = false; var share = true; }
Symbol 259 MovieClip [__Packages.com.Newgrounds.ImageScanner] Frame 0
class com.Newgrounds.ImageScanner { var image_source, source_width, source_height, sourceBitmap, callback_target, callback_function, hash, cube, basen, xpos, ypos, pixels, busy, canvas_width, canvas_height, resizedBitmap, copyBitmap, output, draw_interval, callback_interval; function ImageScanner (the_source) { if (the_source) { image_source = the_source; } else { image_source = _root; } reset(); if (typeof(image_source) == "movieclip") { if (image_source == _root) { source_width = Stage.width; source_height = Stage.height; } else { source_width = Math.floor(image_source._width); source_height = Math.floor(image_source._height); } sourceBitmap = new flash.display.BitmapData(source_width, source_height, false, 4294967295); sourceBitmap.draw(_root); } else if (image_source.width) { source_width = image_source.width; source_height = image_source.height; sourceBitmap = image_source; } else { error("You can only use BitMaptData and MovieClip objects to create images"); } } function setCallback(target, funct) { if (target && (funct)) { callback_target = target; callback_function = funct; } } function reset() { callback_target = null; callback_function = null; debug.bad_pixels = 0; hash = "0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ<>?:;-_=+()!&"; var _local3 = Math.pow(hash.length, 2); trace("MAX COLORS: " + _local3); var _local2 = Math.floor(Math.pow(_local3, 0.333333333333333)) - 1; var _local4 = Math.pow(_local2, 3); cube = _local2; basen = new com.Newgrounds.BaseN(hash); xpos = 0; ypos = 0; pixels = 0; busy = false; } function startScan(w, h, s) { if (w) { image_width = w; } if (h) { image_height = h; } if (s != undefined) { crop = s; } var _local7 = _root.getNextHighestDepth(); var _local6 = _root.createEmptyMovieClip("API_image_container_" + _local7, _local7); var _local5 = _local6.createEmptyMovieClip("canvas", 100); _local5.attachBitmap(sourceBitmap, 100); if (crop) { if ((image_width / source_width) > (image_height / source_height)) { canvas_width = image_width; canvas_height = Math.ceil(source_height * (image_width / source_width)); } else { canvas_height = image_height; canvas_width = Math.ceil(source_width * (image_height / source_height)); } } else { canvas_width = image_width; canvas_height = image_height; } _local5._x = Math.round((image_width - canvas_width) / 2); _local5._width = canvas_width; _local5._height = canvas_height; resizedBitmap = new flash.display.BitmapData(image_width, image_height, false, 4294967295); resizedBitmap.draw(_local6); _local6.removeMovieClip(); copyBitmap = new flash.display.BitmapData(image_width, image_height, false, 4294967295); var _local3 = "" + image_width; while (_local3.length < 3) { _local3 = "0" + _local3; } var _local4 = "" + image_height; while (_local4.length < 3) { _local4 = "0" + _local4; } output = _local3 + _local4; draw_interval = setInterval(this, "drawChunk", 10); busy = false; return(resizedBitmap); } function getBitmapData() { return(copyBitmap); } function getBytesTotal() { return((image_width * image_height) * 2); } function getBytesScanned() { return(pixels * 2); } function drawChunk() { if (!busy) { busy = true; var _local2 = 0; while (_local2 < 250) { if (!nextPixel()) { clearInterval(draw_interval); callback_interval = setInterval(this, "doCallback", 25); busy = true; break; } _local2++; } busy = false; } } function doCallback() { busy = false; clearInterval(callback_interval); if (callback_target and callback_function) { callback_target[callback_function](output); } else { onScanComplete(output); } } function onScanComplete(packet) { sendMessage(("packet size: " + output.length) + " bytes", "onScanComplete"); } function nextPixel() { var _local15 = xpos; var _local14 = ypos; var _local7 = resizedBitmap.getPixel(_local15, _local14); var _local17 = (_local7 >> 16) & 255; var _local20 = (_local7 >> 8) & 255; var _local16 = (_local7 >> 0) & 255; var _local11 = Math.round(((_local17 + 1) / 256) * cube); var _local10 = Math.round(((_local20 + 1) / 256) * cube); var _local13 = Math.round(((_local16 + 1) / 256) * cube); var _local12 = (((_local11 * (cube + 1)) * (cube + 1)) + (_local10 * (cube + 1))) + _local13; var _local6 = basen.encode(_local12, 2); output = output + _local6; if (_local6.length != 2) { trace("bad pixel " + _local6); } var _local5 = basen.decode(_local6); var _local18 = _local5; var _local8 = _local5 % (cube + 1); _local5 = (_local5 - _local8) / (cube + 1); var _local9 = _local5 % (cube + 1); var _local19 = (_local5 - _local9) / (cube + 1); if (((_local13 != _local8) and (_local10 != _local9)) and (_local11 != _local10)) { debug.bad_pixels++; trace((((((("BAD PIXEL " + debug.bad_pixels) + ") ") + _local12) + " != ") + _local18) + " ") + _local6); trace(basen.debug.lastencode); } var _local2 = Math.round((_local19 / cube) * 255).toString(16); var _local4 = Math.round((_local9 / cube) * 255).toString(16); var _local3 = Math.round((_local8 / cube) * 255).toString(16); while (_local2.length < 2) { _local2 = "0" + _local2; } while (_local4.length < 2) { _local4 = "0" + _local4; } while (_local3.length < 2) { _local3 = "0" + _local3; } copyBitmap.setPixel(_local15, _local14, Number((("0x" + _local2) + _local4) + _local3)); pixels++; if (pixels >= (image_width * image_height)) { return(false); } xpos++; if (xpos >= image_width) { xpos = 0; ypos++; } return(true); } function error(e, f) { sendMessage(e, f, "ERROR"); } function sendMessage(msg, func, type) { var _local1 = "ImageScanner"; if (func) { _local1 = _local1 + (("." + func) + "()"); } if (type) { _local1 = (type + " in ") + _local1; } _local1 = _local1 + (" :: " + msg); trace(_local1); } var image_width = 100; var image_height = 100; var crop = true; var debug = new Object(); }
Symbol 260 MovieClip [__Packages.com.Newgrounds.JSON] Frame 0
class com.Newgrounds.JSON { function JSON () { } static function encode(arg, noquotes) { var _local3; var _local2; var _local6; var _local1 = ""; var _local4; if (arg.isSServerVar()) { var _local8 = "sservervariable"; } else { var _local8 = typeof(arg); } switch (_local8) { case "sservervariable" : return("?" + arg.getEncodedValue()); case "object" : if (arg) { if (arg instanceof Array) { _local2 = 0; while (_local2 < arg.length) { _local4 = encode(arg[_local2]); if (_local1) { _local1 = _local1 + ","; } _local1 = _local1 + _local4; _local2++; } return(("[" + _local1) + "]"); } if (typeof(arg.toString) != "undefined") { for (_local2 in arg) { _local4 = arg[_local2]; if ((typeof(_local4) != "undefined") && (typeof(_local4) != "function")) { _local4 = encode(_local4); if (_local1) { _local1 = _local1 + ","; } _local1 = _local1 + ((encode(_local2) + ":") + _local4); } } return(("{" + _local1) + "}"); } } return("null"); case "number" : return((isFinite(arg) ? (String(arg)) : "null")); case "string" : _local6 = arg.length; if (noquotes) { var _local7 = ""; } else { var _local7 = "\""; } _local1 = _local7; _local2 = 0; while (_local2 < _local6) { _local3 = arg.charAt(_local2); if (_local3 >= " ") { if ((_local3 == "\\") || (_local3 == "\"")) { _local1 = _local1 + "\\"; } _local1 = _local1 + _local3; } else { switch (_local3) { case "\b" : _local1 = _local1 + "\\b"; break; case "\f" : _local1 = _local1 + "\\f"; break; case newline : _local1 = _local1 + "\\n"; break; case "\r" : _local1 = _local1 + "\\r"; break; case "\t" : _local1 = _local1 + "\\t"; break; default : _local3 = _local3.charCodeAt(); _local1 = _local1 + (("\\u00" + Math.floor(_local3 / 16).toString(16)) + (_local3 % 16).toString(16)); } } _local2 = _local2 + 1; } return(_local1 + _local7); case "boolean" : return(String(arg)); } return("null"); } static function decode(text) { var at = 0; var ch = " "; var _value; var _error = function (m) { throw {name:"JSONError", message:m, at:at - 1, text:text}; }; var _next = function () { ch = text.charAt(at); at = at + 1; return(ch); }; var _white = function () { while (ch) { if (ch <= " ") { _next(); } else if (ch == "/") { switch (_next()) { case "/" : while ((_next() && (ch != newline)) && (ch != "\r")) { } break; case "*" : _next(); for(;;){ if (ch) { if (ch == "*") { if (_next() == "/") { _next(); // unexpected jump } } else { _next(); } } else { _error("Unterminated comment"); } }; break; default : _error("Syntax error"); } } else { return; } } }; var _string = function () { var _local4; var _local1 = ""; var _local3; var _local2; var _local5 = false; if (ch == "\"") { while (_next()) { if (ch == "\"") { _next(); return(_local1); } if (ch == "\\") { switch (_next()) { case "b" : _local1 = _local1 + "\b"; break; case "f" : _local1 = _local1 + "\f"; break; case "n" : _local1 = _local1 + newline; break; case "r" : _local1 = _local1 + "\r"; break; case "t" : _local1 = _local1 + "\t"; break; case "u" : _local2 = 0; _local4 = 0; while (_local4 < 4) { _local3 = parseInt(_next(), 16); if (!isFinite(_local3)) { _local5 = true; break; } _local2 = (_local2 * 16) + _local3; _local4 = _local4 + 1; } if (_local5) { _local5 = false; break; } _local1 = _local1 + String.fromCharCode(_local2); break; default : _local1 = _local1 + ch; } } else { _local1 = _local1 + ch; } } } _error("Bad string"); }; var _array = function () { var _local1 = []; if (ch == "[") { _next(); _white(); if (ch == "]") { _next(); return(_local1); } while (ch) { _local1.push(_value()); _white(); if (ch == "]") { _next(); return(_local1); } if (ch != ",") { break; } _next(); _white(); } } _error("Bad array"); }; var _object = function () { var _local2; var _local1 = {}; if (ch == "{") { _next(); _white(); if (ch == "}") { _next(); return(_local1); } while (ch) { _local2 = _string(); _white(); if (ch != ":") { break; } _next(); _local1[_local2] = _value(); _white(); if (ch == "}") { _next(); return(_local1); } if (ch != ",") { break; } _next(); _white(); } } _error("Bad object"); }; var _number = function () { var _local1 = ""; var _local2; if (ch == "-") { _local1 = "-"; _next(); } while ((ch >= "0") && (ch <= "9")) { _local1 = _local1 + ch; _next(); } if (ch == ".") { _local1 = _local1 + "."; while ((_next() && (ch >= "0")) && (ch <= "9")) { _local1 = _local1 + ch; } } _local2 = 1 * _local1; if (!isFinite(_local2)) { _error("Bad number"); } else { return(_local2); } }; var _word = function () { switch (ch) { case "t" : if (((_next() == "r") && (_next() == "u")) && (_next() == "e")) { _next(); return(true); } break; case "f" : if ((((_next() == "a") && (_next() == "l")) && (_next() == "s")) && (_next() == "e")) { _next(); return(false); } break; case "n" : if (!(((_next() == "u") && (_next() == "l")) && (_next() == "l"))) { break; } _next(); return(null); } _error("Syntax error"); }; _value = function () { _white(); switch (ch) { case "{" : return(_object()); case "[" : return(_array()); case "\"" : return(_string()); case "-" : return(_number()); } return((((ch >= "0") && (ch <= "9")) ? (_number()) : (_word()))); }; return(_value()); } }
Symbol 261 MovieClip [__Packages.com.Newgrounds.RC4] Frame 0
class com.Newgrounds.RC4 { function RC4 () { } static function encrypt(src, key) { var _local3 = strToChars(src); var _local1 = strToChars(key); var _local2 = calculate(_local3, _local1); return(charsToHex(_local2)); } static function encryptbin(src, key) { var _local3 = strToChars(src); var _local1 = strToChars(key); var _local2 = calculate(_local3, _local1); return(_local2); } static function decrypt(src, key) { var _local3 = hexToChars(src); var _local1 = strToChars(key); var _local2 = calculate(_local3, _local1); return(charsToStr(_local2)); } static function initialize(pwd) { var _local2 = 0; var _local3; var _local4 = pwd.length; var _local1 = 0; while (_local1 <= 255) { mykey[_local1] = pwd[_local1 % _local4]; sbox[_local1] = _local1; _local1++; } _local1 = 0; while (_local1 <= 255) { _local2 = ((_local2 + sbox[_local1]) + mykey[_local1]) % 256; _local3 = sbox[_local1]; sbox[_local1] = sbox[_local2]; sbox[_local2] = _local3; _local1++; } } static function calculate(plaintxt, psw) { initialize(psw); var _local1 = 0; var _local2 = 0; var _local9 = new Array(); var _local7; var _local5; var _local6; var _local3 = 0; while (_local3 < plaintxt.length) { _local1 = (_local1 + 1) % 256; _local2 = (_local2 + sbox[_local1]) % 256; _local5 = sbox[_local1]; sbox[_local1] = sbox[_local2]; sbox[_local2] = _local5; var _local4 = (sbox[_local1] + sbox[_local2]) % 256; _local7 = sbox[_local4]; _local6 = plaintxt[_local3] ^ _local7; _local9.push(_local6); _local3++; } return(_local9); } static function charsToHex(chars) { var _local4 = new String(""); var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"); var _local1 = 0; while (_local1 < chars.length) { _local4 = _local4 + (_local3[chars[_local1] >> 4] + _local3[chars[_local1] & 15]); _local1++; } return(_local4); } static function hexToChars(hex) { var _local3 = new Array(); var _local1 = ((hex.substr(0, 2) == "0x") ? 2 : 0); while (_local1 < hex.length) { _local3.push(parseInt(hex.substr(_local1, 2), 16)); _local1 = _local1 + 2; } return(_local3); } static function charsToStr(chars) { var _local3 = new String(""); var _local1 = 0; while (_local1 < chars.length) { _local3 = _local3 + String.fromCharCode(chars[_local1]); _local1++; } return(_local3); } static function strToChars(str) { var _local3 = new Array(); var _local1 = 0; while (_local1 < str.length) { _local3.push(str.charCodeAt(_local1)); _local1++; } return(_local3); } static var sbox = new Array(255); static var mykey = new Array(255); }
Symbol 262 MovieClip [__Packages.com.Newgrounds.MD5] Frame 0
class com.Newgrounds.MD5 { function MD5 () { } static function calculate(src) { return(hex_md5(src)); } static function hex_md5(src) { return(binl2hex(core_md5(str2binl(src), src.length * 8))); } static function core_md5(x, len) { x[len >> 5] = x[len >> 5] | (128 << (len % 32)); x[(((len + 64) >>> 9) << 4) + 14] = len; var _local4 = 1732584193 /* 0x67452301 */; var _local3 = -271733879; var _local2 = -1732584194; var _local1 = 271733878 /* 0x10325476 */; var _local5 = 0; while (_local5 < x.length) { var _local10 = _local4; var _local9 = _local3; var _local8 = _local2; var _local7 = _local1; _local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936); _local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586); _local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819); _local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330); _local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897); _local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426); _local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341); _local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983); _local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416); _local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417); _local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063); _local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162); _local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682); _local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101); _local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290); _local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329); _local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510); _local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632); _local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713); _local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302); _local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691); _local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083); _local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335); _local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848); _local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438); _local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690); _local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961); _local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501); _local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467); _local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784); _local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473); _local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734); _local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558); _local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463); _local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562); _local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556); _local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060); _local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353); _local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632); _local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640); _local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174); _local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222); _local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979); _local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189); _local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487); _local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835); _local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520); _local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651); _local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844); _local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415); _local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905); _local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055); _local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571); _local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606); _local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523); _local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799); _local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359); _local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744); _local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380); _local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649); _local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070); _local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379); _local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259); _local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551); _local4 = safe_add(_local4, _local10); _local3 = safe_add(_local3, _local9); _local2 = safe_add(_local2, _local8); _local1 = safe_add(_local1, _local7); _local5 = _local5 + 16; } return(new Array(_local4, _local3, _local2, _local1)); } static function md5_cmn(q, a, b, x, s, t) { return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b)); } static function md5_ff(a, b, c, d, x, s, t) { return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t)); } static function md5_gg(a, b, c, d, x, s, t) { return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t)); } static function md5_hh(a, b, c, d, x, s, t) { return(md5_cmn((b ^ c) ^ d, a, b, x, s, t)); } static function md5_ii(a, b, c, d, x, s, t) { return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t)); } static function bit_rol(num, cnt) { return((num << cnt) | (num >>> (32 - cnt))); } static function safe_add(x, y) { var _local1 = (x & 65535) + (y & 65535); var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16); return((_local2 << 16) | (_local1 & 65535)); } static function str2binl(str) { var _local3 = new Array(); var _local4 = 255; var _local1 = 0; while (_local1 < (str.length * 8)) { _local3[_local1 >> 5] = _local3[_local1 >> 5] | ((str.charCodeAt(_local1 / 8) & _local4) << (_local1 % 32)); _local1 = _local1 + 8; } return(_local3); } static function binl2hex(binarray) { var _local4 = new String(""); var _local3 = new String("0123456789abcdef"); var _local1 = 0; while (_local1 < (binarray.length * 4)) { _local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15)); _local1++; } return(_local4); } }
Symbol 54 MovieClip Frame 126
_root.nextFrame();
Symbol 70 MovieClip Frame 158
_root.nextFrame();
Symbol 72 MovieClip Frame 2296
stop();
Symbol 103 MovieClip Frame 10
gotoAndPlay (1);
Symbol 103 MovieClip Frame 28
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 40
_root.nextFrame();
Symbol 118 MovieClip Frame 60
stop();
Symbol 121 MovieClip Frame 40
stop();
Instance of Symbol 124 MovieClip in Symbol 125 MovieClip Frame 1
onClipEvent (enterFrame) { if (_parent._name != "pixel") { _parent._alpha = _parent._alpha - 5; if (_parent._alpha <= 0) { removeMovieClip(_parent); } _parent._y = _parent._y - 0.3; } else { _alpha = 0; } }
Symbol 129 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 107
stop();
Instance of Symbol 141 MovieClip "actions" in Symbol 142 MovieClip Frame 1
onClipEvent (load) { wait = 0; if (_parent._name != "plat") { this.thing.play(); color = new Color(_parent); color.setRGB(0); num = Math.round(Math.random() * 12) * 3; colorT = {rb:_root.colorArray[num], bb:_root.colorArray[num + 1], gb:_root.colorArray[num + 2]}; color.setTransform(colorT); _parent._yscale = 0; _parent._xscale = 120; if (_root.row < 2) { this.gotoAndStop(Math.ceil(Math.random() * 7)); if (this._currentframe > 4) { _root.row++; } } else { _root.row = 0; _root.maxheight = 20; this.gotoAndStop(1); } } else { _parent._x = -10; } } onClipEvent (enterFrame) { if (_parent._name != "plat") { wait++; if (wait >= 30) { if (_parent._yscale < yscale) { _parent._yscale = _parent._yscale + (yscale / 3); } } if (_parent._x < _parent._parent.bounds._x) { removeMovieClip(_parent); } } }
Instance of Symbol 144 MovieClip in Symbol 145 MovieClip Frame 1
onClipEvent (load) { wait = 0; d = false; wait = 0; if (_parent._name != "randbox") { _parent._xscale = _parent._xscale + ((Math.random() * 130) - 30); _parent._yscale = _parent._xscale; color = new Color(_parent); color.setRGB(0); num = Math.round(Math.random() * 12) * 3; colorT = {rb:_root.colorArray[num], bb:_root.colorArray[num + 1], gb:_root.colorArray[num + 2]}; color.setTransform(colorT); } else { _parent._x = -1000; } grav = 1; yspd = 0; wait = 0; plus = true; death = false; } onClipEvent (enterFrame) { if (_parent._name != "randbox") { wait++; if (wait > 93) { color = new Color(_parent); color.setRGB(16777215); _parent._alpha = _parent._alpha - 5; if (_parent._alpha <= 30) { if (death) { _root.char._x = (_root._x * -1) + (Stage.width / 2); _root.char._y = _root.char._y - 300; colorx = new Color(_root.char); colorx.setRGB(16711680); _root.deathwait = 1; _root.die = false; } removeMovieClip(_parent); } } yspd = yspd + grav; if (yspd > 6) { yspd = 6; } fall = true; x = 0; while (x < _parent._width) { if (_root.ground.hitTest(((_parent._x - (_parent._width / 2)) + x) + _root.ground._x, ((_parent._y + (_parent._height / 2)) + yspd) + _root.ground._y, true)) { fall = false; yspd = yspd / 3; break; } x = x + 8; } if (fall) { _parent._y = _parent._y + yspd; } else { plus = true; x = 0; while (x < _parent._width) { if (_root.ground.hitTest(((_parent._x - (_parent._width / 2)) + x) + _root.ground._x, (_parent._y + (_parent._height / 2)) + _root.ground._y, true)) { plus = false; break; } x = x + 8; } if (plus) { _parent._y = _parent._y + 1; } } } if (!_root.jump) { if (fall) { if (_parent.insidebox.hitTest(_root.char)) { _root.die = true; _root.char._y = (_parent._y + _root.ground._y) + (_parent._height / 2); death = true; } } } }
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 32
_root.ground.circle.play();
Symbol 155 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 7
gotoAndStop (1);
Symbol 160 MovieClip Frame 13
stop();
Symbol 165 MovieClip Frame 2850
stop();
Symbol 166 MovieClip Frame 2582
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 25
gotoAndStop (1);
Symbol 217 MovieClip Frame 29
_root.i++; duplicateMovieClip (_root.spike, "s" + _root.i, _root.getNextHighestDepth()); _root["s" + _root.i]._x = _x; _root["s" + _root.i]._y = _y + 50; _root["s" + _root.i]._xscale = 100; _root.i++; duplicateMovieClip (_root.spike, "s" + _root.i, _root.getNextHighestDepth()); _root["s" + _root.i]._x = _x; _root["s" + _root.i]._y = _y + 50; _root["s" + _root.i]._xscale = -100; colorx = new Color(_root.cbak); colorx.setRGB(0); numthing = Math.round(Math.random() * 12) * 3; colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]}; colorx.setTransform(colorT);
Symbol 217 MovieClip Frame 31
gotoAndStop (1);
Symbol 217 MovieClip Frame 35
_root.i++; duplicateMovieClip (_root.bullet, "s" + _root.i, _root.getNextHighestDepth()); _root["s" + _root.i]._x = _x + (((_xscale / Math.abs(_xscale)) * 50) * -1); _root["s" + _root.i]._y = _y - 5; if (_xscale > 0) { _root["s" + _root.i]._xscale = 100; } else { _root["s" + _root.i]._xscale = -100; } colorx = new Color(_root.cbak); colorx.setRGB(0); numthing = Math.round(Math.random() * 12) * 3; colorT = {rb:_root.colorArray[numthing], bb:_root.colorArray[numthing + 1], gb:_root.colorArray[numthing + 2]}; colorx.setTransform(colorT);
Symbol 217 MovieClip Frame 38
gotoAndStop (1);
Symbol 217 MovieClip Frame 150
_root.shadowthing.play(); stop();
Instance of Symbol 219 MovieClip in Symbol 220 MovieClip Frame 1
onClipEvent (enterFrame) { if (_parent._name != "spike") { _parent._x = _parent._x - ((5 * _parent._xscale) / Math.abs(_parent._xscale)); if (_root.char.hitTest(_parent)) { if (_root.deadwait == 0) { if (_parent._xscale < 0) { _root.xspd = 20; } else { _root.xspd = -20; } _root.deadwait++; _root.lives--; colorx = new Color(_root.char); colorx.setRGB(16711680); } removeMovieClip(_parent); } if (_root.ground.hitTest(_parent._x, _parent._y, true)) { removeMovieClip(_parent); } } }
Instance of Symbol 222 MovieClip in Symbol 223 MovieClip Frame 1
onClipEvent (enterFrame) { if (_parent._name != "bullet") { _parent._x = _parent._x - ((5 * _parent._xscale) / Math.abs(_parent._xscale)); if (_root.char.hitTest(_parent)) { if (_root.deadwait == 0) { if (_parent._xscale < 0) { _root.xspd = 20; } else { _root.xspd = -20; } _root.deadwait++; _root.lives--; colorx = new Color(_root.char); colorx.setRGB(16711680); } removeMovieClip(_parent); } if (_root.ground.hitTest(_parent._x, _parent._y, true)) { removeMovieClip(_parent); } } }
Symbol 224 MovieClip Frame 1065
gotoAndPlay (40);
Symbol 236 MovieClip Frame 1
gotoAndStop (2);
Symbol 236 MovieClip Frame 2
stop();
Symbol 236 MovieClip Frame 21
_root.lives = _root.lives + 3;
Symbol 236 MovieClip Frame 40
gotoAndStop (2);

Library Items

Symbol 1 Bitmap [Menu Jumper.jpg]
Symbol 2 Bitmap [Music Maniac.jpg]
Symbol 3 Bitmap [Disco Disaster.jpg]
Symbol 4 Bitmap [Falling Blocks.jpg]
Symbol 5 Bitmap [Run and Jump.jpg]
Symbol 6 GraphicUsed by:10
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:7Used by:10
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClipUses:6 8 9Used by:20
Symbol 11 GraphicUsed by:20
Symbol 12 ShapeTweeningUsed by:20
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClipUses:13Used by:20
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClipUses:15Used by:20
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:17Used by:20
Symbol 19 GraphicUsed by:20 131 134 135 136 141 225
Symbol 20 MovieClipUses:10 11 12 14 16 18 19Used by:Timeline
Symbol 21 GraphicUsed by:32
Symbol 22 GraphicUsed by:23
Symbol 23 ButtonUses:22Used by:32
Symbol 24 FontUsed by:25 28 30
Symbol 25 TextUses:24Used by:32
Symbol 26 FontUsed by:27 29 31 39
Symbol 27 TextUses:26Used by:32
Symbol 28 TextUses:24Used by:32
Symbol 29 TextUses:26Used by:32
Symbol 30 TextUses:24Used by:32
Symbol 31 TextUses:26Used by:32
Symbol 32 MovieClipUses:21 23 25 27 28 29 30 31Used by:Timeline
Symbol 33 GraphicUsed by:45
Symbol 34 FontUsed by:36
Symbol 35 FontUsed by:36
Symbol 36 TextUses:34 35Used by:45
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClipUses:37Used by:45
Symbol 39 EditableTextUses:26Used by:45
Symbol 40 FontUsed by:41 42
Symbol 41 TextUses:40Used by:45
Symbol 42 EditableTextUses:40Used by:45
Symbol 43 GraphicUsed by:44
Symbol 44 MovieClipUses:43Used by:45
Symbol 45 MovieClipUses:33 36 38 39 41 42 44Used by:46
Symbol 46 MovieClipUses:45Used by:Timeline
Symbol 255 MovieClip [__Packages.com.Newgrounds.BaseN]
Symbol 256 MovieClip [__Packages.com.Newgrounds.NewgroundsAPIError]
Symbol 257 MovieClip [__Packages.com.Newgrounds.NewgroundsAPI]
Symbol 258 MovieClip [__Packages.com.Newgrounds.NewgroundsAPISaveFile]
Symbol 259 MovieClip [__Packages.com.Newgrounds.ImageScanner]
Symbol 260 MovieClip [__Packages.com.Newgrounds.JSON]
Symbol 261 MovieClip [__Packages.com.Newgrounds.RC4]
Symbol 262 MovieClip [__Packages.com.Newgrounds.MD5]
Symbol 47 GraphicUsed by:48
Symbol 48 MovieClipUses:47Used by:54
Symbol 49 GraphicUsed by:54
Symbol 50 GraphicUsed by:54
Symbol 51 GraphicUsed by:54
Symbol 52 GraphicUsed by:53
Symbol 53 MovieClipUses:52Used by:54
Symbol 54 MovieClipUses:48 49 50 51 53 SS1Used by:Timeline
Symbol 55 GraphicUsed by:69
Symbol 56 GraphicUsed by:57
Symbol 57 MovieClipUses:56Used by:69
Symbol 58 GraphicUsed by:59
Symbol 59 MovieClipUses:58Used by:68
Symbol 60 GraphicUsed by:61
Symbol 61 MovieClipUses:60Used by:68
Symbol 62 GraphicUsed by:63
Symbol 63 MovieClipUses:62Used by:68
Symbol 64 GraphicUsed by:65
Symbol 65 MovieClipUses:64Used by:68
Symbol 66 GraphicUsed by:67
Symbol 67 MovieClipUses:66Used by:68
Symbol 68 MovieClipUses:59 61 63 65 67Used by:69
Symbol 69 MovieClipUses:55 57 68Used by:70
Symbol 70 MovieClipUses:69 SS2Used by:Timeline
Symbol 71 GraphicUsed by:72 77 91 123 124 141 165 166 224 247  Timeline
Symbol 72 MovieClipUses:71 SS3Used by:Timeline
Symbol 73 GraphicUsed by:74
Symbol 74 MovieClipUses:73Used by:75 76 90 237 246 254
Symbol 75 MovieClipUses:74Used by:Timeline
Symbol 76 MovieClipUses:74Used by:Timeline
Symbol 77 MovieClipUses:71Used by:Timeline
Symbol 78 GraphicUsed by:90
Symbol 79 GraphicUsed by:80
Symbol 80 MovieClipUses:79Used by:90
Symbol 81 FontUsed by:82 83 84 85 86 109 110 111 112 226 227 228 229 230 231 242 243 251 252 253
Symbol 82 TextUses:81Used by:87
Symbol 83 TextUses:81Used by:87
Symbol 84 TextUses:81Used by:87
Symbol 85 TextUses:81Used by:87
Symbol 86 TextUses:81Used by:87
Symbol 87 MovieClipUses:82 83 84 85 86Used by:90
Symbol 88 GraphicUsed by:89
Symbol 89 MovieClipUses:88Used by:90  Timeline
Symbol 90 MovieClipUses:78 74 80 87 89Used by:Timeline
Symbol 91 MovieClipUses:71Used by:104
Symbol 92 GraphicUsed by:103
Symbol 93 GraphicUsed by:103
Symbol 94 GraphicUsed by:103
Symbol 95 GraphicUsed by:103
Symbol 96 GraphicUsed by:103
Symbol 97 GraphicUsed by:103
Symbol 98 GraphicUsed by:103
Symbol 99 GraphicUsed by:103
Symbol 100 GraphicUsed by:103
Symbol 101 GraphicUsed by:103
Symbol 102 GraphicUsed by:103
Symbol 103 MovieClipUses:92 93 94 95 96 97 98 99 100 101 102Used by:104
Symbol 104 MovieClipUses:91 103Used by:Timeline
Symbol 105 FontUsed by:106
Symbol 106 TextUses:105Used by:108
Symbol 107 GraphicUsed by:108
Symbol 108 MovieClipUses:106 107Used by:Timeline
Symbol 109 TextUses:81Used by:Timeline
Symbol 110 TextUses:81Used by:Timeline
Symbol 111 TextUses:81Used by:113
Symbol 112 TextUses:81Used by:113
Symbol 113 MovieClipUses:111 112Used by:Timeline
Symbol 114 GraphicUsed by:115
Symbol 115 MovieClipUses:114Used by:Timeline
Symbol 116 GraphicUsed by:117
Symbol 117 MovieClipUses:116Used by:118
Symbol 118 MovieClipUses:117Used by:Timeline
Symbol 119 GraphicUsed by:120
Symbol 120 MovieClipUses:119Used by:121
Symbol 121 MovieClipUses:120Used by:Timeline
Symbol 122 GraphicUsed by:Timeline
Symbol 123 MovieClipUses:71Used by:Timeline
Symbol 124 MovieClipUses:71Used by:125
Symbol 125 MovieClipUses:124Used by:Timeline
Symbol 126 GraphicUsed by:137
Symbol 127 GraphicUsed by:131
Symbol 128 GraphicUsed by:129 162 168 171
Symbol 129 MovieClipUses:128Used by:131
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClipUses:127 19 129 130Used by:137
Symbol 132 GraphicUsed by:136
Symbol 133 GraphicUsed by:136
Symbol 134 MovieClipUses:19Used by:136
Symbol 135 MovieClipUses:19Used by:136
Symbol 136 MovieClipUses:132 19 133 134 135Used by:137
Symbol 137 MovieClipUses:126 131 136Used by:164
Symbol 138 GraphicUsed by:141
Symbol 139 GraphicUsed by:141
Symbol 140 GraphicUsed by:141
Symbol 141 MovieClipUses:19 71 138 139 140Used by:142
Symbol 142 MovieClipUses:141Used by:164
Symbol 143 GraphicUsed by:144
Symbol 144 MovieClipUses:143Used by:145
Symbol 145 MovieClipUses:144Used by:164
Symbol 146 GraphicUsed by:155
Symbol 147 ShapeTweeningUsed by:154
Symbol 148 GraphicUsed by:154
Symbol 149 ShapeTweeningUsed by:154
Symbol 150 ShapeTweeningUsed by:154
Symbol 151 ShapeTweeningUsed by:154
Symbol 152 GraphicUsed by:154
Symbol 153 ShapeTweeningUsed by:154
Symbol 154 MovieClipUses:147 148 149 150 151 152 153Used by:155
Symbol 155 MovieClipUses:146 154Used by:164
Symbol 156 GraphicUsed by:160
Symbol 157 GraphicUsed by:158
Symbol 158 MovieClipUses:157Used by:160
Symbol 159 ShapeTweeningUsed by:160
Symbol 160 MovieClipUses:156 158 159Used by:164
Symbol 161 GraphicUsed by:163
Symbol 162 MovieClipUses:128Used by:163
Symbol 163 MovieClipUses:161 162Used by:164
Symbol 164 MovieClipUses:137 142 145 155 160 163Used by:Timeline
Symbol 165 MovieClipUses:71 SS4Used by:Timeline
Symbol 166 MovieClipUses:71 SS5Used by:Timeline
Symbol 167 GraphicUsed by:217
Symbol 168 MovieClipUses:128Used by:217
Symbol 169 GraphicUsed by:217
Symbol 170 GraphicUsed by:171
Symbol 171 MovieClipUses:128 170Used by:217
Symbol 172 GraphicUsed by:217
Symbol 173 GraphicUsed by:217
Symbol 174 GraphicUsed by:217
Symbol 175 GraphicUsed by:217
Symbol 176 GraphicUsed by:217
Symbol 177 GraphicUsed by:217
Symbol 178 GraphicUsed by:217
Symbol 179 GraphicUsed by:217
Symbol 180 GraphicUsed by:217
Symbol 181 GraphicUsed by:217
Symbol 182 GraphicUsed by:217
Symbol 183 GraphicUsed by:217
Symbol 184 GraphicUsed by:217
Symbol 185 GraphicUsed by:217
Symbol 186 GraphicUsed by:217
Symbol 187 GraphicUsed by:217
Symbol 188 GraphicUsed by:217
Symbol 189 GraphicUsed by:217
Symbol 190 GraphicUsed by:217
Symbol 191 GraphicUsed by:217
Symbol 192 GraphicUsed by:217
Symbol 193 GraphicUsed by:217
Symbol 194 GraphicUsed by:217
Symbol 195 GraphicUsed by:217
Symbol 196 GraphicUsed by:217
Symbol 197 GraphicUsed by:217
Symbol 198 GraphicUsed by:217
Symbol 199 GraphicUsed by:217
Symbol 200 GraphicUsed by:217
Symbol 201 GraphicUsed by:217
Symbol 202 GraphicUsed by:217
Symbol 203 GraphicUsed by:217
Symbol 204 GraphicUsed by:217
Symbol 205 GraphicUsed by:217
Symbol 206 GraphicUsed by:217
Symbol 207 GraphicUsed by:217
Symbol 208 GraphicUsed by:217
Symbol 209 GraphicUsed by:217
Symbol 210 GraphicUsed by:217
Symbol 211 GraphicUsed by:217
Symbol 212 GraphicUsed by:217
Symbol 213 GraphicUsed by:217
Symbol 214 GraphicUsed by:217
Symbol 215 GraphicUsed by:216
Symbol 216 MovieClipUses:215Used by:217
Symbol 217 MovieClipUses:167 168 169 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 216Used by:Timeline
Symbol 218 GraphicUsed by:219
Symbol 219 MovieClipUses:218Used by:220
Symbol 220 MovieClipUses:219Used by:Timeline
Symbol 221 GraphicUsed by:222
Symbol 222 MovieClipUses:221Used by:223
Symbol 223 MovieClipUses:222Used by:Timeline
Symbol 224 MovieClipUses:71 SS6Used by:Timeline
Symbol 225 MovieClipUses:19Used by:232
Symbol 226 TextUses:81Used by:232
Symbol 227 EditableTextUses:81Used by:232
Symbol 228 TextUses:81Used by:232
Symbol 229 TextUses:81Used by:232
Symbol 230 TextUses:81Used by:232
Symbol 231 TextUses:81Used by:232
Symbol 232 MovieClipUses:225 226 227 228 229 230 231Used by:Timeline
Symbol 233 GraphicUsed by:236
Symbol 234 GraphicUsed by:235
Symbol 235 MovieClipUses:234Used by:236
Symbol 236 MovieClipUses:233 235Used by:Timeline
Symbol 237 MovieClipUses:74Used by:Timeline
Symbol 238 GraphicUsed by:246
Symbol 239 GraphicUsed by:240
Symbol 240 MovieClipUses:239Used by:246
Symbol 241 GraphicUsed by:246
Symbol 242 TextUses:81Used by:246
Symbol 243 TextUses:81Used by:246
Symbol 244 GraphicUsed by:245
Symbol 245 MovieClipUses:244Used by:246
Symbol 246 MovieClipUses:238 240 241 242 74 243 245Used by:Timeline
Symbol 247 MovieClipUses:71 SS7Used by:Timeline
Symbol 248 GraphicUsed by:254
Symbol 249 GraphicUsed by:250
Symbol 250 MovieClipUses:249Used by:254
Symbol 251 TextUses:81Used by:254
Symbol 252 TextUses:81Used by:254
Symbol 253 TextUses:81Used by:254
Symbol 254 MovieClipUses:248 74 250 251 252 253Used by:Timeline
Streaming Sound 1Used by:Symbol 54 MovieClip
Streaming Sound 2Used by:Symbol 70 MovieClip
Streaming Sound 3Used by:Symbol 72 MovieClip
Streaming Sound 4Used by:Symbol 165 MovieClip
Streaming Sound 5Used by:Symbol 166 MovieClip
Streaming Sound 6Used by:Symbol 224 MovieClip
Streaming Sound 7Used by:Symbol 247 MovieClip

Instance Names

"bar"Frame 1Symbol 20 MovieClip
"medalmc"Frame 1Symbol 46 MovieClip
"song"Frame 4Symbol 72 MovieClip
"bees"Frame 5Symbol 90 MovieClip
"char"Frame 5Symbol 104 MovieClip
"shadowthing"Frame 5Symbol 118 MovieClip
"cbak"Frame 6Symbol 123 MovieClip
"pixel"Frame 6Symbol 125 MovieClip
"char"Frame 6Symbol 104 MovieClip
"ground"Frame 6Symbol 164 MovieClip
"song"Frame 6Symbol 165 MovieClip
"song2"Frame 6Symbol 72 MovieClip
"song3"Frame 6Symbol 166 MovieClip
"boss"Frame 6Symbol 217 MovieClip
"spike"Frame 6Symbol 220 MovieClip
"bullet"Frame 6Symbol 223 MovieClip
"song4"Frame 6Symbol 224 MovieClip
"topcorner"Frame 6Symbol 232 MovieClip
"livesplus"Frame 6Symbol 236 MovieClip
"bees"Frame 7Symbol 246 MovieClip
"char"Frame 7Symbol 104 MovieClip
"song"Frame 7Symbol 247 MovieClip
"bees"Frame 8Symbol 254 MovieClip
"song"Frame 8Symbol 72 MovieClip
"medal_icon"Symbol 45 MovieClip Frame 10Symbol 44 MovieClip
"medal_popup"Symbol 46 MovieClip Frame 1Symbol 45 MovieClip
"b10"Symbol 90 MovieClip Frame 1Symbol 74 MovieClip
"b9"Symbol 90 MovieClip Frame 1Symbol 74 MovieClip
"b8"Symbol 90 MovieClip Frame 1Symbol 74 MovieClip
"b7"Symbol 90 MovieClip Frame 1Symbol 74 MovieClip
"b6"Symbol 90 MovieClip Frame 1Symbol 74 MovieClip
"b1"Symbol 90 MovieClip Frame 1Symbol 74 MovieClip
"b2"Symbol 90 MovieClip Frame 1Symbol 74 MovieClip
"b3"Symbol 90 MovieClip Frame 1Symbol 74 MovieClip
"b4"Symbol 90 MovieClip Frame 1Symbol 74 MovieClip
"b5"Symbol 90 MovieClip Frame 1Symbol 74 MovieClip
"b11"Symbol 90 MovieClip Frame 1Symbol 74 MovieClip
"b12"Symbol 90 MovieClip Frame 1Symbol 74 MovieClip
"b13"Symbol 90 MovieClip Frame 1Symbol 74 MovieClip
"char"Symbol 104 MovieClip Frame 1Symbol 103 MovieClip
"red"Symbol 131 MovieClip Frame 2Symbol 129 MovieClip
"invisi"Symbol 137 MovieClip Frame 1Symbol 131 MovieClip
"base"Symbol 137 MovieClip Frame 1Symbol 136 MovieClip
"actions"Symbol 142 MovieClip Frame 1Symbol 141 MovieClip
"insidebox"Symbol 145 MovieClip Frame 1Symbol 144 MovieClip
"t1"Symbol 155 MovieClip Frame 1Symbol 154 MovieClip
"t9"Symbol 155 MovieClip Frame 1Symbol 154 MovieClip
"t5"Symbol 155 MovieClip Frame 1Symbol 154 MovieClip
"t13"Symbol 155 MovieClip Frame 1Symbol 154 MovieClip
"t3"Symbol 155 MovieClip Frame 1Symbol 154 MovieClip
"t11"Symbol 155 MovieClip Frame 1Symbol 154 MovieClip
"t7"Symbol 155 MovieClip Frame 1Symbol 154 MovieClip
"t15"Symbol 155 MovieClip Frame 1Symbol 154 MovieClip
"t2"Symbol 155 MovieClip Frame 1Symbol 154 MovieClip
"t10"Symbol 155 MovieClip Frame 1Symbol 154 MovieClip
"t6"Symbol 155 MovieClip Frame 1Symbol 154 MovieClip
"t14"Symbol 155 MovieClip Frame 1Symbol 154 MovieClip
"t4"Symbol 155 MovieClip Frame 1Symbol 154 MovieClip
"t12"Symbol 155 MovieClip Frame 1Symbol 154 MovieClip
"t8"Symbol 155 MovieClip Frame 1Symbol 154 MovieClip
"t16"Symbol 155 MovieClip Frame 1Symbol 154 MovieClip
"bounds"Symbol 164 MovieClip Frame 1Symbol 137 MovieClip
"plat"Symbol 164 MovieClip Frame 1Symbol 142 MovieClip
"randbox"Symbol 164 MovieClip Frame 1Symbol 145 MovieClip
"tris"Symbol 164 MovieClip Frame 1Symbol 155 MovieClip
"circle"Symbol 164 MovieClip Frame 1Symbol 160 MovieClip
"basefull"Symbol 164 MovieClip Frame 1Symbol 163 MovieClip
"area"Symbol 217 MovieClip Frame 1Symbol 168 MovieClip
"red"Symbol 217 MovieClip Frame 1Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 3Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 5Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 7Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 9Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 14Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 16Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 18Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 20Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 25Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 26Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 27Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 29Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 30Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 31Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 32Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 33Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 34Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 35Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 36Symbol 171 MovieClip
"red"Symbol 217 MovieClip Frame 37Symbol 171 MovieClip
"b5"Symbol 246 MovieClip Frame 1Symbol 74 MovieClip
"b4"Symbol 246 MovieClip Frame 1Symbol 74 MovieClip
"b3"Symbol 246 MovieClip Frame 1Symbol 74 MovieClip
"b2"Symbol 246 MovieClip Frame 1Symbol 74 MovieClip
"b1"Symbol 246 MovieClip Frame 1Symbol 74 MovieClip
"b7"Symbol 246 MovieClip Frame 1Symbol 74 MovieClip
"b6"Symbol 246 MovieClip Frame 1Symbol 74 MovieClip
"b8"Symbol 246 MovieClip Frame 1Symbol 74 MovieClip
"b10"Symbol 246 MovieClip Frame 1Symbol 74 MovieClip
"b11"Symbol 246 MovieClip Frame 1Symbol 74 MovieClip
"b9"Symbol 246 MovieClip Frame 1Symbol 74 MovieClip
"b13"Symbol 246 MovieClip Frame 1Symbol 74 MovieClip
"b12"Symbol 246 MovieClip Frame 1Symbol 74 MovieClip
"b14"Symbol 246 MovieClip Frame 1Symbol 74 MovieClip
"b4"Symbol 254 MovieClip Frame 1Symbol 74 MovieClip
"b1"Symbol 254 MovieClip Frame 1Symbol 74 MovieClip
"b2"Symbol 254 MovieClip Frame 1Symbol 74 MovieClip
"b3"Symbol 254 MovieClip Frame 1Symbol 74 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "Menu Jumper.jpg"
ExportAssets (56)Timeline Frame 1Symbol 2 as "Music Maniac.jpg"
ExportAssets (56)Timeline Frame 1Symbol 3 as "Disco Disaster.jpg"
ExportAssets (56)Timeline Frame 1Symbol 4 as "Falling Blocks.jpg"
ExportAssets (56)Timeline Frame 1Symbol 5 as "Run and Jump.jpg"
ExportAssets (56)Timeline Frame 1Symbol 255 as "__Packages.com.Newgrounds.BaseN"
ExportAssets (56)Timeline Frame 1Symbol 256 as "__Packages.com.Newgrounds.NewgroundsAPIError"
ExportAssets (56)Timeline Frame 1Symbol 257 as "__Packages.com.Newgrounds.NewgroundsAPI"
ExportAssets (56)Timeline Frame 1Symbol 258 as "__Packages.com.Newgrounds.NewgroundsAPISaveFile"
ExportAssets (56)Timeline Frame 1Symbol 259 as "__Packages.com.Newgrounds.ImageScanner"
ExportAssets (56)Timeline Frame 1Symbol 260 as "__Packages.com.Newgrounds.JSON"
ExportAssets (56)Timeline Frame 1Symbol 261 as "__Packages.com.Newgrounds.RC4"
ExportAssets (56)Timeline Frame 1Symbol 262 as "__Packages.com.Newgrounds.MD5"

Dynamic Text Variables

medal_nameSymbol 39 EditableText"medal name"
medal_valueSymbol 42 EditableText"100pts"
livesSymbol 227 EditableText"10"




http://swfchan.com/12/56293/info.shtml
Created: 19/4 -2019 14:10:35 Last modified: 19/4 -2019 14:10:35 Server time: 14/05 -2024 16:45:52