Frame 1
function gotoSite() {
getURL ("http://www.bellbrothers.net", "bell");
}
stop();
char = 1;
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Gorillaz = new ContextMenuItem("Gorillaz Groove Session", gotoSite);
MENU.customItems.push(Gorillaz);
BellBrothers = new ContextMenuItem("Created by Bell Brothers (Dan Bell, John Bell)", gotoSite);
MENU.customItems.push(BellBrothers);
_root.menu = MENU;
Instance of Symbol 11 MovieClip in Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
getURL ("http://www.bellbrothers.net", "bell");
}
Frame 2
_root.mySound.nav = new Sound(_root.mySound);
_root.mySound.nav.attachSound("nav");
_root.mySound.song = new Sound(_root.mySound);
_root.mySound.song.attachSound("feelGood");
Frame 3
stop();
body._alpha = 0;
menuDestination = 100;
Instance of Symbol 58 MovieClip "body" in Frame 3
onClipEvent (enterFrame) {
if (this._alpha < _root.menuDestination) {
this._alpha = this._alpha + 10;
}
}
Instance of Symbol 248 MovieClip "menuChar" in Frame 3
onClipEvent (enterFrame) {
if (this._x != _root.menuCharDestination) {
this._x = this._x - ((this._x - _root.menuCharDestination) / 5);
}
if (this._x < -480) {
this.gotoAndStop(_root.charDestination);
_root.menuCharDestination = -138;
}
}
Instance of Symbol 36 MovieClip "menuActions" in Frame 3
onClipEvent (load) {
charDestination = "gorilla";
}
Instance of Symbol 36 MovieClip "menuActions" in Frame 3
onClipEvent (load) {
menuCharDestination = -138;
_root.mySound.nav.start(0, 999);
}
Frame 4
body._alpha = 0;
menuDestination = 100;
char = 1;
if (fromResults) {
menuChar.gotoAndStop("twoD");
fromResults = false;
}
Instance of Symbol 288 MovieClip "body" in Frame 4
onClipEvent (enterFrame) {
if (this._alpha < _root.menuDestination) {
this._alpha = this._alpha + 10;
}
}
Instance of Symbol 36 MovieClip "menuActions" in Frame 4
onClipEvent (load) {
charDestination = "twoD";
}
Frame 5
body._alpha = 0;
menuDestination = 100;
Instance of Symbol 338 MovieClip "body" in Frame 5
onClipEvent (enterFrame) {
if (this._alpha < _root.menuDestination) {
this._alpha = this._alpha + 10;
}
}
Frame 6
body._alpha = 0;
menuDestination = 100;
accuracy = Math.round(((perfect + ((early + late) / 2)) / 188) * 100);
body.finalScore.text = finalScore;
body.finalScoreShad.text = finalScore;
body.perfect.text = perfect;
body.perfectShad.text = perfect;
body.early.text = early;
body.earlyShad.text = early;
body.late.text = late;
body.lateShad.text = late;
body.accuracy.text = accuracy + "%";
body.accuracyShad.text = accuracy + "%";
body.faults.text = penalty;
body.faultsShad.text = penalty;
i = 1;
while (i <= 100) {
if (((scoreCard["playerName" + i] == playerName) && (scoreCard["char" + i] == char)) && (scoreCard["score" + i] == finalScore)) {
body.rank.gotoAndStop("ranked");
body.rank.rank.text = i;
body.rank.rankShad.text = i;
}
i++;
}
j = 1;
if ((penalty > ((early + late) + perfect)) && (j <= 2)) {
body["awards" + j].gotoAndStop("buttMash");
j++;
}
if ((inARow >= 25) && (j <= 2)) {
body["awards" + j].gotoAndStop("perf25");
j++;
} else if ((inARow >= 20) && (j <= 2)) {
body["awards" + j].gotoAndStop("perf20");
j++;
} else if ((inARow >= 15) && (j <= 2)) {
body["awards" + j].gotoAndStop("perf15");
j++;
} else if ((inARow >= 10) && (j <= 2)) {
body["awards" + j].gotoAndStop("perf10");
j++;
} else if ((inARow >= 5) && (j <= 2)) {
body["awards" + j].gotoAndStop("perf5");
j++;
}
if (((roundOneAccuracy < roundTwoAccuracy) && (roundTwoAccuracy < roundThreeAccuracy)) && (j <= 2)) {
body["awards" + j].gotoAndStop("progBett");
j++;
} else if (((roundOneAccuracy > roundTwoAccuracy) && (roundTwoAccuracy > roundThreeAccuracy)) && (j <= 2)) {
body["awards" + j].gotoAndStop("progWors");
j++;
} else if (((((roundOneAccuracy > (roundTwoAccuracy - 3)) && (roundOneAccuracy < (roundTwoAccuracy + 34))) && (roundOneAccuracy > (roundThreeAccuracy - 3))) && (roundOneAccuracy < (roundThreeAccuracy + 3))) && (j <= 2)) {
body["awards" + j].gotoAndStop("cons");
j++;
}
if (((early > (perfect / 2)) && (early > late)) && (j <= 2)) {
body["awards" + j].gotoAndStop("earlBird");
j++;
} else if (((late > (perfect / 2)) && (late > early)) && (j <= 2)) {
body["awards" + j].gotoAndStop("slowRefl");
j++;
}
if ((accuracy >= 80) && (j <= 2)) {
body["awards" + j].gotoAndStop("exceAccu");
j++;
} else if (((accuracy < 80) && (accuracy >= 65)) && (j <= 2)) {
body["awards" + j].gotoAndStop("abovAver");
j++;
} else if (((accuracy < 65) && (accuracy >= 50)) && (j <= 2)) {
body["awards" + j].gotoAndStop("averAccu");
j++;
} else if ((accuracy < 50) && (j <= 2)) {
body["awards" + j].gotoAndStop("hearAid");
j++;
}
if ((penalty == 0) && (j <= 2)) {
body["awards" + j].gotoAndStop("withFaul");
j++;
}
Instance of Symbol 416 MovieClip "body" in Frame 6
onClipEvent (enterFrame) {
if (this._alpha < _root.menuDestination) {
this._alpha = this._alpha + 10;
}
}
Frame 7
body._alpha = 0;
menuDestination = 100;
finalScore = (((perfect * 20) + (early * 10)) + (late * 10)) - penalty;
score = finalScore;
Instance of Symbol 434 MovieClip "body" in Frame 7
onClipEvent (enterFrame) {
if (this._alpha < _root.menuDestination) {
this._alpha = this._alpha + 10;
}
}
Frame 8
body._alpha = 0;
menuDestination = 100;
System.security.allowDomain("http:www.bellbrothers.net");
scoreCard = new LoadVars();
scoreCard.playerName = playerName;
scoreCard.score = score;
scoreCard.char = char;
scoreCard.sendAndLoad("http://www.bellbrothers.net/gorillaz.php", scoreCard, "POST");
scoreCard.onLoad = function (success) {
if (success) {
if (Boolean(scoreCard.success)) {
score = null;
gotoAndStop(dBDestination);
} else {
body.gotoAndStop("error");
}
} else {
body.gotoAndStop("error");
}
};
Instance of Symbol 452 MovieClip "body" in Frame 8
onClipEvent (enterFrame) {
if (this._alpha < _root.menuDestination) {
this._alpha = this._alpha + 10;
}
}
Frame 9
_root.mySound.song.start();
lightPlayer._visible = false;
lightComp._visible = false;
offset = 2000;
scale = 20;
time = 150;
rightTotal = 0;
leftTotal = 0;
rhythmMarkTotal = 0;
grooveMarkTotal = 0;
right = new Array(6806, 7671, 8544, 9400, 10273, 11138, 12002, 12869, 13734, 14600, 15474, 16335, 17199, 18070, 18934, 19795, 20658, 21535, 22393, 23263, 24132, 24994, 25860, 26733, 27613, 28461, 29333, 30197, 33661, 34526, 35400, 36273, 37126, 37998, 38864, 39729, 40589, 41459, 42327, 43197, 44927, 45795, 46658, 47513, 48386, 49258, 50133, 50984, 51856, 52713, 53580, 55313, 56184, 57041, 57913, 58779, 59655, 60513, 61383, 62250, 63113, 79570, 80442, 81313, 82175, 83026, 83913, 84765, 85636, 86513, 87374, 88231, 89113, 89964, 90835, 91713, 92568, 93435, 96034, 96913, 97762, 98634, 99513, 100367, 101233, 102113, 102951, 103853, 104713, 105571, 106422, 108165, 109913, 110765, 111623, 112513, 113350, 114216, 115083, 115954, 116826, 117686, 118558, 119429, 120313, 121163, 122024, 122886, 123757, 124619, 125480, 126357, 127213, 128089, 128936, 129827, 130674, 131543, 132427, 133296, 134143, 135000, 135873, 136750, 137611, 166200, 167077, 167938, 168807, 169669, 170538, 171400, 172269, 173133, 174000, 174867, 175725, 176592, 177500, 177500, 179184, 180060, 180927, 181803, 182661, 183537, 184392, 185254, 186109, 187000, 187855, 190455, 191332, 192179, 193056, 193926, 194780, 195657, 196514, 197396, 198258, 199112, 200000, 204321, 205176, 206045, 206907, 207799, 208653, 209506, 210385, 211261, 212123, 213000, 213855);
rhythmMark = new Array(6806, 7671, 8544, 9400, 10273, 11138, 12002, 12869, 13734, 14600, 15474, 16335, 17199, 18070, 18934, 19795, 20658, 21535, 22393, 23263, 24132, 24994, 25860, 26733, 27613, 28461, 29333, 30197, 31063, 31929, 32795, 33661, 34526, 35400, 36273, 37126, 37998, 38864, 39729, 40589, 41459, 42327, 43197, 44062, 44927, 45795, 46658, 47513, 48386, 49258, 50133, 50984, 51856, 52713, 53580, 54446, 55313, 56184, 57041, 57913, 58779, 59655, 60513, 61383, 62250, 63113, 63979, 64845, 65711, 66577, 67443, 68309, 69175, 70041, 70907, 71773, 72639, 73505, 74371, 75237, 76103, 76969, 77835, 78701, 79570, 80442, 81313, 82175, 83026, 83913, 84765, 85636, 86513, 87374, 88231, 89113, 89964, 90835, 91713, 92568, 93435, 94301, 95167, 96034, 96913, 97762, 98634, 99513, 100367, 101233, 102113, 102951, 103853, 104713, 105571, 106422, 107288, 108165, 109031, 109913, 110765, 111623, 112513, 113350, 114216, 115083, 115954, 116826, 117686, 118558, 119429, 120313, 121163, 122024, 122886, 123757, 124619, 125480, 126357, 127213, 128089, 128936, 129827, 130674, 131543, 132427, 133296, 134143, 135000, 135873, 136750, 137611, 138477, 139343, 140209, 141075, 141941, 142807, 143673, 144539, 145405, 146271, 147137, 148003, 148869, 149735, 150601, 151467, 152333, 153199, 154065, 154931, 155797, 156663, 157529, 158395, 159261, 160127, 160993, 161859, 162725, 163591, 164457, 165323, 166200, 167077, 167938, 168807, 169669, 170538, 171400, 172269, 173133, 174000, 174867, 175725, 176592, 177500, 178366, 179184, 180060, 180927, 181803, 182661, 183537, 184392, 185254, 186109, 187000, 187855, 188721, 189587, 190455, 191332, 192179, 193056, 193926, 194780, 195657, 196514, 197396, 198258, 199112, 200000, 200866, 201732, 202598, 203464, 204321, 205176, 206045, 206907, 207799, 208653, 209506, 210385, 211261, 212123, 213000, 213855);
left = new Array(6374, 7455, 8113, 9190, 9841, 10913, 11574, 12656, 13313, 14386, 15034, 16127, 16769, 17854, 18500, 19371, 20240, 21313, 21966, 23049, 23694, 24784, 25436, 26294, 26513, 27164, 28247, 28898, 29983, 33446, 34097, 35200, 35832, 36913, 37565, 38647, 39295, 40377, 41030, 42113, 42761, 45580, 46226, 47313, 47966, 49039, 49689, 50774, 51427, 52513, 53151, 54880, 56010, 56618, 57713, 58346, 59426, 60079, 61164, 61817, 62913, 63550, 79142, 80233, 80875, 81966, 82618, 83713, 84341, 85208, 86074, 87155, 87807, 88888, 89540, 90621, 91273, 92369, 93001, 95815, 96472, 97553, 98201, 99286, 99939, 101014, 101677, 102752, 103405, 104480, 105113, 106208, 106866, 107946, 108594, 109679, 110352, 111417, 112060, 113145, 113798, 114874, 115513, 116617, 117258, 118349, 118991, 120007, 120713, 121810, 122452, 123543, 124190, 125276, 125913, 127004, 127662, 128737, 129378, 130460, 131116, 132191, 132847, 133944, 134585, 135682, 136308, 137383, 165781, 166856, 167500, 168594, 169220, 170325, 171000, 171834, 172704, 173777, 174429, 175500, 176154, 177245, 177888, 178344, 178764, 179086, 179407, 179640, 180703, 181365, 182446, 183090, 184171, 184819, 185917, 186551, 187663, 190029, 191126, 191759, 192850, 193500, 194566, 195230, 196320, 196961, 198037, 198692, 199775, 203879, 204955, 205618, 206701, 207364, 208440, 209095, 210178, 210819, 211910, 212558, 213634);
grooveMark = new Array(6374, 6806, 7455, 7671, 8113, 8544, 9190, 9400, 9841, 10273, 10913, 11138, 11574, 12002, 12656, 12869, 13313, 13734, 14386, 14600, 15034, 15474, 16127, 16335, 16769, 17199, 17854, 18070, 18500, 18934, 19371, 19795, 20240, 20658, 21313, 21535, 21966, 22393, 23049, 23263, 23694, 24132, 24784, 24994, 25436, 25860, 26513, 26733, 27164, 27613, 28247, 28461, 28898, 29333, 29983, 30197, 30629, 31063, 31714, 31929, 32361, 32795, 33446, 33661, 34097, 34526, 35200, 35400, 35832, 36273, 36913, 37126, 37565, 37998, 38647, 38864, 39295, 39729, 40377, 40589, 41030, 41459, 42113, 42327, 42761, 43197, 43847, 44062, 44493, 44927, 45580, 45795, 46226, 46658, 47313, 47513, 47966, 48386, 49039, 49258, 49689, 50133, 50774, 50984, 51427, 51856, 52513, 52713, 53151, 53580, 54231, 54446, 54880, 55313, 56010, 56184, 56618, 57041, 57713, 57913, 58346, 58779, 59426, 59655, 60079, 60513, 61164, 61383, 79142, 79570, 80233, 80442, 80875, 81313, 81966, 82175, 82618, 83026, 83713, 83913, 84341, 84765, 85208, 85636, 86074, 86513, 87155, 87374, 87807, 88231, 88888, 89113, 89540, 89964, 90621, 90835, 91273, 91713, 92369, 92568, 93001, 93435, 94086, 94301, 94733, 95167, 95815, 96034, 96472, 96913, 97553, 97762, 98201, 98634, 99286, 99513, 99939, 100367, 101014, 101233, 101677, 102113, 102752, 102951, 103405, 103853, 104480, 104713, 105113, 105571, 106208, 106422, 106866, 107288, 107946, 108165, 108594, 109031, 109679, 109913, 110352, 110765, 111417, 111623, 112060, 112513, 113145, 113350, 113798, 114216, 114874, 115083, 115513, 115954, 116617, 116826, 117258, 117686, 118349, 118558, 118991, 119429, 120007, 120313, 120713, 121163, 121810, 122024, 122452, 122886, 123543, 123757, 124190, 124619, 125276, 125480, 125913, 126357, 127004, 127213, 127662, 128089, 128737, 128936, 129378, 129827, 130460, 130674, 131116, 131543, 132191, 132427, 132847, 133296, 133944, 134143, 134585, 135000, 135682, 135873, 136308, 136750, 137383, 137611, 165781, 166200, 166856, 167077, 167500, 167938, 168594, 168807, 169220, 169669, 170325, 170538, 171000, 171400, 171834, 172269, 172704, 173133, 173777, 174000, 174429, 174867, 175500, 175725, 176154, 176592, 177245, 177500, 177888, 178366, 178764, 179184, 179640, 180060, 180703, 180927, 181365, 181803, 182446, 182661, 183090, 183537, 184171, 184392, 184819, 185254, 185917, 186109, 186551, 187000, 187663, 187855, 188287, 188721, 189372, 189587, 190029, 190455, 191126, 191332, 191759, 192179, 192850, 193056, 193500, 193926, 194566, 194780, 195230, 195657, 196320, 196514, 196961, 197396, 198037, 198258, 198692, 199112, 199775, 200000, 200432, 200866, 201517, 201732, 202164, 202598, 203149, 203464, 203879, 204321, 204955, 205176, 205618, 206045, 206701, 206907, 207364, 207799, 208440, 208653, 209095, 209506, 210178, 210385, 210819, 211261, 211910, 212123, 212558, 213000, 213634, 213855);
grooveMove = new Array(0, 0, 0, 0);
russelLeftDestination = 0;
russelRightDestination = 0;
russelHeadDestination = 0;
gorillaHeadDestination = 0;
gorillaArmDestination = 60;
gorillaHandRightDestination = 7;
gorillaHandLeftDestination = -7;
gorillaTorsoDestination = 15;
gorillaLegLeftDestination = 0;
gorillaLegLeftUpperDestination = 0;
twoDHeadDestination = 68;
twoDTorsoDestination = 74;
twoDArmRightDestination = 0;
twoDArmRightLowerDestination = 0;
twoDArmLeftDestination = 0;
twoDArmLeftLowerDestination = 0;
twoDLegLeftDestination = 0;
twoDLegLeftUpperDestination = 0;
twoDLegRightDestination = 0;
twoDLegRightUpperDestination = 0;
i = 0;
nextI = 4;
turn = "comp";
hitFirst = true;
hitSecond = true;
hitThird = true;
perfect = 0;
late = 0;
early = 0;
penalty = 0;
roundOnePerfect = 0;
roundOneLate = 0;
roundOneEarly = 0;
roundOne = true;
roundTwo = true;
roundThree = true;
roundOneEnd = true;
roundTwoEnd = true;
roundThreeEnd = true;
roundResultsDestination = 400;
compLeft.yellow._alpha = 0;
compLeft.green._alpha = 0;
compLeft.red._alpha = 0;
compLeft.orange._alpha = 0;
compRight.yellow._alpha = 0;
compRight.green._alpha = 0;
compRight.red._alpha = 0;
compRight.orange._alpha = 0;
compDown.yellow._alpha = 0;
compDown.green._alpha = 0;
compDown.red._alpha = 0;
compDown.orange._alpha = 0;
playerLeft.yellow._alpha = 0;
playerLeft.green._alpha = 0;
playerLeft.red._alpha = 0;
playerLeft.orange._alpha = 0;
playerRight.yellow._alpha = 0;
playerRight.green._alpha = 0;
playerRight.red._alpha = 0;
playerRight.orange._alpha = 0;
playerDown.yellow._alpha = 0;
playerDown.green._alpha = 0;
playerDown.red._alpha = 0;
playerDown.orange._alpha = 0;
brickWallDestination = -410;
inARow = 0;
currentInARow = 0;
endGame = true;
actions.onEnterFrame = function () {
if (mySound.song.position > (grooveMark[i] - 25)) {
if (turn == "comp") {
grooveMove[i % 4] = int(Math.random() * 3);
if (grooveMove[i % 4] == 0) {
compLeft.green._alpha = 100;
gorilla.torso.armLeft._y = 30;
gorilla.torso.armLeft._rotation = 10;
gorilla.torso.armLeft.hand._rotation = -40;
i++;
} else if (grooveMove[i % 4] == 1) {
compRight.green._alpha = 100;
gorilla.torso.armRight._y = 30;
gorilla.torso.armRight._rotation = -10;
gorilla.torso.armRight.hand._rotation = 40;
i++;
} else if (grooveMove[i % 4] == 2) {
compDown.green._alpha = 100;
gorilla.torso.armLeft._rotation = -15;
gorilla.torso.armLeft.hand._rotation = -80;
gorilla.torso.armRight._rotation = 15;
gorilla.torso.armRight.hand._rotation = 80;
i++;
}
} else if (turn == "player") {
if (((mySound.song.position - 200) > (grooveMark[i] + 100)) && (i != 376)) {
i++;
}
}
}
if (compLeft.yellow._alpha > 0) {
compLeft.yellow._alpha = compLeft.yellow._alpha - 6.25;
}
if (compLeft.green._alpha > 0) {
compLeft.green._alpha = compLeft.green._alpha - 6.25;
}
if (compLeft.red._alpha > 0) {
compLeft.red._alpha = compLeft.red._alpha - 6.25;
}
if (compLeft.orange._alpha > 0) {
compLeft.orange._alpha = compLeft.orange._alpha - 6.25;
}
if (compRight.yellow._alpha > 0) {
compRight.yellow._alpha = compRight.yellow._alpha - 6.25;
}
if (compRight.green._alpha > 0) {
compRight.green._alpha = compRight.green._alpha - 6.25;
}
if (compRight.red._alpha > 0) {
compRight.red._alpha = compRight.red._alpha - 6.25;
}
if (compRight.orange._alpha > 0) {
compRight.orange._alpha = compRight.orange._alpha - 6.25;
}
if (compDown.yellow._alpha > 0) {
compDown.yellow._alpha = compDown.yellow._alpha - 6.25;
}
if (compDown.green._alpha > 0) {
compDown.green._alpha = compDown.green._alpha - 6.25;
}
if (compDown.red._alpha > 0) {
compDown.red._alpha = compDown.red._alpha - 6.25;
}
if (compDown.orange._alpha > 0) {
compDown.orange._alpha = compDown.orange._alpha - 6.25;
}
if (playerLeft.yellow._alpha > 0) {
playerLeft.yellow._alpha = playerLeft.yellow._alpha - 6.25;
}
if (playerLeft.green._alpha > 0) {
playerLeft.green._alpha = playerLeft.green._alpha - 6.25;
}
if (playerLeft.red._alpha > 0) {
playerLeft.red._alpha = playerLeft.red._alpha - 6.25;
}
if (playerLeft.orange._alpha > 0) {
playerLeft.orange._alpha = playerLeft.orange._alpha - 6.25;
}
if (playerRight.yellow._alpha > 0) {
playerRight.yellow._alpha = playerRight.yellow._alpha - 6.25;
}
if (playerRight.green._alpha > 0) {
playerRight.green._alpha = playerRight.green._alpha - 6.25;
}
if (playerRight.red._alpha > 0) {
playerRight.red._alpha = playerRight.red._alpha - 6.25;
}
if (playerRight.orange._alpha > 0) {
playerRight.orange._alpha = playerRight.orange._alpha - 6.25;
}
if (playerDown.yellow._alpha > 0) {
playerDown.yellow._alpha = playerDown.yellow._alpha - 6.25;
}
if (playerDown.green._alpha > 0) {
playerDown.green._alpha = playerDown.green._alpha - 6.25;
}
if (playerDown.red._alpha > 0) {
playerDown.red._alpha = playerDown.red._alpha - 6.25;
}
if (playerDown.orange._alpha > 0) {
playerDown.orange._alpha = playerDown.orange._alpha - 6.25;
}
if ((mySound.song.position > (grooveMark[0] - 225)) && (hitFirst)) {
lightComp._visible = true;
hitFirst = false;
}
if ((mySound.song.position > (grooveMark[128] - 225)) && (hitSecond)) {
lightComp._visible = true;
hitSecond = false;
}
if ((mySound.song.position > (grooveMark[264] - 225)) && (hitThird)) {
lightComp._visible = true;
hitThird = false;
}
if ((mySound.song.position > (grooveMark[127] + 500)) && (roundOne)) {
roundOnePerfect = perfect;
roundOneEarly = early;
roundOneLate = late;
roundOneAccuracy = Math.round(((roundOnePerfect + ((roundOneEarly + roundOneLate) / 2)) / 64) * 100);
roundResults.gotoAndStop("roundOne");
roundResultsDestination = 171;
roundResults.perfect.text = roundOnePerfect;
roundResults.perfectShad.text = roundOnePerfect;
roundResults.early.text = roundOneEarly;
roundResults.earlyShad.text = roundOneEarly;
roundResults.late.text = roundOneLate;
roundResults.lateShad.text = roundOneLate;
roundResults.accuracy.text = roundOneAccuracy + "%";
roundResults.accuracyShad.text = roundOneAccuracy + "%";
roundOne = false;
}
if ((mySound.song.position > (grooveMark[263] + 500)) && (roundTwo)) {
roundTwoPerfect = perfect - roundOnePerfect;
roundTwoEarly = early - roundOneEarly;
roundTwoLate = late - roundOneLate;
roundTwoAccuracy = Math.round(((roundTwoPerfect + ((roundTwoEarly + roundTwoLate) / 2)) / 68) * 100);
roundResults.gotoAndStop("roundTwo");
roundResultsDestination = 171;
roundResults.perfect.text = roundTwoPerfect;
roundResults.perfectShad.text = roundTwoPerfect;
roundResults.early.text = roundTwoEarly;
roundResults.earlyShad.text = roundTwoEarly;
roundResults.late.text = roundTwoLate;
roundResults.lateShad.text = roundTwoLate;
roundResults.accuracy.text = roundTwoAccuracy + "%";
roundResults.accuracyShad.text = roundTwoAccuracy + "%";
roundTwo = false;
}
if ((mySound.song.position > (grooveMark[375] + 500)) && (roundThree)) {
roundThreePerfect = (perfect - roundOnePerfect) - roundTwoPerfect;
roundThreeEarly = (early - roundOneEarly) - roundTwoEarly;
roundThreeLate = (late - roundOneLate) - roundTwoLate;
roundThreeAccuracy = Math.round(((roundThreePerfect + ((roundThreeEarly + roundThreeLate) / 2)) / 56) * 100);
roundResults.gotoAndStop("roundThree");
roundResultsDestination = 171;
roundResults.perfect.text = roundThreePerfect;
roundResults.perfectShad.text = roundThreePerfect;
roundResults.early.text = roundThreeEarly;
roundResults.earlyShad.text = roundThreeEarly;
roundResults.late.text = roundThreeLate;
roundResults.lateShad.text = roundThreeLate;
roundResults.accuracy.text = roundThreeAccuracy + "%";
roundResults.accuracyShad.text = roundThreeAccuracy + "%";
roundThree = false;
}
if ((mySound.song.position > (grooveMark[128] - 2000)) && (roundOneEnd)) {
roundResultsDestination = 400;
roundOneEnd = false;
}
if ((mySound.song.position > (grooveMark[264] - 2000)) && (roundTwoEnd)) {
roundResultsDestination = 400;
roundTwoEnd = false;
}
if ((mySound.song.position >= (mySound.song.duration - 100)) && (roundThreeEnd)) {
roundResultsDestination = 400;
roundThreeEnd = false;
}
if (mySound.song.position > (grooveMark[i - 1] + 225)) {
if (((i % 4) == 0) && (i == nextI)) {
if (turn == "comp") {
turn = "player";
lightPlayer._visible = true;
lightComp._visible = false;
} else if ((((turn == "player") && (i != 128)) && (i != 264)) && (i != 376)) {
turn = "comp";
lightPlayer._visible = false;
lightComp._visible = true;
} else {
turn = "comp";
lightPlayer._visible = false;
lightComp._visible = false;
}
nextI = nextI + 4;
}
}
if (roundResults._y != roundResultsDestination) {
roundResults._y = roundResults._y - ((roundResults._y - roundResultsDestination) / 5);
}
if (roundResults._y >= 399.5) {
roundResults.gotoAndStop("blank");
}
if (brickWall._y != brickWallDestination) {
brickWall._y = brickWall._y - ((brickWall._y - brickWallDestination) / 7);
}
if ((brickWall._y <= -409.5) && (brickWallDestination == -410)) {
brickWall.gotoAndStop("blank");
}
if ((mySound.song.position >= (mySound.song.duration - 100)) && (endGame)) {
brickWallDestination = 0;
brickWall.gotoAndStop("brickWall");
endGame = false;
}
if ((brickWall._y >= -0.5) && (!endGame)) {
Key.removeListener(listener);
delete actions.onEnterFrame;
gotoAndStop ("enterName");
}
if (mySound.song.position <= (left[leftTotal] - time)) {
russelLeftDestination = 0;
} else if (mySound.song.position <= left[leftTotal]) {
russelLeftDestination = -9;
} else if (mySound.song.position >= (left[leftTotal] + time)) {
leftTotal++;
} else if (mySound.song.position > left[leftTotal]) {
russelLeftDestination = 11;
}
russel.armLeft._rotation = russel.armLeft._rotation - ((russel.armLeft._rotation - russelLeftDestination) / 3.5);
if (mySound.song.position <= (right[rightTotal] - time)) {
russelRightDestination = 0;
russelHeadDestination = 0;
} else if (mySound.song.position <= right[rightTotal]) {
russelRightDestination = 9;
} else if (mySound.song.position >= (right[rightTotal] + time)) {
rightTotal++;
} else if (mySound.song.position > right[rightTotal]) {
russelRightDestination = -11;
russelHeadDestination = 10;
}
if (mySound.song.position <= (rhythmMark[rhythmMarkTotal] - time)) {
gorillaHeadDestination = 0;
gorillaArmDestination = 60;
gorillaTorsoDestination = 15;
gorillaLegLeftDestination = 0;
gorillaLegLeftUpperDestination = 0;
gorillaLegRightDestination = 0;
gorillaLegRightUpperDestination = 0;
twoDHeadDestination = 68;
twoDTorsoDestination = 74;
twoDArmRightDestination = 0;
twoDArmRightLowerDestination = 0;
twoDArmLeftDestination = 0;
twoDArmLeftLowerDestination = 0;
twoDLegLeftDestination = 0;
twoDLegLeftUpperDestination = 0;
twoDLegRightDestination = 0;
twoDLegRightUpperDestination = 0;
} else if (mySound.song.position >= (rhythmMark[rhythmMarkTotal] + (time * 1.5))) {
rhythmMarkTotal++;
} else if (mySound.song.position > rhythmMark[rhythmMarkTotal]) {
gorillaHeadDestination = 60;
gorillaArmDestination = 70;
gorillaTorsoDestination = 60;
gorillaLegLeftDestination = -20;
gorillaLegLeftUpperDestination = 80;
gorillaLegRightDestination = 20;
gorillaLegRightUpperDestination = -80;
twoDHeadDestination = 98;
twoDTorsoDestination = 96;
twoDArmRightDestination = 10;
twoDArmRightLowerDestination = -20;
twoDArmLeftDestination = -10;
twoDArmLeftLowerDestination = 20;
twoDLegLeftDestination = -10;
twoDLegLeftUpperDestination = 20;
twoDLegRightDestination = 15;
twoDLegRightUpperDestination = -30;
}
russel.armRight.lower._rotation = russel.armRight.lower._rotation - ((russel.armRight.lower._rotation - russelRightDestination) / 3.5);
russel.head._y = russel.head._y - ((russel.head._y - russelHeadDestination) / 10);
gorilla.head._y = gorilla.head._y - ((gorilla.head._y - gorillaHeadDestination) / 8);
gorilla.torso.armLeft._y = gorilla.torso.armLeft._y - ((gorilla.torso.armLeft._y - gorillaArmDestination) / 6);
gorilla.torso.armRight._y = gorilla.torso.armRight._y - ((gorilla.torso.armRight._y - gorillaArmDestination) / 6);
gorilla.torso._y = gorilla.torso._y - ((gorilla.torso._y - gorillaTorsoDestination) / 8);
gorilla.legLeft._rotation = gorilla.legLeft._rotation - ((gorilla.legLeft._rotation - gorillaLegLeftDestination) / 6);
gorilla.legLeft.upper._rotation = gorilla.legLeft.upper._rotation - ((gorilla.legLeft.upper._rotation - gorillaLegLeftUpperDestination) / 6);
gorilla.legRight._rotation = gorilla.legRight._rotation - ((gorilla.legRight._rotation - gorillaLegRightDestination) / 6);
gorilla.legRight.upper._rotation = gorilla.legRight.upper._rotation - ((gorilla.legRight.upper._rotation - gorillaLegRightUpperDestination) / 6);
twoD.head._y = twoD.head._y - ((twoD.head._y - twoDHeadDestination) / 8);
twoD.torso._y = twoD.torso._y - ((twoD.torso._y - twoDTorsoDestination) / 8);
twoD.torso.armRight._rotation = twoD.torso.armRight._rotation - ((twoD.torso.armRight._rotation - twoDArmRightDestination) / 6);
twoD.torso.armRight.lower._rotation = twoD.torso.armRight.lower._rotation - ((twoD.torso.armRight.lower._rotation - twoDArmRightLowerDestination) / 6);
twoD.torso.armLeft._rotation = twoD.torso.armLeft._rotation - ((twoD.torso.armLeft._rotation - twoDArmLeftDestination) / 6);
twoD.torso.armLeft.lower._rotation = twoD.torso.armLeft.lower._rotation - ((twoD.torso.armLeft.lower._rotation - twoDArmLeftLowerDestination) / 6);
twoD.legLeft._rotation = twoD.legLeft._rotation - ((twoD.legLeft._rotation - twoDLegLeftDestination) / 6);
twoD.legLeft.upper._rotation = twoD.legLeft.upper._rotation - ((twoD.legLeft.upper._rotation - twoDLegLeftUpperDestination) / 6);
twoD.legRight._rotation = twoD.legRight._rotation - ((twoD.legRight._rotation - twoDLegRightDestination) / 6);
twoD.legRight.upper._rotation = twoD.legRight.upper._rotation - ((twoD.legRight.upper._rotation - twoDLegRightUpperDestination) / 6);
twoD.head._rotation = twoD.head._rotation - (twoD.head._rotation / 7);
gorilla.torso.armLeft._rotation = gorilla.torso.armLeft._rotation - (gorilla.torso.armLeft._rotation / 7);
gorilla.torso.armRight._rotation = gorilla.torso.armRight._rotation - (gorilla.torso.armRight._rotation / 7);
gorilla.torso.armLeft.hand._rotation = gorilla.torso.armLeft.hand._rotation - ((gorilla.torso.armLeft.hand._rotation - gorillaHandLeftDestination) / 6);
gorilla.torso.armRight.hand._rotation = gorilla.torso.armRight.hand._rotation - ((gorilla.torso.armRight.hand._rotation - gorillaHandRightDestination) / 6);
};
listener = new Object();
listener.onKeyDown = function () {
if (Key.isDown(39)) {
twoD.torso.armRight._rotation = -45;
twoD.torso.armRight.lower._rotation = 30;
twoD.torso.armLeft._rotation = 0;
twoD.torso.armLeft.lower._rotation = -20;
if ((((mySound.song.position - 200) > (grooveMark[i] - 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 32))) && (grooveMove[i % 4] == 1)) {
currentInARow++;
if (currentInARow > inARow) {
inARow = currentInARow;
}
playerRight.green._alpha = 100;
perfect++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] - 100)) && ((mySound.song.position - 200) < (grooveMark[i] - 32))) && (grooveMove[i % 4] == 1)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerRight.yellow._alpha = 100;
early++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] + 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 100))) && (grooveMove[i % 4] == 1)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerRight.orange._alpha = 100;
late++;
i++;
} else {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerRight.red._alpha = 100;
penalty++;
}
}
if (Key.isDown(37)) {
twoD.torso.armRight._rotation = 0;
twoD.torso.armRight.lower._rotation = 20;
twoD.torso.armLeft._rotation = 45;
twoD.torso.armLeft.lower._rotation = -30;
if ((((mySound.song.position - 200) > (grooveMark[i] - 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 32))) && (grooveMove[i % 4] == 0)) {
currentInARow++;
if (currentInARow > inARow) {
inARow = currentInARow;
}
playerLeft.green._alpha = 100;
perfect++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] - 100)) && ((mySound.song.position - 200) < (grooveMark[i] - 32))) && (grooveMove[i % 4] == 0)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerLeft.yellow._alpha = 100;
early++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] + 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 100))) && (grooveMove[i % 4] == 0)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerLeft.orange._alpha = 100;
late++;
i++;
} else {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerLeft.red._alpha = 100;
penalty++;
}
}
if (Key.isDown(40)) {
twoD.torso.armRight._rotation = 15;
twoD.torso.armRight.lower._rotation = 20;
twoD.torso.armLeft._rotation = -15;
twoD.torso.armLeft.lower._rotation = -20;
if ((((mySound.song.position - 200) > (grooveMark[i] - 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 32))) && (grooveMove[i % 4] == 2)) {
currentInARow++;
if (currentInARow > inARow) {
inARow = currentInARow;
}
playerDown.green._alpha = 100;
perfect++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] - 100)) && ((mySound.song.position - 200) < (grooveMark[i] - 32))) && (grooveMove[i % 4] == 2)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerDown.yellow._alpha = 100;
early++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] + 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 100))) && (grooveMove[i % 4] == 2)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerDown.orange._alpha = 100;
late++;
i++;
} else {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerDown.red._alpha = 100;
penalty++;
}
}
};
Key.addListener(listener);
Frame 10
_root.mySound.song.start();
lightPlayer._visible = false;
lightComp._visible = false;
offset = 2000;
scale = 20;
time = 150;
rightTotal = 0;
leftTotal = 0;
rhythmMarkTotal = 0;
grooveMarkTotal = 0;
right = new Array(6806, 7671, 8544, 9400, 10273, 11138, 12002, 12869, 13734, 14600, 15474, 16335, 17199, 18070, 18934, 19795, 20658, 21535, 22393, 23263, 24132, 24994, 25860, 26733, 27613, 28461, 29333, 30197, 33661, 34526, 35400, 36273, 37126, 37998, 38864, 39729, 40589, 41459, 42327, 43197, 44927, 45795, 46658, 47513, 48386, 49258, 50133, 50984, 51856, 52713, 53580, 55313, 56184, 57041, 57913, 58779, 59655, 60513, 61383, 62250, 63113, 79570, 80442, 81313, 82175, 83026, 83913, 84765, 85636, 86513, 87374, 88231, 89113, 89964, 90835, 91713, 92568, 93435, 96034, 96913, 97762, 98634, 99513, 100367, 101233, 102113, 102951, 103853, 104713, 105571, 106422, 108165, 109913, 110765, 111623, 112513, 113350, 114216, 115083, 115954, 116826, 117686, 118558, 119429, 120313, 121163, 122024, 122886, 123757, 124619, 125480, 126357, 127213, 128089, 128936, 129827, 130674, 131543, 132427, 133296, 134143, 135000, 135873, 136750, 137611, 166200, 167077, 167938, 168807, 169669, 170538, 171400, 172269, 173133, 174000, 174867, 175725, 176592, 177500, 177500, 179184, 180060, 180927, 181803, 182661, 183537, 184392, 185254, 186109, 187000, 187855, 190455, 191332, 192179, 193056, 193926, 194780, 195657, 196514, 197396, 198258, 199112, 200000, 204321, 205176, 206045, 206907, 207799, 208653, 209506, 210385, 211261, 212123, 213000, 213855);
rhythmMark = new Array(6806, 7671, 8544, 9400, 10273, 11138, 12002, 12869, 13734, 14600, 15474, 16335, 17199, 18070, 18934, 19795, 20658, 21535, 22393, 23263, 24132, 24994, 25860, 26733, 27613, 28461, 29333, 30197, 31063, 31929, 32795, 33661, 34526, 35400, 36273, 37126, 37998, 38864, 39729, 40589, 41459, 42327, 43197, 44062, 44927, 45795, 46658, 47513, 48386, 49258, 50133, 50984, 51856, 52713, 53580, 54446, 55313, 56184, 57041, 57913, 58779, 59655, 60513, 61383, 62250, 63113, 63979, 64845, 65711, 66577, 67443, 68309, 69175, 70041, 70907, 71773, 72639, 73505, 74371, 75237, 76103, 76969, 77835, 78701, 79570, 80442, 81313, 82175, 83026, 83913, 84765, 85636, 86513, 87374, 88231, 89113, 89964, 90835, 91713, 92568, 93435, 94301, 95167, 96034, 96913, 97762, 98634, 99513, 100367, 101233, 102113, 102951, 103853, 104713, 105571, 106422, 107288, 108165, 109031, 109913, 110765, 111623, 112513, 113350, 114216, 115083, 115954, 116826, 117686, 118558, 119429, 120313, 121163, 122024, 122886, 123757, 124619, 125480, 126357, 127213, 128089, 128936, 129827, 130674, 131543, 132427, 133296, 134143, 135000, 135873, 136750, 137611, 138477, 139343, 140209, 141075, 141941, 142807, 143673, 144539, 145405, 146271, 147137, 148003, 148869, 149735, 150601, 151467, 152333, 153199, 154065, 154931, 155797, 156663, 157529, 158395, 159261, 160127, 160993, 161859, 162725, 163591, 164457, 165323, 166200, 167077, 167938, 168807, 169669, 170538, 171400, 172269, 173133, 174000, 174867, 175725, 176592, 177500, 178366, 179184, 180060, 180927, 181803, 182661, 183537, 184392, 185254, 186109, 187000, 187855, 188721, 189587, 190455, 191332, 192179, 193056, 193926, 194780, 195657, 196514, 197396, 198258, 199112, 200000, 200866, 201732, 202598, 203464, 204321, 205176, 206045, 206907, 207799, 208653, 209506, 210385, 211261, 212123, 213000, 213855);
left = new Array(6374, 7455, 8113, 9190, 9841, 10913, 11574, 12656, 13313, 14386, 15034, 16127, 16769, 17854, 18500, 19371, 20240, 21313, 21966, 23049, 23694, 24784, 25436, 26294, 26513, 27164, 28247, 28898, 29983, 33446, 34097, 35200, 35832, 36913, 37565, 38647, 39295, 40377, 41030, 42113, 42761, 45580, 46226, 47313, 47966, 49039, 49689, 50774, 51427, 52513, 53151, 54880, 56010, 56618, 57713, 58346, 59426, 60079, 61164, 61817, 62913, 63550, 79142, 80233, 80875, 81966, 82618, 83713, 84341, 85208, 86074, 87155, 87807, 88888, 89540, 90621, 91273, 92369, 93001, 95815, 96472, 97553, 98201, 99286, 99939, 101014, 101677, 102752, 103405, 104480, 105113, 106208, 106866, 107946, 108594, 109679, 110352, 111417, 112060, 113145, 113798, 114874, 115513, 116617, 117258, 118349, 118991, 120007, 120713, 121810, 122452, 123543, 124190, 125276, 125913, 127004, 127662, 128737, 129378, 130460, 131116, 132191, 132847, 133944, 134585, 135682, 136308, 137383, 165781, 166856, 167500, 168594, 169220, 170325, 171000, 171834, 172704, 173777, 174429, 175500, 176154, 177245, 177888, 178344, 178764, 179086, 179407, 179640, 180703, 181365, 182446, 183090, 184171, 184819, 185917, 186551, 187663, 190029, 191126, 191759, 192850, 193500, 194566, 195230, 196320, 196961, 198037, 198692, 199775, 203879, 204955, 205618, 206701, 207364, 208440, 209095, 210178, 210819, 211910, 212558, 213634);
grooveMark = new Array(6374, 6806, 7455, 7671, 8113, 8544, 9190, 9400, 9841, 10273, 10913, 11138, 11574, 12002, 12656, 12869, 13313, 13734, 14386, 14600, 15034, 15474, 16127, 16335, 16769, 17199, 17854, 18070, 18500, 18934, 19371, 19795, 20240, 20658, 21313, 21535, 21966, 22393, 23049, 23263, 23694, 24132, 24784, 24994, 25436, 25860, 26513, 26733, 27164, 27613, 28247, 28461, 28898, 29333, 29983, 30197, 30629, 31063, 31714, 31929, 32361, 32795, 33446, 33661, 34097, 34526, 35200, 35400, 35832, 36273, 36913, 37126, 37565, 37998, 38647, 38864, 39295, 39729, 40377, 40589, 41030, 41459, 42113, 42327, 42761, 43197, 43847, 44062, 44493, 44927, 45580, 45795, 46226, 46658, 47313, 47513, 47966, 48386, 49039, 49258, 49689, 50133, 50774, 50984, 51427, 51856, 52513, 52713, 53151, 53580, 54231, 54446, 54880, 55313, 56010, 56184, 56618, 57041, 57713, 57913, 58346, 58779, 59426, 59655, 60079, 60513, 61164, 61383, 79142, 79570, 80233, 80442, 80875, 81313, 81966, 82175, 82618, 83026, 83713, 83913, 84341, 84765, 85208, 85636, 86074, 86513, 87155, 87374, 87807, 88231, 88888, 89113, 89540, 89964, 90621, 90835, 91273, 91713, 92369, 92568, 93001, 93435, 94086, 94301, 94733, 95167, 95815, 96034, 96472, 96913, 97553, 97762, 98201, 98634, 99286, 99513, 99939, 100367, 101014, 101233, 101677, 102113, 102752, 102951, 103405, 103853, 104480, 104713, 105113, 105571, 106208, 106422, 106866, 107288, 107946, 108165, 108594, 109031, 109679, 109913, 110352, 110765, 111417, 111623, 112060, 112513, 113145, 113350, 113798, 114216, 114874, 115083, 115513, 115954, 116617, 116826, 117258, 117686, 118349, 118558, 118991, 119429, 120007, 120313, 120713, 121163, 121810, 122024, 122452, 122886, 123543, 123757, 124190, 124619, 125276, 125480, 125913, 126357, 127004, 127213, 127662, 128089, 128737, 128936, 129378, 129827, 130460, 130674, 131116, 131543, 132191, 132427, 132847, 133296, 133944, 134143, 134585, 135000, 135682, 135873, 136308, 136750, 137383, 137611, 165781, 166200, 166856, 167077, 167500, 167938, 168594, 168807, 169220, 169669, 170325, 170538, 171000, 171400, 171834, 172269, 172704, 173133, 173777, 174000, 174429, 174867, 175500, 175725, 176154, 176592, 177245, 177500, 177888, 178366, 178764, 179184, 179640, 180060, 180703, 180927, 181365, 181803, 182446, 182661, 183090, 183537, 184171, 184392, 184819, 185254, 185917, 186109, 186551, 187000, 187663, 187855, 188287, 188721, 189372, 189587, 190029, 190455, 191126, 191332, 191759, 192179, 192850, 193056, 193500, 193926, 194566, 194780, 195230, 195657, 196320, 196514, 196961, 197396, 198037, 198258, 198692, 199112, 199775, 200000, 200432, 200866, 201517, 201732, 202164, 202598, 203149, 203464, 203879, 204321, 204955, 205176, 205618, 206045, 206701, 206907, 207364, 207799, 208440, 208653, 209095, 209506, 210178, 210385, 210819, 211261, 211910, 212123, 212558, 213000, 213634, 213855);
grooveMove = new Array(0, 0, 0, 0);
russelLeftDestination = 0;
russelRightDestination = 0;
russelHeadDestination = 0;
gorillaHeadDestination = 0;
gorillaArmDestination = 60;
gorillaHandRightDestination = 7;
gorillaHandLeftDestination = -7;
gorillaTorsoDestination = 15;
gorillaLegLeftDestination = 0;
gorillaLegLeftUpperDestination = 0;
noodleHeadDestination = 1;
noodleTorsoDestination = 58;
noodleArmRightDestination = -14;
noodleArmRightLowerDestination = 3;
noodleArmLeftDestination = 16;
noodleArmLeftLowerDestination = -8;
noodleLegLeftDestination = 0;
noodleLegRightDestination = 0;
i = 0;
nextI = 4;
turn = "comp";
hitFirst = true;
hitSecond = true;
hitThird = true;
perfect = 0;
late = 0;
early = 0;
penalty = 0;
roundOnePerfect = 0;
roundOneLate = 0;
roundOneEarly = 0;
roundOne = true;
roundTwo = true;
roundThree = true;
roundOneEnd = true;
roundTwoEnd = true;
roundThreeEnd = true;
roundResultsDestination = 400;
compLeft.yellow._alpha = 0;
compLeft.green._alpha = 0;
compLeft.red._alpha = 0;
compLeft.orange._alpha = 0;
compRight.yellow._alpha = 0;
compRight.green._alpha = 0;
compRight.red._alpha = 0;
compRight.orange._alpha = 0;
compDown.yellow._alpha = 0;
compDown.green._alpha = 0;
compDown.red._alpha = 0;
compDown.orange._alpha = 0;
playerLeft.yellow._alpha = 0;
playerLeft.green._alpha = 0;
playerLeft.red._alpha = 0;
playerLeft.orange._alpha = 0;
playerRight.yellow._alpha = 0;
playerRight.green._alpha = 0;
playerRight.red._alpha = 0;
playerRight.orange._alpha = 0;
playerDown.yellow._alpha = 0;
playerDown.green._alpha = 0;
playerDown.red._alpha = 0;
playerDown.orange._alpha = 0;
brickWallDestination = -410;
inARow = 0;
currentInARow = 0;
endGame = true;
actions.onEnterFrame = function () {
if (mySound.song.position > (grooveMark[i] - 25)) {
if (turn == "comp") {
grooveMove[i % 4] = int(Math.random() * 3);
if (grooveMove[i % 4] == 0) {
compLeft.green._alpha = 100;
gorilla.torso.armLeft._y = 30;
gorilla.torso.armLeft._rotation = 10;
gorilla.torso.armLeft.hand._rotation = -40;
i++;
} else if (grooveMove[i % 4] == 1) {
compRight.green._alpha = 100;
gorilla.torso.armRight._y = 30;
gorilla.torso.armRight._rotation = -10;
gorilla.torso.armRight.hand._rotation = 40;
i++;
} else if (grooveMove[i % 4] == 2) {
compDown.green._alpha = 100;
gorilla.torso.armLeft._rotation = -15;
gorilla.torso.armLeft.hand._rotation = -80;
gorilla.torso.armRight._rotation = 15;
gorilla.torso.armRight.hand._rotation = 80;
i++;
}
} else if (turn == "player") {
if (((mySound.song.position - 200) > (grooveMark[i] + 100)) && (i != 376)) {
i++;
}
}
}
if (compLeft.yellow._alpha > 0) {
compLeft.yellow._alpha = compLeft.yellow._alpha - 6.25;
}
if (compLeft.green._alpha > 0) {
compLeft.green._alpha = compLeft.green._alpha - 6.25;
}
if (compLeft.red._alpha > 0) {
compLeft.red._alpha = compLeft.red._alpha - 6.25;
}
if (compLeft.orange._alpha > 0) {
compLeft.orange._alpha = compLeft.orange._alpha - 6.25;
}
if (compRight.yellow._alpha > 0) {
compRight.yellow._alpha = compRight.yellow._alpha - 6.25;
}
if (compRight.green._alpha > 0) {
compRight.green._alpha = compRight.green._alpha - 6.25;
}
if (compRight.red._alpha > 0) {
compRight.red._alpha = compRight.red._alpha - 6.25;
}
if (compRight.orange._alpha > 0) {
compRight.orange._alpha = compRight.orange._alpha - 6.25;
}
if (compDown.yellow._alpha > 0) {
compDown.yellow._alpha = compDown.yellow._alpha - 6.25;
}
if (compDown.green._alpha > 0) {
compDown.green._alpha = compDown.green._alpha - 6.25;
}
if (compDown.red._alpha > 0) {
compDown.red._alpha = compDown.red._alpha - 6.25;
}
if (compDown.orange._alpha > 0) {
compDown.orange._alpha = compDown.orange._alpha - 6.25;
}
if (playerLeft.yellow._alpha > 0) {
playerLeft.yellow._alpha = playerLeft.yellow._alpha - 6.25;
}
if (playerLeft.green._alpha > 0) {
playerLeft.green._alpha = playerLeft.green._alpha - 6.25;
}
if (playerLeft.red._alpha > 0) {
playerLeft.red._alpha = playerLeft.red._alpha - 6.25;
}
if (playerLeft.orange._alpha > 0) {
playerLeft.orange._alpha = playerLeft.orange._alpha - 6.25;
}
if (playerRight.yellow._alpha > 0) {
playerRight.yellow._alpha = playerRight.yellow._alpha - 6.25;
}
if (playerRight.green._alpha > 0) {
playerRight.green._alpha = playerRight.green._alpha - 6.25;
}
if (playerRight.red._alpha > 0) {
playerRight.red._alpha = playerRight.red._alpha - 6.25;
}
if (playerRight.orange._alpha > 0) {
playerRight.orange._alpha = playerRight.orange._alpha - 6.25;
}
if (playerDown.yellow._alpha > 0) {
playerDown.yellow._alpha = playerDown.yellow._alpha - 6.25;
}
if (playerDown.green._alpha > 0) {
playerDown.green._alpha = playerDown.green._alpha - 6.25;
}
if (playerDown.red._alpha > 0) {
playerDown.red._alpha = playerDown.red._alpha - 6.25;
}
if (playerDown.orange._alpha > 0) {
playerDown.orange._alpha = playerDown.orange._alpha - 6.25;
}
if ((mySound.song.position > (grooveMark[0] - 225)) && (hitFirst)) {
lightComp._visible = true;
hitFirst = false;
}
if ((mySound.song.position > (grooveMark[128] - 225)) && (hitSecond)) {
lightComp._visible = true;
hitSecond = false;
}
if ((mySound.song.position > (grooveMark[264] - 225)) && (hitThird)) {
lightComp._visible = true;
hitThird = false;
}
if ((mySound.song.position > (grooveMark[127] + 500)) && (roundOne)) {
roundOnePerfect = perfect;
roundOneEarly = early;
roundOneLate = late;
roundOneAccuracy = Math.round(((roundOnePerfect + ((roundOneEarly + roundOneLate) / 2)) / 64) * 100);
roundResults.gotoAndStop("roundOne");
roundResultsDestination = 171;
roundResults.perfect.text = roundOnePerfect;
roundResults.perfectShad.text = roundOnePerfect;
roundResults.early.text = roundOneEarly;
roundResults.earlyShad.text = roundOneEarly;
roundResults.late.text = roundOneLate;
roundResults.lateShad.text = roundOneLate;
roundResults.accuracy.text = roundOneAccuracy + "%";
roundResults.accuracyShad.text = roundOneAccuracy + "%";
roundOne = false;
}
if ((mySound.song.position > (grooveMark[263] + 500)) && (roundTwo)) {
roundTwoPerfect = perfect - roundOnePerfect;
roundTwoEarly = early - roundOneEarly;
roundTwoLate = late - roundOneLate;
roundTwoAccuracy = Math.round(((roundTwoPerfect + ((roundTwoEarly + roundTwoLate) / 2)) / 68) * 100);
roundResults.gotoAndStop("roundTwo");
roundResultsDestination = 171;
roundResults.perfect.text = roundTwoPerfect;
roundResults.perfectShad.text = roundTwoPerfect;
roundResults.early.text = roundTwoEarly;
roundResults.earlyShad.text = roundTwoEarly;
roundResults.late.text = roundTwoLate;
roundResults.lateShad.text = roundTwoLate;
roundResults.accuracy.text = roundTwoAccuracy + "%";
roundResults.accuracyShad.text = roundTwoAccuracy + "%";
roundTwo = false;
}
if ((mySound.song.position > (grooveMark[375] + 500)) && (roundThree)) {
roundThreePerfect = (perfect - roundOnePerfect) - roundTwoPerfect;
roundThreeEarly = (early - roundOneEarly) - roundTwoEarly;
roundThreeLate = (late - roundOneLate) - roundTwoLate;
roundThreeAccuracy = Math.round(((roundThreePerfect + ((roundThreeEarly + roundThreeLate) / 2)) / 56) * 100);
roundResults.gotoAndStop("roundThree");
roundResultsDestination = 171;
roundResults.perfect.text = roundThreePerfect;
roundResults.perfectShad.text = roundThreePerfect;
roundResults.early.text = roundThreeEarly;
roundResults.earlyShad.text = roundThreeEarly;
roundResults.late.text = roundThreeLate;
roundResults.lateShad.text = roundThreeLate;
roundResults.accuracy.text = roundThreeAccuracy + "%";
roundResults.accuracyShad.text = roundThreeAccuracy + "%";
roundThree = false;
}
if ((mySound.song.position > (grooveMark[128] - 2000)) && (roundOneEnd)) {
roundResultsDestination = 400;
roundOneEnd = false;
}
if ((mySound.song.position > (grooveMark[264] - 2000)) && (roundTwoEnd)) {
roundResultsDestination = 400;
roundTwoEnd = false;
}
if ((mySound.song.position >= (mySound.song.duration - 100)) && (roundThreeEnd)) {
roundResultsDestination = 400;
roundThreeEnd = false;
}
if (mySound.song.position > (grooveMark[i - 1] + 225)) {
if (((i % 4) == 0) && (i == nextI)) {
if (turn == "comp") {
turn = "player";
lightPlayer._visible = true;
lightComp._visible = false;
} else if ((((turn == "player") && (i != 128)) && (i != 264)) && (i != 376)) {
turn = "comp";
lightPlayer._visible = false;
lightComp._visible = true;
} else {
turn = "comp";
lightPlayer._visible = false;
lightComp._visible = false;
}
nextI = nextI + 4;
}
}
if (roundResults._y != roundResultsDestination) {
roundResults._y = roundResults._y - ((roundResults._y - roundResultsDestination) / 5);
}
if (roundResults._y >= 399.5) {
roundResults.gotoAndStop("blank");
}
if (brickWall._y != brickWallDestination) {
brickWall._y = brickWall._y - ((brickWall._y - brickWallDestination) / 7);
}
if ((brickWall._y <= -409.5) && (brickWallDestination == -410)) {
brickWall.gotoAndStop("blank");
}
if ((mySound.song.position >= (mySound.song.duration - 100)) && (endGame)) {
brickWallDestination = 0;
brickWall.gotoAndStop("brickWall");
endGame = false;
}
if ((brickWall._y >= -0.5) && (!endGame)) {
Key.removeListener(listener);
delete actions.onEnterFrame;
gotoAndStop ("enterName");
}
if (mySound.song.position <= (left[leftTotal] - time)) {
russelLeftDestination = 0;
} else if (mySound.song.position <= left[leftTotal]) {
russelLeftDestination = -9;
} else if (mySound.song.position >= (left[leftTotal] + time)) {
leftTotal++;
} else if (mySound.song.position > left[leftTotal]) {
russelLeftDestination = 11;
}
russel.armLeft._rotation = russel.armLeft._rotation - ((russel.armLeft._rotation - russelLeftDestination) / 3.5);
if (mySound.song.position <= (right[rightTotal] - time)) {
russelRightDestination = 0;
russelHeadDestination = 0;
} else if (mySound.song.position <= right[rightTotal]) {
russelRightDestination = 9;
} else if (mySound.song.position >= (right[rightTotal] + time)) {
rightTotal++;
} else if (mySound.song.position > right[rightTotal]) {
russelRightDestination = -11;
russelHeadDestination = 10;
}
if (mySound.song.position <= (rhythmMark[rhythmMarkTotal] - time)) {
gorillaHeadDestination = 0;
gorillaArmDestination = 60;
gorillaTorsoDestination = 15;
gorillaLegLeftDestination = 0;
gorillaLegLeftUpperDestination = 0;
gorillaLegRightDestination = 0;
gorillaLegRightUpperDestination = 0;
noodleHeadDestination = 1;
noodleTorsoDestination = 58;
noodleArmRightDestination = -14;
noodleArmRightLowerDestination = 3;
noodleArmLeftDestination = 16;
noodleArmLeftLowerDestination = -8;
noodleLegLeftDestination = 0;
noodleLegRightDestination = 0;
} else if (mySound.song.position >= (rhythmMark[rhythmMarkTotal] + (time * 1.5))) {
rhythmMarkTotal++;
} else if (mySound.song.position > rhythmMark[rhythmMarkTotal]) {
gorillaHeadDestination = 60;
gorillaArmDestination = 70;
gorillaTorsoDestination = 60;
gorillaLegLeftDestination = -20;
gorillaLegLeftUpperDestination = 80;
gorillaLegRightDestination = 20;
gorillaLegRightUpperDestination = -80;
noodleHeadDestination = 27;
noodleTorsoDestination = 78;
noodleArmRightDestination = -24;
noodleArmRightLowerDestination = 43;
noodleArmLeftDestination = 26;
noodleArmLeftLowerDestination = -48;
noodleLegLeftDestination = -25;
noodleLegRightDestination = 25;
}
russel.armRight.lower._rotation = russel.armRight.lower._rotation - ((russel.armRight.lower._rotation - russelRightDestination) / 3.5);
russel.head._y = russel.head._y - ((russel.head._y - russelHeadDestination) / 10);
gorilla.head._y = gorilla.head._y - ((gorilla.head._y - gorillaHeadDestination) / 8);
gorilla.torso.armLeft._y = gorilla.torso.armLeft._y - ((gorilla.torso.armLeft._y - gorillaArmDestination) / 6);
gorilla.torso.armRight._y = gorilla.torso.armRight._y - ((gorilla.torso.armRight._y - gorillaArmDestination) / 6);
gorilla.torso._y = gorilla.torso._y - ((gorilla.torso._y - gorillaTorsoDestination) / 8);
gorilla.legLeft._rotation = gorilla.legLeft._rotation - ((gorilla.legLeft._rotation - gorillaLegLeftDestination) / 6);
gorilla.legLeft.upper._rotation = gorilla.legLeft.upper._rotation - ((gorilla.legLeft.upper._rotation - gorillaLegLeftUpperDestination) / 6);
gorilla.legRight._rotation = gorilla.legRight._rotation - ((gorilla.legRight._rotation - gorillaLegRightDestination) / 6);
gorilla.legRight.upper._rotation = gorilla.legRight.upper._rotation - ((gorilla.legRight.upper._rotation - gorillaLegRightUpperDestination) / 6);
noodle.head._y = noodle.head._y - ((noodle.head._y - noodleHeadDestination) / 8);
noodle.torso._y = noodle.torso._y - ((noodle.torso._y - noodleTorsoDestination) / 8);
noodle.torso.armRight._rotation = noodle.torso.armRight._rotation - ((noodle.torso.armRight._rotation - noodleArmRightDestination) / 6);
noodle.torso.armRight.lower._rotation = noodle.torso.armRight.lower._rotation - ((noodle.torso.armRight.lower._rotation - noodleArmRightLowerDestination) / 6);
noodle.torso.armLeft._rotation = noodle.torso.armLeft._rotation - ((noodle.torso.armLeft._rotation - noodleArmLeftDestination) / 6);
noodle.torso.armLeft.lower._rotation = noodle.torso.armLeft.lower._rotation - ((noodle.torso.armLeft.lower._rotation - noodleArmLeftLowerDestination) / 6);
noodle.legLeft.leg._rotation = noodle.legLeft.leg._rotation - ((noodle.legLeft.leg._rotation - noodleLegLeftDestination) / 6);
noodle.legRight.leg._rotation = noodle.legRight.leg._rotation - ((noodle.legRight.leg._rotation - noodleLegRightDestination) / 6);
noodle.head._rotation = noodle.head._rotation - (noodle.head._rotation / 7);
gorilla.torso.armLeft._rotation = gorilla.torso.armLeft._rotation - (gorilla.torso.armLeft._rotation / 7);
gorilla.torso.armRight._rotation = gorilla.torso.armRight._rotation - (gorilla.torso.armRight._rotation / 7);
gorilla.torso.armLeft.hand._rotation = gorilla.torso.armLeft.hand._rotation - ((gorilla.torso.armLeft.hand._rotation - gorillaHandLeftDestination) / 6);
gorilla.torso.armRight.hand._rotation = gorilla.torso.armRight.hand._rotation - ((gorilla.torso.armRight.hand._rotation - gorillaHandRightDestination) / 6);
};
listener = new Object();
listener.onKeyDown = function () {
if (Key.isDown(39)) {
noodle.torso.armRight._rotation = -45;
noodle.torso.armRight.lower._rotation = -30;
if ((((mySound.song.position - 200) > (grooveMark[i] - 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 32))) && (grooveMove[i % 4] == 1)) {
currentInARow++;
if (currentInARow > inARow) {
inARow = currentInARow;
}
playerRight.green._alpha = 100;
perfect++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] - 100)) && ((mySound.song.position - 200) < (grooveMark[i] - 32))) && (grooveMove[i % 4] == 1)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerRight.yellow._alpha = 100;
early++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] + 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 100))) && (grooveMove[i % 4] == 1)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerRight.orange._alpha = 100;
late++;
i++;
} else {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerRight.red._alpha = 100;
penalty++;
}
}
if (Key.isDown(37)) {
noodle.torso.armLeft._rotation = 45;
noodle.torso.armLeft.lower._rotation = 30;
if ((((mySound.song.position - 200) > (grooveMark[i] - 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 32))) && (grooveMove[i % 4] == 0)) {
currentInARow++;
if (currentInARow > inARow) {
inARow = currentInARow;
}
playerLeft.green._alpha = 100;
perfect++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] - 100)) && ((mySound.song.position - 200) < (grooveMark[i] - 32))) && (grooveMove[i % 4] == 0)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerLeft.yellow._alpha = 100;
early++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] + 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 100))) && (grooveMove[i % 4] == 0)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerLeft.orange._alpha = 100;
late++;
i++;
} else {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerLeft.red._alpha = 100;
penalty++;
}
}
if (Key.isDown(40)) {
noodle.torso.armRight._rotation = 15;
noodle.torso.armRight.lower._rotation = 20;
noodle.torso.armLeft._rotation = -15;
noodle.torso.armLeft.lower._rotation = -20;
if ((((mySound.song.position - 200) > (grooveMark[i] - 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 32))) && (grooveMove[i % 4] == 2)) {
currentInARow++;
if (currentInARow > inARow) {
inARow = currentInARow;
}
playerDown.green._alpha = 100;
perfect++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] - 100)) && ((mySound.song.position - 200) < (grooveMark[i] - 32))) && (grooveMove[i % 4] == 2)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerDown.yellow._alpha = 100;
early++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] + 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 100))) && (grooveMove[i % 4] == 2)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerDown.orange._alpha = 100;
late++;
i++;
} else {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerDown.red._alpha = 100;
penalty++;
}
}
};
Key.addListener(listener);
Frame 11
_root.mySound.song.start();
lightPlayer._visible = false;
lightComp._visible = false;
offset = 2000;
scale = 20;
time = 150;
rightTotal = 0;
leftTotal = 0;
rhythmMarkTotal = 0;
grooveMarkTotal = 0;
right = new Array(6806, 7671, 8544, 9400, 10273, 11138, 12002, 12869, 13734, 14600, 15474, 16335, 17199, 18070, 18934, 19795, 20658, 21535, 22393, 23263, 24132, 24994, 25860, 26733, 27613, 28461, 29333, 30197, 33661, 34526, 35400, 36273, 37126, 37998, 38864, 39729, 40589, 41459, 42327, 43197, 44927, 45795, 46658, 47513, 48386, 49258, 50133, 50984, 51856, 52713, 53580, 55313, 56184, 57041, 57913, 58779, 59655, 60513, 61383, 62250, 63113, 79570, 80442, 81313, 82175, 83026, 83913, 84765, 85636, 86513, 87374, 88231, 89113, 89964, 90835, 91713, 92568, 93435, 96034, 96913, 97762, 98634, 99513, 100367, 101233, 102113, 102951, 103853, 104713, 105571, 106422, 108165, 109913, 110765, 111623, 112513, 113350, 114216, 115083, 115954, 116826, 117686, 118558, 119429, 120313, 121163, 122024, 122886, 123757, 124619, 125480, 126357, 127213, 128089, 128936, 129827, 130674, 131543, 132427, 133296, 134143, 135000, 135873, 136750, 137611, 166200, 167077, 167938, 168807, 169669, 170538, 171400, 172269, 173133, 174000, 174867, 175725, 176592, 177500, 177500, 179184, 180060, 180927, 181803, 182661, 183537, 184392, 185254, 186109, 187000, 187855, 190455, 191332, 192179, 193056, 193926, 194780, 195657, 196514, 197396, 198258, 199112, 200000, 204321, 205176, 206045, 206907, 207799, 208653, 209506, 210385, 211261, 212123, 213000, 213855);
rhythmMark = new Array(6806, 7671, 8544, 9400, 10273, 11138, 12002, 12869, 13734, 14600, 15474, 16335, 17199, 18070, 18934, 19795, 20658, 21535, 22393, 23263, 24132, 24994, 25860, 26733, 27613, 28461, 29333, 30197, 31063, 31929, 32795, 33661, 34526, 35400, 36273, 37126, 37998, 38864, 39729, 40589, 41459, 42327, 43197, 44062, 44927, 45795, 46658, 47513, 48386, 49258, 50133, 50984, 51856, 52713, 53580, 54446, 55313, 56184, 57041, 57913, 58779, 59655, 60513, 61383, 62250, 63113, 63979, 64845, 65711, 66577, 67443, 68309, 69175, 70041, 70907, 71773, 72639, 73505, 74371, 75237, 76103, 76969, 77835, 78701, 79570, 80442, 81313, 82175, 83026, 83913, 84765, 85636, 86513, 87374, 88231, 89113, 89964, 90835, 91713, 92568, 93435, 94301, 95167, 96034, 96913, 97762, 98634, 99513, 100367, 101233, 102113, 102951, 103853, 104713, 105571, 106422, 107288, 108165, 109031, 109913, 110765, 111623, 112513, 113350, 114216, 115083, 115954, 116826, 117686, 118558, 119429, 120313, 121163, 122024, 122886, 123757, 124619, 125480, 126357, 127213, 128089, 128936, 129827, 130674, 131543, 132427, 133296, 134143, 135000, 135873, 136750, 137611, 138477, 139343, 140209, 141075, 141941, 142807, 143673, 144539, 145405, 146271, 147137, 148003, 148869, 149735, 150601, 151467, 152333, 153199, 154065, 154931, 155797, 156663, 157529, 158395, 159261, 160127, 160993, 161859, 162725, 163591, 164457, 165323, 166200, 167077, 167938, 168807, 169669, 170538, 171400, 172269, 173133, 174000, 174867, 175725, 176592, 177500, 178366, 179184, 180060, 180927, 181803, 182661, 183537, 184392, 185254, 186109, 187000, 187855, 188721, 189587, 190455, 191332, 192179, 193056, 193926, 194780, 195657, 196514, 197396, 198258, 199112, 200000, 200866, 201732, 202598, 203464, 204321, 205176, 206045, 206907, 207799, 208653, 209506, 210385, 211261, 212123, 213000, 213855);
left = new Array(6374, 7455, 8113, 9190, 9841, 10913, 11574, 12656, 13313, 14386, 15034, 16127, 16769, 17854, 18500, 19371, 20240, 21313, 21966, 23049, 23694, 24784, 25436, 26294, 26513, 27164, 28247, 28898, 29983, 33446, 34097, 35200, 35832, 36913, 37565, 38647, 39295, 40377, 41030, 42113, 42761, 45580, 46226, 47313, 47966, 49039, 49689, 50774, 51427, 52513, 53151, 54880, 56010, 56618, 57713, 58346, 59426, 60079, 61164, 61817, 62913, 63550, 79142, 80233, 80875, 81966, 82618, 83713, 84341, 85208, 86074, 87155, 87807, 88888, 89540, 90621, 91273, 92369, 93001, 95815, 96472, 97553, 98201, 99286, 99939, 101014, 101677, 102752, 103405, 104480, 105113, 106208, 106866, 107946, 108594, 109679, 110352, 111417, 112060, 113145, 113798, 114874, 115513, 116617, 117258, 118349, 118991, 120007, 120713, 121810, 122452, 123543, 124190, 125276, 125913, 127004, 127662, 128737, 129378, 130460, 131116, 132191, 132847, 133944, 134585, 135682, 136308, 137383, 165781, 166856, 167500, 168594, 169220, 170325, 171000, 171834, 172704, 173777, 174429, 175500, 176154, 177245, 177888, 178344, 178764, 179086, 179407, 179640, 180703, 181365, 182446, 183090, 184171, 184819, 185917, 186551, 187663, 190029, 191126, 191759, 192850, 193500, 194566, 195230, 196320, 196961, 198037, 198692, 199775, 203879, 204955, 205618, 206701, 207364, 208440, 209095, 210178, 210819, 211910, 212558, 213634);
grooveMark = new Array(6374, 6806, 7455, 7671, 8113, 8544, 9190, 9400, 9841, 10273, 10913, 11138, 11574, 12002, 12656, 12869, 13313, 13734, 14386, 14600, 15034, 15474, 16127, 16335, 16769, 17199, 17854, 18070, 18500, 18934, 19371, 19795, 20240, 20658, 21313, 21535, 21966, 22393, 23049, 23263, 23694, 24132, 24784, 24994, 25436, 25860, 26513, 26733, 27164, 27613, 28247, 28461, 28898, 29333, 29983, 30197, 30629, 31063, 31714, 31929, 32361, 32795, 33446, 33661, 34097, 34526, 35200, 35400, 35832, 36273, 36913, 37126, 37565, 37998, 38647, 38864, 39295, 39729, 40377, 40589, 41030, 41459, 42113, 42327, 42761, 43197, 43847, 44062, 44493, 44927, 45580, 45795, 46226, 46658, 47313, 47513, 47966, 48386, 49039, 49258, 49689, 50133, 50774, 50984, 51427, 51856, 52513, 52713, 53151, 53580, 54231, 54446, 54880, 55313, 56010, 56184, 56618, 57041, 57713, 57913, 58346, 58779, 59426, 59655, 60079, 60513, 61164, 61383, 79142, 79570, 80233, 80442, 80875, 81313, 81966, 82175, 82618, 83026, 83713, 83913, 84341, 84765, 85208, 85636, 86074, 86513, 87155, 87374, 87807, 88231, 88888, 89113, 89540, 89964, 90621, 90835, 91273, 91713, 92369, 92568, 93001, 93435, 94086, 94301, 94733, 95167, 95815, 96034, 96472, 96913, 97553, 97762, 98201, 98634, 99286, 99513, 99939, 100367, 101014, 101233, 101677, 102113, 102752, 102951, 103405, 103853, 104480, 104713, 105113, 105571, 106208, 106422, 106866, 107288, 107946, 108165, 108594, 109031, 109679, 109913, 110352, 110765, 111417, 111623, 112060, 112513, 113145, 113350, 113798, 114216, 114874, 115083, 115513, 115954, 116617, 116826, 117258, 117686, 118349, 118558, 118991, 119429, 120007, 120313, 120713, 121163, 121810, 122024, 122452, 122886, 123543, 123757, 124190, 124619, 125276, 125480, 125913, 126357, 127004, 127213, 127662, 128089, 128737, 128936, 129378, 129827, 130460, 130674, 131116, 131543, 132191, 132427, 132847, 133296, 133944, 134143, 134585, 135000, 135682, 135873, 136308, 136750, 137383, 137611, 165781, 166200, 166856, 167077, 167500, 167938, 168594, 168807, 169220, 169669, 170325, 170538, 171000, 171400, 171834, 172269, 172704, 173133, 173777, 174000, 174429, 174867, 175500, 175725, 176154, 176592, 177245, 177500, 177888, 178366, 178764, 179184, 179640, 180060, 180703, 180927, 181365, 181803, 182446, 182661, 183090, 183537, 184171, 184392, 184819, 185254, 185917, 186109, 186551, 187000, 187663, 187855, 188287, 188721, 189372, 189587, 190029, 190455, 191126, 191332, 191759, 192179, 192850, 193056, 193500, 193926, 194566, 194780, 195230, 195657, 196320, 196514, 196961, 197396, 198037, 198258, 198692, 199112, 199775, 200000, 200432, 200866, 201517, 201732, 202164, 202598, 203149, 203464, 203879, 204321, 204955, 205176, 205618, 206045, 206701, 206907, 207364, 207799, 208440, 208653, 209095, 209506, 210178, 210385, 210819, 211261, 211910, 212123, 212558, 213000, 213634, 213855);
grooveMove = new Array(0, 0, 0, 0);
russelLeftDestination = 0;
russelRightDestination = 0;
russelHeadDestination = 0;
gorillaHeadDestination = 0;
gorillaArmDestination = 60;
gorillaHandRightDestination = 7;
gorillaHandLeftDestination = -7;
gorillaTorsoDestination = 15;
gorillaLegLeftDestination = 0;
gorillaLegLeftUpperDestination = 0;
murdocHeadDestination = 0;
murdocTorsoDestination = 64;
murdocArmRightDestination = -4;
murdocArmRightLowerDestination = 0;
murdocArmLeftDestination = 0;
murdocArmLeftLowerDestination = 0;
murdocLegLeftDestination = 0;
murdocLegLeftUpperDestination = 0;
murdocLegRightDestination = 0;
murdocLegRightUpperDestination = 0;
i = 0;
nextI = 4;
turn = "comp";
hitFirst = true;
hitSecond = true;
hitThird = true;
perfect = 0;
late = 0;
early = 0;
penalty = 0;
roundOnePerfect = 0;
roundOneLate = 0;
roundOneEarly = 0;
roundOne = true;
roundTwo = true;
roundThree = true;
roundOneEnd = true;
roundTwoEnd = true;
roundThreeEnd = true;
roundResultsDestination = 400;
compLeft.yellow._alpha = 0;
compLeft.green._alpha = 0;
compLeft.red._alpha = 0;
compLeft.orange._alpha = 0;
compRight.yellow._alpha = 0;
compRight.green._alpha = 0;
compRight.red._alpha = 0;
compRight.orange._alpha = 0;
compDown.yellow._alpha = 0;
compDown.green._alpha = 0;
compDown.red._alpha = 0;
compDown.orange._alpha = 0;
playerLeft.yellow._alpha = 0;
playerLeft.green._alpha = 0;
playerLeft.red._alpha = 0;
playerLeft.orange._alpha = 0;
playerRight.yellow._alpha = 0;
playerRight.green._alpha = 0;
playerRight.red._alpha = 0;
playerRight.orange._alpha = 0;
playerDown.yellow._alpha = 0;
playerDown.green._alpha = 0;
playerDown.red._alpha = 0;
playerDown.orange._alpha = 0;
brickWallDestination = -410;
inARow = 0;
currentInARow = 0;
endGame = true;
actions.onEnterFrame = function () {
if (mySound.song.position > (grooveMark[i] - 25)) {
if (turn == "comp") {
grooveMove[i % 4] = int(Math.random() * 3);
if (grooveMove[i % 4] == 0) {
compLeft.green._alpha = 100;
gorilla.torso.armLeft._y = 30;
gorilla.torso.armLeft._rotation = 10;
gorilla.torso.armLeft.hand._rotation = -40;
i++;
} else if (grooveMove[i % 4] == 1) {
compRight.green._alpha = 100;
gorilla.torso.armRight._y = 30;
gorilla.torso.armRight._rotation = -10;
gorilla.torso.armRight.hand._rotation = 40;
i++;
} else if (grooveMove[i % 4] == 2) {
compDown.green._alpha = 100;
gorilla.torso.armLeft._rotation = -15;
gorilla.torso.armLeft.hand._rotation = -80;
gorilla.torso.armRight._rotation = 15;
gorilla.torso.armRight.hand._rotation = 80;
i++;
}
} else if (turn == "player") {
if (((mySound.song.position - 200) > (grooveMark[i] + 100)) && (i != 376)) {
i++;
}
}
}
if (compLeft.yellow._alpha > 0) {
compLeft.yellow._alpha = compLeft.yellow._alpha - 6.25;
}
if (compLeft.green._alpha > 0) {
compLeft.green._alpha = compLeft.green._alpha - 6.25;
}
if (compLeft.red._alpha > 0) {
compLeft.red._alpha = compLeft.red._alpha - 6.25;
}
if (compLeft.orange._alpha > 0) {
compLeft.orange._alpha = compLeft.orange._alpha - 6.25;
}
if (compRight.yellow._alpha > 0) {
compRight.yellow._alpha = compRight.yellow._alpha - 6.25;
}
if (compRight.green._alpha > 0) {
compRight.green._alpha = compRight.green._alpha - 6.25;
}
if (compRight.red._alpha > 0) {
compRight.red._alpha = compRight.red._alpha - 6.25;
}
if (compRight.orange._alpha > 0) {
compRight.orange._alpha = compRight.orange._alpha - 6.25;
}
if (compDown.yellow._alpha > 0) {
compDown.yellow._alpha = compDown.yellow._alpha - 6.25;
}
if (compDown.green._alpha > 0) {
compDown.green._alpha = compDown.green._alpha - 6.25;
}
if (compDown.red._alpha > 0) {
compDown.red._alpha = compDown.red._alpha - 6.25;
}
if (compDown.orange._alpha > 0) {
compDown.orange._alpha = compDown.orange._alpha - 6.25;
}
if (playerLeft.yellow._alpha > 0) {
playerLeft.yellow._alpha = playerLeft.yellow._alpha - 6.25;
}
if (playerLeft.green._alpha > 0) {
playerLeft.green._alpha = playerLeft.green._alpha - 6.25;
}
if (playerLeft.red._alpha > 0) {
playerLeft.red._alpha = playerLeft.red._alpha - 6.25;
}
if (playerLeft.orange._alpha > 0) {
playerLeft.orange._alpha = playerLeft.orange._alpha - 6.25;
}
if (playerRight.yellow._alpha > 0) {
playerRight.yellow._alpha = playerRight.yellow._alpha - 6.25;
}
if (playerRight.green._alpha > 0) {
playerRight.green._alpha = playerRight.green._alpha - 6.25;
}
if (playerRight.red._alpha > 0) {
playerRight.red._alpha = playerRight.red._alpha - 6.25;
}
if (playerRight.orange._alpha > 0) {
playerRight.orange._alpha = playerRight.orange._alpha - 6.25;
}
if (playerDown.yellow._alpha > 0) {
playerDown.yellow._alpha = playerDown.yellow._alpha - 6.25;
}
if (playerDown.green._alpha > 0) {
playerDown.green._alpha = playerDown.green._alpha - 6.25;
}
if (playerDown.red._alpha > 0) {
playerDown.red._alpha = playerDown.red._alpha - 6.25;
}
if (playerDown.orange._alpha > 0) {
playerDown.orange._alpha = playerDown.orange._alpha - 6.25;
}
if ((mySound.song.position > (grooveMark[0] - 225)) && (hitFirst)) {
lightComp._visible = true;
hitFirst = false;
}
if ((mySound.song.position > (grooveMark[128] - 225)) && (hitSecond)) {
lightComp._visible = true;
hitSecond = false;
}
if ((mySound.song.position > (grooveMark[264] - 225)) && (hitThird)) {
lightComp._visible = true;
hitThird = false;
}
if ((mySound.song.position > (grooveMark[127] + 500)) && (roundOne)) {
roundOnePerfect = perfect;
roundOneEarly = early;
roundOneLate = late;
roundOneAccuracy = Math.round(((roundOnePerfect + ((roundOneEarly + roundOneLate) / 2)) / 64) * 100);
roundResults.gotoAndStop("roundOne");
roundResultsDestination = 171;
roundResults.perfect.text = roundOnePerfect;
roundResults.perfectShad.text = roundOnePerfect;
roundResults.early.text = roundOneEarly;
roundResults.earlyShad.text = roundOneEarly;
roundResults.late.text = roundOneLate;
roundResults.lateShad.text = roundOneLate;
roundResults.accuracy.text = roundOneAccuracy + "%";
roundResults.accuracyShad.text = roundOneAccuracy + "%";
roundOne = false;
}
if ((mySound.song.position > (grooveMark[263] + 500)) && (roundTwo)) {
roundTwoPerfect = perfect - roundOnePerfect;
roundTwoEarly = early - roundOneEarly;
roundTwoLate = late - roundOneLate;
roundTwoAccuracy = Math.round(((roundTwoPerfect + ((roundTwoEarly + roundTwoLate) / 2)) / 68) * 100);
roundResults.gotoAndStop("roundTwo");
roundResultsDestination = 171;
roundResults.perfect.text = roundTwoPerfect;
roundResults.perfectShad.text = roundTwoPerfect;
roundResults.early.text = roundTwoEarly;
roundResults.earlyShad.text = roundTwoEarly;
roundResults.late.text = roundTwoLate;
roundResults.lateShad.text = roundTwoLate;
roundResults.accuracy.text = roundTwoAccuracy + "%";
roundResults.accuracyShad.text = roundTwoAccuracy + "%";
roundTwo = false;
}
if ((mySound.song.position > (grooveMark[375] + 500)) && (roundThree)) {
roundThreePerfect = (perfect - roundOnePerfect) - roundTwoPerfect;
roundThreeEarly = (early - roundOneEarly) - roundTwoEarly;
roundThreeLate = (late - roundOneLate) - roundTwoLate;
roundThreeAccuracy = Math.round(((roundThreePerfect + ((roundThreeEarly + roundThreeLate) / 2)) / 56) * 100);
roundResults.gotoAndStop("roundThree");
roundResultsDestination = 171;
roundResults.perfect.text = roundThreePerfect;
roundResults.perfectShad.text = roundThreePerfect;
roundResults.early.text = roundThreeEarly;
roundResults.earlyShad.text = roundThreeEarly;
roundResults.late.text = roundThreeLate;
roundResults.lateShad.text = roundThreeLate;
roundResults.accuracy.text = roundThreeAccuracy + "%";
roundResults.accuracyShad.text = roundThreeAccuracy + "%";
roundThree = false;
}
if ((mySound.song.position > (grooveMark[128] - 2000)) && (roundOneEnd)) {
roundResultsDestination = 400;
roundOneEnd = false;
}
if ((mySound.song.position > (grooveMark[264] - 2000)) && (roundTwoEnd)) {
roundResultsDestination = 400;
roundTwoEnd = false;
}
if ((mySound.song.position >= (mySound.song.duration - 100)) && (roundThreeEnd)) {
roundResultsDestination = 400;
roundThreeEnd = false;
}
if (mySound.song.position > (grooveMark[i - 1] + 225)) {
if (((i % 4) == 0) && (i == nextI)) {
if (turn == "comp") {
turn = "player";
lightPlayer._visible = true;
lightComp._visible = false;
} else if ((((turn == "player") && (i != 128)) && (i != 264)) && (i != 376)) {
turn = "comp";
lightPlayer._visible = false;
lightComp._visible = true;
} else {
turn = "comp";
lightPlayer._visible = false;
lightComp._visible = false;
}
nextI = nextI + 4;
}
}
if (roundResults._y != roundResultsDestination) {
roundResults._y = roundResults._y - ((roundResults._y - roundResultsDestination) / 5);
}
if (roundResults._y >= 399.5) {
roundResults.gotoAndStop("blank");
}
if (brickWall._y != brickWallDestination) {
brickWall._y = brickWall._y - ((brickWall._y - brickWallDestination) / 7);
}
if ((brickWall._y <= -409.5) && (brickWallDestination == -410)) {
brickWall.gotoAndStop("blank");
}
if ((mySound.song.position >= (mySound.song.duration - 100)) && (endGame)) {
brickWallDestination = 0;
brickWall.gotoAndStop("brickWall");
endGame = false;
}
if ((brickWall._y >= -0.5) && (!endGame)) {
Key.removeListener(listener);
delete actions.onEnterFrame;
gotoAndStop ("enterName");
}
if (mySound.song.position <= (left[leftTotal] - time)) {
russelLeftDestination = 0;
} else if (mySound.song.position <= left[leftTotal]) {
russelLeftDestination = -9;
} else if (mySound.song.position >= (left[leftTotal] + time)) {
leftTotal++;
} else if (mySound.song.position > left[leftTotal]) {
russelLeftDestination = 11;
}
russel.armLeft._rotation = russel.armLeft._rotation - ((russel.armLeft._rotation - russelLeftDestination) / 3.5);
if (mySound.song.position <= (right[rightTotal] - time)) {
russelRightDestination = 0;
russelHeadDestination = 0;
} else if (mySound.song.position <= right[rightTotal]) {
russelRightDestination = 9;
} else if (mySound.song.position >= (right[rightTotal] + time)) {
rightTotal++;
} else if (mySound.song.position > right[rightTotal]) {
russelRightDestination = -11;
russelHeadDestination = 10;
}
if (mySound.song.position <= (rhythmMark[rhythmMarkTotal] - time)) {
gorillaHeadDestination = 0;
gorillaArmDestination = 60;
gorillaTorsoDestination = 15;
gorillaLegLeftDestination = 0;
gorillaLegLeftUpperDestination = 0;
gorillaLegRightDestination = 0;
gorillaLegRightUpperDestination = 0;
murdocHeadDestination = 0;
murdocTorsoDestination = 64;
murdocArmRightDestination = -4;
murdocArmRightLowerDestination = 0;
murdocArmLeftDestination = 0;
murdocArmLeftLowerDestination = 0;
murdocLegLeftDestination = 0;
murdocLegLeftUpperDestination = 0;
murdocLegRightDestination = 0;
murdocLegRightUpperDestination = 0;
} else if (mySound.song.position >= (rhythmMark[rhythmMarkTotal] + (time * 1.5))) {
rhythmMarkTotal++;
} else if (mySound.song.position > rhythmMark[rhythmMarkTotal]) {
gorillaHeadDestination = 60;
gorillaArmDestination = 70;
gorillaTorsoDestination = 60;
gorillaLegLeftDestination = -20;
gorillaLegLeftUpperDestination = 80;
gorillaLegRightDestination = 20;
gorillaLegRightUpperDestination = -80;
murdocHeadDestination = 30;
murdocTorsoDestination = 86;
murdocArmRightDestination = 6;
murdocArmRightLowerDestination = -20;
murdocArmLeftDestination = -10;
murdocArmLeftLowerDestination = 20;
murdocLegLeftDestination = -10;
murdocLegLeftUpperDestination = 20;
murdocLegRightDestination = 15;
murdocLegRightUpperDestination = -30;
}
russel.armRight.lower._rotation = russel.armRight.lower._rotation - ((russel.armRight.lower._rotation - russelRightDestination) / 3.5);
russel.head._y = russel.head._y - ((russel.head._y - russelHeadDestination) / 10);
gorilla.head._y = gorilla.head._y - ((gorilla.head._y - gorillaHeadDestination) / 8);
gorilla.torso.armLeft._y = gorilla.torso.armLeft._y - ((gorilla.torso.armLeft._y - gorillaArmDestination) / 6);
gorilla.torso.armRight._y = gorilla.torso.armRight._y - ((gorilla.torso.armRight._y - gorillaArmDestination) / 6);
gorilla.torso._y = gorilla.torso._y - ((gorilla.torso._y - gorillaTorsoDestination) / 8);
gorilla.legLeft._rotation = gorilla.legLeft._rotation - ((gorilla.legLeft._rotation - gorillaLegLeftDestination) / 6);
gorilla.legLeft.upper._rotation = gorilla.legLeft.upper._rotation - ((gorilla.legLeft.upper._rotation - gorillaLegLeftUpperDestination) / 6);
gorilla.legRight._rotation = gorilla.legRight._rotation - ((gorilla.legRight._rotation - gorillaLegRightDestination) / 6);
gorilla.legRight.upper._rotation = gorilla.legRight.upper._rotation - ((gorilla.legRight.upper._rotation - gorillaLegRightUpperDestination) / 6);
murdoc.head._y = murdoc.head._y - ((murdoc.head._y - murdocHeadDestination) / 8);
murdoc.torso._y = murdoc.torso._y - ((murdoc.torso._y - murdocTorsoDestination) / 8);
murdoc.torso.armRight._rotation = murdoc.torso.armRight._rotation - ((murdoc.torso.armRight._rotation - murdocArmRightDestination) / 6);
murdoc.torso.armRight.lower._rotation = murdoc.torso.armRight.lower._rotation - ((murdoc.torso.armRight.lower._rotation - murdocArmRightLowerDestination) / 6);
murdoc.torso.armLeft._rotation = murdoc.torso.armLeft._rotation - ((murdoc.torso.armLeft._rotation - murdocArmLeftDestination) / 6);
murdoc.torso.armLeft.lower._rotation = murdoc.torso.armLeft.lower._rotation - ((murdoc.torso.armLeft.lower._rotation - murdocArmLeftLowerDestination) / 6);
murdoc.legLeft._rotation = murdoc.legLeft._rotation - ((murdoc.legLeft._rotation - murdocLegLeftDestination) / 6);
murdoc.legLeft.upper._rotation = murdoc.legLeft.upper._rotation - ((murdoc.legLeft.upper._rotation - murdocLegLeftUpperDestination) / 6);
murdoc.legRight._rotation = murdoc.legRight._rotation - ((murdoc.legRight._rotation - murdocLegRightDestination) / 6);
murdoc.legRight.upper._rotation = murdoc.legRight.upper._rotation - ((murdoc.legRight.upper._rotation - murdocLegRightUpperDestination) / 6);
murdoc.head._rotation = murdoc.head._rotation - (murdoc.head._rotation / 7);
gorilla.torso.armLeft._rotation = gorilla.torso.armLeft._rotation - (gorilla.torso.armLeft._rotation / 7);
gorilla.torso.armRight._rotation = gorilla.torso.armRight._rotation - (gorilla.torso.armRight._rotation / 7);
gorilla.torso.armLeft.hand._rotation = gorilla.torso.armLeft.hand._rotation - ((gorilla.torso.armLeft.hand._rotation - gorillaHandLeftDestination) / 6);
gorilla.torso.armRight.hand._rotation = gorilla.torso.armRight.hand._rotation - ((gorilla.torso.armRight.hand._rotation - gorillaHandRightDestination) / 6);
};
listener = new Object();
listener.onKeyDown = function () {
if (Key.isDown(39)) {
murdoc.torso.armRight._rotation = -49;
murdoc.torso.armRight.lower._rotation = 30;
murdoc.torso.armLeft._rotation = 0;
murdoc.torso.armLeft.lower._rotation = -20;
if ((((mySound.song.position - 200) > (grooveMark[i] - 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 32))) && (grooveMove[i % 4] == 1)) {
currentInARow++;
if (currentInARow > inARow) {
inARow = currentInARow;
}
playerRight.green._alpha = 100;
perfect++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] - 100)) && ((mySound.song.position - 200) < (grooveMark[i] - 32))) && (grooveMove[i % 4] == 1)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerRight.yellow._alpha = 100;
early++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] + 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 100))) && (grooveMove[i % 4] == 1)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerRight.orange._alpha = 100;
late++;
i++;
} else {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerRight.red._alpha = 100;
penalty++;
}
}
if (Key.isDown(37)) {
murdoc.torso.armRight._rotation = -4;
murdoc.torso.armRight.lower._rotation = 20;
murdoc.torso.armLeft._rotation = 45;
murdoc.torso.armLeft.lower._rotation = -30;
if ((((mySound.song.position - 200) > (grooveMark[i] - 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 32))) && (grooveMove[i % 4] == 0)) {
currentInARow++;
if (currentInARow > inARow) {
inARow = currentInARow;
}
playerLeft.green._alpha = 100;
perfect++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] - 100)) && ((mySound.song.position - 200) < (grooveMark[i] - 32))) && (grooveMove[i % 4] == 0)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerLeft.yellow._alpha = 100;
early++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] + 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 100))) && (grooveMove[i % 4] == 0)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerLeft.orange._alpha = 100;
late++;
i++;
} else {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerLeft.red._alpha = 100;
penalty++;
}
}
if (Key.isDown(40)) {
murdoc.torso.armRight._rotation = 11;
murdoc.torso.armRight.lower._rotation = 20;
murdoc.torso.armLeft._rotation = -15;
murdoc.torso.armLeft.lower._rotation = -20;
if ((((mySound.song.position - 200) > (grooveMark[i] - 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 32))) && (grooveMove[i % 4] == 2)) {
currentInARow++;
if (currentInARow > inARow) {
inARow = currentInARow;
}
playerDown.green._alpha = 100;
perfect++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] - 100)) && ((mySound.song.position - 200) < (grooveMark[i] - 32))) && (grooveMove[i % 4] == 2)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerDown.yellow._alpha = 100;
early++;
i++;
} else if ((((mySound.song.position - 200) > (grooveMark[i] + 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 100))) && (grooveMove[i % 4] == 2)) {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerDown.orange._alpha = 100;
late++;
i++;
} else {
if (currentInARow > inARow) {
inARow = currentInARow;
}
currentInARow = 0;
playerDown.red._alpha = 100;
penalty++;
}
}
};
Key.addListener(listener);
Frame 12
_root.mySound.song.start();
lightPlayer._visible = false;
lightComp._visible = false;
offset = 2000;
scale = 20;
time = 150;
rightTotal = 0;
leftTotal = 0;
rhythmMarkTotal = 0;
grooveMarkTotal = 0;
right = new Array(6806, 7671, 8544, 9400, 10273, 11138, 12002, 12869, 13734, 14600, 15474, 16335, 17199, 18070, 18934, 19795, 20658, 21535, 22393, 23263, 24132, 24994, 25860, 26733, 27613, 28461, 29333, 30197, 33661, 34526, 35400, 36273, 37126, 37998, 38864, 39729, 40589, 41459, 42327, 43197, 44927, 45795, 46658, 47513, 48386, 49258, 50133, 50984, 51856, 52713, 53580, 55313, 56184, 57041, 57913, 58779, 59655, 60513, 61383, 62250, 63113, 79570, 80442, 81313, 82175, 83026, 83913, 84765, 85636, 86513, 87374, 88231, 89113, 89964, 90835, 91713, 92568, 93435, 96034, 96913, 97762, 98634, 99513, 100367, 101233, 102113, 102951, 103853, 104713, 105571, 106422, 108165, 109913, 110765, 111623, 112513, 113350, 114216, 115083, 115954, 116826, 117686, 118558, 119429, 120313, 121163, 122024, 122886, 123757, 124619, 125480, 126357, 127213, 128089, 128936, 129827, 130674, 131543, 132427, 133296, 134143, 135000, 135873, 136750, 137611, 166200, 167077, 167938, 168807, 169669, 170538, 171400, 172269, 173133, 174000, 174867, 175725, 176592, 177500, 177500, 179184, 180060, 180927, 181803, 182661, 183537, 184392, 185254, 186109, 187000, 187855, 190455, 191332, 192179, 193056, 193926, 194780, 195657, 196514, 197396, 198258, 199112, 200000, 204321, 205176, 206045, 206907, 207799, 208653, 209506, 210385, 211261, 212123, 213000, 213855);
rhythmMark = new Array(6806, 7671, 8544, 9400, 10273, 11138, 12002, 12869, 13734, 14600, 15474, 16335, 17199, 18070, 18934, 19795, 20658, 21535, 22393, 23263, 24132, 24994, 25860, 26733, 27613, 28461, 29333, 30197, 31063, 31929, 32795, 33661, 34526, 35400, 36273, 37126, 37998, 38864, 39729, 40589, 41459, 42327, 43197, 44062, 44927, 45795, 46658, 47513, 48386, 49258, 50133, 50984, 51856, 52713, 53580, 54446, 55313, 56184, 57041, 57913, 58779, 59655, 60513, 61383, 62250, 63113, 63979, 64845, 65711, 66577, 67443, 68309, 69175, 70041, 70907, 71773, 72639, 73505, 74371, 75237, 76103, 76969, 77835, 78701, 79570, 80442, 81313, 82175, 83026, 83913, 84765, 85636, 86513, 87374, 88231, 89113, 89964, 90835, 91713, 92568, 93435, 94301, 95167, 96034, 96913, 97762, 98634, 99513, 100367, 101233, 102113, 102951, 103853, 104713, 105571, 106422, 107288, 108165, 109031, 109913, 110765, 111623, 112513, 113350, 114216, 115083, 115954, 116826, 117686, 118558, 119429, 120313, 121163, 122024, 122886, 123757, 124619, 125480, 126357, 127213, 128089, 128936, 129827, 130674, 131543, 132427, 133296, 134143, 135000, 135873, 136750, 137611, 138477, 139343, 140209, 141075, 141941, 142807, 143673, 144539, 145405, 146271, 147137, 148003, 148869, 149735, 150601, 151467, 152333, 153199, 154065, 154931, 155797, 156663, 157529, 158395, 159261, 160127, 160993, 161859, 162725, 163591, 164457, 165323, 166200, 167077, 167938, 168807, 169669, 170538, 171400, 172269, 173133, 174000, 174867, 175725, 176592, 177500, 178366, 179184, 180060, 180927, 181803, 182661, 183537, 184392, 185254, 186109, 187000, 187855, 188721, 189587, 190455, 191332, 192179, 193056, 193926, 194780, 195657, 196514, 197396, 198258, 199112, 200000, 200866, 201732, 202598, 203464, 204321, 205176, 206045, 206907, 207799, 208653, 209506, 210385, 211261, 212123, 213000, 213855);
left = new Array(6374, 7455, 8113, 9190, 9841, 10913, 11574, 12656, 13313, 14386, 15034, 16127, 16769, 17854, 18500, 19371, 20240, 21313, 21966, 23049, 23694, 24784, 25436, 26294, 26513, 27164, 28247, 28898, 29983, 33446, 34097, 35200, 35832, 36913, 37565, 38647, 39295, 40377, 41030, 42113, 42761, 45580, 46226, 47313, 47966, 49039, 49689, 50774, 51427, 52513, 53151, 54880, 56010, 56618, 57713, 58346, 59426, 60079, 61164, 61817, 62913, 63550, 79142, 80233, 80875, 81966, 82618, 83713, 84341, 85208, 86074, 87155, 87807, 88888, 89540, 90621, 91273, 92369, 93001, 95815, 96472, 97553, 98201, 99286, 99939, 101014, 101677, 102752, 103405, 104480, 105113, 106208, 106866, 107946, 108594, 109679, 110352, 111417, 112060, 113145, 113798, 114874, 115513, 116617, 117258, 118349, 118991, 120007, 120713, 121810, 122452, 123543, 124190, 125276, 125913, 127004, 127662, 128737, 129378, 130460, 131116, 132191, 132847, 133944, 134585, 135682, 136308, 137383, 165781, 166856, 167500, 168594, 169220, 170325, 171000, 171834, 172704, 173777, 174429, 175500, 176154, 177245, 177888, 178344, 178764, 179086, 179407, 179640, 180703, 181365, 182446, 183090, 184171, 184819, 185917, 186551, 187663, 190029, 191126, 191759, 192850, 193500, 194566, 195230, 196320, 196961, 198037, 198692, 199775, 203879, 204955, 205618, 206701, 207364, 208440, 209095, 210178, 210819, 211910, 212558, 213634);
grooveMark = new Array(6374, 6806, 7455, 7671, 8113, 8544, 9190, 9400, 9841, 10273, 10913, 11138, 11574, 12002, 12656, 12869, 13313, 13734, 14386, 14600, 15034, 15474, 16127, 16335, 16769, 17199, 17854, 18070, 18500, 18934, 19371, 19795, 20240, 20658, 21313, 21535, 21966, 22393, 23049, 23263, 23694, 24132, 24784, 24994, 25436, 25860, 26513, 26733, 27164, 27613, 28247, 28461, 28898, 29333, 29983, 30197, 30629, 31063, 31714, 31929, 32361, 32795, 33446, 33661, 34097, 34526, 35200, 35400, 35832, 36273, 36913, 37126, 37565, 37998, 38647, 38864, 39295, 39729, 40377, 40589, 41030, 41459, 42113, 42327, 42761, 43197, 43847, 44062, 44493, 44927, 45580, 45795, 46226, 46658, 47313, 47513, 47966, 48386, 49039, 49258, 49689, 50133, 50774, 50984, 51427, 51856, 52513, 52713, 53151, 53580, 54231, 54446, 54880, 55313, 56010, 56184, 56618, 57041, 57713, 57913, 58346, 58779, 59426, 59655, 60079, 60513, 61164, 61383, 79142, 79570, 80233, 80442, 80875, 81313, 81966, 82175, 82618, 83026, 83713, 83913, 84341, 84765, 85208, 85636, 86074, 86513, 87155, 87374, 87807, 88231, 88888, 89113, 89540, 89964, 90621, 90835, 91273, 91713, 92369, 92568, 93001, 93435, 94086, 94301, 94733, 95167, 95815, 96034, 96472, 96913, 97553, 97762, 98201, 98634, 99286, 99513, 99939, 100367, 101014, 101233, 101677, 102113, 102752, 102951, 103405, 103853, 104480, 104713, 105113, 105571, 106208, 106422, 106866, 107288, 107946, 108165, 108594, 109031, 109679, 109913, 110352, 110765, 111417, 111623, 112060, 112513, 113145, 113350, 113798, 114216, 114874, 115083, 115513, 115954, 116617, 116826, 117258, 117686, 118349, 118558, 118991, 119429, 120007, 120313, 120713, 121163, 121810, 122024, 122452, 122886, 123543, 123757, 124190, 124619, 125276, 125480, 125913, 126357, 127004, 127213, 127662, 128089, 128737, 128936, 129378, 129827, 130460, 130674, 131116, 131543, 132191, 132427, 132847, 133296, 133944, 134143, 134585, 135000, 135682, 135873, 136308, 136750, 137383, 137611, 165781, 166200, 166856, 167077, 167500, 167938, 168594, 168807, 169220, 169669, 170325, 170538, 171000, 171400, 171834, 172269, 172704, 173133, 173777, 174000, 174429, 174867, 175500, 175725, 176154, 176592, 177245, 177500, 177888, 178366, 178764, 179184, 179640, 180060, 180703, 180927, 181365, 181803, 182446, 182661, 183090, 183537, 184171, 184392, 184819, 185254, 185917, 186109, 186551, 187000, 187663, 187855, 188287, 188721, 189372, 189587, 190029, 190455, 191126, 191332, 191759, 192179, 192850, 193056, 193500, 193926, 194566, 194780, 195230, 195657, 196320, 196514, 196961, 197396, 198037, 198258, 198692, 199112, 199775, 200000, 200432, 200866, 201517, 201732, 202164, 202598, 203149, 203464, 203879, 204321, 204955, 205176, 205618, 206045, 206701, 206907, 207364, 207799, 208440, 208653, 209095, 209506, 210178, 210385, 210819, 211261, 211910, 212123, 212558, 213000, 213634, 213855);
grooveMove = new Array(0, 0, 0, 0);
russelLeftDestination = 0;
russelRightDestination = 0;
russelHeadDestination = 0;
gorillaHeadDestination = 0;
gorillaArmDestination = 60;
gorillaHandRightDestination = 7;
gorillaHandLeftDestination = -7;
gorillaTorsoDestination = 15;
gorillaLegLeftDestination = 0;
gorillaLegLeftUpperDestination = 0;
twoDHeadDestination = 68;
twoDTorsoDestination = 74;
twoDArmRightDestination = 0;
twoDArmRightLowerDestination = 0;
twoDArmLeftDestination = 0;
twoDArmLeftLowerDestination = 0;
twoDLegLeftDestination = 0;
twoDLegLeftUpperDestination = 0;
twoDLegRightDestination = 0;
twoDLegRightUpperDestination = 0;
i = 0;
nextI = 4;
turn = "comp";
hitFirst = true;
hitSecond = true;
hitThird = true;
roundOne = true;
roundTwo = true;
roundThree = true;
roundOneEnd = true;
roundTwoEnd = true;
roundThreeEnd = true;
roundResultsDestination = 400;
compLeft.yellow._alpha = 0;
compLeft.green._alpha = 0;
compLeft.red._alpha = 0;
compLeft.orange._alpha = 0;
compRight.yellow._alpha = 0;
compRight.green._alpha = 0;
compRight.red._alpha = 0;
compRight.orange._alpha = 0;
compDown.yellow._alpha = 0;
compDown.green._alpha = 0;
compDown.red._alpha = 0;
compDown.orange._alpha = 0;
playerLeft.yellow._alpha = 0;
playerLeft.green._alpha = 0;
playerLeft.red._alpha = 0;
playerLeft.orange._alpha = 0;
playerRight.yellow._alpha = 0;
playerRight.green._alpha = 0;
playerRight.red._alpha = 0;
playerRight.orange._alpha = 0;
playerDown.yellow._alpha = 0;
playerDown.green._alpha = 0;
playerDown.red._alpha = 0;
playerDown.orange._alpha = 0;
brickWallDestination = -410;
demoDone = false;
demoDestination = "home";
endGame = true;
actions.onEnterFrame = function () {
if (mySound.song.position > (grooveMark[i] - 25)) {
if (turn == "comp") {
grooveMove[i % 4] = int(Math.random() * 3);
if (grooveMove[i % 4] == 0) {
compLeft.green._alpha = 100;
gorilla.torso.armLeft._y = 30;
gorilla.torso.armLeft._rotation = 10;
gorilla.torso.armLeft.hand._rotation = -40;
i++;
} else if (grooveMove[i % 4] == 1) {
compRight.green._alpha = 100;
gorilla.torso.armRight._y = 30;
gorilla.torso.armRight._rotation = -10;
gorilla.torso.armRight.hand._rotation = 40;
i++;
} else if (grooveMove[i % 4] == 2) {
compDown.green._alpha = 100;
gorilla.torso.armLeft._rotation = -15;
gorilla.torso.armLeft.hand._rotation = -80;
gorilla.torso.armRight._rotation = 15;
gorilla.torso.armRight.hand._rotation = 80;
i++;
}
} else if (turn == "player") {
if (grooveMove[i % 4] == 0) {
keyboardLeft._yscale = 80;
keyboardLeft._xscale = 80;
keyboardLeft._alpha = 50;
i++;
} else if (grooveMove[i % 4] == 1) {
keyboardRight._yscale = 80;
keyboardRight._xscale = 80;
keyboardRight._alpha = 50;
i++;
} else if (grooveMove[i % 4] == 2) {
keyboardDown._yscale = 80;
keyboardDown._xscale = 80;
keyboardDown._alpha = 50;
i++;
}
}
}
if (compLeft.yellow._alpha > 0) {
compLeft.yellow._alpha = compLeft.yellow._alpha - 6.25;
}
if (compLeft.green._alpha > 0) {
compLeft.green._alpha = compLeft.green._alpha - 6.25;
}
if (compLeft.red._alpha > 0) {
compLeft.red._alpha = compLeft.red._alpha - 6.25;
}
if (compLeft.orange._alpha > 0) {
compLeft.orange._alpha = compLeft.orange._alpha - 6.25;
}
if (compRight.yellow._alpha > 0) {
compRight.yellow._alpha = compRight.yellow._alpha - 6.25;
}
if (compRight.green._alpha > 0) {
compRight.green._alpha = compRight.green._alpha - 6.25;
}
if (compRight.red._alpha > 0) {
compRight.red._alpha = compRight.red._alpha - 6.25;
}
if (compRight.orange._alpha > 0) {
compRight.orange._alpha = compRight.orange._alpha - 6.25;
}
if (compDown.yellow._alpha > 0) {
compDown.yellow._alpha = compDown.yellow._alpha - 6.25;
}
if (compDown.green._alpha > 0) {
compDown.green._alpha = compDown.green._alpha - 6.25;
}
if (compDown.red._alpha > 0) {
compDown.red._alpha = compDown.red._alpha - 6.25;
}
if (compDown.orange._alpha > 0) {
compDown.orange._alpha = compDown.orange._alpha - 6.25;
}
if (playerLeft.yellow._alpha > 0) {
playerLeft.yellow._alpha = playerLeft.yellow._alpha - 6.25;
}
if (playerLeft.green._alpha > 0) {
playerLeft.green._alpha = playerLeft.green._alpha - 6.25;
}
if (playerLeft.red._alpha > 0) {
playerLeft.red._alpha = playerLeft.red._alpha - 6.25;
}
if (playerLeft.orange._alpha > 0) {
playerLeft.orange._alpha = playerLeft.orange._alpha - 6.25;
}
if (playerRight.yellow._alpha > 0) {
playerRight.yellow._alpha = playerRight.yellow._alpha - 6.25;
}
if (playerRight.green._alpha > 0) {
playerRight.green._alpha = playerRight.green._alpha - 6.25;
}
if (playerRight.red._alpha > 0) {
playerRight.red._alpha = playerRight.red._alpha - 6.25;
}
if (playerRight.orange._alpha > 0) {
playerRight.orange._alpha = playerRight.orange._alpha - 6.25;
}
if (playerDown.yellow._alpha > 0) {
playerDown.yellow._alpha = playerDown.yellow._alpha - 6.25;
}
if (playerDown.green._alpha > 0) {
playerDown.green._alpha = playerDown.green._alpha - 6.25;
}
if (playerDown.red._alpha > 0) {
playerDown.red._alpha = playerDown.red._alpha - 6.25;
}
if (playerDown.orange._alpha > 0) {
playerDown.orange._alpha = playerDown.orange._alpha - 6.25;
}
if ((mySound.song.position > (grooveMark[0] - 225)) && (hitFirst)) {
lightComp._visible = true;
hitFirst = false;
}
if ((mySound.song.position > (grooveMark[128] - 225)) && (hitSecond)) {
lightComp._visible = true;
hitSecond = false;
}
if ((mySound.song.position > (grooveMark[264] - 225)) && (hitThird)) {
lightComp._visible = true;
hitThird = false;
}
if (keyboardLeft._yscale != 100) {
keyboardLeft._yscale = keyboardLeft._yscale - ((keyboardLeft._yscale - 100) / 5);
keyboardLeft._xscale = keyboardLeft._xscale - ((keyboardLeft._xscale - 100) / 5);
keyboardLeft._alpha = keyboardLeft._alpha - ((keyboardLeft._alpha - 100) / 5);
}
if (keyboardRight._yscale != 100) {
keyboardRight._yscale = keyboardRight._yscale - ((keyboardRight._yscale - 100) / 5);
keyboardRight._xscale = keyboardRight._xscale - ((keyboardRight._xscale - 100) / 5);
keyboardRight._alpha = keyboardRight._alpha - ((keyboardRight._alpha - 100) / 5);
}
if (keyboardDown._yscale != 100) {
keyboardDown._yscale = keyboardDown._yscale - ((keyboardDown._yscale - 100) / 5);
keyboardDown._xscale = keyboardDown._xscale - ((keyboardDown._xscale - 100) / 5);
keyboardDown._alpha = keyboardDown._alpha - ((keyboardDown._alpha - 100) / 5);
}
if (mySound.song.position > (grooveMark[i - 1] + 225)) {
if (((i % 4) == 0) && (i == nextI)) {
if (turn == "comp") {
turn = "player";
lightPlayer._visible = true;
lightComp._visible = false;
} else if ((((turn == "player") && (i != 128)) && (i != 264)) && (i != 376)) {
turn = "comp";
lightPlayer._visible = false;
lightComp._visible = true;
} else {
turn = "comp";
lightPlayer._visible = false;
lightComp._visible = false;
}
nextI = nextI + 4;
}
}
if (brickWall._y != brickWallDestination) {
brickWall._y = brickWall._y - ((brickWall._y - brickWallDestination) / 7);
if (demoDone || (mySound.song.position > 61383)) {
mySound.song.setVolume(mySound.song.getVolume() - (mySound.song.getVolume() / 7));
}
}
if ((brickWall._y <= -409.5) && (brickWallDestination == -410)) {
brickWall.gotoAndStop("blank");
if (demoDone || (mySound.song.position > 61383)) {
brickWallDestination = 0;
brickWall.gotoAndStop("brickWall");
}
}
if ((brickWall._y >= -0.5) && (demoDone || (mySound.song.position > 61383))) {
Key.removeListener(listener);
delete actions.onEnterFrame;
_root.mySound.song.stop();
mySound.song.setVolume(100);
gotoAndStop(demoDestination);
}
if (mySound.song.position <= (left[leftTotal] - time)) {
russelLeftDestination = 0;
} else if (mySound.song.position <= left[leftTotal]) {
russelLeftDestination = -9;
} else if (mySound.song.position >= (left[leftTotal] + time)) {
leftTotal++;
} else if (mySound.song.position > left[leftTotal]) {
russelLeftDestination = 11;
}
russel.armLeft._rotation = russel.armLeft._rotation - ((russel.armLeft._rotation - russelLeftDestination) / 3.5);
if (mySound.song.position <= (right[rightTotal] - time)) {
russelRightDestination = 0;
russelHeadDestination = 0;
} else if (mySound.song.position <= right[rightTotal]) {
russelRightDestination = 9;
} else if (mySound.song.position >= (right[rightTotal] + time)) {
rightTotal++;
} else if (mySound.song.position > right[rightTotal]) {
russelRightDestination = -11;
russelHeadDestination = 10;
}
if (mySound.song.position <= (rhythmMark[rhythmMarkTotal] - time)) {
gorillaHeadDestination = 0;
gorillaArmDestination = 60;
gorillaTorsoDestination = 15;
gorillaLegLeftDestination = 0;
gorillaLegLeftUpperDestination = 0;
gorillaLegRightDestination = 0;
gorillaLegRightUpperDestination = 0;
twoDHeadDestination = 68;
twoDTorsoDestination = 74;
twoDArmRightDestination = 0;
twoDArmRightLowerDestination = 0;
twoDArmLeftDestination = 0;
twoDArmLeftLowerDestination = 0;
twoDLegLeftDestination = 0;
twoDLegLeftUpperDestination = 0;
twoDLegRightDestination = 0;
twoDLegRightUpperDestination = 0;
} else if (mySound.song.position >= (rhythmMark[rhythmMarkTotal] + (time * 1.5))) {
rhythmMarkTotal++;
} else if (mySound.song.position > rhythmMark[rhythmMarkTotal]) {
gorillaHeadDestination = 60;
gorillaArmDestination = 70;
gorillaTorsoDestination = 60;
gorillaLegLeftDestination = -20;
gorillaLegLeftUpperDestination = 80;
gorillaLegRightDestination = 20;
gorillaLegRightUpperDestination = -80;
twoDHeadDestination = 98;
twoDTorsoDestination = 96;
twoDArmRightDestination = 10;
twoDArmRightLowerDestination = -20;
twoDArmLeftDestination = -10;
twoDArmLeftLowerDestination = 20;
twoDLegLeftDestination = -10;
twoDLegLeftUpperDestination = 20;
twoDLegRightDestination = 15;
twoDLegRightUpperDestination = -30;
}
russel.armRight.lower._rotation = russel.armRight.lower._rotation - ((russel.armRight.lower._rotation - russelRightDestination) / 3.5);
russel.head._y = russel.head._y - ((russel.head._y - russelHeadDestination) / 10);
gorilla.head._y = gorilla.head._y - ((gorilla.head._y - gorillaHeadDestination) / 8);
gorilla.torso.armLeft._y = gorilla.torso.armLeft._y - ((gorilla.torso.armLeft._y - gorillaArmDestination) / 6);
gorilla.torso.armRight._y = gorilla.torso.armRight._y - ((gorilla.torso.armRight._y - gorillaArmDestination) / 6);
gorilla.torso._y = gorilla.torso._y - ((gorilla.torso._y - gorillaTorsoDestination) / 8);
gorilla.legLeft._rotation = gorilla.legLeft._rotation - ((gorilla.legLeft._rotation - gorillaLegLeftDestination) / 6);
gorilla.legLeft.upper._rotation = gorilla.legLeft.upper._rotation - ((gorilla.legLeft.upper._rotation - gorillaLegLeftUpperDestination) / 6);
gorilla.legRight._rotation = gorilla.legRight._rotation - ((gorilla.legRight._rotation - gorillaLegRightDestination) / 6);
gorilla.legRight.upper._rotation = gorilla.legRight.upper._rotation - ((gorilla.legRight.upper._rotation - gorillaLegRightUpperDestination) / 6);
twoD.head._y = twoD.head._y - ((twoD.head._y - twoDHeadDestination) / 8);
twoD.torso._y = twoD.torso._y - ((twoD.torso._y - twoDTorsoDestination) / 8);
twoD.torso.armRight._rotation = twoD.torso.armRight._rotation - ((twoD.torso.armRight._rotation - twoDArmRightDestination) / 6);
twoD.torso.armRight.lower._rotation = twoD.torso.armRight.lower._rotation - ((twoD.torso.armRight.lower._rotation - twoDArmRightLowerDestination) / 6);
twoD.torso.armLeft._rotation = twoD.torso.armLeft._rotation - ((twoD.torso.armLeft._rotation - twoDArmLeftDestination) / 6);
twoD.torso.armLeft.lower._rotation = twoD.torso.armLeft.lower._rotation - ((twoD.torso.armLeft.lower._rotation - twoDArmLeftLowerDestination) / 6);
twoD.legLeft._rotation = twoD.legLeft._rotation - ((twoD.legLeft._rotation - twoDLegLeftDestination) / 6);
twoD.legLeft.upper._rotation = twoD.legLeft.upper._rotation - ((twoD.legLeft.upper._rotation - twoDLegLeftUpperDestination) / 6);
twoD.legRight._rotation = twoD.legRight._rotation - ((twoD.legRight._rotation - twoDLegRightDestination) / 6);
twoD.legRight.upper._rotation = twoD.legRight.upper._rotation - ((twoD.legRight.upper._rotation - twoDLegRightUpperDestination) / 6);
twoD.head._rotation = twoD.head._rotation - (twoD.head._rotation / 7);
gorilla.torso.armLeft._rotation = gorilla.torso.armLeft._rotation - (gorilla.torso.armLeft._rotation / 7);
gorilla.torso.armRight._rotation = gorilla.torso.armRight._rotation - (gorilla.torso.armRight._rotation / 7);
gorilla.torso.armLeft.hand._rotation = gorilla.torso.armLeft.hand._rotation - ((gorilla.torso.armLeft.hand._rotation - gorillaHandLeftDestination) / 6);
gorilla.torso.armRight.hand._rotation = gorilla.torso.armRight.hand._rotation - ((gorilla.torso.armRight.hand._rotation - gorillaHandRightDestination) / 6);
};
listener = new Object();
listener.onKeyDown = function () {
if (Key.isDown(39)) {
twoD.torso.armRight._rotation = -45;
twoD.torso.armRight.lower._rotation = 30;
twoD.torso.armLeft._rotation = 0;
twoD.torso.armLeft.lower._rotation = -20;
if ((((mySound.song.position - 200) > (grooveMark[i - 1] - 32)) && ((mySound.song.position - 200) < (grooveMark[i - 1] + 32))) && (grooveMove[(i - 1) % 4] == 1)) {
playerRight.green._alpha = 100;
} else if ((((mySound.song.position - 200) > (grooveMark[i - 1] - 100)) && ((mySound.song.position - 200) < (grooveMark[i - 1] - 32))) && (grooveMove[(i - 1) % 4] == 1)) {
playerRight.yellow._alpha = 100;
} else if ((((mySound.song.position - 200) > (grooveMark[i] + 32)) && ((mySound.song.position - 200) < (grooveMark[i] + 100))) && (grooveMove[(i - 1) % 4] == 1)) {
playerRight.orange._alpha = 100;
} else {
playerRight.red._alpha = 100;
}
}
if (Key.isDown(37)) {
twoD.torso.armRight._rotation = 0;
twoD.torso.armRight.lower._rotation = 20;
twoD.torso.armLeft._rotation = 45;
twoD.torso.armLeft.lower._rotation = -30;
if ((((mySound.song.position - 200) > (grooveMark[i - 1] - 32)) && ((mySound.song.position - 200) < (grooveMark[i - 1] + 32))) && (grooveMove[(i - 1) % 4] == 0)) {
playerLeft.green._alpha = 100;
} else if ((((mySound.song.position - 200) > (grooveMark[i - 1] - 100)) && ((mySound.song.position - 200) < (grooveMark[i - 1] - 32))) && (grooveMove[(i - 1) % 4] == 0)) {
playerLeft.yellow._alpha = 100;
} else if ((((mySound.song.position - 200) > (grooveMark[i - 1] + 32)) && ((mySound.song.position - 200) < (grooveMark[i - 1] + 100))) && (grooveMove[(i - 1) % 4] == 0)) {
playerLeft.orange._alpha = 100;
} else {
playerLeft.red._alpha = 100;
}
}
if (Key.isDown(40)) {
twoD.torso.armRight._rotation = 15;
twoD.torso.armRight.lower._rotation = 20;
twoD.torso.armLeft._rotation = -15;
twoD.torso.armLeft.lower._rotation = -20;
if ((((mySound.song.position - 200) > (grooveMark[i - 1] - 32)) && ((mySound.song.position - 200) < (grooveMark[i - 1] + 32))) && (grooveMove[(i - 1) % 4] == 2)) {
playerDown.green._alpha = 100;
} else if ((((mySound.song.position - 200) > (grooveMark[i - 1] - 100)) && ((mySound.song.position - 200) < (grooveMark[i - 1] - 32))) && (grooveMove[(i - 1) % 4] == 2)) {
playerDown.yellow._alpha = 100;
} else if ((((mySound.song.position - 200) > (grooveMark[i - 1] + 32)) && ((mySound.song.position - 200) < (grooveMark[i - 1] + 100))) && (grooveMove[(i - 1) % 4] == 2)) {
playerDown.orange._alpha = 100;
} else {
playerDown.red._alpha = 100;
}
}
};
Key.addListener(listener);
Instance of Symbol 278 MovieClip in Frame 12
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
_root.menuCharDestination = -488;
_root.charDestination = "gorilla";
_root.demoDestination = "home";
_root.demoDone = true;
}
Instance of Symbol 45 MovieClip in Frame 12
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
_root.menuCharDestination = -488;
_root.charDestination = "twoD";
_root.demoDestination = "options";
_root.demoDone = true;
}
Symbol 11 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 10
stop();
Symbol 11 MovieClip Frame 20
gotoAndStop ("default");
Instance of Symbol 21 MovieClip in Symbol 25 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.getBytesLoaded() == _root.getBytesTotal()) && (_root.version >= 7)) {
_root.gotoAndPlay("intro");
} else {
this._width = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
}
}
Instance of Symbol 33 MovieClip in Symbol 34 MovieClip Frame 1
on (rollOver) {
_parent.qualityBg._alpha = 100;
}
on (rollOut) {
_parent.qualityBg._alpha = 30;
}
on (press) {
this.startDrag(false, 220, 5, 241, 5);
updateAfterEvent();
}
on (release, releaseOutside) {
this.stopDrag();
if (this._x <= 224) {
this._x = 220;
_quality = "LOW";
} else if ((this._x > 224) && (this._x < 238)) {
this._x = 231;
_quality = "MEDIUM";
} else if (this._x >= 238) {
this._x = 241;
_quality = "HIGH";
}
}
Symbol 39 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 10
stop();
Symbol 45 MovieClip Frame 20
gotoAndStop ("default");
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 10
stop();
Symbol 50 MovieClip Frame 20
gotoAndStop ("default");
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 10
stop();
Symbol 57 MovieClip Frame 20
gotoAndStop ("default");
Instance of Symbol 45 MovieClip in Symbol 58 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
_root.menuCharDestination = -488;
_root.charDestination = "twoD";
_root.gotoAndStop("options");
}
Instance of Symbol 50 MovieClip in Symbol 58 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
_root.score = null;
_root.dBDestination = "highScores";
_root.gotoAndStop("contactDb");
}
Instance of Symbol 57 MovieClip in Symbol 58 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
_root.mySound.nav.stop();
_root.gotoAndStop("gameDemo");
}
Symbol 134 MovieClip Frame 146
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 10
stop();
Symbol 257 MovieClip Frame 20
gotoAndStop ("default");
Symbol 265 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 10
stop();
Symbol 265 MovieClip Frame 20
gotoAndStop ("default");
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 10
stop();
Symbol 273 MovieClip Frame 20
gotoAndStop ("default");
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 10
stop();
Symbol 278 MovieClip Frame 20
gotoAndStop ("default");
Symbol 287 MovieClip Frame 1
stop();
Instance of Symbol 257 MovieClip in Symbol 288 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
_root.mySound.nav.stop();
if (_root.char == 1) {
_root.gotoAndStop("gameTwoD");
} else if (_root.char == 2) {
_root.gotoAndStop("gameNoodle");
} else if (_root.char == 3) {
_root.gotoAndStop("gameMurdoc");
}
}
Instance of Symbol 265 MovieClip in Symbol 288 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
_root.menuCharDestination = -488;
if (_root.char == 1) {
_root.charDestination = "noodle";
_parent.charText.gotoAndStop("noodle");
_root.char = 2;
} else if (_root.char == 2) {
_root.charDestination = "murdoc";
_parent.charText.gotoAndStop("murdoc");
_root.char = 3;
} else if (_root.char == 3) {
_root.charDestination = "twoD";
_parent.charText.gotoAndStop("twoD");
_root.char = 1;
}
}
Instance of Symbol 273 MovieClip in Symbol 288 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
_root.menuCharDestination = -488;
if (_root.char == 1) {
_root.charDestination = "murdoc";
_parent.charText.gotoAndStop("murdoc");
_root.char = 3;
} else if (_root.char == 2) {
_root.charDestination = "twoD";
_parent.charText.gotoAndStop("twoD");
_root.char = 1;
} else if (_root.char == 3) {
_root.charDestination = "noodle";
_parent.charText.gotoAndStop("noodle");
_root.char = 2;
}
}
Instance of Symbol 278 MovieClip in Symbol 288 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
_root.menuCharDestination = -488;
_root.charDestination = "gorilla";
_root.gotoAndStop("home");
}
Symbol 295 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 10
stop();
Symbol 295 MovieClip Frame 20
gotoAndStop ("default");
Symbol 302 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 10
stop();
Symbol 302 MovieClip Frame 20
gotoAndStop ("default");
Symbol 337 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 1
function showScores() {
i = 1;
while (i <= 10) {
iPage = i + page;
eval ("rank" + i).text = iPage;
eval ("playerName" + i).text = _root.scoreCard["playerName" + iPage];
eval ("score" + i).text = _root.scoreCard["score" + iPage];
eval ("face" + i).gotoAndStop(_root.scoreCard["char" + iPage]);
if (_root.scoreCard["playerName" + iPage] == null) {
eval ("playerName" + i).text = "- - - - - - - - - - -";
}
if (_root.scoreCard["score" + iPage] == null) {
eval ("score" + i).text = "- - - -";
}
if (_root.scoreCard["char" + iPage] == null) {
eval ("face" + i).gotoAndStop(4);
}
i++;
}
}
page = 0;
showScores();
Instance of Symbol 278 MovieClip in Symbol 338 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
_root.menuCharDestination = -488;
_root.charDestination = "gorilla";
_root.gotoAndStop("home");
}
Instance of Symbol 295 MovieClip in Symbol 338 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
if (_parent.page < 90) {
_parent.page = _parent.page + 10;
_parent.showScores();
}
}
Instance of Symbol 302 MovieClip in Symbol 338 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
if (_parent.page > 0) {
_parent.page = _parent.page - 10;
_parent.showScores();
}
}
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 10
stop();
Symbol 344 MovieClip Frame 20
gotoAndStop ("default");
Symbol 354 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 1
stop();
Instance of Symbol 344 MovieClip in Symbol 416 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
_root.fromResults = true;
_root.gotoAndStop("options");
}
Instance of Symbol 278 MovieClip in Symbol 416 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
_root.menuCharDestination = -488;
_root.charDestination = "gorilla";
_root.gotoAndStop("home");
}
Instance of Symbol 50 MovieClip in Symbol 416 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
_root.score = null;
_root.gotoAndStop("highScores");
}
Symbol 422 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 10
stop();
Symbol 422 MovieClip Frame 20
gotoAndStop ("default");
Symbol 428 MovieClip Frame 1
stop();
Symbol 428 MovieClip Frame 10
stop();
Symbol 428 MovieClip Frame 20
gotoAndStop ("default");
Instance of Symbol 422 MovieClip in Symbol 434 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
_root.dBDestination = "results";
_root.playerName = _parent.enteredName;
_root.gotoAndStop("contactDb");
}
Instance of Symbol 428 MovieClip in Symbol 434 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
_root.score = null;
_root.dBDestination = "results";
_root.gotoAndStop("contactDb");
}
Symbol 439 MovieClip Frame 1
stop();
Symbol 439 MovieClip Frame 10
stop();
Symbol 439 MovieClip Frame 20
gotoAndStop ("default");
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 10
stop();
Symbol 451 MovieClip Frame 20
gotoAndStop ("default");
Symbol 452 MovieClip Frame 1
stop();
Instance of Symbol 439 MovieClip in Symbol 452 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
_root.score = null;
_root.gotoAndStop(_root.dBDestination);
}
Instance of Symbol 451 MovieClip in Symbol 452 MovieClip Frame 2
on (rollOver) {
this.gotoAndPlay("rollOver");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("rollOut");
}
on (release) {
getURL ("http://www.bellbrothers.net", "bell");
}
Symbol 509 MovieClip Frame 1
stop();
Symbol 509 MovieClip Frame 19
gotoAndStop ("blank");
Symbol 509 MovieClip Frame 37
gotoAndStop ("blank");
Symbol 509 MovieClip Frame 56
gotoAndStop ("blank");
Symbol 509 MovieClip Frame 74
gotoAndStop ("blank");
Symbol 555 MovieClip Frame 1
stop();
Instance of Symbol 534 MovieClip "progress" in Symbol 555 MovieClip Frame 2
onClipEvent (enterFrame) {
this.bar._width = ((_root.mySound.song.position - (_root.grooveMark[127] + 500)) / ((_root.grooveMark[128] - 2000) - (_root.grooveMark[127] + 500))) * 330;
}
Instance of Symbol 534 MovieClip "progress" in Symbol 555 MovieClip Frame 3
onClipEvent (enterFrame) {
this.bar._width = ((_root.mySound.song.position - (_root.grooveMark[263] + 500)) / ((_root.grooveMark[264] - 2000) - (_root.grooveMark[263] + 500))) * 330;
}
Instance of Symbol 534 MovieClip "progress" in Symbol 555 MovieClip Frame 4
onClipEvent (enterFrame) {
this.bar._width = ((_root.mySound.song.position - (_root.grooveMark[375] + 500)) / (_root.mySound.song.duration - (_root.grooveMark[375] + 500))) * 330;
}
Symbol 557 MovieClip Frame 1
stop();