Frame 1
function goTo() {
getURL ("http://www.MoFunZone.com");
}
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
newMenu.customItems.push(new ContextMenuItem("MoFunZone.com - Play More Games", goTo));
this.menu = newMenu;
Frame 4
stop();
Instance of Symbol 152 MovieClip in Frame 4
on (release) {
getURL ("http://coolio-niato.newgrounds.com/", _blank);
}
Frame 5
onEnterFrame = function () {
if (_root.cover._currentframe == 15) {
if (_root._currentframe != newframe) {
_root.gotoAndStop(newframe);
}
}
};
stop();
Frame 6
song = 1;
combo = 0;
maxcombovar = 0;
scorevar = 0;
var savefile = SharedObject.getLocal("cooliobeat");
songNames = new Array(0, "This Way", 1, "Mission Impossible", 1, "Heaven Road", 2, "This is Halloween", 3, "In Your Face", 3, "Rockin' Temple", 3, "Surface", 2, "unknown", 1, "Cycle Of Life", 2);
rankings = new Array(0, 50000, 30000, 80000, 50000, 40000, 40000, 85000, 0, 25000);
x = 1;
while (x < 10) {
_root["song" + x].song = songNames[((x - 1) * 2) + 1];
_root["song" + x].color.gotoAndStop(songNames[((x - 1) * 2) + 2]);
x++;
}
onEnterFrame = function () {
touching = false;
x = 1;
while (x < 10) {
if (_root["song" + x].top.hitTest(_root._xmouse, _root._ymouse, true)) {
_root["song" + x].top._alpha = 50;
_root.stats.songname = songNames[((x - 1) * 2) + 1];
if (songNames[((x - 1) * 2) + 2] == 1) {
_root.stats.dlevel = "Beginner";
} else if (songNames[((x - 1) * 2) + 2] == 2) {
_root.stats.dlevel = "Normal";
} else if (songNames[((x - 1) * 2) + 2] == 3) {
_root.stats.dlevel = "Hard";
}
_root.stats.combomax = savefile.data["combo" + x];
_root.stats.highscore = savefile.data["score" + x];
_root.rank = savefile.data["rank" + x];
if (savefile.data["score" + x] == undefined) {
_root.stats.combomax = 0;
_root.stats.highscore = 0;
}
if (savefile.data["rank" + x] == undefined) {
_root.rank = 5;
}
if (_root.rank == 1) {
_root.stats.rank = "A";
} else if (_root.rank == 2) {
_root.stats.rank = "B";
} else if (_root.rank == 3) {
_root.stats.rank = "C";
} else if (_root.rank == 4) {
_root.stats.rank = "D";
} else if (_root.rank == 5) {
_root.stats.rank = "F";
}
touching = true;
} else {
_root["song" + x].top._alpha = 0;
}
x++;
}
if (!touching) {
_root.stats._alpha = 0;
_root.stats.songname = "";
_root.stats.combomax = "";
_root.stats.highscore = "";
_root.stats.rank = "";
_root.stats.dlevel = "";
} else {
_root.stats._alpha = 100;
}
if (_root.cover._currentframe == 15) {
if (_root._currentframe != newframe) {
_root.gotoAndStop(newframe);
}
}
};
onMouseDown = function () {
x = 1;
while (x < 10) {
if (_root["song" + x].top.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.song = x;
_root.newframe = 7;
_root.cover.play();
break;
}
x++;
}
};
Frame 7
spacekeyb = 32;
endsong = new Array(1, 1638, 845, 2225, 1880, 1520, 1410, 1980, 0, 1300);
_root.cover.swapDepths(10000000);
duplicateMovieClip (_root.dark, "darkness", 1000000);
wait = 40;
yspd = 5;
i = 0;
spot = 0;
k = 1;
while (k < 6) {
_root["a" + k]._alpha = 0;
k++;
}
j = 0;
array3 = new Array(174, 1, 186, 1, 197, 1, 208, 1, 220, 2, 232, 2, 243, 2, 256, 2, 267, 3, 280, 3, 293, 3, 304, 3, 316, 1, 329, 1, 341, 1, 352, 1, 363, 2, 375, 2, 389, 2, 401, 2, 412, 3, 425, 3, 437, 3, 449, 3, 461, 1, 473, 1, 485, 1, 496, 1, 508, 2, 522, 2, 532, 2, 543, 2, 554, 3, 567, 3, 581, 3, 592, 2, 605, 1, 617, 1, 629, 1, 640, 1, 652, 2, 663, 2, 675, 3, 689, 3, 701, 2, 712, 3, 724, 2, 736, 3, 747, 1, 761, 1, 773, 1, 784, 1, 796, 2, 806, 3, 819, 3, 833, 2, 843, 1, 856, 1, 868, 1, 880, 1, 892, 2, 903, 3, 915, 2, 927, 1, 940, 2, 989, 1, 1000, 1, 1013, 2, 1025, 3, 1038, 2, 1050, 1, 1062, 1, 1072, 2, 1085, 3, 1097, 2, 1110, 2, 1122, 3, 1133, 2, 1145, 2, 1156, 1, 1169, 2, 1181, 1, 1193, 1, 1205, 2, 1217, 3, 1230, 3, 1241, 3, 1253, 2, 1265, 3, 1277, 2, 1288, 1, 1301, 1, 1313, 1, 1324, 2, 1337, 3, 1348, 2, 1360, 1, 1371, 1, 1384, 2, 1396, 3, 1407, 4, 1420, 3, 1433, 2, 1444, 1, 1458, 2, 1469, 3, 1482, 4, 1495, 4, 1507, 4, 1520, 4, 1530, 4, 1542, 4, 1554, 4, 1566, 3, 1580, 2, 1590, 1, 1601, 2, 1613, 3, 1625, 4, 1638, 3, 1649, 4, 1661, 3, 1674, 4, 1686, 3, 1698, 2, 1710, 1, 1721, 2, 1733, 3, 1745, 4, 1758, 4, 1769, 3, 1782, 2, 1794, 1, 1806, 2, 1818, 3, 1831, 4, 1842, 3, 1854, 3, 1866, 2, 1876, 1, 1890, 2, 1901, 3, 1914, 4, 1927, 3, 1938, 2, 1950, 1, 1962, 2, 1974, 3, 1986, 4, 1999, 4, 2011, 4, 2023, 4, 2035, 4, 2046, 1, 2059, 1, 2071, 1, 2083, 1, 2094, 2, 2106, 2, 2118, 3, 2131, 3, 2142, 1, 2142, 2);
array5 = new Array(39, 2, 53, 3, 67, 4, 82, 1, 88, 2, 103, 2, 109, 3, 123, 3, 131, 4, 147, 4, 153, 5, 181, 1, 181, 2, 197, 1, 203, 2, 219, 2, 225, 3, 240, 3, 247, 4, 268, 4, 283, 5, 297, 4, 313, 1, 313, 2, 336, 2, 341, 3, 357, 3, 364, 4, 379, 4, 386, 5, 414, 1, 414, 2, 429, 1, 438, 2, 452, 2, 457, 3, 473, 3, 479, 4, 501, 4, 530, 5, 546, 4, 556, 3, 567, 2, 581, 1, 589, 2, 604, 2, 616, 3, 626, 4, 640, 5, 647, 5, 662, 3, 676, 1, 689, 2, 705, 3, 720, 4, 733, 5, 749, 4, 762, 3, 778, 2, 793, 1, 806, 2, 822, 3, 836, 4, 850, 5, 864, 4, 880, 3, 894, 2, 909, 1, 923, 1, 938, 2, 952, 3, 967, 4, 982, 5, 996, 4, 1011, 3, 1025, 2, 1042, 1, 1055, 2, 1070, 1, 1084, 2, 1098, 1, 1113, 2, 1129, 1, 1142, 2, 1157, 3, 1170, 4, 1185, 3, 1200, 4, 1215, 3, 1229, 4, 1244, 5, 1257, 4, 1274, 3, 1287, 2, 1302, 3, 1316, 2, 1330, 1, 1345, 2, 1360, 3, 1375, 4, 1389, 5, 1403, 4, 1417, 3, 1432, 2, 1447, 5, 1447, 4, 1461, 5, 1461, 4);
array6 = new Array(56, 1, 60, 1, 68, 2, 79, 3, 86, 4, 105, 1, 114, 1, 123, 1, 134, 1, 137, 1, 148, 2, 158, 3, 164, 4, 213, 1, 218, 1, 228, 2, 239, 3, 244, 4, 264, 3, 274, 2, 282, 1, 294, 2, 298, 2, 308, 3, 319, 4, 323, 4, 355, 5, 364, 4, 374, 3, 416, 1, 441, 1, 445, 1, 451, 1, 456, 2, 471, 3, 484, 4, 494, 3, 510, 2, 525, 1, 534, 2, 544, 1, 549, 1, 559, 2, 573, 3, 600, 4, 604, 4, 609, 4, 614, 5, 629, 4, 643, 3, 652, 2, 670, 1, 683, 2, 693, 3, 703, 4, 709, 3, 719, 2, 735, 1, 760, 2, 767, 3, 776, 4, 789, 5, 802, 4, 813, 3, 830, 2, 844, 1, 853, 2, 865, 2, 869, 2, 879, 2, 894, 1, 920, 1, 925, 1, 930, 1, 935, 1, 949, 1, 964, 2, 973, 3, 990, 3, 1005, 4, 1014, 5, 1023, 4, 1029, 3, 1040, 2, 1054, 1, 1059, 1, 1071, 1, 1084, 2, 1089, 2, 1095, 3, 1112, 3, 1125, 4, 1134, 4, 1150, 5, 1164, 4, 1174, 3, 1185, 2, 1189, 2, 1200, 2, 1213, 3, 1242, 4, 1246, 4, 1251, 4, 1256, 4, 1270, 5, 1285, 4, 1294, 3, 1311, 2, 1324, 3, 1334, 2, 1344, 1, 1348, 1, 1360, 1);
array4 = new Array(82, 1, 102, 1, 121, 1, 141, 1, 152, 2, 160, 3, 180, 4, 201, 4, 221, 4, 230, 3, 240, 2, 262, 1, 283, 1, 301, 1, 313, 2, 323, 3, 342, 4, 352, 4, 361, 3, 383, 2, 403, 1, 413, 2, 422, 3, 431, 4, 442, 1, 447, 1, 459, 2, 482, 3, 491, 4, 501, 3, 511, 2, 522, 1, 527, 1, 539, 2, 561, 2, 569, 3, 580, 4, 590, 3, 600, 1, 613, 2, 619, 2, 626, 1, 641, 1, 652, 2, 660, 3, 670, 4, 675, 4, 681, 3, 690, 2, 701, 3, 721, 1, 741, 1, 761, 1, 781, 1, 789, 2, 797, 3, 821, 4, 841, 4, 861, 4, 870, 3, 880, 2, 902, 1, 922, 1, 942, 1, 951, 2, 962, 3, 982, 4, 991, 3, 1001, 2, 1022, 1, 1044, 1, 1062, 1, 1082, 1, 1102, 1, 1111, 2, 1118, 3, 1141, 4, 1161, 4, 1182, 4, 1191, 3, 1201, 2, 1220, 1, 1240, 1, 1261, 1, 1271, 2, 1280, 3, 1301, 4, 1309, 3, 1320, 2, 1342, 1, 1362, 1, 1373, 2, 1383, 3, 1393, 4, 1403, 3, 1408, 4, 1414, 3, 1423, 4, 1443, 3, 1453, 2, 1463, 1, 1473, 2, 1483, 3, 1488, 2, 1492, 3, 1502, 2, 1522, 1, 1531, 2, 1542, 3, 1552, 4, 1562, 3, 1573, 4, 1577, 3, 1601, 2, 1612, 1, 1622, 2, 1631, 3, 1636, 2, 1641, 3, 1652, 4, 1661, 3, 1671, 2, 1682, 1, 1692, 2, 1700, 3, 1722, 4, 1730, 3, 1740, 2, 1762, 1, 1786, 2, 1793, 3, 1798, 4, 1813, 2, 1823, 3);
array1 = new Array(9, 1, 19, 1, 30, 1, 41, 1, 54, 2, 65, 2, 77, 2, 89, 2, 100, 3, 113, 3, 125, 3, 137, 3, 149, 2, 161, 2, 173, 2, 184, 2, 209, 1, 232, 2, 257, 2, 281, 2, 305, 3, 327, 3, 352, 3, 377, 3, 400, 2, 426, 2, 449, 2, 473, 2, 496, 1, 520, 1, 544, 1, 569, 1, 582, 1, 594, 2, 606, 3, 617, 2, 630, 1, 641, 2, 653, 3, 665, 2, 677, 1, 690, 2, 701, 3, 712, 2, 725, 1, 736, 2, 749, 3, 760, 2, 773, 1, 786, 1, 797, 1, 809, 1, 821, 2, 833, 2, 845, 2, 858, 2, 870, 3, 882, 3, 894, 3, 906, 3, 917, 2, 930, 2, 943, 2, 954, 2, 966, 1, 1002, 1, 1025, 2, 1049, 3, 1073, 2, 1097, 1, 1123, 2, 1145, 3, 1169, 2, 1193, 1, 1217, 2, 1241, 3, 1266, 2, 1289, 1, 1314, 2, 1338, 3, 1363, 1, 1386, 2, 1410, 1, 1434, 2, 1458, 1, 1484, 2, 1506, 3);
array2 = new Array(42, 1, 57, 1, 71, 2, 79, 3, 86, 4, 100, 4, 115, 3, 122, 2, 130, 1, 147, 1, 159, 2, 166, 3, 174, 4, 191, 4, 205, 4, 214, 3, 221, 2, 236, 1, 252, 1, 259, 1, 265, 2, 280, 3, 295, 4, 303, 4, 311, 3, 327, 2, 341, 1, 349, 1, 355, 2, 369, 3, 386, 4, 393, 4, 401, 3, 415, 2, 429, 1, 439, 1, 445, 2, 461, 3, 476, 4, 484, 4, 492, 3, 507, 4, 522, 3, 530, 2, 538, 1, 553, 2, 568, 1, 576, 2, 584, 3, 598, 4, 612, 4, 619, 3, 626, 2, 642, 1, 656, 1, 663, 2, 671, 3, 687, 4, 702, 4, 708, 3, 714, 2, 729, 1, 747, 2, 754, 3, 761, 4);
array7 = new Array(96, 1, 105, 1, 114, 1, 133, 2, 143, 2, 152, 2, 171, 3, 181, 3, 191, 3, 208, 2, 218, 2, 228, 2, 246, 1, 257, 1, 265, 1, 285, 2, 294, 2, 304, 2, 322, 3, 333, 3, 342, 3, 360, 2, 372, 2, 382, 2, 400, 1, 408, 2, 418, 3, 438, 3, 446, 2, 456, 1, 474, 1, 484, 2, 494, 3, 514, 3, 522, 2, 531, 1, 551, 1, 560, 1, 569, 1, 589, 2, 599, 2, 608, 2, 627, 3, 636, 3, 645, 3, 661, 2, 674, 2, 686, 2, 704, 1, 713, 1, 720, 1, 738, 2, 749, 2, 758, 2, 779, 3, 788, 3, 797, 3, 815, 3, 824, 2, 833, 1, 853, 1, 863, 1, 872, 1, 891, 2, 901, 2, 910, 2, 929, 3, 940, 3, 947, 3, 960, 2, 969, 1, 979, 2, 987, 3, 997, 3, 1006, 2, 1015, 1, 1025, 2, 1035, 3, 1044, 4, 1052, 4, 1061, 4, 1071, 3, 1082, 2, 1091, 1, 1101, 2, 1111, 3, 1119, 2, 1130, 1, 1140, 1, 1149, 1, 1158, 2, 1168, 3, 1175, 4, 1186, 3, 1195, 2, 1205, 2, 1218, 2, 1225, 1, 1236, 1, 1244, 2, 1253, 3, 1262, 2, 1272, 1, 1282, 2, 1291, 3, 1300, 4, 1310, 3, 1319, 2, 1328, 2, 1338, 1, 1348, 2, 1358, 2, 1367, 2, 1377, 1, 1387, 2, 1397, 2, 1406, 2, 1415, 3, 1423, 2, 1433, 2, 1443, 2, 1452, 1, 1461, 2, 1472, 2, 1481, 2, 1490, 3, 1498, 2, 1509, 2, 1518, 2, 1527, 1, 1537, 2, 1546, 2, 1555, 2, 1566, 3, 1574, 2, 1585, 2, 1595, 2, 1604, 1, 1614, 2, 1624, 3, 1632, 4, 1642, 4, 1652, 3, 1661, 2, 1670, 1, 1680, 2, 1690, 2, 1698, 1, 1709, 2, 1718, 3, 1728, 3, 1736, 2, 1747, 1, 1756, 2, 1766, 3, 1774, 2, 1784, 1, 1803, 1, 1812, 2, 1821, 3, 1841, 3, 1850, 2, 1858, 1, 1878, 1, 1888, 2, 1898, 3, 1906, 4);
array9 = new Array(85, 1, 97, 2, 110, 3, 122, 4, 133, 5, 145, 4, 182, 1, 195, 2, 206, 3, 219, 4, 230, 5, 241, 4, 254, 5, 260, 4, 283, 1, 295, 2, 305, 3, 317, 4, 328, 5, 340, 4, 378, 1, 389, 2, 401, 3, 412, 4, 423, 3, 436, 4, 447, 3, 452, 2, 466, 1, 517, 2, 566, 3, 612, 5, 662, 1, 710, 3, 758, 4, 807, 2, 865, 1, 876, 2, 888, 3, 901, 4, 912, 5, 924, 4, 960, 1, 973, 2, 985, 3, 996, 4, 1008, 5, 1020, 4, 1032, 5, 1039, 4, 1061, 1, 1073, 2, 1084, 3, 1095, 4, 1107, 5, 1119, 4, 1157, 1, 1168, 2, 1180, 3, 1195, 4, 1205, 3, 1216, 4, 1227, 3, 1231, 2, 1247, 1);
space = false;
cnum = 0;
_root.char.char.gotoAndStop(1);
x = 1;
while (x <= 5) {
_root["f" + x].swapDepths(100000 - x);
x++;
}
i = 1;
while (i < 10) {
_root["song" + i].gotoAndStop(1);
i++;
}
scoreinc = 100;
_root.scoremc.swapDepths(1000001);
_root.combomc.swapDepths(1000002);
if (_root.songNames[((_root.song - 1) * 2) + 2] == 1) {
color = 3;
} else if (_root.songNames[((_root.song - 1) * 2) + 2] == 2) {
color = 2;
} else if (_root.songNames[((_root.song - 1) * 2) + 2] == 3) {
color = 1;
}
_root.bg.gotoAndStop(color);
_root.shade.gotoAndStop(_root.bg._currentframe);
i = 1;
while (i < 6) {
_root["pressed" + i] = 0;
i++;
}
songstart = 0;
mySound = new Sound();
currentvol = 100;
lastcombo = 1;
done = true;
donewait = 1;
firstnote = _root["array" + song][0] + 45;
onEnterFrame = function () {
if (_root["song" + song]._currentframe >= firstnote) {
if (combo == 0) {
if (done) {
done = false;
if (currentvol > 20) {
currentvol = currentvol - 20;
} else {
currentvol = 20;
}
donewait = 2;
}
} else {
done = true;
currentvol = 100;
}
}
if (donewait > 1) {
donewait++;
if (donewait > 10) {
done = true;
donewait = 1;
}
}
mySound.setVolume(currentvol);
if (combo > maxcombovar) {
maxcombovar = combo;
}
if (_root["song" + song]._currentframe == endsong[song]) {
_root.cover.play();
_root["song" + song].gotoAndStop(endsong[song] + 1);
}
if (_root.cover._currentframe == 15) {
x = 1;
while (x <= 5) {
removeMovieClip(_root["f" + x]);
x++;
}
removeMovieClip(_root.scoremc);
removeMovieClip(_root.combomc);
removeMovieClip(_root.darkness);
_root.nextFrame();
}
songstart++;
if (songstart == 60) {
_root["song" + song].play();
}
i = 1;
while (i < 6) {
_root["pressed" + i] = 0;
i++;
}
if ((combo >= 50) and (combo < 100)) {
if ((_root.char.char._currentframe < 10) or (_root.char.char._currentframe > 17)) {
_root.char.char.gotoAndStop(10);
}
} else if (combo >= 100) {
if (_root.char.char._currentframe < 18) {
_root.char.char.gotoAndStop(18);
}
} else if (_root.char.char._currentframe > 9) {
_root.char.char.gotoAndStop(1);
}
cnum = 0;
x = 1;
while (x <= 5) {
if (_root["c" + x]._currentframe == 2) {
cnum++;
}
x++;
}
x = 1;
while (x <= 5) {
if (_root["c" + x]._currentframe == 2) {
_root.char.hand2.gotoAndStop(x);
break;
}
x++;
}
if (true) {
if (_root.cnum <= 1) {
if (Key.isDown(65)) {
if (_root.c1._currentframe == 1) {
_root.c1.gotoAndStop(2);
}
} else {
_root.c1.gotoAndStop(1);
}
if (Key.isDown(83)) {
if (_root.c2._currentframe == 1) {
_root.c2.gotoAndStop(2);
// unexpected jump
}
} else {
_root.c2.gotoAndStop(1);
}
if (Key.isDown(68)) {
if (_root.c3._currentframe == 1) {
_root.c3.gotoAndStop(2);
// unexpected jump
}
} else {
_root.c3.gotoAndStop(1);
}
if (Key.isDown(70)) {
if (_root.c4._currentframe == 1) {
_root.c4.gotoAndStop(2);
// unexpected jump
}
} else {
_root.c4.gotoAndStop(1);
}
if (Key.isDown(71)) {
if (_root.c5._currentframe == 1) {
_root.c5.gotoAndStop(2);
// unexpected jump
}
} else {
_root.c5.gotoAndStop(1);
}
} else {
if (Key.isDown(65)) {
} else {
_root.c1.gotoAndStop(1);
}
if (Key.isDown(83)) {
} else {
_root.c2.gotoAndStop(1);
}
if (Key.isDown(68)) {
} else {
_root.c3.gotoAndStop(1);
}
if (Key.isDown(70)) {
} else {
_root.c4.gotoAndStop(1);
}
if (Key.isDown(71)) {
} else {
_root.c5.gotoAndStop(1);
}
}
}
if (spacekey > 0) {
spacekey++;
}
if (spacekey > 2) {
spacekey = 0;
}
if (Key.isDown(32) or Key.isDown(8)) {
if (space == false) {
spacekey = 1;
space = true;
}
} else if ((!Key.isDown(32)) and (!Key.isDown(8))) {
space = false;
}
noseven = false;
k = 1;
while (k < 6) {
_root["f" + k]._alpha = _root["a" + k]._alpha;
_root["f" + k]._yscale = _root["f" + k]._alpha * 1.5;
if ((!_root["a" + k]._alpha) == 0) {
if (_root["a" + k]._alpha >= 75) {
noseven = true;
shakeScreen();
}
_root["a" + k]._alpha = _root["a" + k]._alpha - 5;
}
if ((k == 5) and (noseven == false)) {
_root._x = 0;
_root._y = 0;
}
k++;
}
do {
if (_root.song != 1) {
if (_root["song" + song]._currentframe == (_root["array" + song][spot] - 35)) {
j++;
duplicateMovieClip (_root["button" + _root["array" + song][spot + 1]], "b" + j, 10000 - j);
_root["b" + j].b.color.gotoAndStop(_root["array" + song][spot + 1]);
spot = spot + 2;
} else {
break;
}
} else if (_root["song" + song]._currentframe == _root["array" + song][spot]) {
j++;
duplicateMovieClip (_root["button" + _root["array" + song][spot + 1]], "b" + j, 10000 - j);
_root["b" + j].b.color.gotoAndStop(_root["array" + song][spot + 1]);
spot = spot + 2;
} else {
break;
}
} while (_root.cover._currentframe == 1);
wait++;
if (wait > 20) {
i++;
duplicateMovieClip (_root.guitar.toplines.lines.line, "l" + i, _root.guitar.toplines.lines.getNextHighestDepth());
_root.guitar.toplines.lines["l" + i]._x = _root.guitar.toplines.lines.line._x;
_root.guitar.toplines.lines["l" + i]._y = _root.guitar.toplines.lines.line._y;
wait = 0;
}
if (scorevar > 0) {
_root.scoremc.score = Math.floor(scorevar);
} else {
_root.scoremc.score = "";
}
if (combo > 0) {
_root.combomc.score = "x" + Math.floor(combo / 2);
} else {
_root.combomc.score = "";
}
};
shakeScreen = function () {
if (_root.char.char._currentframe < 10) {
_root.char.char.gotoAndPlay(4);
} else if ((_root.char.char._currentframe >= 10) and (_root.char.char._currentframe < 18)) {
_root.char.char.gotoAndPlay(11);
} else if ((_root.char.char._currentframe >= 18) and (_root.char.char._currentframe < 28)) {
_root.char.char.gotoAndPlay(19);
}
xmov = (Math.random() * 5) + 2;
ymov = (Math.random() * 5) + 2;
if (Math.round(Math.random()) == 0) {
xmov = xmov * -1;
}
if (Math.round(Math.random()) == 0) {
ymov = ymov * -1;
}
_root._x = _root._x + xmov;
_root._y = _root._y + ymov;
};
Frame 8
onEnterFrame = function () {
if (_root.cover._currentframe == 15) {
if (_root._currentframe != newframe) {
_root.scorevar = 0;
_root.combo = 0;
_root.maxcombovar = 0;
_root.gotoAndStop(newframe);
}
}
};
_root.songname = _root.songNames[((_root.song - 1) * 2) + 1];
cmax = savefile.data["combo" + song];
hmax = savefile.data["score" + song];
ranklast = savefile.data["rank" + song];
if (savefile.data["score" + song] == undefined) {
cmax = 0;
hmax = 0;
}
if (savefile.data["rank" + song] == undefined) {
ranklast = 5;
}
_root.scoret = Math.floor(_root.scorevar);
if (Math.floor(_root.scorevar) > hmax) {
_root.savefile.data["score" + song] = Math.floor(_root.scorevar);
}
_root.combot = Math.floor(_root.maxcombovar / 2);
if (Math.floor(_root.maxcombovar / 2) > cmax) {
_root.savefile.data["combo" + song] = Math.floor(_root.maxcombovar / 2);
}
if (Math.floor(_root.scorevar) > rankings[song]) {
rank = 1;
} else if (Math.floor(_root.scorevar) > (rankings[song] - 5000)) {
rank = 2;
} else if (Math.floor(_root.scorevar) > (rankings[song] - 10000)) {
rank = 3;
} else if (Math.floor(_root.scorevar) > (rankings[song] - 15000)) {
rank = 4;
} else {
rank = 5;
}
if (ranklast > rank) {
_root.savefile.data["rank" + song] = rank;
}
_root.savefile.flush();
if (_root.rank == 1) {
_root.rankt = "A";
} else if (_root.rank == 2) {
_root.rankt = "B";
} else if (_root.rank == 3) {
_root.rankt = "C";
} else if (_root.rank == 4) {
_root.rankt = "D";
} else if (_root.rank == 5) {
_root.rankt = "F";
}
if (_root.songNames[((_root.song - 1) * 2) + 2] == 1) {
_root.dlevel = "Beginner";
} else if (_root.songNames[((_root.song - 1) * 2) + 2] == 2) {
_root.dlevel = "Normal";
} else if (_root.songNames[((_root.song - 1) * 2) + 2] == 3) {
_root.dlevel = "Hard";
}
Symbol 27 MovieClip Frame 11
_parent.gotoAndStop(2);
Symbol 37 MovieClip Frame 1
this.onEnterFrame = function () {
bytesloaded = Math.round(_root.getBytesLoaded());
bytestotal = Math.round(_root.getBytesTotal());
percent = bytesloaded / bytestotal;
barmask._xscale = percent * 100;
};
Symbol 69 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 69 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 80 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 80 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 88 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 88 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 96 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 96 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 104 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 104 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 112 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 112 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 120 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 120 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 128 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 128 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.gotoAndStop(2);
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 135 MovieClip Frame 133
_root.gotoAndStop(4);
Symbol 136 MovieClip Frame 1
stop();
_root.stop();
shiftamt = 17;
isloaded = false;
this.onEnterFrame = function () {
bytesloaded = Math.round(_root.getBytesLoaded());
bytestotal = Math.round(_root.getBytesTotal());
percent = bytesloaded / bytestotal;
if (bytesloaded == bytestotal) {
isloaded = true;
}
};
this.onRelease = function () {
getURL ("http://www.mofunzone.com/", "_blank");
};
Symbol 152 MovieClip Frame 158
_root.nextFrame();
Symbol 161 Button
on (release) {
_root.cover.play();
_root.newframe = 6;
}
Symbol 165 Button
on (release) {
_root.cover.play();
_root.newframe = 9;
}
Symbol 169 Button
on (release) {
getURL ("http://mofunzone.com/", _blank);
}
Symbol 182 Button
on (release) {
getURL ("http://mofunzone.com/", _blank);
}
Symbol 185 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 5
stop();
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 9
gotoAndStop (1);
Symbol 237 MovieClip Frame 17
gotoAndStop (10);
Symbol 237 MovieClip Frame 27
gotoAndStop (18);
Symbol 265 MovieClip Frame 1
stop();
Instance of Symbol 263 MovieClip in Symbol 265 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._name != "line") {
_parent.play();
}
}
Symbol 265 MovieClip Frame 44
stop();
Instance of Symbol 263 MovieClip in Symbol 265 MovieClip Frame 44
onClipEvent (load) {
removeMovieClip(_parent);
}
Instance of Symbol 279 MovieClip in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
keydown = false;
}
onClipEvent (enterFrame) {
if (_parent._name != "button1") {
if (_parent._currentframe == 1) {
_parent.play();
}
if (_parent._currentframe == 42) {
_parent.swapDepths(10000);
removeMovieClip(_parent);
}
if (_root.spacekey > 0) {
if (_root.c1._currentframe == 2) {
if ((_parent._currentframe >= 32) and (_parent._currentframe <= 38)) {
if (_root.pressed1 == 0) {
_root.pressed1++;
_root.combo++;
_root.scorevar = _root.scorevar + (_root.scoreinc + ((_root.combo / 2) * 5));
_root.a1._alpha = 80;
_parent.gotoAndStop(42);
}
}
}
}
if (_parent._currentframe == 39) {
_root.combo = 0;
}
} else {
_parent.stop();
}
}
Symbol 280 MovieClip Frame 42
stop();
Instance of Symbol 279 MovieClip in Symbol 281 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
keydown = false;
}
onClipEvent (enterFrame) {
if (_parent._name != "button2") {
if (_parent._currentframe == 1) {
_parent.play();
}
if (_parent._currentframe == 42) {
_parent.swapDepths(10000);
removeMovieClip(_parent);
}
if (_root.spacekey > 0) {
if (_root.c2._currentframe == 2) {
if ((_parent._currentframe >= 32) and (_parent._currentframe <= 38)) {
if (_root.pressed2 == 0) {
_root.pressed2++;
_root.combo++;
_root.scorevar = _root.scorevar + (_root.scoreinc + ((_root.combo / 2) * 5));
_root.a2._alpha = 80;
_parent.gotoAndStop(42);
}
}
}
}
if (_parent._currentframe == 39) {
_root.combo = 0;
}
} else {
_parent.stop();
}
}
Symbol 281 MovieClip Frame 42
stop();
Instance of Symbol 279 MovieClip in Symbol 282 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
keydown = false;
}
onClipEvent (enterFrame) {
if (_parent._name != "button5") {
if (_parent._currentframe == 1) {
_parent.play();
}
if (_parent._currentframe == 42) {
_parent.swapDepths(10000);
removeMovieClip(_parent);
}
if (_root.spacekey > 0) {
if (_root.c5._currentframe == 2) {
if ((_parent._currentframe >= 32) and (_parent._currentframe <= 38)) {
if (_root.pressed5 == 0) {
_root.pressed5++;
_root.combo++;
_root.scorevar = _root.scorevar + (_root.scoreinc + ((_root.combo / 2) * 5));
_root.a5._alpha = 80;
_parent.gotoAndStop(42);
}
}
}
}
if (_parent._currentframe == 39) {
_root.combo = 0;
}
} else {
_parent.stop();
}
}
Symbol 282 MovieClip Frame 42
stop();
Instance of Symbol 279 MovieClip in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
keydown = false;
}
onClipEvent (enterFrame) {
if (_parent._name != "button4") {
if (_parent._currentframe == 1) {
_parent.play();
}
if (_parent._currentframe == 42) {
_parent.swapDepths(10000);
removeMovieClip(_parent);
}
if (_root.spacekey > 0) {
if (_root.c4._currentframe == 2) {
if ((_parent._currentframe >= 32) and (_parent._currentframe <= 38)) {
if (_root.pressed4 == 0) {
_root.pressed4++;
_root.combo++;
_root.scorevar = _root.scorevar + (_root.scoreinc + ((_root.combo / 2) * 5));
_root.a4._alpha = 80;
_parent.gotoAndStop(42);
}
}
}
}
if (_parent._currentframe == 39) {
_root.combo = 0;
}
} else {
_parent.stop();
}
}
Symbol 283 MovieClip Frame 42
stop();
Instance of Symbol 279 MovieClip in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
keydown = false;
}
onClipEvent (enterFrame) {
if (_parent._name != "button3") {
if (_parent._currentframe == 1) {
_parent.play();
}
if (_parent._currentframe == 42) {
_parent.swapDepths(10000);
removeMovieClip(_parent);
}
if (_root.spacekey > 0) {
if (_root.c3._currentframe == 2) {
if ((_parent._currentframe >= 32) and (_parent._currentframe <= 38)) {
if (_root.pressed3 == 0) {
_root.pressed3++;
_root.combo++;
_root.scorevar = _root.scorevar + (_root.scoreinc + ((_root.combo / 2) * 5));
_root.a3._alpha = 80;
_parent.gotoAndStop(42);
}
}
}
}
if (_parent._currentframe == 39) {
_root.combo = 0;
}
} else {
_parent.stop();
}
}
Symbol 284 MovieClip Frame 42
stop();
Symbol 303 MovieClip Frame 2864
stop();
Symbol 304 MovieClip Frame 2864
stop();
Symbol 305 MovieClip Frame 2864
stop();
Symbol 306 MovieClip Frame 2864
stop();
Symbol 307 MovieClip Frame 2864
stop();
Symbol 308 MovieClip Frame 2864
stop();
Symbol 326 Button
on (release) {
_root.cover.play();
_root.newframe = 5;
}
Symbol 330 Button
on (release) {
_root.cover.play();
_root.newframe = 6;
}
Symbol 334 Button
on (release) {
_root.cover.play();
_root.newframe = 7;
}