Frame 1
stop();
Frame 2
function layOver() {
hud.colorMeter.bar._y = 190 - (meter * 1.87);
multiplier = Math.floor(meter / 10);
hud.mult.gotoAndStop(multiplier);
hud.hangin._visible = false;
hud.fire._visible = false;
if (multiplier <= 3) {
hud.hangin._visible = true;
} else if (multiplier >= 9) {
hud.fire._visible = true;
}
hud.songStreak = ((song.myStreak + "/") + song.myHighStreak) + "!";
}
function addBeats() {
if (((song.myPattern[beats] - Math.round(250 / speed)) <= (timeStep - song.myDelay)) && (song.myPattern.length > beats)) {
storeBeats.attachMovie("Beat", "beat" + beats, beats + 100);
storeBeats["beat" + beats]._y = 110;
storeBeats["beat" + beats]._x = 270;
storeBeats["beat" + beats].setDirection(song.myDirections[beats]);
storeBeats["beat" + beats].tag = beats;
storeBeats["beat" + beats].cacheAsBitmap = true;
beats++;
} else if (song.myEndTime <= timeStep) {
play();
}
}
function actBeats() {
var _local1 = "";
for (_local1 in storeBeats) {
storeBeats[_local1].act();
}
}
function setAvgFrameRate() {
avgFrameRate = Math.round(1000 / (getTimer() - prevRate));
prevRate = getTimer();
}
function scored() {
song.myScore = song.myScore + (10 * multiplier);
song.myStreak++;
hud.songScore = song.myScore;
}
function initialize() {
this.attachMovie("hud", "hud", 50000);
this.attachMovie("board", "board", 5);
this.attachMovie("board", "boardPiece", 10);
this.attachMovie("shadow", "theShadow", 105);
this.createEmptyMovieClip("storeBeats", 100);
hud.cacheAsBitmap = true;
board.cacheAsBitmap = true;
boardPiece.cacheAsBitmap = true;
theShadow.cacheAsBitmap = true;
storeBeats.cacheAsBitmap = true;
storeBeats.setMask(boardPiece);
beats = 0;
meter = 50;
speed = 0;
combo = 0;
position = 0;
focusID = 0;
multiplier = 5;
rank = 0;
breakingPoint = 370;
checkPoint = 290;
startTime = getTimer();
timeStep = 0;
hud.songArtist = _root.song.myArtist;
hud.songName = _root.song.myName;
hud.songScore = _root.song.myScore;
onMouseDown = function () {
};
}
function scoreScreenInitialize() {
songTitle = song.myName;
songScore = song.myScore;
songStreak = song.myHighStreak;
onEnterFrame = function () {
};
}
function keyCheck() {
if (keyPressable) {
keyPressable = false;
if (Key.isDown(38)) {
keyNum = 0;
} else if (Key.isDown(39)) {
keyNum = 1;
} else if (Key.isDown(40)) {
keyNum = 2;
} else if (Key.isDown(37)) {
keyNum = 3;
} else {
keyNum = null;
}
} else {
keyNum = null;
}
if ((((!Key.isDown(37)) && (!Key.isDown(38))) && (!Key.isDown(39))) && (!Key.isDown(40))) {
keyPressable = true;
keyNum = null;
}
}
function removeScreen() {
board.removeMovieClip();
hud.removeMovieClip();
storeBeats.removeMovieClip();
boardPiece.removeMovieClip();
theShadow.removeMovieClip();
stopAllSounds();
}
function beatSelfScript(string, num) {
if (num == 0) {
storeBeats[string].arr.gotoAndStop(2);
} else if (num == 1) {
storeBeats[string].arr.gotoAndStop(1);
}
}
function findSongRank(level, score) {
rank = 1;
i = 2;
while (i < 6) {
if (score >= this["rank" + i][level - 1]) {
rank++;
}
i++;
}
return(rank);
}
function findRanks() {
p = 1;
while (p < 7) {
this["score" + p] = findSongRank(p, this["lvl" + p]);
this["total" + p] = this["lvl" + p];
if (p != 6) {
if (this["score" + p] == 1) {
this["x" + (p + 1)]._visible = true;
} else {
this["x" + (p + 1)]._visible = false;
}
}
p++;
}
}
function loadSong(num) {
this["loadSong" + num]();
song.partTrack();
}
function loadSong1() {
song.setProperties("VOICES FROM THE PAST", "DARKSIDE555", 0, 3, 1920, "song1", 5, [53, 263, 421, 459, 472, 490, 508, 524, 541, 573, 595, 627, 642, 653, 666, 679, 698, 729, 751, 783, 801, 835, 851, 869, 884, 907, 927, 937, 956, 977, 990, 1008, 1028, 1043, 1056, 1071, 1084, 1096, 1116, 1135, 1149, 1168, 1186, 1199, 1218, 1239, 1252, 1263, 1277, 1291, 1305, 1326, 1342, 1357, 1376, 1393, 1408, 1429, 1446, 1461, 1475, 1486, 1500, 1513, 1533, 1550, 1565, 1585, 1603, 1618, 1638, 1655, 1670, 1682, 1696, 1709, 1722], [119, 97, 100, 97, 119, 100, 97, 119, 100, 97, 119, 97, 119, 100, 115, 97, 119, 97, 119, 97, 119, 97, 119, 100, 115, 97, 119, 100, 119, 119, 119, 100, 97, 119, 100, 115, 97, 119, 97, 119, 100, 97, 119, 100, 97, 119, 100, 115, 97, 119, 100, 97, 119, 100, 97, 119, 119, 97, 119, 100, 97, 119, 100, 115, 115, 100, 97, 100, 97, 100, 97, 119, 100, 115, 97, 119, 100]);
}
function loadSong2() {
song.setProperties("CRUSADE", "MARTIN MAYER", 0, 3, 2700, "song2", 6, [173, 184, 191, 196, 201, 206, 223, 233, 237, 247, 258, 270, 275, 281, 287, 292, 307, 317, 323, 333, 344, 354, 360, 366, 371, 376, 392, 402, 408, 418, 428, 438, 443, 449, 455, 460, 476, 487, 491, 503, 513, 524, 529, 535, 540, 545, 560, 571, 576, 587, 598, 608, 613, 619, 624, 629, 644, 654, 660, 672, 683, 693, 698, 704, 710, 715, 730, 740, 745, 755, 766, 776, 782, 788, 793, 799, 804, 809, 815, 820, 827, 831, 837, 842, 847, 853, 1001, 1010, 1021, 1108, 1191, 1202, 1340, 1349, 1360, 1446, 1529, 1542, 1552, 1562, 1697, 1866, 1876, 1888, 1899, 2035, 2206, 2213, 2225, 2236, 2238, 2248, 2260, 2268, 2272, 2277, 2282, 2291, 2296, 2306, 2316, 2322, 2329, 2339, 2351, 2354, 2360, 2364, 2375, 2381, 2394, 2399, 2409, 2415, 2425, 2434, 2438, 2444, 2448, 2460, 2465, 2478, 2484, 2491, 2497, 2508, 2517, 2522, 2527, 2533, 2545, 2552, 2564, 2569, 2575, 2580, 2587], [119, 97, 119, 119, 119, 119, 100, 119, 119, 119, 119, 97, 119, 119, 119, 119, 119, 100, 119, 119, 119, 119, 119, 119, 119, 119, 97, 100, 119, 119, 119, 119, 119, 119, 119, 119, 97, 100, 97, 119, 119, 119, 119, 119, 119, 119, 97, 100, 100, 97, 119, 119, 119, 119, 119, 119, 100, 97, 100, 119, 119, 119, 119, 119, 119, 119, 97, 97, 100, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 97, 119, 100, 115, 97, 119, 97, 119, 100, 115, 97, 100, 97, 100, 115, 97, 100, 97, 100, 115, 97, 100, 97, 100, 100, 119, 119, 119, 119, 119, 119, 97, 100, 97, 97, 100, 100, 97, 119, 119, 119, 119, 97, 100, 97, 100, 100, 97, 100, 97, 119, 119, 119, 97, 97, 97, 97, 100, 97, 97, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119]);
}
function loadSong3() {
song.setProperties("PROJECT ALA", "METALIZED", 0, 3, 1600, "song3", 6, [13, 31, 41, 50, 60, 70, 81, 94, 104, 114, 123, 132, 141, 150, 160, 169, 176, 186, 195, 204, 213, 222, 249, 292, 324, 344, 354, 364, 374, 383, 392, 401, 411, 420, 428, 438, 447, 454, 462, 473, 482, 490, 499, 510, 538, 579, 613, 634, 644, 654, 685, 724, 756, 776, 787, 797, 810, 829, 866, 900, 923, 934, 942, 971, 1007, 1044, 1065, 1076, 1086, 1095, 1106, 1113, 1121, 1131, 1140, 1149, 1158, 1170, 1178, 1185, 1192, 1201, 1210, 1219, 1229, 1237, 1247, 1254, 1264, 1272, 1282, 1292, 1301, 1328, 1367, 1405, 1424, 1435, 1445, 1454, 1464, 1473, 1482, 1492, 1500, 1510, 1519], [119, 119, 119, 97, 119, 100, 119, 97, 100, 97, 100, 97, 119, 100, 97, 119, 100, 97, 119, 100, 97, 119, 119, 115, 119, 97, 100, 97, 100, 97, 100, 97, 100, 97, 119, 119, 97, 100, 97, 100, 97, 100, 97, 119, 97, 119, 100, 97, 119, 100, 97, 97, 97, 97, 119, 100, 97, 97, 97, 115, 97, 100, 115, 97, 100, 115, 97, 119, 100, 115, 97, 119, 119, 100, 115, 97, 119, 119, 100, 115, 115, 119, 119, 100, 115, 97, 119, 119, 100, 100, 119, 119, 119, 97, 100, 97, 115, 97, 100, 97, 119, 100, 97, 100, 97, 100, 119]);
}
function loadSong4() {
song.setProperties("IN YOUR FACE", "TATSU-TAKAHASHI", 0, 3, 4500, "song4", 7, [59, 71, 84, 131, 198, 248, 286, 301, 315, 363, 429, 481, 518, 548, 563, 571, 583, 592, 603, 617, 627, 640, 651, 664, 676, 685, 698, 708, 722, 734, 743, 775, 781, 793, 801, 815, 824, 837, 850, 859, 873, 882, 895, 909, 918, 930, 941, 954, 966, 974, 984, 989, 995, 1004, 1011, 1023, 1031, 1039, 1047, 1054, 1062, 1070, 1078, 1084, 1091, 1099, 1106, 1114, 1120, 1129, 1135, 1143, 1149, 1157, 1164, 1171, 1178, 1185, 1192, 1201, 1207, 1215, 1222, 1229, 1237, 1244, 1254, 1264, 1273, 1280, 1288, 1295, 1301, 1308, 1315, 1323, 1330, 1339, 1346, 1353, 1360, 1361, 1367, 1375, 1383, 1390, 1397, 1403, 1410, 1418, 1425, 1432, 1440, 1447, 1454, 1462, 1477, 1524, 1591, 1642, 1679, 1695, 1709, 1758, 1823, 1874, 1911, 1926, 1941, 1953, 1961, 1975, 1985, 1998, 2010, 2020, 2034, 2042, 2057, 2071, 2080, 2091, 2099, 2115, 2128, 2135, 2144, 2152, 2159, 2165, 2174, 2184, 2194, 2208, 2216, 2231, 2243, 2251, 2265, 2274, 2289, 2301, 2310, 2324, 2333, 2347, 2358, 2367, 2377, 2383, 2391, 2398, 2406, 2418, 2425, 2432, 2441, 2448, 2455, 2462, 2470, 2478, 2485, 2492, 2500, 2507, 2508, 2515, 2521, 2529, 2535, 2543, 2551, 2558, 2565, 2572, 2580, 2587, 2594, 2601, 2608, 2617, 2624, 2631, 2638, 2645, 2653, 2660, 2667, 2674, 2681, 2688, 2695, 2702, 2710, 2718, 2725, 2732, 2740, 2747, 2754, 2761, 2768, 2776, 2782, 2790, 2797, 2804, 2812, 2820, 2827, 2833, 2841, 2848, 2858, 2869, 2892, 2900, 2915, 2922, 2935, 2943, 2985, 2994, 3007, 3015, 3028, 3038, 3101, 3110, 3124, 3132, 3147, 3154, 3169, 3176, 3218, 3225, 3239, 3248, 3263, 3270, 3334, 3348, 3356, 3364, 3370, 3382, 3393, 3442, 3506, 3558, 3595, 3611, 3624, 3674, 3739, 3791, 3829, 3839, 3845, 3852, 3859, 3908, 3972, 4024, 4059, 4075, 4089, 4137, 4203, 4256, 4292, 4304, 4314, 4320, 4336, 4344, 4357, 4364, 4380, 4391, 4399], [119, 97, 100, 119, 115, 119, 100, 97, 100, 119, 115, 119, 119, 97, 100, 97, 119, 100, 97, 119, 100, 97, 119, 100, 97, 119, 100, 119, 119, 115, 119, 97, 97, 119, 119, 97, 100, 97, 119, 100, 119, 97, 119, 100, 119, 119, 97, 100, 97, 100, 119, 119, 97, 100, 119, 97, 100, 100, 97, 119, 100, 100, 119, 97, 97, 119, 100, 119, 119, 97, 119, 119, 119, 100, 100, 115, 115, 97, 100, 97, 97, 119, 100, 119, 97, 119, 100, 119, 97, 119, 100, 100, 100, 115, 115, 97, 97, 119, 100, 100, 119, 119, 119, 97, 97, 100, 119, 119, 119, 119, 97, 115, 115, 115, 100, 119, 119, 97, 100, 119, 97, 100, 97, 119, 115, 119, 97, 100, 97, 119, 100, 97, 97, 119, 100, 97, 115, 100, 119, 97, 100, 97, 100, 119, 97, 97, 100, 97, 119, 119, 119, 119, 119, 115, 97, 100, 97, 100, 119, 97, 100, 119, 119, 97, 100, 97, 119, 100, 97, 119, 100, 119, 119, 119, 119, 97, 100, 100, 119, 119, 119, 97, 119, 119, 100, 100, 119, 119, 97, 119, 119, 100, 119, 119, 97, 97, 115, 115, 100, 100, 97, 119, 100, 119, 119, 97, 97, 119, 119, 100, 119, 119, 119, 119, 97, 100, 97, 97, 100, 100, 119, 119, 97, 119, 119, 100, 119, 119, 97, 119, 119, 119, 100, 119, 119, 115, 119, 119, 100, 97, 97, 100, 119, 115, 115, 119, 100, 97, 97, 100, 119, 97, 97, 119, 100, 119, 97, 100, 100, 97, 97, 100, 119, 115, 97, 100, 100, 119, 119, 115, 119, 119, 97, 100, 97, 119, 115, 119, 97, 100, 97, 100, 119, 119, 115, 119, 97, 100, 97, 119, 115, 119, 97, 100, 97, 119, 119, 100, 97, 119, 100, 119, 119]);
}
function loadSong5() {
song.setProperties("FICTIONAL REALITY", "XERXES-SANGCO", 0, 3, 2700, "song5", 8, [18, 24, 38, 47, 53, 60, 73, 81, 98, 105, 111, 118, 134, 142, 156, 166, 172, 179, 194, 202, 217, 224, 233, 239, 253, 267, 275, 285, 292, 298, 312, 321, 336, 344, 352, 359, 373, 382, 396, 402, 416, 431, 451, 458, 473, 489, 514, 520, 534, 548, 570, 579, 593, 607, 621, 627, 638, 645, 651, 658, 671, 680, 696, 703, 710, 718, 731, 740, 756, 763, 770, 778, 793, 802, 815, 824, 833, 839, 854, 868, 878, 893, 909, 930, 939, 953, 968, 988, 997, 1012, 1026, 1049, 1057, 1071, 1087, 1108, 1117, 1131, 1139, 1148, 1166, 1175, 1193, 1209, 1228, 1235, 1252, 1267, 1288, 1296, 1313, 1318, 1328, 1342, 1348, 1358, 1366, 1374, 1380, 1395, 1401, 1417, 1423, 1431, 1439, 1455, 1462, 1476, 1483, 1490, 1498, 1506, 1518, 1527, 1541, 1547, 1556, 1564, 1577, 1589, 1600, 1609, 1615, 1623, 1637, 1646, 1661, 1669, 1676, 1683, 1700, 1708, 1715, 1733, 1738, 1745, 1759, 1766, 1773, 1787, 1794, 1802, 1816, 1825, 1833, 1848, 1856, 1864, 1879, 1886, 1894, 1909, 1917, 1925, 1934, 1944, 1950, 1956, 1965, 1976, 1984, 1992, 2002, 2010, 2019, 2030, 2037, 2045, 2051, 2068, 2076, 2090, 2100, 2108, 2114, 2126, 2133, 2142, 2151, 2161, 2168, 2175, 2200, 2309, 2320, 2328, 2334, 2340, 2355, 2363, 2377, 2384, 2391, 2398, 2414, 2422, 2436, 2444, 2451, 2459, 2474, 2482, 2496, 2505, 2511, 2519, 2540, 2547, 2557, 2565, 2571, 2578, 2596, 2604, 2618, 2625, 2632, 2640, 2645], [119, 119, 100, 119, 97, 119, 100, 119, 97, 119, 100, 119, 97, 119, 100, 115, 97, 119, 100, 97, 97, 119, 100, 115, 97, 100, 119, 97, 97, 100, 119, 97, 100, 115, 97, 119, 100, 119, 97, 97, 100, 97, 115, 97, 100, 119, 97, 100, 115, 119, 97, 100, 100, 97, 97, 119, 100, 119, 119, 97, 115, 97, 100, 115, 97, 100, 119, 119, 97, 100, 119, 119, 115, 100, 97, 100, 97, 119, 119, 97, 119, 115, 119, 119, 115, 100, 97, 119, 119, 115, 100, 97, 100, 100, 119, 97, 119, 100, 119, 97, 97, 119, 100, 119, 119, 119, 97, 100, 119, 97, 100, 119, 119, 115, 115, 97, 119, 119, 97, 119, 119, 100, 119, 119, 119, 119, 119, 100, 115, 97, 119, 119, 100, 119, 119, 119, 115, 97, 97, 119, 119, 119, 100, 119, 119, 97, 115, 100, 100, 119, 97, 100, 100, 119, 97, 119, 100, 119, 97, 119, 97, 100, 119, 97, 115, 100, 119, 97, 100, 100, 119, 97, 100, 97, 97, 119, 100, 119, 97, 119, 119, 100, 119, 119, 97, 100, 115, 97, 100, 119, 119, 100, 119, 97, 97, 100, 97, 97, 119, 119, 119, 97, 100, 97, 100, 115, 115, 97, 119, 100, 97, 115, 100, 119, 97, 100, 100, 119, 97, 97, 119, 100, 119, 97, 119, 100, 119, 97, 100, 119, 119, 97, 100, 100, 97, 97, 100, 115, 100]);
}
function loadSong6() {
song.setProperties("DEPENDANCY", "XENOGENOCIDE", 0, 3, 5900, "song6", 8, [125, 133, 141, 148, 154, 163, 173, 182, 190, 199, 207, 217, 227, 236, 246, 255, 264, 272, 280, 285, 294, 302, 311, 320, 329, 335, 344, 350, 359, 368, 378, 387, 395, 404, 411, 417, 424, 433, 442, 451, 458, 467, 475, 480, 489, 498, 506, 515, 524, 532, 539, 544, 554, 563, 572, 582, 591, 599, 607, 612, 620, 630, 638, 647, 656, 663, 672, 678, 689, 704, 713, 720, 736, 745, 761, 770, 778, 786, 803, 810, 827, 836, 843, 851, 867, 875, 891, 900, 908, 916, 933, 941, 958, 967, 974, 982, 997, 1024, 1033, 1040, 1047, 1063, 1071, 1089, 1098, 1106, 1113, 1127, 1138, 1154, 1162, 1172, 1201, 1220, 1229, 1236, 1245, 1269, 1274, 1280, 1284, 1295, 1301, 1310, 1337, 1343, 1352, 1359, 1366, 1376, 1401, 1407, 1415, 1424, 1431, 1440, 1464, 1472, 1482, 1490, 1497, 1506, 1531, 1536, 1546, 1555, 1572, 1597, 1607, 1617, 1623, 1629, 1638, 1662, 1673, 1681, 1687, 1695, 1704, 1718, 1724, 1732, 1739, 1747, 1754, 1760, 1770, 1778, 1786, 1797, 1807, 1816, 1824, 1835, 1842, 1851, 1857, 1869, 1880, 1890, 1899, 1908, 1917, 1928, 1937, 1947, 1965, 1973, 1982, 1989, 2007, 2014, 2022, 2029, 2049, 2055, 2074, 2084, 2095, 2118, 2140, 2152, 2160, 2183, 2202, 2212, 2220, 2227, 2250, 2274, 2283, 2290, 2315, 2341, 2350, 2357, 2375, 2383, 2403, 2413, 2422, 2440, 2465, 2474, 2481, 2489, 2511, 2528, 2538, 2546, 2553, 2577, 2591, 2599, 2605, 2612, 2619, 2643, 2656, 2666, 2671, 2677, 2684, 2718, 2724, 2734, 2744, 2751, 2772, 2783, 2798, 2808, 2816, 2840, 2864, 2872, 2881, 2905, 2927, 2937, 2946, 2971, 2994, 3003, 3012, 3036, 3062, 3069, 3076, 3100, 3126, 3135, 3142, 3166, 3190, 3200, 3207, 3224, 3234, 3249, 3258, 3268, 3275, 3289, 3297, 3308, 3318, 3329, 3342, 3353, 3364, 3376, 3387, 3399, 3411, 3422, 3434, 3445, 3457, 3469, 3479, 3491, 3502, 3516, 3526, 3537, 3548, 3559, 3570, 3582, 3593, 3604, 3616, 3628, 3639, 3651, 3664, 3674, 3686, 3697, 3709, 3715, 3720, 3726, 3732, 3743, 3754, 3760, 3766, 3772, 3778, 3789, 3799, 3806, 3813, 3819, 3825, 3836, 3846, 3852, 3858, 3864, 3870, 3880, 3891, 3897, 3903, 3908, 3916, 3927, 3937, 3942, 3949, 3955, 3961, 3972, 3982, 3990, 3996, 4002, 4008, 4020, 4031, 4042, 4053, 4065, 4076, 4087, 4099, 4111, 4123, 4134, 4146, 4156, 4168, 4179, 4190, 4202, 4213, 4224, 4235, 4247, 4259, 4271, 4282, 4293, 4305, 4316, 4327, 4338, 4346, 4353, 4362, 4369, 4379, 4519, 4532, 4541, 4549, 4553, 4561, 4570, 4585, 4591, 4599, 4608, 4618, 4638, 4646, 4652, 4658, 4666, 4676, 4686, 4694, 4704, 4716, 4723, 4730, 4739, 4748, 4757, 4766, 4782, 4791, 4815, 4824, 4831, 4855, 4882, 4890, 4898, 4922, 4946, 4955, 4963, 4988, 5013, 5020, 5029, 5053, 5078, 5086, 5093, 5118, 5143, 5151, 5160, 5183, 5208, 5217, 5225, 5249, 5272, 5282, 5289, 5316, 5331, 5341, 5348, 5356, 5380, 5390, 5401, 5405, 5412, 5422, 5447, 5462, 5471, 5480, 5487, 5512, 5527, 5536, 5543, 5551, 5577, 5592, 5600, 5609, 5618, 5644, 5659, 5668, 5676, 5684, 5711, 5725, 5735, 5742, 5751, 5776, 5788, 5797, 5807, 5816], [97, 100, 97, 119, 119, 100, 97, 119, 119, 100, 119, 119, 100, 119, 119, 119, 97, 119, 119, 97, 119, 100, 119, 115, 100, 119, 97, 119, 100, 115, 119, 119, 97, 119, 100, 119, 97, 119, 119, 115, 115, 97, 100, 100, 119, 97, 100, 97, 119, 100, 119, 97, 119, 97, 115, 119, 119, 100, 97, 97, 119, 119, 97, 97, 100, 119, 97, 115, 100, 119, 100, 119, 97, 100, 119, 119, 119, 100, 97, 115, 97, 119, 100, 119, 97, 119, 100, 97, 115, 115, 115, 97, 100, 119, 119, 97, 119, 100, 97, 119, 119, 97, 119, 100, 119, 97, 119, 100, 115, 97, 100, 100, 119, 119, 97, 119, 119, 119, 100, 119, 119, 100, 97, 97, 119, 100, 97, 97, 100, 100, 115, 100, 97, 100, 97, 97, 119, 119, 100, 97, 97, 100, 97, 97, 119, 119, 100, 97, 115, 119, 119, 97, 119, 100, 119, 119, 119, 97, 119, 97, 115, 100, 119, 97, 119, 119, 119, 119, 100, 119, 97, 115, 115, 119, 119, 100, 100, 119, 119, 100, 100, 100, 97, 119, 100, 97, 119, 97, 119, 100, 97, 119, 100, 119, 97, 115, 100, 97, 119, 97, 100, 115, 115, 119, 119, 97, 100, 119, 119, 97, 119, 100, 100, 97, 119, 100, 100, 97, 97, 119, 100, 97, 97, 119, 119, 100, 119, 119, 97, 119, 119, 100, 100, 119, 119, 119, 119, 97, 100, 97, 119, 119, 119, 115, 115, 119, 119, 97, 100, 97, 97, 119, 119, 97, 119, 100, 119, 97, 119, 119, 100, 115, 100, 119, 97, 97, 119, 119, 119, 97, 97, 119, 100, 119, 100, 119, 97, 119, 119, 119, 119, 119, 119, 97, 100, 100, 119, 97, 97, 100, 119, 119, 97, 115, 100, 119, 119, 97, 115, 100, 100, 119, 97, 119, 119, 100, 97, 100, 119, 119, 115, 115, 119, 97, 100, 100, 119, 97, 119, 119, 100, 119, 119, 119, 119, 97, 97, 115, 100, 119, 97, 119, 119, 119, 97, 100, 119, 119, 119, 115, 97, 119, 119, 119, 100, 119, 119, 97, 119, 119, 100, 119, 97, 119, 119, 119, 119, 115, 119, 97, 100, 119, 119, 115, 97, 100, 119, 119, 97, 115, 100, 119, 97, 119, 119, 119, 119, 100, 100, 97, 119, 115, 119, 119, 100, 97, 100, 119, 119, 115, 115, 97, 119, 119, 119, 100, 97, 119, 119, 119, 100, 119, 97, 97, 119, 119, 119, 97, 119, 100, 100, 119, 97, 100, 100, 115, 119, 119, 100, 119, 115, 97, 100, 119, 115, 97, 100, 115, 97, 100, 115, 97, 97, 115, 100, 119, 97, 100, 119, 119, 115, 97, 100, 119, 115, 97, 115, 100, 119, 97, 100, 119, 119, 97, 100, 115, 115, 100, 97, 119, 100, 97, 119, 97, 119, 119, 100, 115, 100, 97, 97, 119, 100, 97, 115, 119, 119, 100, 97, 100, 97, 119, 97, 97, 100, 97, 119, 115, 97, 100, 100, 119, 97, 119, 119, 115, 97]);
}
var savefile = SharedObject.getLocal("riffoff");
i = 1;
while (i < 7) {
if (savefile.data["lvl" + i] == undefined) {
savefile.data["lvl" + i] = 0;
savefile.flush();
}
this["lvl" + i] = savefile.data["lvl" + i];
i++;
}
var beatenGame = false;
if (lvl6 > 0) {
beatenGame = true;
}
var music = new Sound();
var meter = 0;
var timeStep = 0;
var beats = 0;
var breakingPoint = 0;
var checkPoint = 0;
var startTime = 0;
var speed = 0;
var avgFrameRate = 0;
var prevRate = 0;
var combo = 0;
var keyPressable = true;
var keyNum = null;
var focusID = 0;
var multiplier = 0;
var cLevel = 0;
var rank2 = new Array(3000, 6000, 4500, 14000, 13500, 30000);
var rank3 = new Array(4000, 9000, 6000, 16000, 15000, 33000);
var rank4 = new Array(5500, 10500, 8000, 21000, 18500, 38000);
var rank5 = new Array(6500, 13500, 9000, 25000, 21000, 44000);
var rank = 0;
Frame 3
stop();
findRanks();
stopAllSounds();
b1.onPress = function () {
cLevel = 1;
play();
};
b2.onPress = function () {
if (!x2._visible) {
cLevel = 2;
play();
}
};
b3.onPress = function () {
if (!x3._visible) {
cLevel = 3;
play();
}
};
b4.onPress = function () {
if (!x4._visible) {
cLevel = 4;
play();
}
};
b5.onPress = function () {
if (!x5._visible) {
cLevel = 5;
play();
}
};
b6.onPress = function () {
if (!x6._visible) {
cLevel = 6;
play();
}
};
creditsButton.onPress = function () {
gotoAndStop ("credits");
};
Frame 4
stop();
var song = new Song();
loadSong(cLevel);
music.attachSound(song.myFile);
music.start();
initialize();
onEnterFrame = function () {
timeStep = Math.floor((getTimer() - startTime) / 33.333);
layOver();
setAvgFrameRate();
speed = Math.round(song.mySpeed + ((30 - avgFrameRate) / 2));
keyCheck();
addBeats();
actBeats();
song.checkStreak();
};
onMouseDown = function () {
};
Frame 5
removeScreen();
scoreScreenInitialize();
findSongRank(cLevel, song.myScore);
ranker = rank + "/5";
stop();
if (song.myScore > savefile.data["lvl" + cLevel]) {
savefile.data["lvl" + cLevel] = song.myScore;
this["lvl" + cLevel] = song.myScore;
}
savefile.flush();
menuButton.onPress = function () {
if (cLevel == 6) {
if (!beatenGame) {
beatenGame = true;
gotoAndStop ("credits");
} else {
gotoAndStop ("menu");
}
} else {
gotoAndStop ("menu");
}
};
Frame 6
stop();
stopAllSounds();
backMusic = new Sound(this);
backMusic.attachSound("song5");
backMusic.start(0, 1);
Symbol 24 MovieClip [Beat] Frame 1
#initclip 3
Object.registerClass("Beat", Beat);
#endinitclip
stop();
Symbol 24 MovieClip [Beat] Frame 2
stop();
Symbol 24 MovieClip [Beat] Frame 3
stop();
Symbol 24 MovieClip [Beat] Frame 4
stop();
Symbol 24 MovieClip [Beat] Frame 10
this.removeMovieClip();
Symbol 27 MovieClip [redFlash] Frame 10
this.removeMovieClip();
Symbol 148 MovieClip Frame 141
gotoAndPlay ("bb");
Symbol 210 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 258 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 278 MovieClip Frame 40
stop();
Symbol 290 Button
on (press) {
_root.play();
}
Symbol 291 Button
on (press) {
play();
}
Instance of Symbol 276 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (load) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("play_button");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 294 MovieClip Frame 130
stop();
Symbol 294 MovieClip Frame 154
_root.play();
Symbol 398 MovieClip [__Packages.Beat] Frame 0
class Beat extends MovieClip
{
var gotoAndStop, _name, _currentframe, _y, _xscale, _yscale, gotoAndPlay, removeMovieClip;
function Beat () {
super();
pos = 1;
}
function setDirection(num) {
if (num == 119) {
dir = 0;
} else if (num == 100) {
dir = 1;
} else if (num == 115) {
dir = 2;
} else {
dir = 3;
}
gotoAndStop(dir + 1);
_root.beatSelfScript(_name, 1);
}
function act() {
if (_currentframe == (dir + 1)) {
_y = _y + (_root.speed * pos);
_xscale = (_yscale = pos * 100);
if ((_root.focusID == tag) && (_y > (_root.checkPoint - 20))) {
_root.beatSelfScript(_name, 0);
}
if (((_root.focusID == tag) && (_y > _root.checkPoint)) && (_root.keyNum != null)) {
checkHit();
} else if (_y > _root.breakingPoint) {
miss();
}
}
}
function hit() {
_root.focusID++;
gotoAndPlay("explode");
_root.combo++;
_root.scored();
if (_root.meter < 99) {
_root.meter = _root.meter + 2;
} else {
_root.meter = 100;
}
}
function miss() {
_root.focusID++;
_root.song.myStreak = 0;
_root.attachMovie("redFlash", "redFlash", 1000);
_root.redFlash._x = Stage.width / 2;
_root.redFlash._y = Stage.height / 2;
_root.redFlash._width = Stage.width;
_root.redFlash._height = Stage.height;
if (_root.meter > 5) {
_root.meter = _root.meter - 5;
} else {
_root.meter = 1;
}
removeMovieClip();
}
function checkHit() {
if (_root.keyNum == dir) {
hit();
} else {
miss();
}
}
var dir = 0;
var pos = 0;
var tag = 0;
}
Symbol 399 MovieClip [__Packages.Song] Frame 0
class Song
{
function Song () {
}
function setProperties(nam, art, sco, del, end, fil, spe, pat, dir) {
myName = nam;
myArtist = art;
myScore = sco;
myDelay = del;
myEndTime = end;
myFile = fil;
mySpeed = spe;
myPattern = pat;
myDirections = dir;
}
function checkStreak() {
if (myHighStreak < myStreak) {
myHighStreak = myStreak;
}
}
function partTrack() {
var _local2 = 0;
while (_local2 < (myPattern.length - 1)) {
if ((myPattern[_local2 + 1] - myPattern[_local2]) < 5) {
myPattern[_local2 + 1] = myPattern[_local2 + 1] + 5;
}
_local2++;
}
}
var myName = "";
var myArtist = "";
var myScore = 0;
var myStreak = 0;
var myHighStreak = 0;
var myDelay = 0;
var myEndTime = 0;
var myFile = "";
var mySpeed = 0;
var myPattern = new Array();
var myDirections = new Array();
}
Symbol 397 MovieClip Frame 1009
_root.gotoAndStop("menu");