Frame 1
stop();
Frame 2
MochiAd.showInterLevelAd({id:"6ae86d16acdb131b", res:"550x400"});
Frame 3
stop();
_quality = "medium";
_global.savefile = SharedObject.getLocal("KMR");
if (savefile.data.hicombo == undefined) {
_global.bgon = false;
_global.reggfx = true;
_global.arrowStyle = 2;
_global.highestcombo = 0;
_global.totalsongspl = 0;
_global.hiscore = 0;
_global.totalsongspas = 0;
_global.totalsongsfai = 0;
_global.taoperaq = 0;
_global.taobadaq = 0;
} else {
_global.highestcombo = savefile.data.hicombo;
_global.totalsongspl = savefile.data.TSP;
_global.hiscore = savefile.data.hiscore;
_global.totalsongspas = savefile.data.TSPas;
_global.totalsongsfai = savefile.data.TSF;
_global.taoperaq = savefile.data.TAOPA;
_global.taobadaq = savefile.data.TAOBA;
_global.bgon = savefile.data.BG;
_global.reggfx = savefile.data.GFX;
_global.arrowStyle = savefile.data.aS;
}
_global.combos = new Array();
_global.pass = true;
_global.diffi = 1;
_global.w = 1;
_global.pe = 0;
_global.gr = 0;
_global.go = 0;
_global.al = 0;
_global.ba = 0;
_global.sScore = 0;
_global.totarr = 0;
_global.currcombo = 0;
_global.speedracer = 1;
_global.highest = 0;
Frame 4
stop();
select = 1;
keydown = Key.isDown;
onEnterFrame = function () {
if (freeplay.hitTest(_xmouse, _ymouse, true)) {
select = 1;
if (keydown(1)) {
gotoAndStop (9);
}
}
if (instructions.hitTest(_xmouse, _ymouse, true)) {
select = 2;
if (keydown(1)) {
gotoAndStop (8);
}
}
if (options.hitTest(_xmouse, _ymouse, true)) {
select = 3;
if (keydown(1)) {
gotoAndStop (6);
}
}
if (creds.hitTest(_xmouse, _ymouse, true)) {
select = 4;
if (keydown(1)) {
gotoAndStop (7);
}
}
if (stats.hitTest(_xmouse, _ymouse, true)) {
select = 5;
if (keydown(1)) {
gotoAndStop (5);
}
}
godown = new Object();
godown.onKeyDown = function () {
if (!godown.down) {
if (keydown(83) or keydown(40)) {
godown.down = true;
if (select < 4) {
select = select + 1;
} else if (select > 6) {
select = 5;
}
}
}
};
godown.onKeyUp = function () {
if ((!keydown(83)) or (!keydown(40))) {
godown.down = false;
}
};
Key.addListener(godown);
goup = new Object();
goup.onKeyDown = function () {
if (!goup.down) {
if (keydown(87) or keydown(38)) {
goup.down = true;
if (select > 1) {
select = select - 1;
} else if (select < 0) {
select = 1;
}
}
}
};
goup.onKeyUp = function () {
if ((!keydown(87)) or (!keydown(38))) {
goup.down = false;
}
};
Key.addListener(goup);
if (select == 1) {
_root.instructions.gotoAndStop(1);
_root.options.gotoAndStop(1);
_root.creds.gotoAndStop(1);
_root.stats.gotoAndStop(1);
_root.freeplay.play();
if (keydown(32)) {
gotoAndStop (9);
}
}
if (select == 2) {
_root.freeplay.gotoAndStop(1);
_root.options.gotoAndStop(1);
_root.creds.gotoAndStop(1);
_root.stats.gotoAndStop(1);
_root.instructions.play();
if (keydown(32)) {
gotoAndStop (8);
}
}
if (select == 3) {
_root.freeplay.gotoAndStop(1);
_root.instructions.gotoAndStop(1);
_root.creds.gotoAndStop(1);
_root.stats.gotoAndStop(1);
_root.options.play();
if (keydown(32)) {
gotoAndStop (6);
}
}
if (select == 4) {
_root.freeplay.gotoAndStop(1);
_root.instructions.gotoAndStop(1);
_root.options.gotoAndStop(1);
_root.stats.gotoAndStop(1);
_root.creds.play();
if (keydown(32)) {
gotoAndStop (7);
}
}
if (select == 5) {
_root.freeplay.gotoAndStop(1);
_root.instructions.gotoAndStop(1);
_root.options.gotoAndStop(1);
_root.creds.gotoAndStop(1);
_root.stats.play();
if (keydown(32)) {
gotoAndStop (5);
}
}
};
Frame 5
function onEnterFrame() {
if (Key.isDown(8)) {
gotoAndStop (4);
}
}
stop();
Frame 6
function onEnterFrame() {
_root.SC.text = _global.speedracer;
if (Key.isDown(8)) {
gotoAndStop (4);
}
}
stop();
Frame 7
function onEnterFrame() {
if (Key.isDown(8)) {
gotoAndStop (4);
}
}
stop();
Frame 8
function onEnterFrame() {
if (Key.isDown(8)) {
gotoAndStop (4);
}
}
stop();
Frame 9
function addSong() {
newsong = _root.attachMovie("songHolder", "song" + sAmt, sAmt);
newsong._y = ySpot;
newsong._x = xSpot;
newsong.songname.text = allSongs[z];
totalSongs.push(sAmt);
sAmt++;
ySpot = ySpot + newsong._height;
}
z = (s = 0);
ySpot = 149;
xSpot = 425;
sAmt = 0;
_global.sScore = 0;
_global.pass = true;
_global.combos = new Array();
controlbar.swapDepths(1000);
var allSongs = new Array("Random", "In Dream", "*+*VG*+*Ravin' Love*+*VG*+*", "Popcorn Remix", "Euphorium", "Kirjotaa", "Lift Off Original", "Overload", "Music Of The Future");
var songAuthor = new Array("", "Dimrain47", "DJ-DaVinster", "guXit", "EON", "ADE", "wolf-tech", "andrew_parker", "A-New-Decade");
var BGColor = new Array("Pink", "Orange", "Green", "Red", "Pink", "Grey", "Yellow", "Purple", "White");
var totalSongs = new Array();
z = 0;
while (z < _root.allSongs.length) {
addSong();
z++;
}
var mouseListener = new Object();
mouseListener.onMouseWheel = function (delta) {
divideDelta = delta / Math.abs(delta);
w = w - divideDelta;
if (w > (totalSongs.length - 1)) {
w = 0;
}
if (w < 0) {
w = totalSongs.length - 1;
}
};
Mouse.addListener(mouseListener);
onEnterFrame = function () {
_root.sInfo.Author.text = songAuthor[w];
_root.sInfo.Name.text = allSongs[w];
_root.sInfo.gotoAndStop(BGColor[w]);
if (w > (totalSongs.length - 1)) {
w = 0;
}
if (w < 0) {
w = totalSongs.length - 1;
}
if (_root["song" + w]._y < 200) {
s = 0;
while (s < totalSongs.length) {
_root["song" + s]._y = _root["song" + s]._y + _root["song" + s]._height;
s++;
}
} else if (_root["song" + w]._y > 200) {
s = 0;
while (s < totalSongs.length) {
_root["song" + s]._y = _root["song" + s]._y - _root["song" + s]._height;
s++;
}
}
if (Key.isDown(37) && (!leftIsDown)) {
w = w + 1;
}
if (Key.isDown(37)) {
leftIsDown = true;
} else {
leftIsDown = false;
}
if (Key.isDown(39) && (!rightIsDown)) {
w = w - 1;
}
if (Key.isDown(39)) {
rightIsDown = true;
} else {
rightIsDown = false;
}
if (Key.isDown(16) && (w != 0)) {
gotoAndStop(_root["song" + w].songname.text);
} else if (Key.isDown(16) && (w == 0)) {
w = random(totalSongs.length - 1);
gotoAndStop(_root["song" + w].songname.text);
}
if (Key.isDown(8) && (!backIsDown)) {
gotoAndStop (4);
}
if (Key.isDown(8)) {
backIsDown = true;
} else {
backIsDown = false;
}
};
Frame 10
gotoAndStop (9);
Frame 11
function genStep(type) {
var _local1 = attachMovie("step", "step" + frame, frame++, {_x:set._x, _y:initY});
_local1.type = type;
_local1.listenSet = set;
_local1.speed = stepSpeed;
}
function main() {
if ((((getTimer() - initTime) + travelTime) >= songArrows[frame]) && (songArrows[frame] != SONG_END)) {
genStep(steps[frame]);
}
if (frame >= (steps.length - 1)) {
_root.dCheck.play();
}
if (_root.balance.balbar.balmask._width < 5) {
_root.frame = _root.steps.length;
_global.pass = false;
_root.dCheck.gotoAndStop(201);
}
_root.score.text = _global.sScore;
_root.currC.text = _global.currcombo;
}
var perfect = new Array();
var great = new Array();
var good = new Array();
var almost = new Array();
var bad = new Array();
var normal = new Array(1, 4, 4, 1, 4, 2, 8, 4, 1, 2, 8, 4, 1, 2, 4, 4, 1, 1, 2, 8, 4, 1, 2, 8, 4, 1, 4, 2, 4, 8, 4, 1, 2, 8, 4, 10, 5, 1, 2, 8, 4, 1, 2, 4, 8, 1, 2, 8, 4, 4, 1, 2, 8, 8, 2, 2, 1, 4, 4, 1, 2, 8, 4, 1, 2, 8, 4, 10, 5, 1, 2, 8, 4, 4, 1, 2, 8, 4, 1, 4, 4, 1, 2, 8, 4, 1, 2, 8, 2, 1, 4, 8, 2, 1, 4, 8, 5, 10, 4, 1, 2, 8, 4, 1, 2, 8, 4, 5, 5, 1, 2, 8, 4, 1, 4, 4, 1, 2, 8, 4, 1, 2, 8, 4, 1, 2, 8, 4, 4, 1, 2, 2, 8, 8, 4, 1, 2, 8, 4, 1, 2, 2, 1, 4, 8, 2, 1, 4, 4, 1, 4, 2, 8,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 2, 2, 10, 8, 4, 4, 1, 2, 8, 4, 1, 4, 1, 4, 8, 2, 8, 8, 5, 4, 8, 4, 8, 2, 8, 4, 1, 4, 1, 2, 10, 5, 10, 10, 5, 8, 2, 8, 2, 8, 4, 1, 4, 1, 2, 8, 4, 1, 4, 1, 4, 8, 2, 2, 2, 2, 1, 2, 8, 2, 8, 2, 8, 8, 8, 4, 4, 8, 4, 4, 1, 2, 8, 8, 2, 8, 2, 1, 4, 4, 4, 8, 4, 8, 2, 2, 1, 2, 1, 2, 2, 1, 2, 8, 8, 4, 1, 4, 4, 1, 2, 8, 2, 8, 2, 8, 2, 1, 4, 4, 8, 4, 8, 2, 1, 8, 8, 1, 2, 8, 4, 8, 4, 10, 2, 8);
var steps = new Array();
var song = new Sound();
song.attachSound("idream");
song.start();
if (_global.diffi == 1) {
_root.dif.text = "Normal";
var trueSpeed = (5 * _global.speedracer);
} else {
_root.dif.text = "Hard";
var trueSpeed = (7 * _global.speedracer);
}
var frame = 0;
var stepSpeed = trueSpeed;
var initY = (Math.ceil(((Stage.height - set._y) / set._height) + 1) * set._height);
var travelTime = Math.floor((initY * 1000) / (stepSpeed * 40));
var SONG_END = 0;
if (diffi == 1) {
steps = normal;
} else {
steps = hard;
}
if (diffi == 1) {
var songArrows = [13323, 14458, 14710, 15972, 16277, 17514, 17922, 18199, 18907, 19464, 19716, 19842, 20775, 20951, 21204, 21430, 22466, 22619, 23098, 23380, 23588, 23840, 24092, 24394, 24622, 24848, 25302, 25655, 25958, 26109, 26364, 26493, 26825, 27077, 27229, 28010, 28240, 28493, 28771, 29023, 29224, 29476, 29804, 30233, 30510, 30944, 31148, 31451, 31930, 32208, 32359, 32739, 32966, 33168, 33647, 33850, 34332, 34533, 34714, 35496, 35823, 36100, 36378, 36680, 36958, 37439, 37766, 38172, 38550, 39010, 39315, 39720, 39972, 40199, 40655, 41008, 41285, 41538, 41790, 42142, 42293, 42773, 43050, 43454, 43731, 44159, 44514, 44918, 45321, 45651, 46030, 46359, 46636, 47119, 47447, 47775, 48153, 48405, 48865, 49193, 49521, 49848, 50201, 50479, 50958, 51235, 51491, 51819, 52248, 52600, 52903, 53281, 53609, 54014, 54418, 54771, 55048, 55426, 55857, 56210, 56615, 57094, 57447, 57876, 58279, 58607, 59035, 59441, 59844, 60197, 60651, 61080, 61434, 61916, 62296, 62701, 63105, 63508, 63939, 64319, 64773, 65176, 65480, 65886, 66241, 66622, 67002, 67483, 67836, 68266, 68720, 69124, 69452, 69857, 70008, 70414, 70744, 71073, 71429, 71882, 72235, 72640, 72968, 73397, 73800, 74230, 74682, 75010, 75390, 75844, 76248, 76676, 77031, 77485, 78926, 79657, 81197, 81474, 81626, 82256, 82409, 82535, 82714, 82943, 83119, 83447, 83775, 83976, 84254, 84430, 84657, 84859, 85088, 85418, 85897, 86250, 86630, 86806, 86983, 87134, 87386, 87894, 88298, 88500, 88983, 89310, 89766, 90119, 90573, 91002, 91355, 91760, 92115, 92544, 93025, 93352, 93756, 94109, 94310, 94439, 94892, 95246, 95573, 95956, 96283, 96689, 96890, 97319, 97596, 98000, 98327, 98655, 99086, 99441, 99819, 100248, 100651, 101004, 101483, 101886, 102241, 102647, 103080, 103483, 103863, 104292, 104619, 105023, 105426, 105880, 106362, 108682, 109441, 109773, 109976, 110105, 110231, 110432, 110710, 110989, 111115, 111419, 111596, 111798, 112151, 112454, 112806, 113010, 113164, 113340, 113441, 113642, 113920, 114199, 114451, 114729, 115058, 115439, 115817, 116119, 116575, 116981, 117359, 117535, 117714, 117941, 118369, 118697, 119027, 119331, 119684, 119964, 120418, 120644, 121023, 121426, 121806, 122086, 122365, 122542, 122743, 123096, 123474, 123853, 124029, 124231, 124332, 124760, 125090, 125394, 125798, 126176, 126555, 126958, 127160, 127439, 127842, 128246, 128598, 129002, 129430, 129808, 130164, 130567, 130996, 131374, 131802, 132206, 132609, 133014, 133392, 133796, 134250, 134602, 135082, 135359, 135714, 135815, 136243, 136420, 136799, 137258, 137611, 137941, 138369, 138798, 139176, 139607, 139959, 140365, 140768, 141122, 141500, 141928, 142332, 142710, 143090, 143569, 143948, 144327, 144680, 145136, 145466, 145920, 146096, 146298, 146474, 146802, 147206, 147684, 265248, SONG_END];
} else {
var songArrows = [8518, 10034, 11603, 12989, 14602, 14774, 14862, 14905, 15907, 16210, 16518, 17430, 17692, 17905, 18075, 18905, 19337, 19514, 19690, 19819, 20778, 20946, 21165, 21257, 22430, 22606, 22649, 22736, 22821, 22905, 23426, 23686, 23989, 24165, 24386, 24606, 24821, 25033, 25253, 25384, 25602, 25734, 26386, 26650, 26862, 27121, 27342, 27737, 28121, 28474, 28737, 28989, 29161, 29334, 29510, 29774, 30030, 30161, 30426, 30558, 30734, 31033, 31165, 31382, 31514, 31734, 31905, 32169, 32258, 32610, 32741, 32917, 33091, 33091, 33134, 33353, 33785, 33961, 34270, 34486, 34697, 34829, 35005, 35354, 35613, 35917, 36446, 36842, 37106, 37239, 37501, 37722, 37855, 38550, 38770, 39036, 39118, 39421, 39554, 39774, 40033, 40209, 40342, 40474, 40650, 40821, 41033, 41209, 41430, 41778, 41989, 42211, 42337, 42550, 42682, 42814, 42946, 42989, 43077, 43297, 43342, 43386, 43473, 43649, 43649, 43821, 43862, 44121, 44385, 44426, 44646, 44734, 44905, 45077, 45293, 45466, 45598, 45774, 45905, 45946, 46121, 46297, 46516, 46646, 46734, 46905, 47033, 47210, 47342, 47518, 47694, 47821, 47989, 48211, 48253, 48386, 48606, 48734, 49033, 49474, 49862, 50206, 50646, 50821, 50993, 51169, 51346, 51785, 51873, 52005, 52182, 52358, 52577, 52797, 52930, 53106, 53278, 53446, 53621, 53793, 53926, 54146, 54362, 54665, 54974, 55106, 55278, 55405, 55756, 55930, 56102, 56234, 56405, 56533, 56665, 56797, 56974, 57106, 57194, 57321, 57405, 57577, 57837, 58146, 58190, 58364, 58577, 59018, 59150, 59324, 59454, 59674, 59806, 60026, 60154, 60329, 60550, 60682, 60726, 60902, 61073, 61423, 61817, 62297, 62430, 62650, 62778, 62946, 63077, 63212, 63386, 63821, 63989, 64206, 64514, 64734, 64989, 65382, 65513, 65686, 65862, 66207, 66558, 66905, 67077, 67253, 67389, 67606, 67821, 67989, 68209, 68342, 68650, 68864, 69077, 69342, 69518, 69737, 69904, 70253, 70602, 70734, 70989, 71165, 71386, 71778, 71905, 72121, 72602, 72734, 72989, 73165, 73426, 73821, 74253, 74342, 74476, 74650, 74989, 75165, 75342, 75563, 75821, 75989, 76209, 76296, 76646, 76734, 76947, 77212, 77475, 77946, 78386, 78821, 79253, 79650, 80036, 80430, 80778, 80946, 81121, 81297, 81514, 81734, 81905, 82210, 82430, 82562, 82737, 82946, 83077, 83253, 83430, 83606, 83778, 84077, 84211, 84386, 84558, 84645, 84946, 85165, 85339, 85862, 85946, 86121, 86253, 86430, 86554, 86730, 87342, 87602, 87690, 87905, 88033, 88253, 88650, 88905, 89077, 89253, 89518, 89694, 89862, 90211, 90342, 90476, 90694, 90905, 91033, 91205, 91470, 91862, 92253, 92694, 92869, 93134, 93354, 93529, 93784, 94222, 94440, 94570, 94741, 94962, 95402, 95489, 95842, 96237, 96618, 97013, 97226, 97487, 97882, 97970, 98234, 98362, 98533, 98753, 99017, 99489, 99577, 99753, 99882, 100102, 100362, 100489, 100793, 101014, 101405, 101665, 101842, 101974, 102106, 102278, 102489, 102621, 102974, 103405, 103577, 103753, 103886, 104062, 104237, 104577, 105018, 105234, 105446, 105709, 105886, 106241, 106285, 108737, 109386, 109778, 109946, 110154, 110594, 110941, 111285, 111461, 111634, 111725, 111898, 112070, 112197, 112550, 112638, 112902, 113033, 113121, 113207, 113334, 113510, 113810, 114197, 114550, 114682, 114814, 114989, 115121, 115297, 115386, 115821, 116249, 116382, 116514, 116646, 117033, 117342, 117778, 117946, 118121, 118253, 118430, 118606, 118989, 119426, 119639, 119814, 120253, 120606, 120989, 121077, 121253, 121470, 121690, 121905, 122165, 122430, 122474, 122649, 122989, 123165, 123342, 123518, 123694, 123821, 123946, 124122, 124297, 124606, 125033, 125386, 125518, 125694, 125825, 126220, 126392, 127050, 127226, 127270, 127446, 127492, 127753, 128237, 128237, 128756, 129014, 129362, 129405, 129621, 129842, 130061, 130234, 130362, 130533, 130753, 130930, 131194, 131405, 131665, 131709, 131930, 132106, 132278, 132621, 132926, 133010, 133362, 133489, 133575, 133749, 133970, 134191, 134321, 134487, 134697, 135089, 135089, 135304, 135346, 135478, 135829, 135961, 136089, 136222, 136570, 136741, 136873, 137094, 137270, 137489, 137842, 138194, 138278, 138364, 138533, 138753, 139062, 139194, 139321, 139489, 139709, 139973, 140102, 140278, 140577, 141018, 141405, 141533, 141753, 142194, 142321, 142533, 142711, 142889, 143062, 143237, 143405, 143577, 143749, 144186, 144577, 144665, 144753, 144886, 145106, 145405, 145797, 146146, 146275, 146489, 146624, 146886, 146971, 147146, 147405, 147800, 152321, SONG_END];
}
var iID = 0;
var initTime = getTimer();
iID = setInterval(main, 0);
Frame 12
function genStep(type) {
var _local1 = attachMovie("step", "step" + frame, frame++, {_x:set._x, _y:initY});
_local1.type = type;
_local1.listenSet = set;
_local1.speed = stepSpeed;
}
function main() {
if ((((getTimer() - initTime) + travelTime) >= songArrows[frame]) && (songArrows[frame] != SONG_END)) {
genStep(steps[frame]);
}
if (frame >= (steps.length - 1)) {
_root.dCheck.play();
}
if (_root.balance.balbar.balmask._width < 5) {
_root.frame = _root.steps.length;
_global.pass = false;
_root.dCheck.gotoAndStop(201);
}
_root.score.text = _global.sScore;
_root.currC.text = _global.currcombo;
}
var perfect = new Array();
var great = new Array();
var good = new Array();
var almost = new Array();
var bad = new Array();
var normal = new Array(1, 4, 8, 2, 1, 4, 8, 2, 1, 4, 4, 1, 2, 8, 4, 4, 1, 2, 8, 8, 8, 2, 1, 2, 2, 2, 1, 4, 4, 1, 4, 4, 8, 2, 1, 1, 1, 8, 4, 2, 4, 4, 4, 2, 2, 1, 8, 8, 1, 2, 4, 5, 1, 4, 8, 2, 2, 1, 4, 4, 1, 2, 2, 8, 4, 4, 1, 1, 2, 8, 2, 1, 4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2, 8, 8, 1, 4, 2, 8, 8, 8, 4, 1, 2, 4, 4, 1, 5, 1, 2, 8, 1, 4, 10, 10, 4, 1, 2, 8, 1, 4, 4, 1, 2, 8, 8, 1, 4, 2, 2, 1, 8, 4, 5, 5, 4, 1, 2, 8, 1, 4, 10, 10, 4, 1, 2, 8, 4, 4, 1, 1, 4, 4, 1, 4, 4, 4, 1, 1, 4, 4, 1, 1, 5, 10, 2, 1, 8, 10, 5, 10, 5, 10, 5, 5, 5, 1, 2, 8, 1, 4, 10, 2, 1, 8, 4, 1, 2, 2, 1, 4, 4, 1, 2, 2, 1, 4, 4, 1, 2, 8, 1, 4, 4, 4, 1, 2, 2, 1, 4, 8, 8, 1, 5, 10, 5, 10, 4, 1, 2, 8, 5);
var steps = new Array();
var song = new Sound();
song.attachSound("ravelove");
song.start();
if (_global.diffi == 1) {
_root.dif.text = "Normal";
var trueSpeed = (5 * _global.speedracer);
} else {
_root.dif.text = "Hard";
var trueSpeed = (7 * _global.speedracer);
}
var frame = 0;
var stepSpeed = trueSpeed;
var initY = (Math.ceil(((Stage.height - set._y) / set._height) + 1) * set._height);
var travelTime = Math.floor((initY * 1000) / (stepSpeed * 40));
var SONG_END = 0;
if (diffi == 1) {
steps = normal;
} else {
steps = hard;
}
if (diffi == 1) {
var songArrows = [17821, 19008, 20071, 20804, 22800, 23939, 25833, 26821, 27579, 28008, 28212, 28514, 29071, 29449, 29727, 29905, 30107, 30461, 30817, 31222, 31424, 31703, 31955, 32359, 32840, 33071, 33279, 33607, 34037, 34495, 34722, 34899, 35176, 35506, 35707, 36264, 36617, 36871, 37149, 37325, 37680, 38140, 38596, 38798, 39151, 39481, 40037, 40315, 40643, 40846, 41430, 41884, 42365, 42745, 43249, 43426, 43579, 43781, 44083, 44464, 44867, 45071, 45273, 45525, 45855, 46308, 46690, 46867, 47273, 47554, 48065, 48470, 48924, 49304, 49506, 49657, 50065, 50342, 50519, 50747, 50974, 51230, 51583, 51889, 52096, 52424, 52600, 52804, 53209, 53590, 53817, 53995, 54199, 54405, 54634, 55090, 55397, 55724, 58176, 59113, 60174, 60705, 61842, 62701, 62932, 63060, 63339, 63541, 63697, 63875, 64054, 64231, 64382, 64685, 64939, 65143, 65655, 65909, 66063, 66264, 66390, 66645, 66850, 67079, 67281, 67457, 67659, 67869, 68073, 68426, 68630, 68808, 68935, 69138, 69340, 69701, 69863, 70039, 70191, 70471, 70754, 71060, 71237, 71363, 71565, 71766, 72021, 72298, 72424, 72550, 72753, 72957, 73313, 73567, 73720, 73846, 74098, 74607, 74783, 74859, 75037, 75541, 75947, 76073, 76275, 76325, 76607, 76784, 77014, 77216, 77344, 77497, 77701, 78031, 78384, 78588, 78764, 78941, 79220, 79523, 79699, 79875, 80105, 80357, 80561, 80714, 80915, 81041, 81220, 81350, 81554, 81781, 82033, 82388, 82514, 82716, 82919, 83071, 83323, 83525, 83678, 83981, 84289, 84617, 84772, 84949, 85227, 85582, 85859, 86063, 86239, 86472, 86749, 87130, 87483, 87915, 88117, 88220, 88573, 88850, 89002, 89180, 89334, 89588, 90067, 90346, 90523, 90749, 91079, 91281, 91638, 91842, 92047, 92224, 92503, 92781, 93033, 93313, 93590, 93919, 94197, 94525, 94727, 95308, 95689, 95991, 96196, 96525, 96829, 97283, 97489, 97817, 98046, 98323, 98907, 99159, 99338, 99665, 99945, 100323, 100702, 100907, 101211, 101439, 101691, 102046, 102323, 102651, 102855, 103132, 103384, 103714, 104147, 104424, 104625, 104829, 105107, 105384, 105815, 106147, 106373, 106655, 106907, 107292, 107747, 109771, SONG_END];
} else {
var songArrows = [18305, 19395, 20071, 20775, 22437, 23737, 25895, 26753, 27583, 27791, 28129, 28467, 28701, 29016, 29587, 29816, 30075, 30255, 30697, 31399, 31633, 31997, 32151, 32489, 32827, 33061, 33347, 33581, 33818, 34103, 34546, 34831, 35067, 35303, 35873, 36133, 36575, 36805, 36987, 37221, 37532, 37895, 38259, 38571, 38827, 39061, 39474, 39785, 40070, 40274, 40792, 41051, 41257, 41489, 41697, 42295, 42659, 43125, 43411, 43619, 43853, 44086, 44295, 44789, 45255, 45697, 46373, 46556, 46817, 47233, 47597, 48117, 48558, 48895, 49180, 49545, 49883, 50224, 50405, 50609, 50789, 50971, 51154, 51467, 51727, 51961, 52221, 52461, 52669, 52953, 53213, 53629, 53812, 54019, 54279, 54593, 54749, 54932, 55140, 55449, 55993, 57213, 58254, 59289, 60224, 61055, 61755, 62743, 62899, 63263, 63573, 63729, 63937, 64092, 64301, 64717, 64823, 65083, 65266, 65395, 65603, 65890, 66123, 66305, 66513, 66773, 67058, 67397, 67579, 67707, 68019, 68253, 68617, 68825, 69058, 69187, 69421, 69733, 70071, 70253, 70487, 70825, 70979, 71266, 71474, 71629, 71837, 72148, 72509, 72717, 72951, 73211, 73317, 73682, 73890, 74097, 74333, 74775, 74957, 75113, 75347, 75947, 76155, 76391, 76575, 76808, 77145, 77587, 78211, 78367, 78523, 78757, 78885, 79093, 79407, 79795, 80185, 80393, 80625, 80883, 81247, 81427, 81713, 81997, 82281, 82489, 82724, 83219, 83350, 83531, 83687, 84076, 84544, 84727, 84935, 85169, 85919, 86151, 86593, 86983, 87269, 87633, 88019, 88799, 89186, 89549, 90379, 90719, 91707, 92071, 92383, 92799, 93239, 93629, 93993, 94435, 94875, 95239, 95551, 95837, 96227, 96434, 96873, 97289, 97474, 97759, 98123, 98409, 98721, 98953, 99161, 99474, 99837, 100229, 100567, 100879, 101165, 101399, 101607, 102049, 102281, 102566, 102799, 103135, 103369, 103603, 104279, 104593, 105243, 105841, 106464, 106775, 107087, 107401, 108182, SONG_END];
}
var iID = 0;
var initTime = getTimer();
iID = setInterval(main, 0);
Frame 13
function genStep(type) {
var _local1 = attachMovie("step", "step" + frame, frame++, {_x:set._x, _y:initY});
_local1.type = type;
_local1.listenSet = set;
_local1.speed = stepSpeed;
}
function main() {
if ((((getTimer() - initTime) + travelTime) >= songArrows[frame]) && (songArrows[frame] != SONG_END)) {
genStep(steps[frame]);
}
if (frame >= (steps.length - 1)) {
_root.dCheck.play();
}
if (_root.balance.balbar.balmask._width < 5) {
_root.frame = _root.steps.length;
_global.pass = false;
_root.dCheck.gotoAndStop(201);
}
_root.score.text = _global.sScore;
_root.currC.text = _global.currcombo;
}
var perfect = new Array();
var great = new Array();
var good = new Array();
var almost = new Array();
var bad = new Array();
var normal = new Array(2, 8, 4, 1, 2, 4, 1, 2, 2, 8, 4, 1, 4, 1, 2, 8, 4, 1, 4, 1, 2, 8, 4, 1, 4, 1, 4, 2, 1, 4, 8, 2, 1, 4, 10, 2, 1, 4, 8, 4, 1, 2, 5, 2, 1, 4, 8, 2, 1, 4, 8, 2, 1, 2, 8, 2, 8, 4, 1, 4, 1, 4, 1, 2, 8, 4, 1, 4, 1, 2, 8, 4, 1, 2, 10, 4, 1, 2, 8, 2, 1, 4, 8, 2, 1, 8, 2, 4, 1, 2, 8, 4, 5, 1, 2, 8, 4, 1, 2, 8, 2, 8, 4, 1, 2, 8, 4, 1, 4, 1, 2, 8, 4, 1, 2, 8, 8, 1, 2, 8, 4, 1, 2, 8, 1, 4, 1, 4, 5, 10, 2, 1, 4, 1, 4, 8, 2, 2, 1, 4, 1, 4, 8, 2, 1, 4, 8, 2, 1, 4, 8, 2, 1, 2, 8, 4, 1, 4, 1, 2, 8, 4, 1, 4, 1, 2, 1, 4, 1, 4, 10, 10, 10, 10, 10, 10, 4, 1, 2, 8, 4, 1, 4, 1, 2, 8, 4, 1, 4, 1, 2, 8, 4, 1, 2, 8, 4, 1, 4, 8, 2, 1, 10, 10, 5, 10, 2, 1, 4, 8, 2, 8, 2, 1, 4, 1, 2, 8, 4, 4, 8, 2, 1, 4, 8, 2, 1, 4, 8, 2, 8, 4, 8, 2, 1, 2, 1, 8, 1, 2, 10, 1, 2, 1, 4, 8, 2, 2, 8, 4, 4, 1, 2, 1, 4, 1, 4, 1, 4, 8, 2, 1, 4, 8, 2, 8, 2, 1, 4, 4, 1, 4, 1, 4, 1, 2, 8, 8, 2, 8, 2, 1, 4, 1, 4, 4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, 1, 5, 10, 4, 1, 2, 8, 5, 8, 2, 1, 5, 8, 2, 1, 4, 8, 2, 1, 8, 2, 4, 2, 4, 8, 1, 2, 10, 2, 1, 4, 8, 2, 1, 8, 2, 4, 2, 8, 2, 1, 2, 8, 2, 4, 1, 2, 8, 2, 1, 4, 8, 2, 1, 8, 2, 4, 2, 8, 1, 2, 8, 4, 1, 8, 2, 4, 1, 2, 8, 4, 1, 8, 2, 4, 1, 2, 8, 2, 1, 4, 8, 2, 8, 2, 1, 4, 8, 2, 8, 8, 10, 2, 1, 4, 8, 2, 1, 4, 5, 4, 8, 2, 1, 4, 2, 5, 1, 5, 10, 2, 1, 8, 4, 5, 2, 5, 10, 2, 1, 4, 2, 5, 8, 2, 1, 4, 2, 8, 2, 4, 1, 2, 5, 2, 8, 2, 4, 1, 2, 8, 4, 10, 10, 10, 4, 1, 2, 8, 4, 1, 2, 8, 4, 1, 2, 1, 2, 8, 4, 4, 1, 8, 8, 2, 4, 4, 1, 2, 10, 2, 1, 1, 4, 8, 2, 1, 4, 8, 2, 8, 2, 1, 4, 8, 2, 8, 2, 1, 4, 1, 4, 1, 2, 8, 2, 8, 2, 1, 4, 8, 2, 1, 8, 2, 4, 4, 2, 8, 1, 2, 8, 4, 8, 4, 1, 2, 1, 2, 8, 2, 8, 2, 8, 4, 1, 8, 2, 8, 2, 4, 1, 2, 2, 1, 2, 8, 8, 4, 8, 4, 8, 4, 1, 2, 2, 8, 2, 1, 4, 8, 2, 1, 4, 8, 2, 1, 8, 2, 4, 2, 8, 1, 2, 8, 4, 1, 8, 8, 2, 8, 2, 4, 1, 8, 8, 2, 4, 2, 2, 8, 2, 8, 2, 1, 4, 4, 8, 2, 2, 1, 8, 2, 2, 4, 1, 8, 8, 1, 8, 2, 4, 1, 8, 2, 10);
var steps = new Array();
var song = new Sound();
song.attachSound("popcorn");
song.start();
if (_global.diffi == 1) {
_root.dif.text = "Normal";
var trueSpeed = (6 * _global.speedracer);
} else {
_root.dif.text = "Hard";
var trueSpeed = (7 * _global.speedracer);
}
var frame = 0;
var stepSpeed = trueSpeed;
var initY = (Math.ceil(((Stage.height - set._y) / set._height) + 1) * set._height);
var travelTime = Math.floor((initY * 1000) / (stepSpeed * 40));
var SONG_END = 0;
if (diffi == 1) {
steps = normal;
} else {
steps = hard;
}
if (diffi == 1) {
var songArrows = [1900, 2178, 2406, 2533, 2760, 3188, 3390, 3592, 3844, 4070, 4303, 4484, 4913, 5090, 5318, 5524, 5728, 5881, 6234, 6360, 6537, 6739, 7092, 7293, 7419, 7596, 7671, 7875, 8409, 8636, 8812, 8966, 9192, 9344, 9621, 10129, 10306, 10508, 10684, 10810, 10936, 11012, 11289, 11768, 11894, 12096, 12249, 12426, 12554, 12909, 13035, 13186, 13312, 13464, 13995, 14121, 14249, 14478, 14630, 14884, 15211, 15362, 15539, 15741, 15942, 16119, 16245, 16396, 16877, 17028, 17207, 17358, 17484, 17661, 18090, 18518, 18669, 18846, 18974, 19125, 19226, 19428, 19732, 19858, 19984, 20161, 20362, 20640, 20741, 20942, 21068, 21270, 21650, 22054, 22232, 22409, 22587, 22714, 22865, 23041, 23243, 23724, 23900, 24052, 24228, 24382, 24558, 24684, 24810, 24911, 25090, 25242, 25621, 25749, 25951, 26102, 26382, 26709, 26835, 27037, 27192, 27394, 27522, 27783, 27909, 28110, 28262, 28312, 29499, 29524, 32052, 32329, 32709, 32860, 33062, 33243, 33396, 33625, 34182, 34434, 34636, 34787, 34966, 35117, 35369, 35906, 36108, 36335, 36461, 36688, 36966, 37117, 37243, 37370, 37852, 37978, 38104, 38283, 38461, 38789, 39268, 39522, 39724, 39876, 40056, 40258, 40535, 40638, 40991, 41041, 41344, 41749, 42178, 42608, 43037, 43440, 43869, 44071, 44275, 44577, 44728, 44854, 45033, 45134, 45512, 45688, 46041, 46142, 46369, 46419, 46698, 46825, 47001, 47127, 47380, 47711, 47888, 48014, 48169, 48346, 48550, 48600, 49054, 49761, 50216, 50594, 50949, 51176, 51302, 51581, 51707, 51783, 51959, 52362, 52489, 53043, 53245, 53476, 53705, 54591, 54844, 55045, 55172, 55375, 55577, 55804, 56386, 56587, 56714, 56865, 57344, 57470, 57596, 57774, 58278, 58406, 58558, 58759, 59012, 59163, 60375, 60829, 60957, 61083, 61236, 61489, 61615, 61816, 61993, 62144, 62320, 62448, 62626, 63188, 63415, 63592, 63768, 63970, 64096, 64451, 64577, 64753, 64880, 65336, 65438, 65615, 65791, 66194, 66320, 66802, 67003, 67207, 67409, 67585, 67711, 67913, 68392, 68745, 68922, 69125, 69327, 69656, 70136, 70314, 70440, 70844, 70970, 71325, 71476, 71602, 71754, 72161, 72312, 72492, 72871, 73150, 73582, 73875, 74127, 74354, 74684, 75214, 75516, 75797, 76050, 76302, 76503, 77010, 77262, 77413, 77590, 77791, 78194, 78320, 78524, 79028, 79232, 79436, 79869, 80045, 80476, 80678, 80906, 81108, 81312, 81566, 81995, 82249, 82451, 82652, 82906, 83058, 83188, 83667, 83873, 84050, 84201, 84482, 84659, 84835, 85138, 85264, 85440, 85566, 85768, 85974, 86176, 86428, 86656, 87161, 87766, 87942, 88068, 88320, 88396, 88600, 88953, 89130, 89358, 89535, 89711, 89890, 90117, 90672, 90875, 91052, 91228, 91380, 91709, 91888, 92015, 92144, 92625, 92827, 92981, 93157, 93409, 93712, 94476, 94678, 94856, 95058, 95335, 95890, 96092, 96293, 96474, 96678, 96957, 97512, 97714, 97840, 98092, 98293, 98701, 98827, 99003, 99258, 99661, 99812, 100014, 100194, 100575, 100978, 101106, 101359, 101535, 101736, 101913, 102115, 102518, 102669, 102846, 102974, 103327, 103503, 103630, 103758, 104236, 104388, 104514, 104690, 104843, 105020, 105527, 105703, 105856, 106612, 106764, 107194, 107348, 107827, 108005, 108210, 108466, 108669, 109001, 109563, 109725, 109859, 110068, 110320, 110524, 110802, 111333, 111535, 111686, 112045, 112198, 112350, 112552, 112678, 112880, 113184, 113362, 113489, 113665, 113846, 114075, 114302, 115110, 115514, 115690, 115842, 115942, 116422, 116625, 116827, 117028, 117232, 117384, 117560, 118316, 118442, 118644, 119125, 119251, 119453, 119959, 120087, 120266, 120392, 120594, 120999, 121075, 121707, 121915, 122167, 122344, 122646, 123203, 123457, 123734, 124089, 124417, 124974, 125226, 125478, 125707, 126035, 126287, 126514, 126993, 127119, 127272, 127449, 127625, 127802, 128283, 128484, 128636, 128915, 129142, 129268, 129419, 129596, 130026, 130228, 130432, 130634, 130860, 130986, 131163, 131289, 131894, 132022, 132224, 132703, 132829, 133033, 133486, 133638, 133840, 134293, 134419, 134556, 134785, 135314, 135440, 135617, 135818, 136020, 136451, 136577, 136778, 136983, 137360, 137512, 137640, 137841, 138018, 138144, 138550, 138701, 138827, 139003, 139130, 139286, 139766, 139894, 140022, 140148, 140325, 140678, 140804, 140932, 141083, 141260, 141412, 141665, 142852, SONG_END];
} else {
var songArrows = [2014, 2140, 2293, 2422, 2598, 2752, 3281, 3460, 3636, 3762, 3939, 4065, 4216, 4342, 4897, 5025, 5151, 5277, 5403, 5529, 5657, 6113, 6239, 6365, 6491, 6617, 6970, 7096, 7222, 7348, 7474, 7753, 7886, 8290, 8416, 8517, 8644, 8771, 8947, 9224, 9352, 9479, 9605, 10008, 10134, 10260, 10361, 10487, 10638, 10916, 11042, 11142, 11268, 11748, 11848, 11974, 12100, 12226, 12352, 12479, 12857, 12932, 13033, 13184, 13310, 13666, 13766, 13892, 14018, 14296, 14651, 14778, 15082, 15460, 15662, 15914, 16140, 16447, 17002, 17153, 17334, 17535, 17838, 17989, 18115, 18594, 18670, 18821, 18949, 19075, 19252, 19353, 19630, 19756, 19907, 20109, 20285, 20588, 20689, 20842, 20968, 21196, 21449, 21602, 21704, 22033, 22109, 22235, 22361, 22538, 22664, 22968, 23069, 23197, 23348, 23778, 23905, 24107, 24157, 24560, 24636, 24737, 24863, 24942, 25323, 25449, 25550, 25701, 25827, 25958, 26134, 26235, 26563, 26714, 26790, 26966, 27294, 27397, 27524, 27651, 27777, 27954, 28155, 28206, 28384, 28535, 28964, 29647, 29773, 29899, 32346, 32472, 32498, 32649, 32775, 32901, 33053, 33206, 33332, 33458, 34090, 34217, 34422, 34549, 34729, 35006, 35132, 35258, 35712, 35813, 35914, 36040, 36216, 36520, 36622, 36949, 37075, 37201, 37352, 37731, 37857, 38210, 38310, 38512, 38890, 38966, 39294, 39372, 39500, 39676, 39827, 40080, 40206, 40382, 40533, 40962, 41164, 41365, 41567, 41794, 42071, 42626, 42752, 42878, 43004, 43180, 43458, 43584, 43939, 44065, 44269, 44395, 44722, 44798, 44949, 45126, 45277, 45580, 46008, 46159, 46310, 46462, 46638, 46942, 47145, 47220, 47548, 47724, 47850, 48002, 48204, 48556, 48682, 48939, 49018, 49044, 49424, 49550, 49701, 49827, 50004, 50233, 50384, 50664, 50791, 50968, 51094, 51449, 51550, 51752, 51903, 52231, 52332, 52483, 52836, 52962, 53088, 53264, 53466, 53743, 53872, 54025, 54428, 54554, 54731, 54882, 55114, 55569, 55695, 55846, 55947, 56350, 56476, 56602, 56729, 57056, 57182, 57485, 57662, 57762, 58192, 58548, 58926, 59052, 59153, 59304, 59430, 60161, 60642, 60769, 60945, 60996, 61474, 61626, 61752, 61928, 61954, 62359, 62485, 62586, 63166, 63291, 63418, 63544, 63720, 63897, 64178, 64304, 64430, 64584, 64939, 65115, 65241, 65443, 65569, 65670, 65821, 65998, 66149, 66325, 66653, 66779, 66930, 67109, 67414, 67540, 67716, 67842, 68271, 68397, 68523, 68674, 68852, 69130, 69256, 69382, 69558, 69912, 70038, 70138, 70264, 70443, 70751, 70852, 71281, 71432, 71621, 71802, 72080, 72155, 72332, 72483, 72659, 72937, 73038, 73392, 73518, 73695, 73872, 74026, 74204, 74357, 74659, 75290, 75441, 75617, 75743, 75870, 76046, 76201, 76479, 77084, 77212, 77338, 77617, 77694, 78073, 78199, 78350, 78479, 78932, 79058, 79212, 79489, 79616, 79743, 79870, 80273, 80401, 80527, 80704, 80855, 81157, 81283, 81434, 81813, 82145, 82321, 82447, 82750, 82901, 83077, 83430, 83632, 83733, 84062, 84164, 84315, 84441, 84693, 84819, 84945, 85122, 85273, 85525, 85777, 85903, 86054, 86106, 86283, 86434, 86535, 86687, 86863, 87140, 87291, 87417, 87594, 87846, 87972, 88098, 88250, 88653, 88779, 89258, 89359, 89510, 89813, 89914, 90065, 90521, 90596, 90773, 90924, 91127, 91460, 91863, 91991, 92221, 92347, 92674, 92800, 93077, 93204, 93556, 93657, 94088, 94214, 94390, 94567, 94819, 95071, 95348, 95903, 96029, 96206, 96407, 96609, 96761, 97016, 97496, 97624, 97775, 97951, 98229, 98355, 98682, 98808, 98985, 99111, 99464, 99541, 99720, 99848, 100004, 100382, 100684, 101088, 101214, 101340, 101466, 101642, 101794, 101920, 102248, 102701, 102804, 102930, 103056, 103182, 103359, 103512, 103790, 104220, 104346, 104523, 104800, 104926, 105128, 105153, 105380, 105609, 105735, 105937, 106113, 106219, 106401, 106552, 106880, 106958, 107134, 107260, 107388, 107666, 107792, 107943, 108096, 108224, 108554, 108832, 108983, 109109, 109210, 109412, 109565, 109716, 109844, 110071, 110273, 110500, 110676, 110802, 110928, 111080, 111260, 111388, 111540, 111670, 111922, 112023, 112123, 112250, 112377, 112632, 112758, 112934, 113086, 113264, 113466, 113668, 113821, 114002, 114102, 114229, 115088, 115468, 115518, 115670, 115796, 115972, 116376, 116451, 116653, 116779, 116956, 117260, 117387, 117865, 117941, 118117, 118243, 118571, 118697, 119050, 119176, 119352, 119504, 119756, 119882, 120134, 120262, 120388, 120642, 120769, 120920, 121096, 121224, 121502, 121628, 121804, 121956, 122132, 122283, 122409, 122615, 122768, 123222, 123348, 123500, 123676, 123878, 124004, 124258, 124385, 124762, 124888, 125090, 125292, 125622, 125748, 126025, 126102, 126357, 126458, 126785, 126912, 127189, 127264, 127466, 127768, 127895, 128197, 128600, 128726, 129029, 129155, 129432, 129583, 129964, 130191, 130421, 130703, 130930, 131233, 131689, 131840, 131966, 132167, 132500, 132626, 132979, 133080, 133206, 133357, 133735, 133861, 134018, 134372, 134472, 134802, 134878, 135155, 135285, 135412, 135588, 135739, 136016, 136294, 136470, 136848, 137025, 137176, 137304, 137632, 137808, 138086, 138187, 138288, 138439, 138615, 138768, 138943, 139046, 139222, 139348, 139500, 139827, 139954, 140182, 140359, 140636, 140737, 140888, 140914, 141167, 141193, 141395, 141521, 141648, 141974, 142836, SONG_END];
}
var iID = 0;
var initTime = getTimer();
iID = setInterval(main, 0);
Frame 14
function genStep(type) {
var _local1 = attachMovie("step", "step" + frame, frame++, {_x:set._x, _y:initY});
_local1.type = type;
_local1.listenSet = set;
_local1.speed = stepSpeed;
}
function main() {
if ((((getTimer() - initTime) + travelTime) >= songArrows[frame]) && (songArrows[frame] != SONG_END)) {
genStep(steps[frame]);
}
if (frame >= (steps.length - 1)) {
_root.dCheck.play();
}
if (_root.balance.balbar.balmask._width < 5) {
_root.frame = _root.steps.length;
_global.pass = false;
_root.dCheck.gotoAndStop(201);
}
_root.score.text = _global.sScore;
_root.currC.text = _global.currcombo;
}
var perfect = new Array();
var great = new Array();
var good = new Array();
var almost = new Array();
var bad = new Array();
var normal = new Array(1, 4, 1, 2, 4, 4, 1, 2, 8, 2, 1, 4, 4, 1, 2, 8, 4, 1, 4, 8, 2, 1, 4, 4, 4, 1, 2, 2, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 2, 8, 4, 1, 4, 4, 4, 1, 4, 1, 2, 2, 8, 4, 1, 4, 1, 2, 8, 4, 1, 8, 1, 4, 2, 8, 1, 4, 8, 2, 1, 4, 8, 2, 1, 2, 1, 4, 8, 4, 1, 2, 1, 4, 8, 2, 1, 4, 4, 4, 1, 2, 8, 4, 4, 1, 2, 8, 4, 1, 4, 4, 8, 2, 2, 1, 4, 4, 8, 2, 2, 1, 4, 1, 4, 8, 2, 8, 2, 1, 4, 1, 4, 1, 2, 8, 1, 4, 8, 2, 1, 4, 1, 2, 8, 4, 4, 4, 1, 1, 1, 1, 4, 4, 4, 1, 2, 8, 4, 1, 2, 4, 1, 2, 8, 4, 1, 2, 2, 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2, 1, 4, 2, 4, 8, 2, 2, 4, 1, 8, 4, 2, 4, 1, 4, 2, 4, 1, 2, 8, 4, 8, 4, 1, 2, 8, 2, 8, 2, 1, 4, 8, 2, 1, 4, 1, 4, 8, 4, 8, 4, 2, 8, 2, 1, 4, 1, 8, 4, 2, 4, 1, 2, 8, 8, 4, 1, 2, 8, 8, 4, 1, 4, 1, 2, 8, 4, 1, 4, 8, 2, 8, 8, 1, 1, 2, 8, 8, 4, 4, 1, 2, 8, 1, 8, 1, 1, 4, 8, 2, 1, 8, 8, 8, 1, 4, 8, 2, 2, 4, 1, 8, 4, 1, 2, 8, 4, 8, 1, 2, 1, 4, 8, 2, 1, 4, 2, 8, 8, 2, 8, 2, 1, 4, 8, 2, 8, 1, 4, 8, 4, 1, 2, 8, 2, 1, 4, 8, 8, 2, 8, 8, 2, 1, 2, 8, 4, 1, 4, 4, 4, 1, 4, 1, 2, 8, 2, 8, 2, 1, 4, 8, 2, 1, 4, 8, 2, 2, 1, 8, 4, 1, 2, 8, 4, 1, 2, 2, 8, 4, 4, 1, 2, 2, 8, 2, 1, 4, 2, 8, 4, 1, 2, 8, 4, 2, 1, 8, 2, 4, 1, 2, 8, 4, 1, 2, 8, 4, 1, 2, 8, 4, 1, 2, 8, 4, 1, 2, 8, 8, 4, 4, 1, 2, 2, 8, 8, 8, 4, 4, 1, 1, 2, 8, 2, 8, 2, 8, 2, 8, 2, 1, 4, 8, 2, 1, 4, 8, 2, 2, 8, 8, 4, 4, 4, 1, 2);
var steps = new Array();
var song = new Sound();
song.attachSound("euph");
song.start();
var trueSpeed = (7 * _global.speedracer);
if (_global.diffi == 1) {
_root.dif.text = "Normal";
} else {
_root.dif.text = "Hard";
}
var frame = 0;
var stepSpeed = trueSpeed;
var initY = (Math.ceil(((Stage.height - set._y) / set._height) + 1) * set._height);
var travelTime = Math.floor((initY * 1000) / (stepSpeed * 40));
var SONG_END = 0;
if (diffi == 1) {
steps = normal;
} else {
steps = hard;
}
if (diffi == 1) {
var songArrows = [5081, 5818, 6554, 7165, 12642, 12994, 13333, 13730, 14218, 14394, 14527, 15230, 15665, 16054, 16538, 17142, 17362, 17578, 17965, 18142, 18314, 18578, 18790, 19142, 19494, 19876, 20226, 20578, 20833, 21098, 21362, 21538, 21713, 21934, 22110, 22330, 22457, 22673, 22806, 23112, 23374, 23594, 23727, 23990, 24642, 25038, 25418, 25770, 26122, 26421, 26776, 27122, 27465, 27818, 28249, 28554, 28950, 29333, 29774, 29950, 30206, 30468, 30818, 31165, 31510, 31818, 32206, 32554, 32906, 33262, 33610, 34041, 34350, 34565, 34738, 34998, 35262, 35526, 35747, 36012, 36494, 36921, 37321, 37749, 38098, 38406, 38790, 39230, 39581, 39874, 40314, 40623, 41054, 41360, 41749, 42098, 42406, 42833, 43186, 43581, 43921, 44274, 44665, 45010, 45406, 45749, 46142, 46534, 46833, 47186, 47581, 47921, 48318, 48665, 48924, 49318, 49665, 50054, 50449, 50877, 51142, 51538, 51833, 52314, 52666, 53018, 53414, 53762, 54114, 54554, 54906, 56206, 57555, 58421, 59165, 59550, 59990, 60421, 60774, 61122, 61469, 61948, 62333, 62774, 63165, 63511, 63951, 64333, 64686, 64994, 66554, 67421, 67994, 69333, 69990, 70774, 71165, 71554, 71901, 72333, 72690, 73041, 73347, 73742, 73998, 74394, 74833, 75186, 75494, 75879, 76274, 76581, 76881, 77322, 77673, 78026, 78377, 78733, 79122, 79421, 79862, 80165, 80598, 80986, 81290, 81686, 82078, 82510, 82818, 83163, 83465, 83862, 84248, 84642, 84950, 85332, 85762, 86070, 86377, 86686, 87165, 87333, 87818, 87950, 88510, 88906, 89290, 89906, 90081, 90554, 90686, 91209, 91610, 91914, 92262, 92570, 92965, 93274, 93706, 94054, 94186, 94665, 94790, 95010, 95450, 95622, 95834, 96275, 96450, 96665, 97007, 97182, 97399, 97790, 97965, 98142, 98494, 98622, 98790, 99142, 99277, 99494, 99833, 100010, 100142, 100622, 100790, 100970, 101322, 101498, 101984, 102158, 102864, 103598, 104290, 105081, 105774, 106165, 106506, 106860, 107206, 107994, 108777, 109290, 109645, 110081, 110421, 111165, 112081, 112510, 116039, 116906, 117686, 118510, 118950, 119290, 119642, 119987, 120421, 120902, 121463, 122078, 122206, 123465, 123642, 124249, 124380, 125165, 125333, 126598, 126770, 127377, 127554, 128168, 128295, 129306, 129438, 130362, 130450, 131098, 131230, 131496, 131623, 131877, 132054, 132230, 132404, 132531, 132662, 132877, 132963, 133226, 133270, 133488, 133662, 133921, 133965, 134230, 134320, 134581, 134665, 134877, 134965, 135142, 135188, 135450, 135581, 135833, 135877, 136094, 136185, 136490, 136578, 136790, 136877, 137098, 137186, 137406, 137450, 137665, 137790, 137956, 138129, 138350, 138573, 138965, 139230, 139494, 139790, 140189, 140538, 140877, 141274, 141665, 141918, 142358, 142706, 143010, 143406, 143790, 144142, 144450, 144749, 145142, 145451, 145921, 146230, 146665, 147010, 147358, 147749, 148094, 148402, 148748, 149142, 149490, 149832, 150173, 150526, 150921, 151230, 151622, 151921, 152318, 152665, 153054, 153358, 153749, 154054, 154450, 154833, 155186, 155536, 155921, 156274, 156581, 157010, 157318, 157666, 158062, 158370, 158718, 159114, 159465, 159818, 160165, 160554, 160950, 161346, 162085, 162790, 163833, 164749, 165186, 165494, 166706, 167791, 168098, 168362, 168669, 168847, 169066, 169890, 170585, 171246, 171686, 171950, 172333, 172730, 173038, 173378, 173774, 174081, 174464, 174814, 175162, 175465, 175862, 176207, 176642, 176994, 177292, 177642, 177994, 178290, 178642, 179038, 179377, 179686, 180038, 180290, 180598, 180818, 181169, 181522, 181873, 182130, 182394, 182614, SONG_END];
} else {
var songArrows = [3975, 4363, 4759, 5107, 5363, 5891, 6278, 6627, 7064, 7363, 7847, 8232, 8579, 8931, 9363, 9712, 10107, 10407, 10891, 11275, 11627, 12021, 12363, 12539, 12803, 13022, 13232, 13451, 13759, 14107, 14273, 14440, 14791, 15099, 15494, 15667, 15843, 16275, 16627, 16980, 17105, 17275, 17671, 18148, 18539, 18717, 19232, 19407, 19627, 19891, 20407, 20671, 20980, 21320, 21715, 22064, 22451, 22847, 23150, 23495, 23847, 24191, 24363, 24539, 24671, 24980, 25191, 25451, 25715, 25891, 26064, 26232, 26404, 26711, 27064, 27407, 27847, 28023, 28191, 28363, 28671, 28847, 29023, 29150, 29319, 29583, 29803, 29932, 30107, 30319, 30495, 30671, 30891, 31064, 31232, 31847, 31936, 32583, 32671, 33319, 33451, 34023, 34107, 34234, 34360, 34579, 35275, 35583, 35891, 36191, 36627, 36980, 37319, 37671, 37978, 38407, 38755, 39064, 39535, 39799, 40191, 40273, 40615, 40967, 41275, 41711, 42020, 42366, 42759, 43064, 43495, 43887, 44232, 44539, 44936, 45275, 45671, 46023, 46363, 46803, 47107, 47455, 47631, 47851, 48023, 48274, 48571, 48703, 48923, 49055, 49184, 49356, 49528, 49747, 49879, 50011, 50143, 50363, 51191, 51275, 51931, 52020, 52583, 52715, 53191, 53273, 53879, 53923, 54627, 54671, 55234, 55363, 56023, 56583, 56671, 57319, 57407, 58107, 58495, 58803, 59191, 59495, 59847, 60148, 60495, 60847, 61148, 61539, 61844, 62148, 62451, 62711, 63065, 63450, 63799, 64150, 64454, 64891, 65275, 65715, 65891, 66064, 66410, 66583, 66847, 67191, 67583, 67759, 67936, 68148, 68319, 68535, 68755, 69020, 69107, 69273, 69440, 69615, 69747, 69967, 70143, 70407, 70803, 71150, 71539, 71847, 72275, 72627, 72847, 73276, 73627, 73936, 74319, 74671, 74980, 75241, 75635, 75983, 76335, 76555, 76995, 77303, 77734, 78039, 78436, 78820, 79215, 79475, 79907, 80127, 80607, 80951, 81391, 81691, 82038, 82387, 82732, 83171, 83564, 83908, 84303, 84655, 84963, 85356, 85703, 86143, 86407, 86847, 87107, 87411, 87719, 88319, 88627, 88980, 89363, 89539, 90023, 90407, 90758, 91148, 91539, 91891, 92191, 92627, 92936, 93363, 93715, 94064, 94451, 94803, 95232, 95627, 95936, 96275, 96671, 97107, 97407, 97936, 98191, 98581, 98931, 99319, 99671, 100107, 100407, 100799, 101191, 101715, 102451, 103148, 103847, 104583, 104934, 105319, 105711, 106064, 106363, 107108, 107195, 107635, 107723, 108291, 108379, 109467, 109511, 109688, 109732, 110775, 111129, 111607, 112306, 112907, 113303, 113732, 114171, 114951, 115743, 116571, 117360, 118064, 118363, 118715, 119020, 119405, 119799, 120107, 120495, 120893, 121319, 121715, 122107, 122539, 122891, 123363, 123759, 124107, 124583, 124931, 125363, 125711, 126065, 126495, 126847, 127148, 127453, 127891, 128275, 128583, 128891, 129275, 129628, 130025, 130327, 130719, 131071, 131203, 131290, 131728, 131819, 131907, 132083, 132083, 132259, 132303, 132391, 132480, 132691, 132691, 132775, 132910, 132910, 133039, 133127, 133303, 133347, 133607, 133734, 133951, 134040, 134259, 134391, 134564, 134691, 134819, 135039, 135211, 135343, 135475, 135518, 135732, 135863, 136079, 136255, 136431, 136648, 136775, 136907, 137039, 137124, 137255, 137387, 137431, 137564, 137732, 137863, 137995, 138127, 138391, 138523, 138607, 139127, 139215, 139347, 139475, 139775, 139951, 140039, 140523, 140607, 140863, 141170, 141299, 141385, 141515, 141604, 141732, 141951, 142171, 142302, 142429, 142559, 142691, 142995, 142995, 143127, 143347, 143475, 143691, 143691, 143951, 144083, 144255, 144387, 144429, 144604, 144604, 144732, 144907, 145040, 145215, 145436, 145649, 145951, 146256, 146387, 146564, 146732, 146951, 147125, 147691, 147775, 148085, 148259, 148391, 148564, 148691, 148863, 148995, 148995, 149171, 149259, 149480, 149564, 149691, 150171, 150436, 150607, 150607, 150995, 151038, 151299, 151564, 151907, 152127, 152259, 152607, 152732, 152940, 153335, 153599, 153776, 153951, 154127, 154303, 154480, 154648, 154865, 155039, 155393, 155564, 155775, 156127, 156259, 156393, 156648, 156863, 156995, 157171, 157347, 157610, 157871, 158003, 158091, 158223, 158440, 158617, 158794, 158879, 159143, 159495, 159801, 160232, 160583, 160887, 161191, 161539, 161980, 162277, 162627, 162936, 163362, 163667, 164107, 164408, 164847, 164936, 165148, 165539, 165627, 165891, 166232, 166319, 166491, 166972, 167104, 167232, 167365, 167759, 168107, 168407, 168627, 168715, 168847, 169023, 169189, 169539, 169847, 169980, 170107, 170232, 170363, 170583, 170931, 171319, 171668, 172015, 172319, 172715, 172887, 173020, 173363, 173803, 174148, 174275, 174407, 174843, 174975, 175107, 175539, 175759, 175803, 176327, 176503, 176635, 177026, 177153, 177371, 177812, 177983, 178511, 178599, 179175, 179307, 179834, 179961, 180400, 180486, 180967, 181015, 181407, 181495, 181850, 181980, 182111, 182243, 182726, 183115, 183423, 183511, 183732, 184523, 185303, 185995, 186819, 187607, 188659, 188747, SONG_END];
}
var iID = 0;
var initTime = getTimer();
iID = setInterval(main, 0);
Frame 15
function genStep(type) {
var _local1 = attachMovie("step", "step" + frame, frame++, {_x:set._x, _y:initY});
_local1.type = type;
_local1.listenSet = set;
_local1.speed = stepSpeed;
}
function main() {
if ((((getTimer() - initTime) + travelTime) >= songArrows[frame]) && (songArrows[frame] != SONG_END)) {
genStep(steps[frame]);
}
if (frame >= (steps.length - 1)) {
_root.dCheck.play();
}
if (_root.balance.balbar.balmask._width < 5) {
_root.frame = _root.steps.length;
_global.pass = false;
_root.dCheck.gotoAndStop(201);
}
_root.score.text = _global.sScore;
_root.currC.text = _global.currcombo;
}
var perfect = new Array();
var great = new Array();
var good = new Array();
var almost = new Array();
var bad = new Array();
var normal = new Array(4, 1, 2, 8, 4, 1, 2, 8, 4, 1, 2, 5, 1, 2, 8, 4, 1, 2, 8, 4, 4, 1, 2, 2, 8, 4, 1, 2, 8, 4, 1, 2, 2, 8, 4, 1, 2, 8, 4, 4, 1, 2, 8, 4, 1, 4, 8, 2, 1, 4, 8, 2, 1, 4, 8, 2, 2, 1, 4, 1, 4, 2, 8, 4, 1, 2, 8, 4, 4, 4, 1, 1, 2, 8, 4, 1, 2, 2, 8, 4, 1, 2, 8, 4, 4, 1, 2, 8, 4, 1, 2, 2, 8, 4, 1, 2, 5, 10, 5, 5, 4, 1, 5, 8, 2, 1, 4, 1,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8, 4, 1, 8, 2, 4, 1, 2, 8, 4, 1, 8, 2, 4, 1, 2, 8, 2, 8, 4, 1, 8, 8, 2, 4, 2, 4, 1, 2, 8, 2, 8, 2, 1, 4, 8);
var steps = new Array();
var song = new Sound();
song.attachSound("kirj");
song.start();
if (_global.diffi == 1) {
_root.dif.text = "Normal";
var trueSpeed = (5 * _global.speedracer);
} else {
_root.dif.text = "Hard";
var trueSpeed = (7 * _global.speedracer);
}
var frame = 0;
var stepSpeed = trueSpeed;
var initY = (Math.ceil(((Stage.height - set._y) / set._height) + 1) * set._height);
var travelTime = Math.floor((initY * 1000) / (stepSpeed * 40));
var SONG_END = 0;
if (diffi == 1) {
steps = normal;
} else {
steps = hard;
}
if (diffi == 1) {
var songArrows = [876, 1474, 1734, 3032, 4332, 4616, 5315, 5886, 6276, 7626, 7782, 9110, 9760, 10228, 10434, 10564, 11032, 11425, 11788, 12257, 12616, 13007, 13370, 13762, 14126, 14542, 14854, 15244, 15578, 15968, 16306, 16746, 17087, 17500, 17890, 18176, 18616, 18904, 19343, 19757, 20120, 20480, 21078, 21233, 21362, 22012, 22350, 24250, 24614, 25004, 25366, 25782, 27030, 28406, 28822, 29215, 29606, 29970, 30334, 31610, 31766, 33142, 34442, 34624, 35246, 35923, 36332, 36720, 37082, 37444, 37782, 38146, 38563, 39423, 39708, 41162, 42070, 42382, 42694, 43994, 44380, 44744, 45184, 45598, 46896, 47598, 47934, 48296, 50166, 50526, 50916, 51280, 51642, 54032, 54314, 54629, 56084, 56986, 57350, 57689, 58883, 59636, 59948, 60286, 60650, 60960, 61040, 61350, 61741, 62107, 62392, 62522, 62730, 62965, 63276, 63590, 64007, 64423, 64552, 64942, 65383, 65591, 65954, 66968, 67332, 67512, 67642, 68007, 68318, 68500, 68579, 68942, 69308, 69571, 70009, 70423, 70578, 70890, 71280, 71488, 71850, 72264, 72626, 73302, 73536, 73719, 73926, 74184, 74494, 74624, 74858, 74986, 75145, 75299, 75324, 75558, 75715, 75923, 76052, 76209, 76418, 76710, 76866, 77049, 77176, 77437, 77568, 77776, 77906, 78140, 78270, 78530, 78658, 78892, 78972, 79308, 79438, 79699, 79830, 80091, 80246, 80401, 80584, 80740, 80870, 81104, 81260, 81545, 81749, 81954, 82006, 82370, 82423, 82710, 82814, 83049, 83154, 83516, 83698, 83906, 84710, 84996, 85360, 85724, 86065, 86196, 86402, 86506, 86688, 86818, 87182, 87286, 87494, 87624, 87806, 87960, 88193, 88400, 88582, 88788, 89178, 89360, 89568, 89776, 90374, 90504, 90633, 90918, 91074, 91206, 91334, 91490, 91673, 91828, 92114, 92246, 92402, 92584, 92740, 92894, 93178, 93360, 93594, 93749, 94007, 94136, 94423, 94864, 95176, 95386, 95542, 95700, 96038, 96194, 96844, 96977, 97392, 97444, 97757, 98042, 98432, 98822, 99108, 99549, 99704, 99912, 100120, 100328, 100458, 100718, 101082, 101392, 101600, 101730, 101885, 102091, 102194, 102480, 102923, 103052, 103208, 103524, 103834, 104146, 104486, 104591, 104721, 104852, 105188, 105292, 105424, 105633, 105918, 106074, 106386, 106673, 107010, 107348, 107530, 107944, 108360, 108566, 108928, 109292, 109526, 109734, 110124, 110306, 110564, 110616, 110850, 110901, 111470, 111678, 111886, 112198, 112406, 112718, 114094, 115318, 115708, 116902, 117266, 118564, 118694, 120101, 121452, 121582, 122126, 122646, 122984, 123296, 123609, 123920, 124052, 124338, 124468, 124676, 124830, 125168, 125297, 125452, 125608, 125762, 126100, 126334, 126490, 127713, 128101, 129246, 130598, 130806, 131091, 132468, 133610, 134130, 134883, 135246, 135640, 135978, 136341, 136730, 137041, 137410, 137824, 138164, 138578, 138968, 139383, 139746, 140110, 140450, 140866, 141230, 141620, 141984, 142349, 142736, 143098, 143460, 143824, 144215, 144656, 145020, 145383, 145666, 146056, 146416, 146858, 147246, 147688, 147923, 148130, 148418, 148730, 148938, 149198, 149432, 149665, 149923, 150312, 150598, 150806, 151041, 151246, 151456, 151715, 151948, 152156, 152390, 152624, 152832, 153299, 153532, 153792, 154026, 154234, 154468, 154802, 155036, 155322, 155556, 155762, 155996, 156257, 156412, 156571, 156775, 157032, 157318, 157549, 157808, 158042, 158199, 158458, 158692, 158900, 159314, SONG_END];
} else {
var songArrows = [1605, 1758, 2998, 3227, 4313, 4465, 5223, 5654, 6183, 7047, 7248, 7374, 7553, 7704, 7956, 8209, 8362, 8538, 8689, 8891, 9095, 9278, 9505, 9681, 9933, 10087, 10339, 10591, 10793, 10921, 11198, 11399, 11578, 11780, 12007, 12210, 12438, 12589, 12790, 12967, 13120, 13374, 13501, 13906, 14209, 14538, 15017, 15221, 15397, 15549, 15752, 15929, 16123, 16406, 16633, 16837, 17114, 17240, 17391, 17570, 17797, 17998, 18175, 18328, 18505, 18657, 18883, 19061, 19339, 19465, 19641, 19767, 20057, 20311, 20437, 20563, 20841, 20971, 21173, 21324, 21881, 22082, 22286, 22465, 22870, 23072, 23198, 23374, 23553, 23679, 23931, 23981, 24183, 24311, 24463, 24589, 24740, 24868, 25045, 25196, 25372, 25473, 25675, 25828, 26662, 26788, 26914, 27116, 27324, 28032, 28236, 28362, 28488, 28666, 28820, 29178, 29582, 29736, 29937, 30341, 31253, 31404, 31505, 31605, 32421, 32547, 32673, 32824, 32975, 33507, 33607, 33761, 33837, 34040, 34166, 34370, 34522, 34748, 34899, 35103, 35305, 35507, 35683, 35811, 36065, 36370, 36572, 36698, 36849, 37028, 37154, 37307, 37435, 37612, 37713, 37866, 37992, 38198, 38324, 38528, 38658, 38811, 38937, 39089, 39240, 39416, 39620, 39773, 39900, 40078, 40204, 40406, 40582, 40709, 40912, 41065, 41191, 41345, 41521, 41672, 41799, 41925, 42103, 42229, 42406, 42607, 42736, 43595, 44353, 44555, 44656, 44807, 44933, 45087, 45240, 45367, 45545, 45699, 46587, 46713, 47345, 47471, 47548, 47723, 47875, 48053, 48179, 48355, 48658, 48862, 49015, 49220, 49372, 49553, 49704, 49883, 50036, 50215, 50341, 50492, 50673, 50824, 51001, 51129, 51281, 51459, 51589, 51740, 51916, 52070, 52297, 52423, 52599, 52778, 52929, 53080, 53261, 53387, 53538, 53717, 53870, 54021, 54223, 54349, 54500, 54627, 54803, 55437, 56299, 56475, 56603, 56757, 56883, 57088, 57265, 57645, 58053, 58381, 58658, 58862, 59013, 59139, 59391, 59518, 59773, 59975, 60179, 60355, 60481, 60607, 60761, 60937, 61089, 61265, 61467, 61595, 61923, 62074, 62332, 62459, 62561, 62841, 63246, 63574, 63979, 64286, 64416, 64543, 64671, 64897, 65023, 65278, 65404, 65530, 65656, 65933, 66213, 66540, 66973, 67305, 67456, 67633, 67786, 67988, 68315, 68492, 68620, 68822, 68948, 69225, 69555, 69859, 70313, 70464, 70590, 70717, 70925, 71305, 71459, 71612, 71965, 72217, 72496, 72647, 72824, 73001, 73105, 73232, 73408, 73536, 73690, 73866, 73967, 74120, 74271, 74423, 74624, 74751, 74904, 75080, 75259, 75387, 75563, 75691, 75845, 75946, 76223, 76399, 76556, 76711, 76937, 77139, 77290, 77543, 77697, 77874, 78028, 78204, 78330, 78508, 78658, 78837, 78963, 79189, 79370, 79521, 79725, 79879, 80057, 80261, 80463, 80664, 80841, 80992, 81120, 81297, 81498, 81700, 81879, 82030, 82231, 82433, 82666, 82871, 83049, 83251, 83454, 83706, 83908, 84061, 84238, 84414, 84616, 84742, 84895, 85021, 85198, 85349, 85452, 85757, 85935, 86187, 86339, 86616, 86742, 86872, 87049, 87200, 87483, 87662, 87788, 87941, 88068, 88195, 88397, 88549, 88675, 88828, 89105, 89383, 89561, 89713, 89864, 90116, 90192, 90423, 90549, 90803, 90929, 91107, 91261, 91412, 91740, 91916, 92145, 92423, 92576, 92904, 93231, 93459, 93637, 93763, 93990, 94166, 94446, 94799, 95103, 95307, 95434, 95612, 95864, 95990, 96191, 96345, 96496, 96748, 96912, 97065, 97191, 97396, 97622, 97849, 98129, 98481, 98862, 99215, 99545, 99897, 100278, 100605, 100959, 101339, 101746, 102048, 102175, 102353, 102479, 102605, 102757, 102933, 103137, 103314, 103440, 103767, 103948, 104099, 104225, 104486, 104637, 104763, 105116, 105141, 105243, 105372, 105624, 105879, 105954, 106131, 106282, 106408, 106612, 106738, 106965, 107143, 107322, 107449, 107629, 107757, 108162, 108288, 108389, 108641, 108921, 109047, 109173, 109349, 109501, 109629, 109805, 110639, 110765, 110891, 111017, 111171, 111246, 111423, 111523, 111652, 112131, 112332, 112459, 112585, 113773, 113902, 114028, 114229, 115215, 115341, 115441, 115595, 115696, 116200, 116631, 116959, 117315, 118303, 118456, 118582, 120074, 121492, 121822, 122202, 122530, 122883, 123187, 123545, 123872, 124074, 124251, 124356, 124507, 124683, 124811, 124937, 125291, 125423, 125601, 125753, 126181, 126357, 126486, 127191, 127293, 127446, 127572, 127930, 128112, 128238, 128439, 128595, 128797, 128948, 128973, 129251, 129404, 129605, 129857, 130087, 130465, 130694, 130845, 131021, 131248, 131450, 131729, 132209, 132362, 132589, 132790, 132941, 133298, 133755, 133906, 134112, 134389, 134666, 135555, 135706, 135857, 136036, 136263, 136389, 136641, 136820, 137097, 137273, 137501, 137704, 137931, 138137, 138340, 138595, 138797, 138998, 139175, 139353, 139555, 139731, 139959, 140112, 140364, 140540, 140742, 140921, 141175, 141381, 141582, 141736, 141937, 142091, 142345, 142524, 142729, 142885, 143137, 143263, 143490, 143616, 143820, 143996, 144173, 144349, 144501, 144683, 144887, 145038, 145240, 145366, 145571, 145673, 145824, 146001, 146204, 146305, 146507, 146633, 146786, 146912, 147114, 147240, 147444, 147696, 147872, 148074, 148225, 148479, 148683, 148836, 149139, 149341, 149543, 149773, 150028, 150204, 150431, 150633, 150862, 151038, 151269, 151473, 151679, 151981, 152261, 152412, 152614, 152841, 153070, 153246, 153448, 153652, 153881, 154057, 154261, 154412, 154664, 154866, 155120, 155397, 155627, 155831, 156087, 156187, 156389, 156771, 156923, 157175, 157328, 157505, 157706, 157908, 158162, 158364, 158565, 158719, 158895, 159147, 159299, SONG_END];
}
var iID = 0;
var initTime = getTimer();
iID = setInterval(main, 0);
Frame 16
function genStep(type) {
var _local1 = attachMovie("step", "step" + frame, frame++, {_x:set._x, _y:initY});
_local1.type = type;
_local1.listenSet = set;
_local1.speed = stepSpeed;
}
function main() {
if ((((getTimer() - initTime) + travelTime) >= songArrows[frame]) && (songArrows[frame] != SONG_END)) {
genStep(steps[frame]);
}
if (frame >= (steps.length - 1)) {
_root.dCheck.play();
}
if (_root.balance.balbar.balmask._width < 5) {
_root.frame = _root.steps.length;
_global.pass = false;
_root.dCheck.gotoAndStop(201);
}
_root.score.text = _global.sScore;
_root.currC.text = _global.currcombo;
}
var perfect = new Array();
var great = new Array();
var good = new Array();
var almost = new Array();
var bad = new Array();
var normal = new Array(1, 8, 2, 4, 1, 8, 2, 4, 1, 8, 2, 4, 1, 4, 8, 2, 1, 2, 1, 4, 8, 4, 1, 2, 8, 4, 1, 2, 8, 4, 1, 2, 8, 4, 1, 8, 2, 4, 1, 2, 8, 4, 1, 2, 8, 4, 1, 2, 1, 8, 2, 4, 2, 1, 8, 4, 2, 1, 8, 4, 2, 1, 8, 4, 2, 1, 8, 1, 4, 1, 2, 8, 4, 1, 4, 8, 2, 8, 4, 1, 8, 2, 4, 2, 4, 1, 2, 8, 2, 8, 4, 1, 2, 8, 4, 8, 4, 1, 2, 8, 4, 1, 2, 8, 4, 1, 4, 1, 2, 8, 2, 8, 4, 1, 4, 8, 2, 1, 4, 8, 2, 1, 4, 8, 2, 1, 4, 1, 2, 8, 4, 1, 5, 1, 2, 8, 4, 1, 2, 8, 4, 5, 1, 2, 8, 4, 2, 8, 4, 1, 2, 8, 4, 1, 2, 8, 4, 2, 5, 1, 8, 2, 4, 1, 2, 10, 4, 1, 2, 8, 4, 1, 10, 8, 1, 2, 8, 4, 2, 8, 1, 4, 8, 2, 1, 4, 8, 2, 1, 8, 2, 1, 8, 4, 2, 4, 2, 8, 1, 2, 8, 4, 1, 8, 2, 4, 1, 8, 2, 4, 2, 8, 2, 4, 1, 2, 8, 4, 1, 8, 2, 4, 2, 8, 1, 2, 8, 4, 1, 8, 2,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 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 8, 2, 4, 1, 2, 8, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 8, 4, 1, 5, 10);
var steps = new Array();
var song = new Sound();
song.attachSound("liftoff");
song.start();
if (_global.diffi == 1) {
_root.dif.text = "Normal";
var trueSpeed = (6 * _global.speedracer);
} else {
_root.dif.text = "Hard";
var trueSpeed = (7 * _global.speedracer);
}
var frame = 0;
var stepSpeed = trueSpeed;
var initY = (Math.ceil(((Stage.height - set._y) / set._height) + 1) * set._height);
var travelTime = Math.floor((initY * 1000) / (stepSpeed * 40));
var SONG_END = 0;
if (diffi == 1) {
steps = normal;
} else {
steps = hard;
}
if (diffi == 1) {
var songArrows = [615, 767, 1022, 1249, 1678, 1980, 2207, 2436, 2814, 3018, 3220, 3447, 7029, 7155, 7381, 7560, 7789, 7940, 8220, 8371, 8623, 8825, 8902, 9205, 9331, 9634, 9734, 10062, 10188, 10490, 10591, 10869, 10995, 11323, 11423, 11650, 11852, 12255, 12457, 12661, 12938, 13115, 13266, 13518, 13644, 13873, 13978, 14255, 14381, 14583, 14835, 14987, 15671, 15799, 15951, 16203, 16606, 16884, 17010, 17238, 17795, 17922, 18098, 18350, 21218, 21571, 21697, 21873, 22075, 22402, 22554, 22755, 22884, 23060, 23287, 23489, 23690, 23942, 24247, 24374, 24579, 24881, 25083, 25209, 25437, 25896, 26022, 26249, 26377, 26629, 26782, 26959, 27215, 27644, 27846, 28049, 28176, 28428, 28734, 29062, 29264, 29692, 29970, 30250, 30457, 30583, 31064, 31241, 31594, 31795, 32074, 32251, 32756, 32881, 33134, 33436, 33814, 33940, 34142, 34470, 34621, 34772, 35100, 35453, 35631, 35757, 36237, 36363, 36564, 36841, 36968, 37144, 37447, 37900, 38026, 38178, 38381, 38684, 38961, 39087, 39239, 39516, 39844, 39970, 40121, 40323, 40615, 40769, 40974, 41025, 41405, 41531, 41757, 41934, 42063, 42341, 42494, 42673, 43129, 43281, 43507, 43709, 43861, 44037, 44163, 44339, 44718, 44844, 45045, 45247, 45449, 45575, 45902, 46104, 46432, 46558, 46686, 46888, 47115, 47215, 47493, 47669, 47797, 48128, 48304, 48581, 48757, 48959, 49211, 49363, 49968, 50220, 50446, 50673, 50953, 51205, 51457, 51785, 51936, 52266, 52518, 52745, 52871, 53299, 53476, 53627, 53930, 54083, 54386, 54489, 54665, 54993, 55144, 55400, 55627, 55980, 56182, 56360, 56663, 56852, 57003, 57356, 57508, 57835, 58012, 58493, 58619, 58770, 59098, 59173, 59476, 59602, 59753, 60134, 60234, 60411, 60766, 60917, 61169, 61295, 61472, 61825, 62026, 62203, 62682, 63161, 63211, 63893, 64428, 64907, 65310, 65688, 66167, 66596, 67024, 67455, 67858, 68289, 68718, 69121, 69600, 70029, 70482, 70886, 71289, 71718, 72121, 72531, 72732, 73035, 73489, 73917, 74119, 74673, 75102, 75556, 75782, 76161, 76488, 76892, 77169, 77497, 77825, 78155, 78507, 78987, 79339, 79793, 80075, 80655, 81084, 81564, 81972, 82476, 82780, 83159, 83285, 83487, 83739, 83940, 84117, 84293, 84571, 84697, 84898, 85075, 85227, 85432, 85559, 85913, 86039, 86194, 86371, 86522, 86724, 86926, 87178, 87329, 87531, 87682, 87858, 88060, 88186, 88438, 88591, 88795, 88998, 89329, 89505, 89657, 89909, 90110, 90237, 90463, 90715, 91018, 91194, 91348, 91474, 91678, 91854, 91980, 92106, 92386, 92865, 92915, 93119, 93272, 93476, 93680, 93806, 94134, 94613, 94663, 94892, 95097, 95301, 95428, 95755, 95906, 96310, 96512, 96713, 96839, 97041, 97421, 97801, 97978, 98155, 98358, 98484, 98762, 98837, 99091, 99218, 99470, 99621, 99823, 100001, 100405, 100531, 100757, 100886, 101289, 101440, 101566, 101821, 101974, 102352, 102503, 102680, 102806, 103211, 103438, 103690, 103968, 104144, 104274, 104426, 104703, 104829, 105106, 105257, 105510, 105661, 105837, 106089, 106468, 106669, 106871, 107047, 107249, 107501, 107703, 107905, 108209, 108360, 108512, 108713, 108915, 109117, 109344, 109596, 109949, 110075, 110402, 112747, 113604, 115621, 115697, 115949, 116075, 116379, 116505, 116808, 119559, 120371, 122390, 122793, 122844, 123124, 123276, 123659, 126407, 127390, 129383, 129686, 129837, 130114, 130367, 130593, 133293, 133898, 136192, 136318, 136547, 136673, 136953, 137104, 137407, 140131, 140963, 142961, 143087, 143339, 143495, 143697, 143873, 144377, 146974, 150625, SONG_END];
} else {
var songArrows = [6926, 7305, 7887, 8366, 8820, 9248, 9652, 10080, 10486, 10893, 11271, 11751, 12078, 12582, 12986, 13364, 13795, 14173, 14375, 14551, 14702, 14828, 14954, 15206, 15635, 15761, 16114, 16268, 16519, 16622, 16875, 17051, 17253, 17404, 17656, 18059, 18564, 18992, 19446, 19875, 20282, 20761, 20988, 21139, 21316, 21543, 21695, 21872, 22024, 22503, 22805, 23209, 23410, 23614, 23719, 23921, 24248, 24475, 24881, 25085, 25286, 25463, 25790, 25992, 26194, 26346, 26650, 26776, 26927, 27078, 27557, 27759, 27935, 28263, 28566, 29019, 29725, 30003, 30381, 30582, 31011, 31187, 31389, 31593, 31996, 32198, 32425, 32828, 32983, 33211, 33437, 33917, 34093, 34521, 34698, 34824, 35101, 35480, 35656, 36085, 36261, 36438, 36639, 36790, 37118, 37295, 37421, 37852, 38028, 38381, 38557, 38885, 39011, 39164, 39547, 39674, 39879, 40131, 40257, 40534, 40713, 40864, 41196, 41347, 41473, 41675, 41952, 42356, 42532, 42683, 43213, 43364, 43668, 43845, 44122, 44248, 44702, 44929, 45259, 45435, 45739, 45917, 46072, 46301, 46477, 46629, 46830, 47108, 47209, 47437, 47765, 48194, 48597, 48799, 49003, 49179, 49356, 49507, 49837, 49990, 50171, 50448, 50878, 51055, 51232, 51534, 51660, 51990, 52343, 52645, 52847, 52998, 53326, 53452, 53883, 54337, 54538, 54692, 55072, 55198, 55425, 55629, 55805, 56133, 56335, 56538, 56740, 56917, 57269, 57423, 57675, 57851, 58004, 58183, 58461, 58612, 58788, 58990, 59195, 59498, 59625, 59776, 60103, 60255, 60433, 60635, 60786, 61014, 61167, 61521, 61698, 61975, 62101, 62328, 62530, 62784, 62910, 63163, 63288, 63515, 63692, 64019, 64120, 64398, 64576, 64904, 65030, 65307, 65433, 65711, 65837, 66114, 66240, 66568, 66694, 66971, 67097, 67450, 67551, 67879, 68005, 68232, 68410, 68716, 68895, 69173, 69299, 69627, 69755, 70032, 70158, 70410, 70561, 70814, 70990, 71293, 71419, 71748, 71875, 72101, 72229, 72509, 72660, 72963, 73064, 73366, 73492, 73769, 73895, 74227, 74354, 74681, 74807, 75085, 75212, 75465, 75641, 75793, 76045, 76173, 76450, 76576, 76853, 76954, 77262, 77364, 77669, 77796, 78000, 78178, 78332, 78509, 78660, 79089, 79215, 79417, 79543, 79719, 80349, 80526, 80677, 81005, 81055, 81335, 81461, 81738, 81914, 82192, 82318, 82595, 82771, 83049, 83200, 83452, 83603, 83729, 83908, 84110, 84236, 84488, 84639, 84841, 85017, 85170, 85372, 85498, 85702, 85879, 86030, 86282, 86588, 86715, 86919, 87145, 87423, 87574, 87826, 87952, 88229, 88381, 88658, 88835, 89187, 89341, 89669, 89795, 90047, 90200, 90503, 90603, 90956, 91082, 91410, 91536, 91814, 91940, 92370, 92748, 92824, 93101, 93229, 93507, 93633, 93885, 94011, 94293, 94393, 94647, 94748, 95026, 95152, 95404, 95530, 95683, 95811, 95937, 96218, 96345, 96550, 96676, 96979, 97055, 97332, 97511, 97788, 97914, 98192, 98318, 99099, 99529, 99659, 99941, 100043, 100269, 100424, 100805, 100906, 101238, 101340, 101744, 101872, 102125, 102251, 102578, 102704, 103007, 103183, 103463, 103589, 103817, 103944, 104271, 104473, 104851, 105204, 105557, 105685, 105862, 106089, 106568, 106921, 107248, 107450, 107627, 107778, 108181, 108509, 108635, 108963, 109089, 109216, 109419, 109771, 110024, 110251, 112143, 112698, 113177, 115459, 115811, 115988, 116290, 116467, 116820, 119343, 119822, 122320, 122422, 122700, 122826, 123154, 123633, 126385, 127091, 129259, 129410, 129612, 129738, 130066, 130545, 132715, 133774, 136049, 136178, 136431, 136559, 136940, 137040, 137347, 137476, 139845, 140753, 142801, 142927, 143204, 143381, 143809, 144293, 146991, 147120, 147830, 150379, SONG_END];
}
var iID = 0;
var initTime = getTimer();
iID = setInterval(main, 0);
Frame 17
function genStep(type) {
var _local1 = attachMovie("step", "step" + frame, frame++, {_x:set._x, _y:initY});
_local1.type = type;
_local1.listenSet = set;
_local1.speed = stepSpeed;
}
function main() {
if ((((getTimer() - initTime) + travelTime) >= songArrows[frame]) && (songArrows[frame] != SONG_END)) {
genStep(steps[frame]);
}
if (frame >= (steps.length - 1)) {
_root.dCheck.play();
}
if (_root.balance.balbar.balmask._width < 5) {
_root.frame = _root.steps.length;
_global.pass = false;
_root.dCheck.gotoAndStop(201);
}
_root.score.text = _global.sScore;
_root.currC.text = _global.currcombo;
}
var perfect = new Array();
var great = new Array();
var good = new Array();
var almost = new Array();
var bad = new Array();
var normal = new Array(4, 4, 1, 2, 2, 8, 4, 4, 1, 2, 8, 4, 4, 1, 2, 4, 4, 1, 2, 2, 2, 8, 4, 4, 4, 1, 2, 4, 4, 1, 2, 2, 8, 4, 1, 4, 4, 1, 2, 2, 8, 4, 4, 1, 2, 2, 4, 1, 4, 8, 1, 2, 2, 4, 4, 4, 1, 2, 4, 4, 4, 1, 4, 4, 1, 2, 4, 1, 1, 1, 1, 4, 8, 4, 8, 2, 2, 1, 4, 1, 4, 8, 2, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 2, 8, 1, 4, 5, 2, 1, 8, 4, 2, 5, 2, 1, 8, 4, 2, 5, 2, 1, 8, 4, 2, 5, 1, 8, 2, 4, 5, 1, 8, 2, 4, 1, 5, 1, 8, 2, 4, 1, 5, 1, 2, 8, 4, 1, 5, 1, 2, 8, 2, 4, 1, 5, 1, 2, 8, 2, 4, 1, 5, 1, 2, 8, 4, 1, 2, 8, 4, 1, 2, 8,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4, 8, 2, 1, 4, 8, 2, 8, 2, 8, 4, 1, 2, 8, 4, 1, 2, 8, 4, 1, 2, 8, 4, 1, 2, 8, 2, 8, 4, 1, 2, 8, 4, 1, 2, 8, 4, 1, 2, 8, 2, 8, 4, 1, 2, 8, 4, 1, 4, 1, 4, 1, 2, 8, 4, 1, 4, 1, 4, 1, 4, 1, 2, 8, 4);
var steps = new Array();
var song = new Sound();
song.attachSound("overload");
song.start();
if (_global.diffi == 1) {
_root.dif.text = "Normal";
var trueSpeed = (5 * _global.speedracer);
} else {
_root.dif.text = "Hard";
var trueSpeed = (7 * _global.speedracer);
}
var frame = 0;
var stepSpeed = trueSpeed;
var initY = (Math.ceil(((Stage.height - set._y) / set._height) + 1) * set._height);
var travelTime = Math.floor((initY * 1000) / (stepSpeed * 40));
var SONG_END = 0;
if (diffi == 1) {
steps = normal;
} else {
steps = hard;
}
if (diffi == 1) {
var songArrows = [2369, 2726, 3086, 3497, 3807, 4246, 4579, 4862, 5144, 5476, 5785, 5990, 6222, 6579, 6913, 7272, 7476, 7682, 7836, 8119, 8400, 8682, 8862, 9016, 9222, 9476, 9836, 10298, 10506, 10710, 11070, 11304, 11701, 11829, 11982, 12163, 12449, 12732, 13114, 13346, 13499, 13705, 13884, 14243, 14680, 14884, 15116, 15296, 15836, 16196, 16222, 16375, 16528, 16810, 17144, 17375, 17707, 17862, 18196, 18426, 18630, 18836, 19272, 19476, 19630, 19913, 20272, 21092, 21296, 21554, 21836, 22350, 22476, 22656, 22836, 23119, 23350, 23758, 23916, 24123, 24304, 24508, 24663, 24946, 25100, 25304, 25508, 25714, 25920, 26150, 26356, 26715, 28331, 28460, 28768, 28948, 29102, 29259, 29440, 29827, 30236, 30364, 30518, 30774, 30980, 31338, 31697, 31851, 32032, 32236, 32390, 32827, 33184, 33312, 33473, 33730, 33934, 34345, 34682, 34836, 35041, 35247, 35502, 36476, 36606, 36736, 36864, 37274, 37612, 37974, 38154, 38308, 38486, 38871, 39180, 39590, 39745, 39924, 40052, 40308, 40665, 41180, 41308, 41512, 41640, 41922, 42156, 42465, 42772, 42900, 43104, 43207, 43336, 43749, 43930, 44287, 44415, 44544, 44827, 45032, 45263, 45389, 45596, 45724, 45904, 46312, 46671, 46827, 47009, 47163, 47291, 47472, 47854, 48214, 48367, 48497, 48674, 48829, 48957, 49369, 49830, 50013, 50142, 50296, 50424, 50580, 50863, 51197, 54528, 54656, 54810, 54938, 55144, 55298, 55476, 55630, 55836, 56041, 56245, 56373, 56579, 56785, 57066, 57092, 57476, 57604, 57964, 58170, 58400, 58732, 58888, 59170, 59375, 59656, 59913, 60196, 60324, 60451, 60682, 60888, 61092, 61298, 61531, 61657, 61836, 62041, 62247, 62400, 62579, 62888, 63041, 63170, 63350, 63707, 63861, 64039, 64194, 64476, 64629, 64756, 64934, 65216, 65371, 65474, 65628, 65808, 65960, 66140, 66268, 66474, 66628, 66884, 67037, 67294, 67448, 67730, 67858, 68014, 68196, 68324, 68478, 68890, 69198, 69327, 69506, 69659, 69940, 70146, 70430, 70766, 70920, 71125, 71329, 71487, 71770, 71951, 72258, 72364, 72570, 72698, 72904, 73032, 73312, 73670, 74028, 74232, 74438, 74722, 74900, 75130, 75258, 75464, 75619, 75772, 75976, 76258, 76386, 76590, 76768, 76896, 77205, 77358, 77512, 77690, 77846, 77974, 78256, 78384, 78562, 78743, 78922, 79078, 79283, 79460, 79714, 79818, 79997, 80125, 80277, 80481, 80608, 80813, 80944, 81123, 81329, 81457, 81714, 81869, 82103, 82285, 82438, 82726, 82778, 82982, 83190, 83422, 83602, 83884, 84010, 84214, 84420, 84628, 84756, 84960, 85140, 85448, 85579, 85733, 85915, 86121, 86352, 86480, 86659, 86787, 87172, 87300, 87480, 87659, 87940, 88096, 88274, 88378, 88558, 88838, 88966, 89121, 89274, 89558, 89736, 89864, 90018, 90274, 90430, 90608, 90762, 90966, 91327, 91736, 91890, 92096, 92300, 92506, 92890, 93249, 93430, 93583, 93762, 93966, 94352, 94762, 94915, 95121, 95300, 95506, 95890, 96250, 96382, 96588, 96768, 96897, 97336, 97698, 97878, 98057, 98238, 98444, 98880, 99190, 99371, 99550, 99756, 99934, 100371, 100758, 100890, 101096, 101274, 101430, 101864, 102224, 102404, 102557, 102736, 102840, 103020, 103226, 103432, 103791, 103946, 104150, 104278, 104434, 104848, 105235, 105413, 105566, 105722, 105926, 106207, 106722, 106852, 107032, 107159, 107312, 107570, 107980, 108287, 108440, 108649, 108806, 108960, 109140, 109422, 109782, 109909, 110114, 110268, 110422, 110657, 111272, 111400, 111554, 111711, 111916, 112327, 112762, 112940, 113096, 113249, 113430, 113613, 113946, 114178, 114383, 114514, 114722, 114875, 115054, 115258, 115694, 115848, 116028, 116156, 116362, 116490, 116747, 116980, 117289, 117420, 117603, 117732, 117990, 118375, 118785, 118913, 119119, 119272, 119451, 119915, 120327, 120481, 120663, 120816, 121102, 121537, 121897, 122028, 122207, 122413, 122516, 122976, 123336, 123518, 123724, 123930, 124134, 124440, 124800, 124978, 125132, 125335, 125514, 125873, 126310, 126438, 126594, 126772, 126976, 127208, 127592, 127900, 128104, 128232, 128390, 128598, 128932, 129317, 129524, 129680, 129858, 130062, 130448, 130960, 131168, 131348, 131476, 131682, 132066, 132375, 132504, 132684, 132838, 133044, 133404, 133812, 133966, 134146, 134352, 134506, 134915, 135224, 135430, 135558, 135736, 135966, 136378, 136714, 136920, 137102, 137256, 137460, 137845, 138206, 138619, SONG_END];
} else {
var songArrows = [928, 994, 1172, 1327, 1454, 1634, 1785, 2091, 2394, 2672, 2877, 3003, 3155, 3333, 3585, 3812, 4144, 4295, 4474, 4602, 4728, 5008, 5211, 5644, 5824, 5951, 6102, 6203, 6354, 6610, 6763, 6948, 7228, 7354, 7508, 7636, 7762, 8043, 8249, 8528, 8684, 8835, 8987, 9114, 9240, 9495, 9701, 10104, 10230, 10358, 10510, 10635, 10940, 11220, 11652, 11804, 11907, 12085, 12214, 12369, 12648, 12906, 13236, 13341, 13518, 13694, 13820, 14050, 14253, 14614, 14793, 14944, 15096, 15224, 15352, 15554, 15810, 16216, 16369, 16495, 16672, 16827, 17083, 17310, 17793, 17919, 18121, 18249, 18402, 18604, 18732, 18886, 19293, 19419, 19596, 19672, 19829, 20083, 20335, 20716, 20894, 21020, 21174, 21330, 21585, 21762, 21915, 22194, 22396, 22524, 22703, 22906, 23110, 23312, 23745, 23871, 24050, 24203, 24329, 24508, 24661, 24812, 25018, 25194, 25346, 25552, 25753, 25932, 26161, 26338, 26493, 26694, 26871, 27024, 27278, 27431, 27736, 27838, 27996, 28278, 28686, 28812, 28993, 29094, 29270, 29396, 29577, 29908, 30236, 30415, 30543, 30695, 30871, 31228, 31562, 31740, 31894, 32070, 32274, 32453, 32860, 33190, 33394, 33520, 33671, 33850, 34052, 34329, 34686, 34890, 35094, 35270, 35396, 35550, 35906, 36211, 36365, 36896, 37050, 37304, 37432, 37711, 37787, 37940, 38068, 38270, 38396, 38778, 39136, 39262, 39464, 39490, 39644, 39820, 39976, 40304, 40711, 40838, 40966, 41119, 41295, 41434, 41787, 42194, 42270, 42448, 42577, 42778, 42929, 43262, 43694, 43871, 43973, 44228, 44510, 44662, 44869, 45045, 45327, 45478, 45659, 45860, 45986, 46012, 46344, 46676, 47028, 47156, 47310, 47466, 47646, 47877, 48285, 48511, 48696, 48824, 48976, 49253, 49686, 49812, 49993, 50144, 50297, 50476, 50829, 51136, 51338, 51518, 51644, 51770, 51974, 54493, 54568, 54774, 54852, 55003, 55182, 55340, 55493, 55619, 55798, 55976, 56178, 56329, 56457, 56585, 56736, 56940, 57194, 57320, 57474, 57602, 57728, 57909, 58136, 58440, 58568, 58694, 58820, 58974, 59152, 59354, 59508, 59638, 59789, 59968, 60144, 60272, 60400, 60577, 60728, 60933, 61060, 61243, 61394, 61570, 61778, 61906, 62060, 62236, 62364, 62518, 62694, 62846, 62974, 63152, 63304, 63434, 63610, 63736, 63890, 64171, 64326, 64478, 64659, 64936, 65062, 65216, 65394, 65520, 65724, 65852, 66054, 66461, 66588, 66690, 66869, 67045, 67224, 67352, 67478, 67836, 67889, 68018, 68144, 68270, 68448, 68627, 68808, 68934, 69111, 69238, 69417, 69543, 69696, 69823, 70001, 70130, 70258, 70411, 70642, 70818, 71096, 71224, 71377, 71456, 71636, 71767, 71894, 72096, 72274, 72478, 72579, 72705, 72884, 73037, 73318, 73444, 73621, 73774, 73902, 74104, 74207, 74386, 74512, 74666, 74818, 74995, 75146, 75402, 75558, 75709, 75835, 76012, 76165, 76293, 76470, 76621, 76749, 76928, 77079, 77207, 77436, 77486, 77768, 77894, 78045, 78172, 78352, 78503, 78630, 78814, 78920, 79100, 79226, 79377, 79583, 79734, 79869, 80070, 80198, 80352, 80528, 80682, 80936, 81216, 81495, 81545, 81827, 81905, 82058, 82236, 82364, 82493, 82644, 82820, 82951, 83152, 83303, 83484, 83636, 83839, 84018, 84245, 84448, 84602, 84778, 84934, 85110, 85312, 85465, 85591, 85768, 85944, 86121, 86247, 86375, 86552, 86703, 86880, 87010, 87161, 87338, 87493, 87619, 87795, 87950, 88077, 88253, 88508, 88661, 88838, 88993, 89119, 89270, 89474, 89650, 89801, 89978, 90132, 90310, 90665, 90844, 90995, 91352, 91810, 91986, 92192, 92369, 92570, 93003, 93184, 93386, 93693, 93919, 94146, 94402, 94629, 94755, 94911, 95318, 95596, 95774, 95976, 96380, 96532, 96661, 96864, 97068, 97499, 97804, 97982, 98136, 98340, 98720, 98871, 99050, 99253, 99610, 99762, 99919, 100224, 100402, 100604, 100757, 101010, 101161, 101338, 101493, 101694, 102253, 102432, 102560, 102711, 102866, 103043, 103245, 103398, 103577, 103729, 103911, 104142, 104268, 104545, 104646, 104902, 105028, 105207, 105415, 105566, 105698, 105902, 106054, 106411, 106743, 106945, 107096, 107352, 107707, 108194, 108346, 108577, 108728, 108909, 109287, 109720, 109922, 110152, 110354, 110560, 110917, 111322, 111501, 111703, 111932, 112211, 112644, 113024, 113180, 113385, 113768, 113894, 114045, 114249, 114630, 114835, 114961, 115140, 115344, 115621, 115827, 115982, 116114, 116293, 116570, 116723, 116927, 117104, 117360, 117665, 117844, 117995, 118402, 118528, 118656, 118811, 119018, 119194, 119703, 119829, 120006, 120161, 120364, 120568, 120820, 120976, 121207, 121411, 121616, 121869, 122022, 122432, 122610, 122838, 123043, 123371, 123525, 123703, 123857, 124062, 124470, 124646, 124774, 124931, 125136, 125493, 125619, 125820, 126024, 126457, 126610, 126789, 126942, 127320, 127524, 127830, 128211, 128364, 128594, 128948, 129127, 129304, 129457, 129864, 130018, 130194, 130345, 130753, 130932, 131085, 131262, 131619, 131745, 131896, 132079, 132386, 132746, 133152, 133508, 133864, 133993, 134194, 134346, 134550, 134906, 135287, 135440, 135694, 135845, 136026, 136432, 136787, 136915, 137119, 137245, 137451, 137810, 138243, SONG_END];
}
var iID = 0;
var initTime = getTimer();
iID = setInterval(main, 0);
Frame 18
function genStep(type) {
var _local1 = attachMovie("step", "step" + frame, frame++, {_x:set._x, _y:initY});
_local1.type = type;
_local1.listenSet = set;
_local1.speed = stepSpeed;
}
function main() {
if ((((getTimer() - initTime) + travelTime) >= songArrows[frame]) && (songArrows[frame] != SONG_END)) {
genStep(steps[frame]);
}
if (frame >= (steps.length - 1)) {
_root.dCheck.play();
}
if (_root.balance.balbar.balmask._width < 5) {
_root.frame = _root.steps.length;
_global.pass = false;
_root.dCheck.gotoAndStop(201);
}
_root.score.text = _global.sScore;
_root.currC.text = _global.currcombo;
}
var perfect = new Array();
var great = new Array();
var good = new Array();
var almost = new Array();
var bad = new Array();
var normal = new Array(2, 1, 4, 8, 2, 1, 4, 1, 4, 1, 2, 8, 4, 1, 4, 1, 2, 4, 1, 4, 1, 2, 1, 4, 8, 2, 1, 4, 8, 2, 1, 4, 8, 2, 8, 2, 1, 4, 2, 4, 1, 8, 4, 2, 1, 2, 8, 4, 2, 1, 2, 2, 4, 1, 2, 8, 4, 2, 1, 2, 2, 8, 1, 8, 4, 2, 2, 2, 1, 4, 8, 8, 2, 1, 4, 8, 2, 1, 4, 8, 2, 1, 8, 2, 4, 1, 2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, 2, 8, 4, 1, 8, 2, 4, 1, 8, 2, 4, 2, 8, 1, 4, 8, 2, 1, 8, 2, 4, 2, 8, 1, 2, 8, 4, 1, 8, 2, 4, 2, 8, 1, 2, 8, 4, 1, 8, 2, 4, 2, 8, 1, 4, 8, 2, 1, 8, 2, 4, 2, 4, 1, 8, 4, 8, 2, 8, 4, 1, 8, 2, 4, 2, 8, 1, 2, 8, 4, 1, 4, 2, 5, 2, 4, 1, 2, 8, 10, 2, 1, 4, 8, 2, 5, 4, 4, 1, 5, 2, 4, 8, 2, 4, 8, 2, 1, 4, 8, 5, 4, 8, 2, 1, 4, 2, 5, 1, 4, 8, 2, 1, 4, 8, 2, 1, 4, 1, 8, 10, 2, 1, 8, 2, 4, 2, 8, 1, 2, 8, 4, 1, 8, 2, 4, 1, 8, 8, 2, 2, 8, 4, 4, 1, 2, 2, 8, 4, 8, 4, 1, 2, 2, 8, 4, 1, 8, 8, 2, 4, 2, 4, 1, 2, 2, 8, 4, 1, 4, 4, 1, 2, 2, 1, 2, 8, 4, 1, 2, 2, 8, 2, 8, 2, 1, 4, 4, 8, 2, 2, 1, 4, 8, 2, 2, 8, 4, 4, 1, 2, 2, 8, 2, 8, 2, 1, 4, 8, 2, 8, 2, 8, 2, 8, 2, 1, 4, 1, 4, 4, 1, 4, 4, 8, 2, 8, 2, 8, 2, 8, 2, 1, 4, 4, 8, 2, 8, 2, 8, 2, 1, 4, 8, 2, 8, 8, 2, 1, 4, 8, 2, 1, 4, 8, 2, 8, 1, 4, 8, 2, 1, 8, 2, 4, 2, 8, 1, 2, 8, 4, 1, 8, 2, 4, 2, 8, 1, 2, 8, 4, 1, 8, 2, 4, 2, 8, 2, 4, 1, 2, 8, 4, 1, 8, 2, 4, 1, 5, 10, 5, 8, 5);
var steps = new Array();
var song = new Sound();
song.attachSound("motf");
song.start();
if (_global.diffi == 1) {
_root.dif.text = "Normal";
var trueSpeed = (6 * _global.speedracer);
} else {
_root.dif.text = "Hard";
var trueSpeed = (7 * _global.speedracer);
}
var frame = 0;
var stepSpeed = trueSpeed;
var initY = (Math.ceil(((Stage.height - set._y) / set._height) + 1) * set._height);
var travelTime = Math.floor((initY * 1000) / (stepSpeed * 40));
var SONG_END = 0;
if (diffi == 1) {
steps = normal;
} else {
steps = hard;
}
if (diffi == 1) {
var songArrows = [1645, 1850, 2152, 2379, 2757, 2984, 3412, 3541, 3944, 4125, 4553, 4730, 5159, 5285, 5763, 5841, 6018, 7278, 7379, 7682, 7707, 8999, 9327, 9528, 9730, 10161, 10539, 10741, 11093, 11270, 11471, 11673, 12102, 12278, 12480, 12631, 13009, 13161, 13438, 13614, 13892, 14169, 14421, 14547, 14900, 15152, 15455, 15862, 16039, 16341, 16846, 17148, 17425, 17703, 17904, 18283, 18434, 18789, 19091, 20077, 20278, 20732, 20757, 20959, 21035, 21261, 21690, 22194, 22625, 22979, 23184, 23587, 24068, 24194, 24572, 24724, 24927, 25255, 25583, 25810, 25936, 26112, 26263, 26516, 26871, 27072, 27325, 27602, 27879, 28056, 28358, 28535, 28686, 29013, 29167, 29495, 29696, 29904, 30081, 30283, 30360, 30663, 30789, 30940, 31217, 31469, 31747, 31923, 32075, 32331, 32684, 32991, 33293, 33520, 33646, 33876, 34051, 34253, 34505, 34785, 34986, 35238, 35440, 35692, 35818, 36020, 36297, 36625, 37182, 37409, 37663, 37789, 37991, 38066, 38370, 38673, 38976, 39278, 39480, 39581, 39732, 39934, 40165, 40493, 40694, 41022, 41299, 41503, 41631, 41732, 41909, 42161, 42413, 42617, 42894, 43196, 43449, 43524, 43701, 43751, 43984, 44186, 44467, 44770, 45072, 45249, 45425, 45551, 45703, 45882, 46035, 46211, 46438, 46642, 46818, 47070, 47221, 47580, 47785, 48089, 48241, 48518, 48619, 48948, 48948, 49226, 49352, 49478, 49705, 49906, 50184, 50310, 50511, 50637, 50916, 51045, 51224, 51350, 51476, 51703, 51955, 52207, 52459, 52661, 52888, 53013, 53190, 53367, 53593, 53873, 54079, 54282, 54484, 54686, 54812, 54963, 55089, 55266, 55694, 55946, 56148, 56325, 56526, 56728, 56854, 57006, 57133, 57285, 57465, 57667, 57944, 58196, 58424, 58625, 58751, 58877, 59104, 59308, 59535, 59635, 59838, 60045, 60224, 60501, 60677, 61106, 61283, 61434, 61610, 61938, 62140, 62291, 62518, 62669, 62923, 63049, 63202, 63329, 63505, 63583, 63759, 63860, 63963, 64114, 64266, 64392, 64568, 64694, 64820, 64946, 65098, 65224, 65551, 65728, 65854, 66005, 66131, 66257, 66383, 66535, 66661, 66837, 66963, 67115, 67216, 67417, 67543, 67694, 67871, 68077, 68203, 68404, 68530, 68684, 68784, 68986, 69087, 69289, 69415, 69566, 69745, 69896, 70022, 70150, 70352, 70503, 70633, 70810, 70936, 71087, 71213, 71390, 71491, 71743, 71894, 72098, 72224, 72400, 72526, 72652, 72829, 73030, 73156, 73308, 73409, 73638, 73764, 73940, 74096, 74322, 74449, 74575, 74726, 74927, 75131, 75284, 75461, 75637, 75864, 76041, 76144, 76424, 76650, 76801, 76927, 77131, 77308, 77509, 77637, 77789, 77965, 78142, 78268, 78469, 78671, 78875, 79105, 79358, 79610, 79812, 79964, 80090, 80272, 80474, 80627, 80753, 81005, 81182, 81358, 81535, 81812, 81938, 82142, 82343, 82621, 82797, 83027, 83156, 83461, 83839, 83991, 84192, 84495, 84621, 84822, 85026, 85152, 85328, 85507, 85659, 85835, 86062, 86188, 86491, 86543, 86921, 87072, 87249, 87451, 87577, 87854, 88009, 88287, 88463, 88614, 88791, 89021, 89226, 89478, 90413, 90539, 90744, 90873, 91077, 91255, 91457, 91608, 91835, 92163, 92364, 92617, 92743, 92995, 93125, 93276, 93453, 93680, 94033, 94234, 94511, 94763, 95067, 95272, 95402, 95604, 95755, 95958, 96140, 96368, 96573, 96825, 97077, 97228, 97354, 97530, 97732, 97984, 98291, 98495, 98671, 98873, 99049, 99251, 99402, 99659, 99911, 100087, 100213, 100415, 100595, 100799, 100951, 101102, 101329, 101530, 101732, 101858, 102085, 102211, 102463, 102617, 102921, 103104, 103230, 103381, 103560, 103711, 103967, 104095, 104325, 104425, 104627, 104753, 104929, 105059, 105261, 105387, 105589, 105741, 105917, 106069, 106251, 106528, 106654, 106831, 106957, 107184, 107387, 107513, 107766, 107918, 108043, 108196, 108322, 108501, 108652, 111047, 111881, 114127, 116598, 118491, 120308, SONG_END];
} else {
var songArrows = [1563, 1742, 2045, 2172, 2302, 2631, 2732, 2959, 3211, 3362, 3538, 3969, 4171, 4397, 4625, 4725, 4853, 4979, 5131, 6165, 6319, 6446, 6698, 6875, 7933, 8211, 8463, 8589, 8819, 9072, 9475, 9677, 9853, 10005, 10307, 10484, 10736, 10837, 11167, 11343, 11519, 11696, 11847, 11999, 12253, 12457, 12608, 12784, 13137, 13289, 13471, 13597, 13723, 14127, 14330, 14459, 14662, 15043, 15194, 15422, 15650, 16028, 16179, 16333, 16459, 16660, 17118, 17345, 17521, 17647, 18001, 18127, 18356, 18532, 18963, 19139, 19294, 19446, 19824, 19950, 20128, 20305, 20431, 20709, 20963, 21165, 21343, 21519, 21746, 21952, 22107, 22309, 22561, 22738, 22889, 23043, 23169, 23574, 23700, 23852, 24028, 24179, 24459, 24586, 24712, 25143, 25347, 25477, 25679, 25805, 25906, 26108, 26234, 26360, 26488, 26665, 26845, 27021, 27274, 27425, 27450, 27601, 27805, 27933, 28110, 28261, 28467, 28669, 28795, 28921, 29047, 29223, 29349, 29780, 29906, 30057, 30183, 30284, 30435, 30587, 30712, 30891, 31043, 31170, 31347, 31501, 31727, 32005, 32207, 32459, 32635, 32887, 33114, 33318, 33595, 33798, 34127, 34335, 34511, 34763, 35017, 35219, 35478, 35704, 35931, 36135, 36337, 36614, 36868, 37070, 37372, 37650, 37902, 38129, 38355, 38610, 38988, 39192, 39444, 39645, 39826, 40129, 40307, 40509, 40736, 40912, 41217, 41370, 41547, 41698, 41875, 42026, 42227, 42379, 42530, 42734, 42910, 43087, 43263, 43441, 43520, 43721, 43923, 44125, 44276, 44452, 44629, 44755, 44982, 45158, 45360, 45612, 45763, 45941, 46219, 46372, 46499, 46826, 47028, 47355, 47709, 48114, 48368, 48469, 48622, 48900, 49303, 49605, 49833, 49987, 50114, 50293, 50523, 50826, 51179, 51507, 51811, 51988, 52114, 52242, 52393, 52645, 52847, 53200, 53481, 53837, 54038, 54191, 54368, 54545, 54746, 54973, 55254, 55583, 55835, 56061, 56162, 56288, 56415, 56593, 56845, 57122, 57324, 57652, 57853, 57979, 58105, 58307, 58534, 58738, 59043, 59320, 59625, 59725, 59851, 60005, 60181, 60383, 60610, 60862, 61139, 61469, 61570, 61696, 61822, 61999, 62150, 62326, 62553, 62732, 62935, 63061, 63187, 63342, 63471, 63597, 63774, 63927, 64131, 64307, 64509, 64635, 64887, 65038, 65139, 65318, 65501, 65627, 65753, 65929, 66257, 66282, 66358, 66559, 66711, 66967, 67093, 67221, 67423, 67578, 67833, 67959, 68085, 68211, 68387, 68513, 68691, 68818, 68970, 69198, 69349, 69530, 69656, 69858, 69959, 70110, 70237, 70415, 70618, 70719, 70870, 71098, 71303, 71454, 71557, 71683, 71834, 71860, 72061, 72263, 72441, 72546, 72751, 72851, 73004, 73181, 73534, 73711, 73837, 73963, 74089, 74242, 74368, 74547, 74723, 74849, 74975, 75128, 75305, 75460, 75641, 75897, 76024, 76125, 76326, 76477, 76603, 76885, 77011, 77339, 77517, 77744, 77870, 78127, 78406, 78658, 78935, 79061, 79187, 79313, 79469, 79771, 79897, 80049, 80225, 80377, 80557, 80759, 80912, 81139, 81293, 81494, 81696, 81897, 82074, 82251, 82402, 82654, 82805, 83009, 83217, 83368, 83574, 83776, 83877, 84078, 84230, 84406, 84532, 84734, 84935, 85061, 85339, 85543, 85669, 85870, 86072, 86249, 86454, 86608, 86835, 86986, 87162, 87313, 87492, 87694, 87820, 88021, 88150, 88304, 88530, 88681, 88858, 88984, 89110, 89311, 89437, 89639, 89767, 89922, 90154, 90330, 90482, 90683, 90809, 90986, 91187, 91366, 91543, 91719, 91845, 91996, 92173, 92324, 92501, 92704, 92755, 93009, 93135, 93262, 93417, 93618, 93795, 94227, 94429, 94632, 94836, 94988, 95165, 95318, 95446, 95726, 95853, 96057, 96284, 96410, 96589, 96742, 97019, 97196, 97322, 97574, 97725, 98053, 98205, 98463, 98589, 98919, 98994, 99271, 99372, 99700, 99776, 99952, 100103, 100280, 100557, 100709, 101011, 101087, 101364, 101441, 101467, 101744, 101946, 102223, 102349, 102526, 102727, 102904, 103131, 103234, 103486, 103612, 103839, 104093, 104219, 104320, 104496, 104723, 104875, 105127, 105253, 105454, 105580, 105683, 105835, 105961, 106087, 106263, 106467, 106622, 106749, 106925, 107051, 107177, 107305, 107431, 107582, 107709, 107885, 109807, 111702, 113847, 115738, 117658, 119501, 123083, SONG_END];
}
var iID = 0;
var initTime = getTimer();
iID = setInterval(main, 0);
Frame 21
function maximumArray(Listing) {
var _local3 = 0;
while (_local3 < Listing.length) {
var _local4 = 0;
var _local1 = 0;
while (_local1 < Listing.length) {
if (Listing[_local3] >= Listing[_local1]) {
_local4++;
}
_local1++;
}
if (_local4 == Listing.length) {
return(_local3);
}
_local3++;
}
}
var tmpdiff = "no?";
_global.taoperaq = _global.taoperaq + _global.pe;
_global.taobadaq = _global.taobadaq + _global.ba;
tmp = maximumArray(_global.combos);
onEnterFrame = function () {
if (Key.isDown(8) && (!backIsDown)) {
gotoAndStop (9);
}
if (Key.isDown(8)) {
backIsDown = true;
} else {
backIsDown = false;
}
if (_global.diffi == 1) {
tmpdiff = "Normal";
} else {
tmpdiff = "Hard";
}
_root.urcombo.text = _global.combos[tmp];
if (_global.combos[tmp] >= _global.highestcombo) {
_global.highestcombo = _global.combos[tmp];
}
if (_global.sScore >= _global.hiscore) {
_global.hiscore = _global.sScore;
}
savefile.data.hicombo = _global.highestcombo;
savefile.data.TSP = _global.totalsongspl;
savefile.data.hiscore = _global.hiscore;
savefile.data.TSPas = _global.totalsongspas;
savefile.data.TSF = _global.totalsongsfai;
savefile.data.TAOPA = _global.taoperaq;
savefile.data.TAOBA = _global.taobadaq;
savefile.data.BG = _global.bgon;
savefile.data.GFX = _global.reggfx;
savefile.data.aS = _global.arrowStyle;
savefile.flush();
};
Symbol 17 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (reggfx == false) {
this.gotoAndPlay(2);
} else {
this.gotoAndStop(1);
}
delete onEnterFrame;
};
Symbol 17 MovieClip Frame 13
this.gotoAndPlay(2);
Symbol 20 MovieClip Frame 1
gotoAndPlay(random(99));
Symbol 20 MovieClip Frame 121
gotoAndPlay (2);
Symbol 20 MovieClip Frame 128
stop();
this.removeMovieClip();
Symbol 21 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (arrowStyle == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
Symbol 22 MovieClip Frame 1
stop();
Symbol 23 MovieClip [step] Frame 1
function invalidate() {
state = 3;
_global.combos.push(_global.currcombo);
set.gotoAndStop(2);
listenSet.disconnect(this);
}
function onEnterFrame() {
_y = (_y - speed);
switch (state) {
case 0 :
state = state + Number(_y <= (listenSet._y + relief));
break;
case 1 :
if (listenSet.listen(this)) {
switch (Math.abs(Math.floor(((listenSet._y - _y) / speed) >> 1))) {
case 0 :
_root.perfect.push(1);
_root.balance.balbar.balmask._width = _root.balance.balbar.balmask._width + 3;
_root.hitgrade.grade.gotoAndPlay(2);
_global.sScore = _global.sScore + 131;
_global.currcombo = _global.currcombo + 1;
break;
case 1 :
_root.hitgrade.grade.gotoAndPlay(12);
_root.balance.balbar.balmask._width = _root.balance.balbar.balmask._width + 2;
_root.great.push(1);
_global.sScore = _global.sScore + 115;
_global.currcombo = _global.currcombo + 1;
break;
case 2 :
_root.hitgrade.grade.gotoAndPlay(22);
_root.balance.balbar.balmask._width = _root.balance.balbar.balmask._width + 1;
_root.good.push(1);
_global.sScore = _global.sScore + 97;
_global.currcombo = 0;
break;
default :
_root.hitgrade.grade.gotoAndPlay(44);
_root.balance.balbar.balmask._width = _root.balance.balbar.balmask._width + 0.5;
_root.almost.push(1);
_global.sScore = _global.sScore + 64;
_global.currcombo = 0;
}
invalidate();
}
state = state + Number(_y <= (listenSet._y - relief));
break;
case 2 :
_root.hitgrade.grade.gotoAndPlay(33);
_root.balance.balbar.balmask._width = _root.balance.balbar.balmask._width - 4;
_root.bad.push(1);
_global.currcombo = 0;
invalidate();
break;
case 3 :
if (_y > (-(_height >> 1))) {
break;
}
removeMovieClip(this);
}
}
var state = 0;
var relief = (listenSet._height >> 1);
set.lArrow._visible = type & 1;
set.uArrow._visible = type & 2;
set.rArrow._visible = type & 4;
set.dArrow._visible = type & 8;
Symbol 25 MovieClip [GenArrow] Frame 1
stop();
if (_global.arrowStyle == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
function onEnterFrame() {
_y = (_y - 6);
var _local2 = hitTest(listenArrow);
if (_local2 && (!hit)) {
listenArrow.hittingArrows.push(this);
hit = _local2;
}
}
var hit = false;
Symbol 25 MovieClip [GenArrow] Frame 2
function onEnterFrame() {
_y = (_y - 6);
var _local2 = hitTest(listenArrow);
if (_local2 && (!hit)) {
listenArrow.hittingArrows.push(this);
hit = _local2;
}
}
var hit = false;
Symbol 29 MovieClip [songHolder] Frame 1
function onEnterFrame() {
if (_root._currentframe != 9) {
this.removeMovieClip();
}
}
Symbol 116 MovieClip Frame 141
gotoAndPlay ("bb");
Symbol 178 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 226 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 246 MovieClip Frame 40
stop();
Symbol 258 Button
on (press) {
_root.play();
}
Symbol 259 Button
on (release) {
_root.gotoAndStop(2);
}
Instance of Symbol 244 MovieClip in Symbol 262 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 262 MovieClip Frame 130
stop();
Symbol 262 MovieClip Frame 154
_root.play();
Symbol 497 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.5");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 274 Button
on (release) {
getURL ("http://www.theorangeday.com", "_blank");
}
Symbol 278 MovieClip Frame 1
onEnterFrame = function () {
if (this._currentframe <= 600) {
if (Key.isDown(83) && (!sIsDown)) {
gotoAndPlay (600);
}
if (Key.isDown(83)) {
sIsDown = true;
} else {
sIsDown = false;
}
}
};
Symbol 278 MovieClip Frame 900
_root.gotoAndStop(4);
Symbol 283 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 1
stop();
Symbol 310 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 314 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.arrowStyle == 2) {
this.gotoAndStop(2);
} else {
gotoAndStop (1);
}
};
Symbol 315 Button
on (release) {
_global.arrowStyle = 2;
}
Symbol 317 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.arrowStyle == 1) {
this.gotoAndStop(2);
} else {
gotoAndStop (1);
}
};
Symbol 318 Button
on (release) {
_global.arrowStyle = 1;
}
Symbol 328 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (!_global.bgon) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 332 Button
on (release) {
_global.bgon = false;
}
Symbol 333 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.bgon) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 335 Button
on (release) {
_global.bgon = true;
}
Symbol 341 Button
on (release) {
_global.speedracer = 1;
}
Symbol 343 Button
on (release) {
_global.speedracer = 1.1;
}
Symbol 345 Button
on (release) {
_global.speedracer = 1.2;
}
Symbol 347 Button
on (release) {
_global.speedracer = 1.3;
}
Symbol 349 Button
on (release) {
_global.speedracer = 1.4;
}
Symbol 351 Button
on (release) {
_global.speedracer = 1.5;
}
Symbol 354 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (reggfx == false) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
Symbol 356 Button
on (release) {
_global.reggfx = false;
}
Symbol 357 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (reggfx == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
Symbol 359 Button
on (release) {
_global.reggfx = true;
}
Symbol 360 MovieClip Frame 1
stop();
this.onRelease = function () {
if (savefile.data.hicombo == undefined) {
_global.bgon = false;
_global.reggfx = true;
_global.arrowStyle = 2;
_global.highestcombo = 0;
_global.totalsongspl = 0;
_global.hiscore = 0;
_global.totalsongspas = 0;
_global.totalsongsfai = 0;
_global.taoperaq = 0;
_global.taobadaq = 0;
} else {
_root.info.text = "Game Loaded Successfully!!";
_global.highestcombo = savefile.data.hicombo;
_global.totalsongspl = savefile.data.TSP;
_global.hiscore = savefile.data.hiscore;
_global.totalsongspas = savefile.data.TSPas;
_global.totalsongsfai = savefile.data.TSF;
_global.taoperaq = savefile.data.TAOPA;
_global.taobadaq = savefile.data.TAOBA;
_global.bgon = savefile.data.BG;
_global.reggfx = savefile.data.GFX;
_global.arrowStyle = savefile.data.aS;
}
};
Symbol 363 MovieClip Frame 1
stop();
this.onRelease = function () {
_root.info.text = "Game Saved Successfully!";
savefile.data.hicombo = _global.highestcombo;
savefile.data.TSP = _global.totalsongspl;
savefile.data.hiscore = _global.hiscore;
savefile.data.TSPas = _global.totalsongspas;
savefile.data.TSF = _global.totalsongsfai;
savefile.data.TAOPA = _global.taoperaq;
savefile.data.TAOBA = _global.taobadaq;
savefile.data.BG = _global.bgon;
savefile.data.GFX = _global.reggfx;
savefile.data.aS = _global.arrowStyle;
savefile.flush();
};
Symbol 366 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_quality == "HIGH") {
_root.Q_M.Q_M_B.gotoAndStop(1);
_root.Q_L.Q_L_B.gotoAndStop(1);
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
Symbol 368 Button
on (release) {
_quality = "high";
}
Symbol 369 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_quality == "LOW") {
_root.Q_H.Q_H_B.gotoAndStop(1);
_root.Q_M.Q_M_B.gotoAndStop(1);
this.gotoAndStop(2);
} else {
gotoAndStop (1);
}
};
Symbol 371 Button
on (release) {
_quality = "low";
}
Symbol 372 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_quality == "MEDIUM") {
_root.Q_H.Q_H_B.gotoAndStop(1);
_root.Q_L.Q_L_B.gotoAndStop(1);
this.gotoAndStop(2);
} else {
gotoAndStop (1);
}
};
Symbol 374 Button
on (release) {
_quality = "medium";
}
Symbol 404 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.diffi == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
Symbol 412 Button
on (release) {
_global.diffi = 1;
}
Symbol 413 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.diffi == 2) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
Symbol 415 Button
on (release) {
_global.diffi = 2;
}
Symbol 433 MovieClip Frame 1
function onEnterFrame() {
if (_root._currentframe != 9) {
this.removeMovieClip();
}
}
Symbol 435 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.bgon) {
_root.BG.gotoAndStop(2);
} else {
_root.BG.gotoAndStop(1);
}
};
Symbol 447 MovieClip Frame 1
stop();
Symbol 447 MovieClip Frame 11
gotoAndStop (1);
Symbol 447 MovieClip Frame 21
gotoAndStop (1);
Symbol 447 MovieClip Frame 31
gotoAndStop (1);
Symbol 447 MovieClip Frame 41
gotoAndStop (1);
Symbol 447 MovieClip Frame 50
gotoAndStop (1);
Symbol 448 MovieClip Frame 1
stop();
Symbol 448 MovieClip Frame 11
gotoAndStop (1);
Symbol 448 MovieClip Frame 21
gotoAndStop (1);
Symbol 448 MovieClip Frame 31
gotoAndStop (1);
Symbol 448 MovieClip Frame 41
gotoAndStop (1);
Symbol 448 MovieClip Frame 50
gotoAndStop (1);
Symbol 449 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (reggfx == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
delete onEnterFrame;
};
Symbol 453 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (arrowStyle == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
delete onEnterFrame;
};
function listen(target) {
targetMC = ((targetMC == null) ? (target) : (targetMC));
validKeys = ((Key.isDown(37) | (Key.isDown(38) << 1)) | (Key.isDown(39) << 2)) | (Key.isDown(40) << 3);
var _local1 = targetMC.type;
return((targetMC == target) && ((validKeys & _local1) == _local1));
}
function disconnect(target) {
return(((targetMC = ((targetMC == target) ? null : (targetMC)))) == null);
}
var targetMC = null;
var validKeys = 0;
Symbol 453 MovieClip Frame 2
function listen(target) {
targetMC = ((targetMC == null) ? (target) : (targetMC));
validKeys = ((Key.isDown(37) | (Key.isDown(38) << 1)) | (Key.isDown(39) << 2)) | (Key.isDown(40) << 3);
var _local1 = targetMC.type;
return((targetMC == target) && ((validKeys & _local1) == _local1));
}
function disconnect(target) {
return(((targetMC = ((targetMC == target) ? null : (targetMC)))) == null);
}
var targetMC = null;
var validKeys = 0;
Symbol 464 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (reggfx == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
Instance of Symbol 461 MovieClip "balmask" in Symbol 466 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._width >= 234) {
this._width = 233;
}
}
Symbol 471 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 201
_global.pe = _root.perfect.length;
_global.gr = _root.great.length;
_global.go = _root.good.length;
_global.al = _root.almost.length;
_global.ba = _root.bad.length;
_global.totarr = _root.steps.length;
_global.highest = _global.totarr * 131;
_global.totalsongspl = _global.totalsongspl + 1;
if (_global.pass == true) {
_global.totalsongspas = _global.totalsongspas + 1;
} else {
_global.totalsongsfai = _global.totalsongsfai + 1;
}
_root.song.stop();
_root.gotoAndStop("evaluation");
Symbol 474 Button
on (release) {
_root.gotoAndStop(9);
}
Symbol 487 MovieClip Frame 1
stop();
AAS = _global.highest * 0.95;
AS = _global.highest * 0.91;
BS = _global.highest * 0.85;
CS = _global.highest * 0.65;
DS = _global.highest * 0.5;
onEnterFrame = function () {
if (_global.sScore == _global.highest) {
this.gotoAndStop(1);
}
if ((_global.sScore >= AAS) && (_global.sScore <= (_global.highest - 1))) {
this.gotoAndStop(2);
}
if ((_global.sScore >= AS) && (_global.sScore <= (AAS - 1))) {
this.gotoAndStop(3);
}
if ((_global.sScore >= BS) && (_global.sScore <= (AS - 1))) {
this.gotoAndStop(4);
}
if ((_global.sScore >= CS) && (_global.sScore <= (BS - 1))) {
this.gotoAndStop(5);
}
if ((_global.sScore >= DS) && (_global.sScore <= (CS - 1))) {
this.gotoAndStop(6);
}
if (_global.pass == false) {
this.gotoAndStop(7);
}
};