Frame 1
_quality = "Medium";
play._visible = false;
System.security.loadPolicyFile("http://www.thorgaming.com/feelthebeats/test/crossdomain.xml");
System.security.loadPolicyFile("http://www.thorgaming.com/feelthebeats/test/crossdomain.xml");
var CPMStarPoolID = 1052;
var CPMStarSubPoolID = 25;
System.security.allowDomain("server.cpmstar.com");
ads.adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
stop();
_root.menu = new ContextMenu();
_root.menu.hideBuiltInItems();
var mvar = new md5();
onEnterFrame = function () {
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.bar._xscale = percentLoaded;
if (bar.bar._xscale == 100) {
bar.load._visible = false;
play._visible = true;
}
};
Instance of Symbol 57 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Frame 3
onMouseDown = function () {
clicked = true;
};
onMouseUp = function () {
clicked = false;
};
_root.hack = false;
var1 = 0;
var2 = 0;
var3 = 0;
var4 = 0;
var5 = 0;
var6 = 0;
var7 = 0;
var8 = 0;
var9 = 0;
var savefile = SharedObject.getLocal("rhythm");
faqread = false;
ctrlsN = 0;
trace(faqread);
submitted = false;
songS = 0;
nameS = "";
linkS = "";
artistN = "";
authorN = "";
genreN = "";
idGame = "";
scorevar = 0;
combovar = 0;
rankvar = 0;
percentvar = 0;
diffvar = 0;
lastFrame = 0;
diff = 0;
typeGame = 0;
svar2 = 0;
svar3 = 0;
ltime2 = 0;
nTypes = new Array(new Array(1, 2, 8, 9, 14), new Array(1, 4, 5, 6, 8, 10), new Array(2, 3, 7, 8, 10), new Array(8, 9, 10, 11, 12, 13), new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12));
nTypes2 = new Array(new Array(8, 9, 2, 10, 11), new Array(5, 6, 1, 7, 11), new Array(1, 2, 3, 4, 3), new Array(12, 12, 12, 12, 3), new Array(1, 2, 3, 4, 11));
nColor = new Array(new Array(2, 7), new Array(3, 7), new Array(4, 8), new Array(5, 8), new Array(6, 7));
Instance of Symbol 72 MovieClip in Frame 3
on (release) {
getURL ("http://coolio-niato.newgrounds.com/", _blank);
}
Instance of Symbol 81 MovieClip in Frame 3
on (release) {
_root.getURL("http://xceed.newgrounds.com/", _blank);
}
Frame 4
creds._visible = false;
stop();
Frame 5
function countSongs() {
sendVar.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/count_songs.php", loadVar, "GET");
}
function searchString(string, num) {
sc._y = _root.bar._y;
removeSongs();
var _local2 = new LoadVars();
loaded = false;
_local2.search = string;
stext = string.toUpperCase();
if (num == 1) {
_local2.match = "genre";
} else if (c1._currentframe == 2) {
_local2.match = "songname";
} else if (c2._currentframe == 2) {
_local2.match = "artist";
} else if (c3._currentframe == 2) {
_local2.match = "author";
} else if (c4._currentframe == 2) {
_local2.match = "author";
} else {
_local2.match = "";
}
_local2.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/list.php", loadVars, "GET");
}
function resetSongs(num) {
sc._y = _root.bar._y;
removeSongs();
var _local2 = new LoadVars();
loadingm._visible = true;
if (num == 1) {
_local2.order = _root.currentType;
trace(_root.currentType);
if (currentType == "id") {
stext = "NEWEST";
} else if (currentType == "plays") {
stext = "POPULAR";
} else if (currentType == "rating") {
stext = "RATING";
}
_local2.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/list.php", loadVars, "GET");
} else {
stext = "FEATURED";
_local2.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/featured.php", loadVars, "GET");
}
}
function cMc(object) {
p = 1;
while (p < (checkn + 1)) {
this["c" + p].gotoAndStop(1);
p++;
}
object.gotoAndStop(2);
}
function setStats() {
stats.owhite.play();
}
function setOldStats() {
if (_root.var1 != 0) {
stats._visible = true;
stats.loadingm._visible = true;
stats.bg.gotoAndStop(_root.var9);
stats.id = _root.songS;
trace(stats.id + " stats");
k = 0;
while (k < 8) {
stats["hscore" + (k + 1)] = "";
stats["shscore" + (k + 1)] = "";
k++;
}
sendVars2.songid = stats.id;
sendVars2.num = 8;
sendVars2.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/retrieve_high.php", loadVars2, "GET");
stats.gameType = _root.var8;
if (savefile.data["score" + stats.id] != undefined) {
stats.best.score = savefile.data["score" + stats.id];
} else {
stats.best.score = "--------";
}
if (savefile.data["rank" + stats.id] != undefined) {
stats.best.rank.gotoAndStop(savefile.data["rank" + stats.id]);
} else {
stats.best.rank.gotoAndStop(7);
}
stats.songName = _root.var1;
stats.artName = _root.var2;
stats.link = _root.var3;
stats.syncName = _root.var4;
var _local2 = String(Math.round(_root.var5 * 100) / 100);
while (_local2.length < 4) {
if (_local2.length == 1) {
_local2 = _local2 + ".00";
} else {
_local2 = _local2 + "0";
}
}
stats.rating.score = _local2 + "/5";
stats.rating.stars.bar._xscale = (_root.var5 / 5) * 100;
stats.rating.votes = "VOTES " + _root.var6;
stats.plays.plays = _root.var7;
banner.gotoAndStop(_root.var8);
banner.bg.gotoAndStop(_root.var9);
} else {
_root.songS = 0;
}
}
function displayStats() {
trace("display");
stats._visible = true;
stats.loadingm._visible = true;
stats.bg.gotoAndStop(_root.songs["song" + i]._currentframe);
stats.id = _root.songs["song" + i].id;
trace(stats.id + " stats");
k = 0;
while (k < 8) {
stats["hscore" + (k + 1)] = "";
stats["shscore" + (k + 1)] = "";
k++;
}
sendVars2.songid = stats.id;
sendVars2.num = 8;
sendVars2.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/retrieve_high.php", loadVars2, "GET");
stats.gameType = _root.songs["song" + i].gameType;
if (savefile.data["score" + _root.songs["song" + i].id] != undefined) {
stats.best.score = savefile.data["score" + _root.songs["song" + i].id];
} else {
stats.best.score = "--------";
}
if (savefile.data["rank" + _root.songs["song" + i].id] != undefined) {
stats.best.rank.gotoAndStop(savefile.data["rank" + stats.id]);
} else {
stats.best.rank.gotoAndStop(7);
}
stats.songName = _root.songs["song" + i].name;
stats.artName = _root.songs["song" + i].artist;
stats.link = _root.songs["song" + i].link;
stats.syncName = "Synced by " + _root.songs["song" + i].author;
var _local2 = String(Math.round(_root.songs["song" + i].score2 * 100) / 100);
while (_local2.length < 4) {
if (_local2.length == 1) {
_local2 = _local2 + ".00";
} else {
_local2 = _local2 + "0";
}
}
stats.rating.score = _local2 + "/5";
stats.rating.stars.bar._xscale = (_root.songs["song" + i].score2 / 5) * 100;
stats.rating.votes = "VOTES " + _root.songs["song" + i].votes;
stats.plays.plays = _root.songs["song" + i].plays;
banner.gotoAndStop(_root.songs["song" + i].gameType);
banner.bg.gotoAndStop(_root.songs["song" + i]._currentframe);
stats.showing = i;
}
function loadGenre(num) {
genreP.gotoAndStop(1);
genreP._visible = false;
string = "";
if (num == 1) {
string = "Classical";
} else if (num == 2) {
string = "Jazz";
} else if (num == 3) {
string = "Ambient";
} else if (num == 4) {
string = "Dance";
} else if (num == 5) {
string = "Drum N Bass";
} else if (num == 6) {
string = "House";
} else if (num == 7) {
string = "Industrial";
} else if (num == 8) {
string = "New Wave";
} else if (num == 9) {
string = "Techno";
} else if (num == 10) {
string = "Trance";
} else if (num == 11) {
string = "Video Game";
} else if (num == 12) {
string = "Hip Hop - Modern";
} else if (num == 13) {
string = "Hip Hop - Olskool";
} else if (num == 14) {
string = "R&B";
} else if (num == 15) {
string = "Brit Pop";
} else if (num == 16) {
string = "Classical Rock";
} else if (num == 17) {
string = "General Rock";
} else if (num == 18) {
string = "Grunge";
} else if (num == 19) {
string = "Heavy Metal";
} else if (num == 20) {
string = "Indie";
} else if (num == 21) {
string = "Pop";
} else if (num == 22) {
string = "Punk";
} else if (num == 23) {
string = "Funk";
} else if (num == 24) {
string = "Goth";
} else if (num == 25) {
string = "Latin";
} else if (num == 26) {
string = "Miscellaneous";
} else if (num == 27) {
string = "Ska";
} else if (num == 28) {
string = "Bluegrass";
} else if (num == 29) {
string = "Blues";
} else if (num == 30) {
string = "Country";
}
trace(string);
_root.searchString(string, 1);
}
function openPage() {
lcurrent = stats.link;
l1 = lcurrent.indexOf(".com/");
l2 = lcurrent.indexOf("/", l1 + 5);
l1 = lcurrent.indexOf("_", l2);
newlink = lcurrent.substring(l2 + 1, l1);
lcurrent = "http://www.newgrounds.com/audio/listen/" + newlink;
getURL (lcurrent, _blank);
}
function playGame() {
_root.submitted = false;
songS = stats.id;
_root.diffvar = stats.bg._currentframe;
mySound.stop();
mySound = new Sound();
removeSongs();
gameFrame = "gamescreen" + stats.gameType;
trace(gameFrame);
_root.gotoAndStop(gameFrame);
}
stats._visible = false;
loadbar._visible = true;
songs.songn._visible = false;
genreP.gotoAndStop(1);
genreP._visible = false;
songCount = 0;
var sendVar = new LoadVars();
var loadVar = new LoadVars();
rnew = 0;
loadVar.onLoad = function (success) {
if (success) {
_root.songNums = Number(loadVar.result);
_root.songCount = ("Currently at " + _root.songNums) + " songs and counting.";
}
};
countSongs();
removeSongs = function () {
i = 0;
while (i < songArray.length) {
_root.songs["song" + i].swapDepths(666);
removeMovieClip(_root.songs["song" + i]);
i++;
}
loadbar._visible = true;
loaded = false;
loadingm._visible = true;
};
mySound = new Sound();
mySound.setVolume(100);
var songArray = new Array();
var sendVars = new LoadVars();
var loadVars = new LoadVars();
loaded = false;
waitmax = 60;
wait = waitmax;
stext = "Featured";
sendVars.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/featured.php", loadVars, "GET");
stats.owhite.gotoAndStop(10);
loadVars.onLoad = function (success) {
trace("loadvars");
songArray = new Array();
if (success) {
loaded = true;
var _local4 = loadVars.result.split("||");
var _local3;
var _local2;
var _local1;
_local3 = 0;
while (_local3 < _local4.length) {
_local2 = _local4[_local3].split("|");
if (_local2.length == 11) {
_local1 = new Object();
_local1.id = int(_local2[0]);
_local1.songname = _local2[1];
_local1.artist = _local2[2];
_local1.author = _local2[3];
_local1.genre = _local2[4];
_local1.difficulty = _local2[5];
_local1.type = _local2[6];
_local1.link = _local2[7];
_local1.plays = int(_local2[8]);
_local1.rating = Number(_local2[9]);
_local1.rating_num = Number(_local2[10]);
songArray.push(_local1);
}
_local3++;
}
}
};
mySound = new Sound();
mySound.onLoad = function (success) {
if (success) {
trace("success");
}
};
ac = false;
setSongs();
currentType = "plays";
var loadVars5 = new LoadVars();
loadVars5.onLoad = function (success) {
if (success) {
trace(_root.songs["song" + stats.showing].score2);
_root.songs["song" + stats.showing].score2 = loadVars5.rating;
_root.songs["song" + stats.showing].votes = loadVars5.num;
trace(_root.songs["song" + stats.showing].score2);
var _local2 = String(Math.round(loadVars5.rating * 100) / 100);
while (_local2.length < 4) {
if (_local2.length == 1) {
_local2 = _local2 + ".00";
} else {
_local2 = _local2 + "0";
}
}
stats.rating.score = _local2 + "/5";
stats.rating.stars.bar._xscale = (loadVars5.rating / 5) * 100;
stats.rating.votes = "VOTES " + loadVars5.num;
}
};
rateN = 0;
checkn = 4;
c1.gotoAndStop(2);
var scoresArray = new Array();
var sendVars2 = new LoadVars();
var loadVars2 = new LoadVars();
loadVars2.onLoad = function (success) {
scoresArray = new Array();
if (success) {
arr = new Array();
var arr = loadVars2.result.split("|");
var _local1;
var _local4;
var _local3;
var _local2;
_local1 = 0;
while (_local1 < arr.length) {
_local4 = arr[_local1];
_local3 = arr[_local1 + 1];
_local2 = new Object();
_local2.name = _local4;
_local2.score = _local3;
scoresArray.push(_local2);
_local1 = _local1 + 2;
}
if (scoresArray[0].score != undefined) {
_local1 = 0;
while (_local1 < scoresArray.length) {
stats["hscore" + (_local1 + 1)] = ((_local1 + 1) + ".") + scoresArray[_local1].name;
stats["shscore" + (_local1 + 1)] = scoresArray[_local1].score;
_local1++;
}
} else {
stats.hscore1 = "No High Scores";
}
stats.loadingm._visible = false;
}
};
banner.gotoAndStop(4);
playSong = false;
onEnterFrame = function () {
if (_root.songS != 0) {
mySound = new Sound();
playSong = false;
linkV = _root.songs["song" + i].link;
mySound.loadSound(linkV, true);
_root.setOldStats();
_root.songS = 0;
}
rnew++;
if (rnew > 500) {
if (!stats._visible) {
countSongs();
}
rnew = 0;
}
if (black._currentframe == 45) {
black.swapDepths(666);
removeMovieClip(black);
}
if (!playSong) {
if (((mySound.getBytesLoaded() / mySound.getBytesTotal()) * 100) > 3) {
trace("start");
playSong = true;
mySound.start();
} else {
mySound.stop();
}
}
if (stats.owhite._currentframe == 9) {
displayStats();
}
if (loaded && (loadbar._visible)) {
loadbar._visible = false;
i = 0;
while (i < songArray.length) {
duplicateMovieClip (songs.songn, "song" + i, i);
_root.songs["song" + i].diff = songArray[i].difficulty;
_root.songs["song" + i].gotoAndStop(_root.songs["song" + i].diff);
_root.songs["song" + i]._y = songs.songn._y + (i * songs.songn._height);
_root.songs["song" + i].name = songArray[i].songname;
_root.songs["song" + i].id = songArray[i].id;
_root.songs["song" + i].artist = songArray[i].artist;
if (songArray[i].genre != "R&B") {
_root.songs["song" + i].genre = songArray[i].genre;
} else {
_root.songs["song" + i].genre = "R&B";
}
_root.songs["song" + i].author = songArray[i].author;
_root.songs["song" + i].score2 = songArray[i].rating;
_root.songs["song" + i].link = songArray[i].link;
_root.songs["song" + i].votes = songArray[i].rating_num;
_root.songs["song" + i].plays = songArray[i].plays;
_root.songs["song" + i].gameType = songArray[i].type;
_root.songs["song" + i].hit = false;
i++;
}
loadingm._visible = false;
} else {
loadbar.bar._xscale = (sendVars.getBytesLoaded() / mySound.getBytesTotal()) * 100;
}
if (_root.clicked && (!genreP._visible)) {
if (!ac) {
ac = true;
if (stats.rating.stars.hitTest(_xmouse, _ymouse, true)) {
var sendVars = new LoadVars();
sendVars.id = stats.id;
sendVars.rating = rateN;
sendVars.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/rate.php", loadVars5, "GET");
wait = 0;
stats.rating.update.play();
}
i = 0;
while (i < songArray.length) {
if (_root.songs["song" + i].hitTest(_xmouse, _ymouse, true) && (_root.frame2.hitTest(_xmouse, _ymouse, true))) {
mySound = new Sound();
playSong = false;
_root.songs["song" + i].hit = true;
linkV = _root.songs["song" + i].link;
mySound.loadSound(linkV, true);
setStats();
break;
}
i++;
}
}
} else {
ac = false;
}
};
Instance of Symbol 140 MovieClip "c1" in Frame 5
on (press) {
_root.cMc(this);
}
Instance of Symbol 140 MovieClip "c2" in Frame 5
on (press) {
_root.cMc(this);
}
Instance of Symbol 140 MovieClip "c3" in Frame 5
on (press) {
_root.cMc(this);
}
Instance of Symbol 244 MovieClip "sc" in Frame 5
onClipEvent (load) {
_y = _root.bar._y;
drag = false;
disty = 0;
amount = _root.bar._height - this._height;
}
on (press) {
}
onClipEvent (enterFrame) {
if (_root.clicked) {
if (!drag) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
drag = true;
disty = _root._ymouse - this._y;
}
} else {
this._y = _root._ymouse - disty;
}
if (this._y > ((_root.bar._height - this._height) + _root.bar._y)) {
this._y = (_root.bar._height - this._height) + _root.bar._y;
} else if (this._y < _root.bar._y) {
this._y = _root.bar._y;
}
} else {
drag = false;
}
if (_root.songs._height > _root.frame._height) {
loc = (this._y - _root.bar._y) / amount;
_root.songs._y = _root.frame._y - ((_root.songs._height - _root.frame._height) * loc);
} else {
_root.songs._y = _root.frame._y;
}
}
Frame 6
function changeC(name) {
f1.gotoAndStop(1);
f2.gotoAndStop(1);
f3.gotoAndStop(1);
num = name.substring(1, 2);
_root.ctrlsN = num;
_root["f" + _root.ctrlsN].gotoAndStop(2);
savefile.data.ctrlsN = _root.ctrlsN;
if (num == 1) {
k1 = 74;
k4 = 75;
k3 = 76;
k2 = 186;
} else if (num == 2) {
k1 = 65;
k4 = 83;
k3 = 68;
k2 = 70;
} else if (num == 3) {
k1 = 37;
k4 = 40;
k3 = 38;
k2 = 39;
}
bars.ctrls.gotoAndStop(_root.ctrlsN);
}
function startGame() {
pos2 = 0;
shape.gotoAndStop(1);
i = 10;
n = 5;
spacekey = false;
screen.draw(rectangle);
rectangle._visible = false;
notesArray = new Array();
_root.note.swapDepths(7);
keyleft = false;
keyright = false;
keyup = false;
keydown = false;
hitR = false;
hitL = false;
hitD = false;
hitU = false;
eArray = new Array();
v = 100;
cv = 100;
aArr = new Array();
scaleF = 0.5;
note._visible = false;
bitmapH._xscale = (bitmapH._yscale = (1 / scaleF) * 100);
cl = 1;
songFade = false;
stopM = 0;
waitS = 0;
who = 0;
combometer = 0;
var _local2 = new LoadVars();
_local2.id = _root.songS;
_local2.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/plays.php", _local2, "GET");
maxcombo = 0;
maxcombo = 0;
fullGame = false;
setBase();
closen = 0;
closeb = 0;
holdArray = new Array();
}
function scorePoints2() {
if (cl != 8) {
combometer = combometer + 0.1;
}
who++;
score2 = score2 + (-675 * cl);
timerN++;
score3 = score3 + (timer + (25 * cl));
if (cl <= 8) {
score = score + (25 * cl);
}
scoremc.score = score + " ";
if (who > 7) {
who = 0;
if (aArr.length < 15) {
xloc = Math.random() * Stage.width;
yloc = (Math.random() * Stage.height) / 2;
aArr.push(new Array(xloc, yloc, (Math.random() * 26) - 13, Math.random() * -15, (Math.random() * 60) + 50, _root.nTypes[types - 1][Math.floor(Math.random() * _root.nTypes[types - 1].length)], (Math.random() * 16) - 8, Math.random() * 360));
}
}
}
function scorePoints() {
if (cl != 8) {
combometer = combometer + 0.8;
}
v = 100;
combo++;
inc = false;
if (cl != 8) {
if (combo == 20) {
cl = 2;
inc = true;
} else if (combo == 40) {
cl = 3;
inc = true;
} else if (combo == 60) {
cl = 4;
inc = true;
}
if (inc) {
combomc.gotoAndPlay(2);
combomc.combo.gotoAndStop(cl - 1);
}
}
score2 = score2 + (-5400 * cl);
if (cl <= 8) {
score = score + (200 * cl);
}
timerN++;
score3 = score3 + (timer + (200 * cl));
scoremc.score = score + " ";
scoremc.combo = "Combo x" + combo;
}
function endCombo() {
combo = 0;
_root.scoremc.combo = "";
if (cl == 8) {
combometer = 0;
setBase();
combomc.play();
}
cl = 1;
v = v - 15;
if (v < 20) {
v = 20;
}
}
function finish() {
percentage = (noteNumH / noteNum) * 100;
if (percentage > 100) {
percentage = 100;
}
if (fullGame) {
rankNum = 0;
if (percentage >= 98) {
trace(percentange);
rankNum = 1;
} else if (percentage >= 92) {
rankNum = 2;
} else if (percentage >= 85) {
rankNum = 3;
} else if (percentage >= 75) {
rankNum = 4;
} else if (percentage >= 65) {
rankNum = 5;
} else {
rankNum = 6;
}
trace("rankNum " + rankNum);
if ((savefile.data["rank" + _root.songS] > rankNum) || (savefile.data["rank" + _root.songS] == undefined)) {
savefile.data["rank" + _root.songS] = rankNum;
}
}
if ((savefile.data["score" + _root.songS] < _root.score) || (savefile.data["score" + _root.songS] == undefined)) {
savefile.data["score" + _root.songS] = _root.score;
}
removeMovieClip(_root.bars);
removeMovieClip(_root.base);
removeMovieClip(_root.note);
_root.mySound.stop();
_root.bitmapH.swapDepths(666);
removeMovieClip(_root.bitmapH);
removeMovieClip(_root.namemc);
removeMovieClip(_root.backmc);
removeMovieClip(_root.combomc);
removeMovieClip(_root.scoremc);
songFade = false;
_root.lastFrame = _currentframe;
if (_root.restartGame) {
trace("restart");
_root.gotoAndStop("restartF");
} else if (fullGame) {
trace("fullgame");
_root.rankvar = rankNum;
_root.scorevar = score;
_root.combovar = maxcombo;
_root.percentvar = percentage;
_root.svar2 = score2;
_root.svar3 = ltimer + score;
_root.ltime2 = ltimer;
_root.gotoAndStop("results");
} else {
_root.gotoAndStop("songselect");
}
}
function endGame() {
if (!_root.restartGame) {
mySound.stop();
black.swapDepths(_root.getNextHighestDepth());
black.play();
}
}
function setBase() {
base.b1.b.b.gotoAndStop(_root.nTypes2[types - 1][0]);
base.b2.b.b.gotoAndStop(_root.nTypes2[types - 1][1]);
base.b3.b.b.gotoAndStop(_root.nTypes2[types - 1][2]);
base.b4.b.b.gotoAndStop(_root.nTypes2[types - 1][3]);
}
stop();
score2 = 0;
score3 = 0;
trace(black._currentframe);
if (black._currentframe == undefined) {
duplicateMovieClip (blackmc, "black", 100);
} else {
black.gotoAndStop(1);
}
if (savefile.data.ctrlsN != undefined) {
trace("load ctrls");
_root.ctrlsN = savefile.data.ctrlsN;
} else {
_root.ctrlsN = 1;
}
bars.ctrls.gotoAndStop(_root.ctrlsN);
_root["f" + _root.ctrlsN].gotoAndStop(2);
if (_root.ctrlsN == 1) {
k1 = 74;
k4 = 75;
k3 = 76;
k2 = 186;
} else if (_root.ctrlsN == 2) {
k1 = 65;
k4 = 83;
k3 = 68;
k2 = 70;
} else if (_root.ctrlsN == 3) {
k1 = 37;
k4 = 40;
k3 = 38;
k2 = 39;
}
base._visible = false;
combomc._visible = false;
scoremc._visible = false;
loadInfo = false;
shape._visible = false;
namemc.swapDepths(5);
var blurX = 40;
var quality = 1;
loadbar._visible = true;
var my_blur_filter = (new flash.filters.BlurFilter(blurX, blurX, quality));
var screen = (new flash.display.BitmapData(Stage.width / 2, Stage.height / 2, true, 0));
screen.rectangle = new flash.geom.Rectangle(0, 0, Stage.width / 2, Stage.height / 2);
createEmptyMovieClip("bitmapH", 2);
var mySound = new Sound(this);
var sendVars = new LoadVars();
var loadVars = new LoadVars();
bars.swapDepths(11);
noteNum = 0;
noteNumH = 0;
_root.gameLength = 0;
loadVars.onLoad = function (success) {
if (success) {
_root.var1 = (songname = loadVars.songname);
_root.var2 = (artist = loadVars.artist);
_root.var4 = (author = loadVars.author);
_root.var3 = (link = loadVars.link);
stringsync = loadVars.stringsync;
_root.var7 = (plays = loadVars.plays);
_root.var5 = (rating = loadVars.rating);
genre = loadVars.genre;
_root.var6 = (rating_num = loadVars.rating_num);
_root.var8 = loadVars.type;
_root.var9 = loadVars.difficulty;
_root.namemc.name = songname;
arr = stringsync.split("|");
array = new Array();
l = 0;
while (l < arr.length) {
array[l] = arr[l];
l++;
}
base._visible = true;
types = array[0];
setBase();
trace(_root.gameLength);
mySound.loadSound(link, false);
startGame();
}
};
sendVars.id = _root.songS;
sendVars.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/retrieve.php", loadVars, "GET");
backmc.swapDepths(4);
combomc.swapDepths(8);
scoremc.swapDepths(9);
score = 0;
scoreS = 0;
combo = 0;
cl = 1;
scoremc.score = "";
scoremc.combo = "";
mySound.onLoad = function (success) {
if (success) {
if (_root.array[_root.array.length - 4] <= 4) {
_root.gameLength = _root.array[_root.array.length - 3];
} else {
_root.gameLength = _root.array[_root.array.length - 4];
}
_root.gameLength = _root.gameLength * 2;
_root.gameLength = _root.gameLength / 2;
_root.gameLength = _root.gameLength + 8000;
if (_root.gameLength > _root.mySound.duration) {
_root.gameLength = _root.mySound.duration;
}
v = 100;
cv = 100;
mySound.start();
trace("loaded");
loadbar._visible = false;
combomc._visible = true;
scoremc._visible = true;
}
};
_root.restartGame = false;
timer = 0;
timerN = 0;
lscore = 0;
onEnterFrame = function () {
if (_root.hack) {
trace("hack " + _root.hack);
}
if (_root.hack) {
var _local4 = new LoadVars();
_local4.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/ce.php", _local4, "GET");
}
ltimer = timer;
_root.timevar = ltimer;
_root.hackvar = _root.hack;
time = new Date();
timer = Math.ceil(time.getTime() % 1000000);
if ((score3 - (ltimer * timerN)) != (score - lscore)) {
var _local4 = new LoadVars();
_local4.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/ce.php", _local4, "GET");
_root.hack = true;
score = 0;
score2 = 0;
}
lscore = score;
score3 = 0;
if ((score2 / -27) != score) {
var _local4 = new LoadVars();
_local4.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/ce.php", _local4, "GET");
_root.hack = true;
score = 0;
score2 = 0;
}
timerN = 0;
practice._visible = loadbar._visible;
if ((black._currentframe > 1) && (black._currentframe < 31)) {
mySound.stop();
if (black._currentframe == 30) {
finish();
}
} else {
if (combo > maxcombo) {
maxcombo = combo;
}
if (combometer > 100) {
combometer = 100;
}
if (cl == 8) {
combometer = combometer - 2;
if (combometer < 0) {
combometer = 0;
}
}
if (combometer == 100) {
bars.space._visible = true;
bars.bar1.gotoAndStop(2);
bars.bar2.gotoAndStop(2);
if (Key.isDown(32)) {
if (cl != 8) {
cl = 8;
combomc.combo.gotoAndStop(4);
combomc.gotoAndPlay(2);
combomc.combo.gotoAndStop(cl - 1);
}
}
} else {
bars.space._visible = false;
bars.bar1.gotoAndStop(1);
bars.bar2.gotoAndStop(1);
}
bars.bar1._yscale = combometer;
bars.bar2._yscale = combometer;
hitL = false;
key1 = false;
key2 = false;
key3 = false;
key4 = false;
if (Key.isDown(k1)) {
key1 = true;
if (!keyleft) {
base.b1.b.gotoAndPlay(2);
keyleft = true;
hitL = true;
}
} else {
keyleft = false;
}
hitR = false;
if (Key.isDown(k2)) {
key2 = true;
if (!keyright) {
base.b4.b.gotoAndPlay(2);
keyright = true;
hitR = true;
}
} else {
keyright = false;
}
hitU = false;
if (Key.isDown(k3)) {
key3 = true;
if (!keyup) {
base.b3.b.gotoAndPlay(2);
keyup = true;
hitU = true;
}
} else {
keyup = false;
}
hitD = false;
if (Key.isDown(k4)) {
key4 = true;
if (!keydown) {
base.b2.b.gotoAndPlay(2);
keydown = true;
hitD = true;
}
} else {
keydown = false;
}
if (!loadbar._visible) {
if (pos2 === 0) {
types = array[pos2];
pos2++;
}
}
if (!songFade) {
if (cv < v) {
cv = cv + 5;
} else if (cv > v) {
cv = cv - 5;
}
if (cv < 0) {
cv = 0;
}
mySound.setVolume(cv);
}
hit = false;
if (loadbar._visible) {
loadbar.bar._xscale = (mySound.getBytesLoaded() / mySound.getBytesTotal()) * 100;
} else {
screen.applyFilter(screen, screen.rectangle, new flash.geom.Point(0, 0), my_blur_filter);
m = 0;
while (m < aArr.length) {
aArr[m][0] = aArr[m][0] + aArr[m][2];
aArr[m][3] = aArr[m][3] + 0.7;
aArr[m][1] = aArr[m][1] + aArr[m][3];
shape._x = aArr[m][0];
shape._y = aArr[m][1];
shape._xscale = (shape._yscale = aArr[m][4]);
shape.gotoAndStop(aArr[m][5]);
aArr[m][7] = aArr[m][7] + aArr[m][6];
shape._rotation = aArr[m][7];
if (((aArr[m][1] > (Stage.height + shape._height)) || (aArr[m][0] < ((-shape._width) / 2))) || (aArr[m][0] > (Stage.width + (shape._width / 2)))) {
aArr.splice(m, 1);
m--;
} else {
l = shape.transform.matrix;
l.scale(scaleF, scaleF);
screen.draw(shape, l);
}
m++;
}
}
if (Key.isDown(32)) {
if (!spacekey) {
}
} else {
spacekey = false;
}
s._visible = false;
if (cl == 8) {
k = 1;
while (k < 5) {
_root.base["b" + k].b.b.gotoAndStop(_root.nTypes2[types - 1][4]);
k++;
}
if (combomc._currentframe > 10) {
combomc.gotoAndStop(10);
}
} else {
setBase();
}
m = base.transform.matrix;
m.scale(scaleF, scaleF);
screen.draw(base, m);
j = 0;
for ( ; j < holdArray.length ; j++) {
_root.hold._x = _root.base["b" + holdArray[j][2]]._x + _root.base._x;
_root.hold._y = (((mySound.position - holdArray[j][1]) / 2000) * _root.base._y) + (note._height / 2);
if (hold._y > base._y) {
if (holdArray[j][4]) {
hold._y = base._y;
// unexpected jump
}
if (hold._y > (base._y + 50)) {
holdArray.splice(j, 1);
j--;
continue;
}
} else {
_root.hold.b.gotoAndStop(_root.nTypes2[types - 1][holdArray[j][2] - 1]);
_root.hold.t.gotoAndStop(_root.nTypes2[types - 1][holdArray[j][2] - 1]);
if (cl == 8) {
_root.hold.b.gotoAndStop(_root.nTypes2[types - 1][4]);
_root.hold.t.gotoAndStop(_root.nTypes2[types - 1][4]);
}
var _local3 = int(holdArray[j][1]);
_local3 = _local3 * 2;
_local3 = _local3 / 2;
var _local2 = holdArray[j][3];
_local2 = _local2 * 2;
_local2 = _local2 / 2;
_root.hold.b._height = hold._y - (((mySound.position - (_local3 + _local2)) / 2000) * _root.base._y);
if ((mySound.position - 2000) > (_local3 + _local2)) {
holdArray.splice(j, 1);
j--;
} else {
_root.hold.t._y = _root.hold.b._y - _root.hold.b._height;
hit = true;
if (holdArray[j][4]) {
if (holdArray[j][2] == 1) {
if (key1) {
_root.base.b1.play();
scorePoints2();
} else {
hit = false;
}
} else if (holdArray[j][2] == 2) {
if (key4) {
_root.base.b2.play();
scorePoints2();
} else {
hit = false;
}
} else if (holdArray[j][2] == 3) {
if (key3) {
_root.base.b3.play();
scorePoints2();
} else {
hit = false;
}
} else if (holdArray[j][2] == 4) {
if (key2) {
_root.base.b4.play();
scorePoints2();
} else {
hit = false;
}
}
}
if (hit) {
m = hold.transform.matrix;
m.scale(scaleF, scaleF);
screen.draw(hold, m);
} else {
holdArray.splice(j, 1);
j--;
}
}
}
}
hold._x = -100;
hitTotal = false;
j = 0;
for ( ; j < notesArray.length ; j++) {
hit = false;
_root.note._x = _root.base["b" + notesArray[j][2]]._x + _root.base._x;
_root.note._y = (((mySound.position - notesArray[j][1]) / 2000) * _root.base._y) + (note._height / 2);
_root.note.b.gotoAndStop(_root.nTypes2[types - 1][notesArray[j][2] - 1]);
if (cl == 8) {
_root.note.b.gotoAndStop(_root.nTypes2[types - 1][4]);
}
if (_root.note.hitTest(_root.base)) {
if ((notesArray[j][2] == 1) && (hitL)) {
hitTotal = true;
_root.base.b1.play();
hitL = false;
hit = true;
scorePoints();
} else if ((notesArray[j][2] == 2) && (hitD)) {
hitTotal = true;
_root.base.b2.play();
hitD = false;
hit = true;
scorePoints();
} else if ((notesArray[j][2] == 3) && (hitU)) {
hitTotal = true;
_root.base.b3.play();
hitU = false;
hit = true;
scorePoints();
} else if ((notesArray[j][2] == 4) && (hitR)) {
hitTotal = true;
_root.base.b4.play();
hitR = false;
hit = true;
scorePoints();
}
}
if (!hit) {
m = note.transform.matrix;
m.scale(scaleF, scaleF);
screen.draw(note, m);
} else {
noteNumH++;
ii = 0;
while (ii < holdArray.length) {
if (holdArray[ii][0] == notesArray[j][0]) {
holdArray[ii][4] = true;
break;
}
ii++;
}
notesArray.splice(j, 1);
j--;
continue;
}
if (_root.note._y > (_root.base._y + 50)) {
notesArray.splice(j, 1);
j--;
endCombo();
}
}
if (((hitL || (hitR)) || (hitD)) || (hitU)) {
endCombo();
}
if (!loadbar._visible) {
bitmapH.attachBitmap(screen, 1);
}
if (songFade) {
waitS = mySound.position - stopM;
mySound.setVolume(100 - (waitS / 100));
if (waitS >= 10000) {
fullGame = true;
endGame();
}
}
if (!loadbar._visible) {
if ((pos2 >= (array.length - 1)) && (!songFade)) {
songFade = true;
stopM = mySound.position;
waitS = 0;
}
closen = 0;
m = 0;
while (m < 10) {
if (((array[pos2] <= ((mySound.position + 2000) + closen)) && (pos2 < (array.length - 1))) && ((mySound.position + 2000) < (mySound.duration - 100))) {
ok = false;
if (array[pos2] >= 400) {
if (array[pos2 + 1] <= 4) {
if (array[pos2 - 1] != array[pos2 + 1]) {
ok = true;
}
} else if (array[pos2 - 1] != array[pos2 + 2]) {
ok = true;
}
if ((closen == 0) || (ok)) {
n++;
if (array[pos2] < 2000) {
timen = (array[pos2] - 2000) - 40;
} else {
timen = mySound.position - 40;
}
if (timen > -800) {
if (array[pos2 + 1] <= 4) {
_root.notesArray.push(new Array(n, timen, array[pos2 + 1], 0, false));
noteNum++;
pos2 = pos2 + 2;
closen = 60;
} else {
_root.holdArray.push(new Array(n, timen, array[pos2 + 2], array[pos2 + 1], false));
_root.notesArray.push(new Array(n, timen, array[pos2 + 2]));
noteNum++;
pos2 = pos2 + 3;
closen = 60;
}
} else {
while (array[pos2] <= 4) {
pos2++;
}
pos2++;
}
}
} else {
while (array[pos2] > 4) {
pos2++;
}
pos2++;
}
} else {
break;
}
m++;
}
}
if (hitTotal) {
if (aArr.length < 15) {
xloc = Math.random() * Stage.width;
yloc = (Math.random() * Stage.height) / 2;
j = 0;
while (j < 3) {
i++;
if (i > 999) {
i = 10;
}
aArr.push(new Array(xloc, yloc, (Math.random() * 26) - 13, Math.random() * -15, (Math.random() * 60) + 50, _root.nTypes[types - 1][Math.floor(Math.random() * _root.nTypes[types - 1].length)], (Math.random() * 16) - 8, Math.random() * 360));
j++;
}
}
}
if (Key.isDown(65) && (Key.isDown(90))) {
trace("-------------");
trace(link);
trace("-------------");
trace(array);
trace("-------------");
}
backmc.bar._xscale = (mySound.position / _root.gameLength) * 100;
if (((!loadbar._visible) && (!failure._visible)) && (((mySound.position / mySound.duration) * 100) >= 99.9)) {
fullGame = true;
endGame();
}
}
_root.note._x = -100;
};
Instance of Symbol 140 MovieClip "f1" in Frame 6
on (release) {
_root.changeC(_name);
}
Instance of Symbol 140 MovieClip "f2" in Frame 6
on (release) {
_root.changeC(_name);
}
Instance of Symbol 140 MovieClip "f3" in Frame 6
on (release) {
_root.changeC(_name);
}
Frame 7
function cMc(object) {
if (object._currentframe == 1) {
p = 1;
while (p < (checkn + 1)) {
this["c" + p].gotoAndStop(1);
p++;
}
object.gotoAndStop(2);
} else {
object.gotoAndStop(1);
}
}
function dMc(object) {
if (object._currentframe == 1) {
p = 1;
while (p < (checkn + 1)) {
this["d" + p].gotoAndStop(1);
p++;
}
object.gotoAndStop(2);
} else {
object.gotoAndStop(1);
}
}
function readFaq() {
savefile.data.faqread = true;
}
stop();
loadingm._visible = false;
checkn = 3;
faq._visible = false;
if (savefile.data.faqread == true) {
_root.faqread = true;
trace("yes");
}
onEnterFrame = function () {
if (error._alpha > 0) {
error._alpha--;
}
if (error2._alpha > 0) {
error2._alpha--;
}
if (c1._currentframe == 2) {
bg.gotoAndStop(1);
} else if (c2._currentframe == 2) {
bg.gotoAndStop(2);
} else if (c3._currentframe == 2) {
bg.gotoAndStop(3);
}
};
Instance of Symbol 140 MovieClip "c1" in Frame 7
on (press) {
_root.cMc(this);
}
Instance of Symbol 140 MovieClip "c2" in Frame 7
on (press) {
_root.cMc(this);
}
Instance of Symbol 140 MovieClip "c3" in Frame 7
on (press) {
_root.cMc(this);
}
Instance of Symbol 140 MovieClip "d1" in Frame 7
on (press) {
_root.dMc(this);
}
Instance of Symbol 140 MovieClip "d2" in Frame 7
on (press) {
_root.dMc(this);
}
Instance of Symbol 140 MovieClip "d3" in Frame 7
on (press) {
_root.dMc(this);
}
Frame 8
function cMc(object) {
if (checks._visible) {
if (object._currentframe == 1) {
i = 1;
while (i < (c + 1)) {
checks["c" + i].gotoAndStop(1);
i++;
}
object.gotoAndStop(2);
} else {
object.gotoAndStop(1);
}
screen.dispose();
screen = new flash.display.BitmapData(Stage.width, Stage.height, true, 0);
aArr = new Array();
}
}
stop();
trace(_root.linkS);
checks._visible = false;
failure._visible = false;
rec._visible = false;
namemc.swapDepths(3);
savemc.swapDepths(4);
rec.swapDepths(5);
checks.swapDepths(6);
loadbar.swapDepths(10);
var blurX = 50;
var blurY = 50;
var quality = 1;
loadbar._visible = true;
var my_blur_filter = (new flash.filters.BlurFilter(blurX, blurY, quality));
var screen = (new flash.display.BitmapData(Stage.width / 2, Stage.height / 2, true, 0));
screen.rectangle = new flash.geom.Rectangle(0, 0, Stage.width / 2, Stage.height / 2);
createEmptyMovieClip("bitmapH", 2);
bitmapH._xscale = (bitmapH._yscale = 200);
var mySound = new Sound(this);
cursor._visible = false;
scaleF = 0.5;
mySound.onLoad = function (success) {
if (success) {
trace("loaded");
loadbar._visible = false;
checks._visible = true;
rec._visible = true;
} else {
checks._visible = true;
trace("fail");
loadbar._visible = false;
failure._visible = true;
}
};
trace(_root.linkS + " link");
mySound.loadSound(_root.linkS, false);
_root.namemc.name = _root.nameS;
array = new Array();
pos = 0;
shape.gotoAndStop(1);
i = 100;
spacekey = false;
rectangle._visible = false;
keyleft = false;
keyright = false;
keyup = false;
keydown = false;
hitR = false;
hitL = false;
hitD = false;
hitU = false;
aArr = new Array();
c = 5;
checks.c5.gotoAndStop(2);
types = 0;
lastl = 0;
lastr = 0;
lastu = 0;
lastd = 0;
gtype = _root.typeGame;
savemc.controls.gotoAndStop(gtype);
onEnterFrame = function () {
if (gtype == 1) {
box._visible = false;
circs._visible = false;
frets._visible = true;
frets.base.b1.b.b.gotoAndStop(_root.nTypes2[types - 1][0]);
frets.base.b2.b.b.gotoAndStop(_root.nTypes2[types - 1][1]);
frets.base.b3.b.b.gotoAndStop(_root.nTypes2[types - 1][2]);
frets.base.b4.b.b.gotoAndStop(_root.nTypes2[types - 1][3]);
} else if (gtype == 2) {
box._visible = false;
circs.c1.ring._visible = false;
circs.c2.ring._visible = false;
frets._visible = false;
circs._visible = true;
cursor._x = _xmouse - circs._x;
cursor._y = _ymouse - circs._y;
xDifference = circs.c1._x - _root.cursor._x;
yDifference = circs.c1._y - _root.cursor._y;
circs.c1._rotation = (-Math.atan2(xDifference, yDifference)) / (Math.PI/180);
xDifference = circs.c2._x - _root.cursor._x;
yDifference = circs.c2._y - _root.cursor._y;
circs.c2._rotation = (-Math.atan2(xDifference, yDifference)) / (Math.PI/180);
} else if (gtype == 3) {
box._visible = true;
circs._visible = false;
frets._visible = false;
}
n = 1;
while (n < (c + 1)) {
if (checks["c" + n]._currentframe == 2) {
types = n;
break;
}
n++;
}
clickloc._x = -100;
wHit = false;
if (gtype == 1) {
hitL = false;
if (Key.isDown(74)) {
frets.base.b1.play();
if (!keyleft) {
keyleft = true;
hitL = true;
}
} else {
if (((mySound.position - array[lastl - 1]) > 400) && (lastl != 0)) {
array.splice(lastl, 0, mySound.position - array[lastl - 1]);
if (lastd > lastl) {
lastd++;
}
if (lastr > lastl) {
lastr++;
}
if (lastu > lastl) {
lastu++;
}
}
lastl = 0;
keyleft = false;
}
hitR = false;
if (Key.isDown(186)) {
frets.base.b4.play();
if (!keyright) {
keyright = true;
hitR = true;
}
} else {
if (((mySound.position - array[lastr - 1]) > 400) && (lastr != 0)) {
array.splice(lastr, 0, mySound.position - array[lastr - 1]);
if (lastd > lastr) {
lastd++;
}
if (lastl > lastr) {
lastl++;
}
if (lastu > lastr) {
lastu++;
}
}
lastr = 0;
keyright = false;
}
hitU = false;
if (Key.isDown(76)) {
frets.base.b3.play();
if (!keyup) {
keyup = true;
hitU = true;
}
} else {
if (((mySound.position - array[lastu - 1]) > 400) && (lastu != 0)) {
array.splice(lastu, 0, mySound.position - array[lastu - 1]);
if (lastd > lastu) {
lastd++;
}
if (lastl > lastu) {
lastl++;
}
if (lastr > lastu) {
lastr++;
}
}
lastu = 0;
keyup = false;
}
hitD = false;
if (Key.isDown(75)) {
frets.base.b2.play();
if (!keydown) {
keydown = true;
hitD = true;
}
} else {
if (((mySound.position - array[lastd - 1]) > 400) && (lastd != 0)) {
array.splice(lastd, 0, mySound.position - array[lastd - 1]);
if (lastu > lastd) {
lastu++;
}
if (lastl > lastd) {
lastl++;
}
if (lastr > lastd) {
lastr++;
}
}
lastd = 0;
keydown = false;
}
} else if (gtype == 2) {
if (_root.clicked) {
if (!spacekey) {
wHit = true;
spacekey = true;
if (_xmouse < (Stage.width / 2)) {
array.push(mySound.position, circs.c1._rotation, 1);
circs.c1.arch.gotoAndStop(_root.nColor[_root.types - 1][0]);
} else {
array.push(mySound.position, circs.c2._rotation, 2);
circs.c2.arch.gotoAndStop(_root.nColor[_root.types - 1][0]);
}
m = circs.transform.matrix;
m.scale(scaleF, scaleF);
screen.draw(circs, m);
} else {
circs.c1.arch.gotoAndStop(1);
circs.c2.arch.gotoAndStop(1);
}
} else {
spacekey = false;
}
} else if (gtype == 3) {
if (_root.clicked) {
if (!spacekey) {
spacekey = true;
if (box.hitTest(_xmouse, _ymouse, true)) {
wHit = true;
array.push(mySound.position, _xmouse, _ymouse);
clickloc._x = _xmouse;
clickloc._y = _ymouse;
}
}
} else {
spacekey = false;
}
}
if (loadbar._visible || (failure._visible)) {
loadbar.bar._xscale = (mySound.getBytesLoaded() / mySound.getBytesTotal()) * 100;
}
screen.applyFilter(screen, screen.rectangle, new flash.geom.Point(0, 0), my_blur_filter);
m = 0;
while (m < aArr.length) {
aArr[m][0] = aArr[m][0] + aArr[m][2];
aArr[m][3] = aArr[m][3] + 0.7;
aArr[m][1] = aArr[m][1] + aArr[m][3];
shape._x = aArr[m][0];
shape._y = aArr[m][1];
shape._xscale = (shape._yscale = aArr[m][4]);
shape.gotoAndStop(aArr[m][5]);
aArr[m][7] = aArr[m][7] + aArr[m][6];
shape._rotation = aArr[m][7];
if (((aArr[m][1] > (Stage.height + shape._height)) || (aArr[m][0] < ((-shape._width) / 2))) || (aArr[m][0] > (Stage.width + (shape._width / 2)))) {
aArr.splice(m, 1);
m--;
} else {
n = shape.transform.matrix;
n.scale(scaleF, scaleF);
screen.draw(shape, n);
}
m++;
}
bitmapH.attachBitmap(screen, 1);
if (gtype == 1) {
if (((hitL || (hitR)) || (hitU)) || (hitD)) {
wHit = true;
if (hitL) {
array.push(mySound.position);
if ((mySound.position > 0) && (lastl == 0)) {
lastl = array.length;
}
hitL = false;
array.push(1);
}
if (hitD) {
array.push(mySound.position);
if ((mySound.position > 0) && (lastd == 0)) {
lastd = array.length;
}
hitD = false;
array.push(2);
}
if (hitU) {
array.push(mySound.position);
if ((mySound.position > 0) && (lastu == 0)) {
lastu = array.length;
}
hitU = false;
array.push(3);
}
if (hitR) {
array.push(mySound.position);
if ((mySound.position > 0) && (lastr == 0)) {
lastr = array.length;
}
hitR = false;
array.push(4);
}
}
}
s._visible = false;
if (wHit) {
xloc = (Math.random() * (Stage.width - 100)) + 50;
yloc = (Math.random() * (Stage.height - 200)) + 100;
j = 0;
while (j < 3) {
if (aArr.length < 15) {
i++;
if (i > 999) {
i = 10;
}
aArr.push(new Array(xloc, yloc, (Math.random() * 26) - 13, Math.random() * -15, (Math.random() * 60) + 50, _root.nTypes[types - 1][Math.floor(Math.random() * _root.nTypes[types - 1].length)], (Math.random() * 16) - 8, Math.random() * 360));
}
j++;
}
s._visible = true;
pos = pos + 2;
}
if (Key.isDown(65) && (Key.isDown(68))) {
trace(array);
}
savemc.bar._xscale = (mySound.position / mySound.duration) * 100;
if (((!loadbar._visible) && (!failure._visible)) && (((mySound.position / mySound.duration) * 100) >= 99.9)) {
_root.mySound.stop();
}
shape._x = -100;
};
Frame 9
function scorePoints() {
scoremc._visible = true;
if (cl != 8) {
combometer = combometer + 1;
}
v = 100;
combo++;
inc = false;
if (cl != 8) {
if (combo == 20) {
cl = 2;
inc = true;
} else if (combo == 40) {
cl = 3;
inc = true;
} else if (combo == 60) {
cl = 4;
inc = true;
}
if (inc) {
combomc.gotoAndPlay(2);
combomc.combo.gotoAndStop(cl - 1);
}
}
score2 = score2 + (-5400 * cl);
timerN++;
score3 = score3 + (timer + (200 * cl));
if (cl <= 8) {
score = score + (200 * cl);
}
scoremc.score = score + " ";
scoremc.combo = "Combo x" + combo;
}
function endCombo() {
combo = 0;
_root.scoremc.combo = "";
if (cl == 8) {
combometer = 0;
setBase();
combomc.play();
circles.circle1.c.gotoAndStop(1);
circles.circle2.c.gotoAndStop(1);
}
cl = 1;
v = v - 15;
if (v < 20) {
v = 20;
}
}
function endGame() {
if (!_root.restartGame) {
mySound.stop();
black.swapDepths(_root.getNextHighestDepth());
black.play();
}
}
function finish() {
percentage = (noteNumH / noteNum) * 100;
if (percentage > 100) {
percentage = 100;
}
if (fullGame) {
rankNum = 0;
if (percentage >= 98) {
trace(percentange);
rankNum = 1;
} else if (percentage >= 92) {
rankNum = 2;
} else if (percentage >= 85) {
rankNum = 3;
} else if (percentage >= 75) {
rankNum = 4;
} else if (percentage >= 65) {
rankNum = 5;
} else {
rankNum = 6;
}
trace("rankNum " + rankNum);
if ((savefile.data["rank" + _root.songS] > rankNum) || (savefile.data["rank" + _root.songS] == undefined)) {
savefile.data["rank" + _root.songS] = rankNum;
}
}
if ((savefile.data["score" + _root.songS] < _root.score) || (savefile.data["score" + _root.songS] == undefined)) {
savefile.data["score" + _root.songS] = _root.score;
}
removeMovieClip(_root.bars);
removeMovieClip(_root.base);
removeMovieClip(_root.note);
_root.mySound.stop();
_root.bitmapH.swapDepths(666);
removeMovieClip(_root.bitmapH);
removeMovieClip(_root.bitmapH2);
removeMovieClip(_root.namemc);
removeMovieClip(_root.backmc);
removeMovieClip(_root.combomc);
removeMovieClip(_root.scoremc);
songFade = false;
removeMovieClip(c1);
removeMovieClip(c2);
_root.lastFrame = _currentframe;
if (_root.restartGame) {
_root.gotoAndStop("restartF");
} else if (fullGame) {
trace("fullgame");
_root.rankvar = rankNum;
_root.scorevar = score;
_root.combovar = maxcombo;
_root.percentvar = percentage;
_root.svar2 = score2;
_root.svar3 = ltimer + score;
_root.ltime2 = ltimer;
_root.gotoAndStop("results");
} else {
trace("song");
_root.gotoAndStop("songselect");
}
}
trace(black._currentframe);
if (black._currentframe == undefined) {
duplicateMovieClip (blackmc, "black", 100);
} else {
black.gotoAndStop(1);
}
cursor._visible = false;
scoremc._visible = 0;
backmc.swapDepths(4);
c1.swapDepths(5);
c2.swapDepths(6);
combomc.swapDepths(8);
scoremc.swapDepths(9);
var screen = (new flash.display.BitmapData(Stage.width / 2, Stage.height / 2, true, 0));
screen.rectangle = new flash.geom.Rectangle(0, 0, Stage.width / 2, Stage.height / 2);
var screen2 = (new flash.display.BitmapData(Stage.width, Stage.height, true, 0));
createEmptyMovieClip("bitmapH", 2);
createEmptyMovieClip("bitmapH2", 3);
var blurX = 40;
var quality = 1;
var my_blur_filter = (new flash.filters.BlurFilter(blurX, blurX, quality));
array = new Array();
songmc.stop();
j = 4;
loadbar._visible = true;
combo = 0;
minimc.stop();
comboy = comboani._y;
comboani.combobar.combobar = combo;
c1.ring.gotoAndStop(2);
c2.ring.gotoAndStop(2);
var mySound = new Sound(this);
var sendVars = new LoadVars();
sendVars.id = _root.songS;
sendVars.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/plays.php", sendVars, "GET");
mySound.onLoad = function (success) {
if (success) {
_root.gameLength = array[array.length - 4];
trace("GL " + _root.gameLength);
_root.gameLength = _root.gameLength * 2;
_root.gameLength = _root.gameLength / 2;
_root.gameLength = _root.gameLength + 9000;
if (_root.gameLength > mySound.duration) {
_root.gameLength = mySound.duration;
}
mySound.start();
songmc.play();
trace("loaded");
loadbar._visible = false;
}
};
combometer = 0;
combo = 0;
score = 0;
cl = 1;
loadVars.onLoad = function (success) {
if (success) {
_root.var1 = (songname = loadVars.songname);
_root.var2 = (artist = loadVars.artist);
_root.var4 = (author = loadVars.author);
_root.var3 = (link = loadVars.link);
stringsync = loadVars.stringsync;
_root.var7 = (plays = loadVars.plays);
_root.var5 = (rating = loadVars.rating);
genre = loadVars.genre;
_root.var6 = (rating_num = loadVars.rating_num);
_root.var8 = loadVars.type;
_root.var9 = loadVars.difficulty;
_root.namemc.name = songname;
arr = stringsync.split("|");
array = new Array();
l = 0;
while (l < arr.length) {
array[l] = arr[l];
l++;
}
trace(_root.gameLength);
mySound.loadSound(link, false);
startGame();
}
};
scaleF = 0.5;
bitmapH._xscale = (bitmapH._yscale = 200);
sendVars.id = _root.songS;
sendVars.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/retrieve.php", loadVars, "GET");
narray = new Array();
pos2 = 0;
i = 0;
aArr = new Array();
types = 0;
hitTotal = false;
songFade = false;
cv = 100;
v = 100;
maxcombo = 0;
noteNum = 0;
noteNumH = 0;
timer = 0;
timerN = 0;
lscore = 0;
score2 = 0;
score3 = 0;
onEnterFrame = function () {
if (_root.hack) {
var _local2 = new LoadVars();
_local2.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/ce.php", _local2, "GET");
}
ltimer = timer;
time = new Date();
timer = Math.ceil(time.getTime() % 1000000);
if ((score3 - (ltimer * timerN)) != (score - lscore)) {
_root.hack = true;
var _local2 = new LoadVars();
_local2.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/ce.php", _local2, "GET");
score = 0;
score2 = 0;
}
lscore = score;
score3 = 0;
if ((score2 / -27) != score) {
_root.hack = true;
var _local2 = new LoadVars();
_local2.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/ce.php", _local2, "GET");
score = 0;
score2 = 0;
}
timerN = 0;
practice._visible = loadbar._visible;
if (combo > maxcombo) {
maxcombo = combo;
}
if (combometer > 100) {
combometer = 100;
}
if (combometer == 100) {
circles.space._visible = true;
if (Key.isDown(32)) {
if (cl != 8) {
circles.circle1.c.gotoAndStop(3);
circles.circle2.c.gotoAndStop(3);
cl = 8;
combomc.combo.gotoAndStop(4);
combomc.gotoAndPlay(2);
combomc.combo.gotoAndStop(cl - 1);
}
}
} else {
circles.space._visible = false;
}
screen2.dispose();
screen2 = new flash.display.BitmapData(Stage.width, Stage.height, true, 0);
if (cl == 8) {
if (combomc._currentframe > 10) {
combomc.gotoAndStop(10);
}
circles.space._visible = false;
} else if (combometer < 100) {
circles.circle1.c.gotoAndStop(1);
circles.circle2.c.gotoAndStop(1);
} else {
circles.circle1.c.gotoAndStop(2);
circles.circle2.c.gotoAndStop(2);
}
circles.circle1.c._yscale = combometer;
circles.circle2.c._yscale = combometer;
if ((black._currentframe > 1) && (black._currentframe < 31)) {
mySound.stop();
if (black._currentframe == 30) {
finish();
}
} else {
if (songFade) {
waitS = mySound.position - stopM;
mySound.setVolume(100 - (waitS / 100));
if (waitS >= 10000) {
fullGame = true;
endGame();
}
} else {
if (cv < v) {
cv = cv + 5;
} else if (cv > v) {
cv = cv - 5;
}
if (cv < 0) {
cv = 0;
}
mySound.setVolume(cv);
}
if (!loadbar._visible) {
songpos._visible = true;
songpos.bar._xscale = (mySound.position / mySound.duration) * 100;
} else {
songpos._visible = false;
}
cursor._x = _xmouse;
cursor._y = _ymouse;
xDifference = c1._x - _root.cursor._x;
yDifference = c1._y - _root.cursor._y;
c1._rotation = (-Math.atan2(xDifference, yDifference)) / (Math.PI/180);
xDifference = c2._x - _root.cursor._x;
yDifference = c2._y - _root.cursor._y;
c2._rotation = (-Math.atan2(xDifference, yDifference)) / (Math.PI/180);
if (!loadbar._visible) {
if ((pos2 >= (array.length - 4)) && (!songFade)) {
songFade = true;
stopM = mySound.position;
waitS = 0;
}
if (pos2 == 0) {
types = array[pos2];
pos2++;
}
if ((array[pos2] <= (mySound.position + 1000)) && (pos2 < (array.length - 4))) {
if (array[pos2] > 1000) {
timen = array[pos2] - 40;
noteNum++;
v = new Array(timen, array[pos2 + 1], array[pos2 + 2], false);
narray.push(v);
pos2 = pos2 + 3;
} else {
pos2 = pos2 + 3;
}
}
}
screen.applyFilter(screen, screen.rectangle, new flash.geom.Point(0, 0), my_blur_filter);
n = circles.transform.matrix;
n.scale(scaleF, scaleF);
screen.draw(circles, n);
m = 0;
while (m < aArr.length) {
aArr[m][0] = aArr[m][0] + aArr[m][2];
aArr[m][3] = aArr[m][3] + 0.7;
aArr[m][1] = aArr[m][1] + aArr[m][3];
shape._x = aArr[m][0];
shape._y = aArr[m][1];
shape._xscale = (shape._yscale = aArr[m][4]);
shape.gotoAndStop(aArr[m][5]);
aArr[m][7] = aArr[m][7] + aArr[m][6];
shape._rotation = aArr[m][7];
if (((aArr[m][1] > (Stage.height + shape._height)) || (aArr[m][0] < ((-shape._width) / 2))) || (aArr[m][0] > (Stage.width + (shape._width / 2)))) {
aArr.splice(m, 1);
m--;
} else {
n = shape.transform.matrix;
n.scale(scaleF, scaleF);
screen.draw(shape, n);
}
m++;
}
c1.wait++;
if (c1.wait > 2) {
c1.arch.gotoAndStop(1);
}
c2.wait++;
if (c2.wait > 2) {
c2.arch.gotoAndStop(1);
}
hitTotal = false;
if (narray.length > 0) {
j = narray.length - 1;
for ( ; j >= 0 ; j--) {
if (cl == 8) {
minimc.arch.gotoAndStop(_root.nColor[types - 1][1]);
} else {
minimc.arch.gotoAndStop(_root.nColor[types - 1][0]);
}
minimc.ring.gotoAndStop(1);
minimc._x = _root["c" + narray[j][2]]._x;
minimc._y = _root["c" + narray[j][2]]._y;
minimc._rotation = narray[j][1];
size = 100 - (((mySound.position - narray[j][0]) / 1000) * -100);
minimc._xscale = (minimc._yscale = size);
if (minimc._xscale >= 100) {
if (!narray[j][3]) {
r1 = minimc._rotation;
between = new Array();
rhalf = 68;
if ((r1 + rhalf) <= 180) {
between.push(new Array(r1, r1 + rhalf));
} else {
between.push(new Array(r1, 180), new Array(-180, (rhalf + r1) - 360));
}
if ((r1 - rhalf) >= -180) {
between.push(new Array(r1 - rhalf, r1));
} else {
between.push(new Array(-180, r1), new Array((r1 - rhalf) + 360, 180));
}
ok = false;
r2 = _root["c" + narray[j][2]]._rotation;
k = 0;
while (k < between.length) {
if ((between[k][0] <= r2) && (r2 <= between[k][1])) {
ok = true;
break;
}
k++;
}
if (ok) {
_root["c" + narray[j][2]].wait = 0;
_root["c" + narray[j][2]].arch.gotoAndStop(minimc.arch._currentframe);
hitTotal = true;
scorePoints();
noteNumH++;
narray[j][3] = true;
narray.splice(j, 1);
continue;
}
if (minimc._xscale >= 110) {
endCombo();
}
}
}
if (minimc._xscale >= 110) {
narray.splice(j, 1);
} else {
if (narray[j][3]) {
minimc.gotoAndStop(2);
} else {
minimc.gotoAndStop(1);
}
m = minimc.transform.matrix;
screen2.draw(minimc, m);
}
}
}
if (hitTotal) {
if (aArr.length < 15) {
xloc = Math.random() * Stage.width;
yloc = (Math.random() * Stage.height) / 2;
j = 0;
while (j < 3) {
i++;
if (i > 999) {
i = 10;
}
aArr.push(new Array(xloc, yloc, (Math.random() * 26) - 13, Math.random() * -15, (Math.random() * 60) + 50, _root.nTypes[types - 1][Math.floor(Math.random() * _root.nTypes[types - 1].length)], (Math.random() * 16) - 8, Math.random() * 360));
j++;
}
}
}
if (loadbar._visible) {
loadbar.bar._xscale = (mySound.getBytesLoaded() / mySound.getBytesTotal()) * 100;
}
minimc._xscale = 100;
minimc._x = -10000;
bitmapH.attachBitmap(screen, 1);
bitmapH2.attachBitmap(screen2, 1);
backmc.bar._xscale = (mySound.position / _root.gameLength) * 100;
if (((!loadbar._visible) && (!failure._visible)) && (((mySound.position / mySound.duration) * 100) >= 99.9)) {
fullGame = true;
endGame();
}
}
if (Key.isDown(65) && (Key.isDown(68))) {
trace("-------------");
trace(link);
trace("-------------");
trace(array);
trace("-------------");
}
};
Frame 10
function scorePoints() {
scoremc._visible = true;
if (cl != 8) {
combometer = combometer + 1.5;
}
v = 100;
combo++;
inc = false;
if (cl != 8) {
if (combo == 10) {
cl = 2;
inc = true;
} else if (combo == 20) {
cl = 3;
inc = true;
} else if (combo == 35) {
cl = 4;
inc = true;
}
if (inc) {
combomc.gotoAndPlay(2);
combomc.combo.gotoAndStop(cl - 1);
}
}
score2 = score2 + (-5400 * cl);
timerN++;
score3 = score3 + (timer + (200 * cl));
if (cl <= 8) {
score = score + (200 * cl);
}
scoremc.score = score + " ";
scoremc.combo = "Combo x" + combo;
}
function endCombo() {
combo = 0;
_root.scoremc.combo = "";
if (cl == 8) {
combometer = 0;
setBase();
combomc.play();
circles.circle1.c.gotoAndStop(1);
circles.circle2.c.gotoAndStop(1);
}
cl = 1;
v = v - 15;
if (v < 20) {
v = 20;
}
}
function endGame() {
if (!_root.restartGame) {
mySound.stop();
black.swapDepths(_root.getNextHighestDepth());
black.play();
}
}
function finish() {
percentage = (noteNumH / noteNum) * 100;
if (percentage > 100) {
percentage = 100;
}
if (fullGame) {
rankNum = 0;
if (percentage >= 98) {
trace(percentange);
rankNum = 1;
} else if (percentage >= 92) {
rankNum = 2;
} else if (percentage >= 85) {
rankNum = 3;
} else if (percentage >= 75) {
rankNum = 4;
} else if (percentage >= 65) {
rankNum = 5;
} else {
rankNum = 6;
}
trace("rankNum " + rankNum);
if ((savefile.data["rank" + _root.songS] > rankNum) || (savefile.data["rank" + _root.songS] == undefined)) {
savefile.data["rank" + _root.songS] = rankNum;
}
}
if ((savefile.data["score" + _root.songS] < _root.score) || (savefile.data["score" + _root.songS] == undefined)) {
savefile.data["score" + _root.songS] = _root.score;
}
removeMovieClip(_root.bars);
removeMovieClip(_root.base);
removeMovieClip(_root.note);
_root.mySound.stop();
_root.bitmapH.swapDepths(666);
removeMovieClip(_root.bitmapH);
removeMovieClip(_root.bitmapH2);
removeMovieClip(_root.namemc);
removeMovieClip(_root.backmc);
removeMovieClip(_root.combomc);
removeMovieClip(_root.scoremc);
removeMovieClip(_root.combometermc);
songFade = false;
removeMovieClip(c1);
removeMovieClip(c2);
_root.lastFrame = _currentframe;
if (_root.restartGame) {
_root.gotoAndStop("restartF");
} else if (fullGame) {
trace("fullgame");
_root.rankvar = rankNum;
_root.scorevar = score;
_root.combovar = maxcombo;
_root.percentvar = percentage;
_root.svar2 = score2;
_root.svar3 = ltimer + score;
_root.ltime2 = ltimer;
_root.gotoAndStop("results");
} else {
trace("song");
_root.gotoAndStop("songselect");
}
}
onMouseDown = function () {
clicked = true;
};
onMouseUp = function () {
clicked = false;
};
trace(black._currentframe);
if (black._currentframe == undefined) {
duplicateMovieClip (blackmc, "black", 100);
} else {
black.gotoAndStop(1);
}
scoremc._visible = 0;
backmc.swapDepths(4);
c1.swapDepths(5);
c2.swapDepths(6);
combometermc.swapDepths(7);
combomc.swapDepths(8);
scoremc.swapDepths(9);
var screen = (new flash.display.BitmapData(Stage.width / 2, Stage.height / 2, true, 0));
screen.rectangle = new flash.geom.Rectangle(0, 0, Stage.width / 2, Stage.height / 2);
var screen2 = (new flash.display.BitmapData(Stage.width, Stage.height, true, 0));
createEmptyMovieClip("bitmapH", 2);
createEmptyMovieClip("bitmapH2", 3);
var blurX = 40;
var quality = 1;
var my_blur_filter = (new flash.filters.BlurFilter(blurX, blurX, quality));
songmc.stop();
j = 4;
loadbar._visible = true;
combo = 0;
minimc.stop();
comboy = comboani._y;
comboani.combobar.combobar = combo;
c1.ring.gotoAndStop(2);
c2.ring.gotoAndStop(2);
var mySound = new Sound(this);
var sendVars = new LoadVars();
sendVars.id = _root.songS;
sendVars.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/plays.php", sendVars, "GET");
invisi._alpha = 0;
mySound.onLoad = function (success) {
if (success) {
_root.gameLength = array[array.length - 4];
trace("GL " + _root.gameLength);
_root.gameLength = _root.gameLength * 2;
_root.gameLength = _root.gameLength / 2;
_root.gameLength = _root.gameLength + 9000;
if (_root.gameLength > mySound.duration) {
_root.gameLength = mySound.duration;
}
mySound.start();
songmc.play();
trace("loaded");
loadbar._visible = false;
}
};
combometer = 0;
combo = 0;
score = 0;
cl = 1;
loadVars.onLoad = function (success) {
if (success) {
_root.var1 = (songname = loadVars.songname);
_root.var2 = (artist = loadVars.artist);
_root.var4 = (author = loadVars.author);
_root.var3 = (link = loadVars.link);
stringsync = loadVars.stringsync;
_root.var7 = (plays = loadVars.plays);
_root.var5 = (rating = loadVars.rating);
genre = loadVars.genre;
_root.var6 = (rating_num = loadVars.rating_num);
_root.var8 = loadVars.type;
_root.var9 = loadVars.difficulty;
_root.namemc.name = songname;
arr = stringsync.split("|");
array = new Array();
l = 0;
while (l < arr.length) {
array[l] = arr[l];
l++;
}
trace(_root.gameLength);
mySound.loadSound(link, false);
startGame();
}
};
scaleF = 0.5;
bitmapH._xscale = (bitmapH._yscale = 200);
sendVars.id = _root.songS;
sendVars.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/retrieve.php", loadVars, "GET");
narray = new Array();
array = new Array();
lastColor = 1;
pos2 = 0;
i = 0;
aArr = new Array();
types = 0;
hitTotal = false;
songFade = false;
cv = 100;
v = 100;
maxcombo = 0;
noteNum = 0;
noteNumH = 0;
cBeat = 0;
lastc = false;
lastPos = 0;
pWait = 0;
timer = 0;
timerN = 0;
lscore = 0;
score2 = 0;
score3 = 0;
onEnterFrame = function () {
if (_root.hack) {
var _local2 = new LoadVars();
_local2.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/ce.php", _local2, "GET");
}
ltimer = timer;
time = new Date();
timer = Math.ceil(time.getTime() % 1000000);
if ((score3 - (ltimer * timerN)) != (score - lscore)) {
_root.hack = true;
var _local2 = new LoadVars();
_local2.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/ce.php", _local2, "GET");
score = 0;
score2 = 0;
}
lscore = score;
score3 = 0;
if ((score2 / -27) != score) {
_root.hack = true;
var _local2 = new LoadVars();
_local2.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/ce.php", _local2, "GET");
score = 0;
score2 = 0;
}
timerN = 0;
if (loadbar._visible) {
fakec._visible = true;
} else {
fakec.gotoAndStop(68);
fakec._visible = false;
}
invisi._x = -100;
screen2.dispose();
screen2 = new flash.display.BitmapData(Stage.width, Stage.height, true, 0);
if (clicked) {
if (!lastc) {
clickdown = true;
lastc = true;
} else {
clickdown = false;
}
} else {
lastc = false;
clickdown = false;
}
if (combo > maxcombo) {
maxcombo = combo;
}
if (combometer > 100) {
combometer = 100;
}
if (combometer == 100) {
combometermc.space._visible = true;
combometermc.bar.gotoAndStop(2);
if (Key.isDown(32)) {
if (cl != 8) {
cl = 8;
combomc.combo.gotoAndStop(4);
combomc.gotoAndPlay(2);
combomc.combo.gotoAndStop(cl - 1);
}
}
} else {
combometermc.space._visible = false;
}
if (cl == 8) {
if (combomc._currentframe > 10) {
combomc.gotoAndStop(10);
}
combometer = combometer - 5;
if (combometer < 0) {
combometer = 0;
}
circles.space._visible = false;
} else {
combometermc.bar.gotoAndStop(1);
}
combometermc.bar._yscale = combometer;
if ((black._currentframe > 1) && (black._currentframe < 31)) {
mySound.stop();
if (black._currentframe == 30) {
finish();
}
} else {
if (songFade) {
waitS = mySound.position - stopM;
mySound.setVolume(100 - (waitS / 100));
if (waitS >= 10000) {
fullGame = true;
endGame();
}
} else {
if (cv < v) {
cv = cv + 5;
} else if (cv > v) {
cv = cv - 5;
}
if (cv < 0) {
cv = 0;
}
mySound.setVolume(cv);
}
if (!loadbar._visible) {
songpos._visible = true;
songpos.bar._xscale = (mySound.position / mySound.duration) * 100;
} else {
songpos._visible = false;
}
if (!loadbar._visible) {
if ((pos2 >= (array.length - 1)) && (!songFade)) {
songFade = true;
stopM = mySound.position;
waitS = 0;
}
if (pos2 == 0) {
types = array[pos2];
pos2++;
}
if ((array[pos2] <= (mySound.position + 1500)) && (pos2 < (array.length - 1))) {
if (array[pos2] > 1500) {
noteNum++;
cBeat++;
if (cBeat > 9) {
cBeat = 1;
}
if (((mySound.position - lastPos) > 600) || (cBeat == 1)) {
trace(lastColor);
lastColor++;
if ((lastColor > 4) || ((types == 4) && (lastColor > 2))) {
lastColor = 1;
}
cBeat = 1;
}
lastPos = mySound.position;
timen = array[pos2] - 60;
v = new Array(timen, array[pos2 + 1], array[pos2 + 2], false, cBeat, lastColor);
narray.push(v);
pos2 = pos2 + 3;
} else {
pos2 = pos2 + 3;
}
}
}
screen.applyFilter(screen, screen.rectangle, new flash.geom.Point(0, 0), my_blur_filter);
m = 0;
while (m < aArr.length) {
aArr[m][0] = aArr[m][0] + aArr[m][2];
aArr[m][3] = aArr[m][3] + 0.7;
aArr[m][1] = aArr[m][1] + aArr[m][3];
shape._x = aArr[m][0];
shape._y = aArr[m][1];
shape._xscale = (shape._yscale = aArr[m][4]);
shape.gotoAndStop(aArr[m][5]);
aArr[m][7] = aArr[m][7] + aArr[m][6];
shape._rotation = aArr[m][7];
if (((aArr[m][1] > (Stage.height + shape._height)) || (aArr[m][0] < ((-shape._width) / 2))) || (aArr[m][0] > (Stage.width + (shape._width / 2)))) {
aArr.splice(m, 1);
m--;
} else {
n = shape.transform.matrix;
n.scale(scaleF, scaleF);
screen.draw(shape, n);
}
m++;
}
c1.wait++;
if (c1.wait > 2) {
c1.arch.gotoAndStop(1);
}
c2.wait++;
if (c2.wait > 2) {
c2.arch.gotoAndStop(1);
}
hitTotal = false;
if (narray.length > 0) {
j = narray.length - 1;
while (j >= 0) {
circleB.back.c.gotoAndStop(narray[j][5]);
circleB._x = narray[j][1];
circleB._y = narray[j][2];
size = 100 - (((mySound.position - narray[j][0]) / 1500) * -100);
circleB.ring.gotoAndStop(Math.floor(size));
circleB.number.gotoAndStop(narray[j][4]);
if (cl == 8) {
circleB.back.gotoAndStop(_root.nColor[types - 1][1] - 1);
} else {
circleB.back.gotoAndStop(_root.nColor[types - 1][0] - 1);
}
if (size >= 105) {
trace("delete");
endCombo();
narray.splice(j, 1);
} else {
m = circleB.transform.matrix;
screen2.draw(circleB, m);
m.scale(scaleF, scaleF);
screen.draw(circleB, m);
}
j--;
}
j = 0;
while (j < narray.length) {
if (!narray[j][3]) {
circleB._x = narray[j][1];
circleB._y = narray[j][2];
size = 100 - (((mySound.position - narray[j][0]) / 1500) * -100);
circleB.ring.gotoAndStop(Math.floor(size));
if (circleB.hitTest(_xmouse, _ymouse, true)) {
if ((circleB.ring._currentframe >= 87) && (circleB.ring._currentframe < 105)) {
invisi._x = _xmouse;
invisi._y = _ymouse;
if (clickdown) {
clickdown = false;
star._x = circleB._x;
star._y = circleB._y;
m = star.transform.matrix;
m.scale(scaleF, scaleF);
screen.draw(star, m);
_root["c" + narray[j][2]].wait = 0;
_root["c" + narray[j][2]].arch.gotoAndStop(minimc.arch._currentframe);
hitTotal = true;
scorePoints();
noteNumH++;
narray[j][3] = true;
narray.splice(j, 1);
trace("delete2");
break;
}
} else if (clickdown) {
clickdown = false;
endCombo();
break;
}
}
}
j++;
}
}
if (clickdown) {
endCombo();
}
if (hitTotal) {
if (aArr.length < 15) {
xloc = Math.random() * Stage.width;
yloc = (Math.random() * Stage.height) / 2;
j = 0;
while (j < 3) {
i++;
if (i > 999) {
i = 10;
}
aArr.push(new Array(xloc, yloc, (Math.random() * 26) - 13, Math.random() * -15, (Math.random() * 60) + 50, _root.nTypes[types - 1][Math.floor(Math.random() * _root.nTypes[types - 1].length)], (Math.random() * 16) - 8, Math.random() * 360));
j++;
}
}
}
if (loadbar._visible) {
loadbar.bar._xscale = (mySound.getBytesLoaded() / mySound.getBytesTotal()) * 100;
}
circleB._xscale = 100;
circleB._x = -10000;
bitmapH.attachBitmap(screen, 1);
bitmapH2.attachBitmap(screen2, 2);
backmc.bar._xscale = (mySound.position / _root.gameLength) * 100;
if (((!loadbar._visible) && (!failure._visible)) && (((mySound.position / mySound.duration) * 100) >= 99.9)) {
fullGame = true;
endGame();
}
}
star._x = -100;
if (Key.isDown(65) && (Key.isDown(68))) {
trace("-------------");
trace(link);
trace("-------------");
trace(array);
trace("-------------");
}
};
Instance of Symbol 599 MovieClip "invisi" in Frame 10
on (press) {
}
Frame 11
_root.faq._visible = false;
Frame 13
stop();
wait = 0;
onEnterFrame = function () {
wait++;
trace(wait);
if (wait > 5) {
gotoAndStop(_root.lastFrame);
_root.restartGame = false;
}
};
Frame 14
function sendScore() {
var _local1 = new LoadVars();
_local1.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/ce_true.php", scoreVars2, "GET");
}
stop();
_root.results.gotoAndStop(_root.diffvar);
_root.results.bg.gotoAndStop(_root.diffvar);
_root.results.rank.gotoAndStop(_root.rankvar);
_root.results.mscore = _root.scorevar;
_root.results.mcombo = "Max Combo " + _root.combovar;
x = Math.floor(_root.percentvar);
trace(x);
_root.results.mpercent = ("Percentage " + x) + "%";
_root.ltimer = 0;
_root.score2 = 0;
var scoreVars = new LoadVars();
var scoreVars2 = new LoadVars();
scoreVars2.onLoad = function (success) {
if (success) {
var _local3 = scoreVars2.result;
if (_local3 == _local3.toLowerCase()) {
trace(1);
} else {
_root.submitted = true;
var _local2 = new LoadVars();
mvar.hash("test");
_local2.songid = _root.songS;
_local2.name = _root.results.namevar.text;
_local2.score = _root.scorevar;
trace((_local2.name + " ") + _local2.score);
_local2.check = mvar.hash((((((((_local2.name + "") + _local2.score) + "") + _local2.songid) + "") + _local2.score) + "") + _local2.name);
_local2.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/input_high.php", _local2, "GET");
results.s.gotoAndStop(2);
trace(2);
}
}
};
onEnterFrame = function () {
_root.timevar = (((_root.svar3 + " ") + _root.ltime2) + " ") + (svar3 - _root.ltime2);
_root.hackvar = _root.hack;
trace("hack " + _root.hack);
if (_root.hack) {
var _local2 = new LoadVars();
_local2.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/ce.php", _local2, "GET");
}
if (savefile.data["score" + _root.songS] != undefined) {
if (_root.scorevar > savefile.data["score" + _root.songS]) {
trace("h1");
_root.scorevar = 0;
}
}
if ((_root.svar2 / -27) != _root.scorevar) {
trace("h2");
}
if ((_root.svar3 - _root.ltime2) != _root.scorevar) {
trace("h3");
}
if (black._currentframe == 45) {
black.swapDepths(666);
removeMovieClip(black);
}
};
Frame 15
stop();
_root.bg.gotoAndStop(_root.diffvar);
var scoresArray = new Array();
var sendVars = new LoadVars();
var loadVars = new LoadVars();
loadVars.onLoad = function (success) {
scoresArray = new Array();
if (success) {
arr = new Array();
var arr = loadVars.result.split("|");
var _local1;
var _local4;
var _local3;
var _local2;
_local1 = 0;
while (_local1 < arr.length) {
_local4 = arr[_local1];
_local3 = arr[_local1 + 1];
_local2 = new Object();
_local2.name = _local4;
_local2.score = _local3;
scoresArray.push(_local2);
_local1 = _local1 + 2;
}
if (scoresArray[0].score != undefined) {
_local1 = 0;
while (_local1 < scoresArray.length) {
duplicateMovieClip (hscores.hscore, "h" + _local1, _local1);
hscores["h" + _local1]._y = hscores.hscore._height * (_local1 + 1);
hscores["h" + _local1].num = (_local1 + 1) + ".";
hscores["h" + _local1].name = scoresArray[_local1].name;
hscores["h" + _local1].score = scoresArray[_local1].score;
hscores["h" + _local1]._visible = true;
_local1++;
}
} else {
duplicateMovieClip (hscores.hscore, "h1", 1);
hscores.h1._y = hscores.hscore._height * 1;
hscores.h1.num = "";
hscores.h1.score = "";
hscores.h1.name = "No highscores";
}
loadingm._visible = false;
}
};
loadingm._visible = true;
sendVars.songid = _root.songS;
sendVars.num = 99;
trace((sendVars.songid + " ") + sendVars.num);
sendVars.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/retrieve_high.php", loadVars, "GET");
hscores.hscore._visible = false;
Instance of Symbol 244 MovieClip "sc" in Frame 15
onClipEvent (load) {
_y = _root.bar._y;
drag = false;
disty = 0;
amount = _root.bar._height - this._height;
}
on (press) {
}
onClipEvent (enterFrame) {
if (_root.clicked) {
if (!drag) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
drag = true;
disty = _root._ymouse - this._y;
}
} else {
this._y = _root._ymouse - disty;
}
if (this._y > ((_root.bar._height - this._height) + _root.bar._y)) {
this._y = (_root.bar._height - this._height) + _root.bar._y;
} else if (this._y < _root.bar._y) {
this._y = _root.bar._y;
}
} else {
drag = false;
}
if (_root.hscores._height > _root.frame._height) {
loc = (this._y - _root.bar._y) / amount;
_root.hscores._y = _root.frame._y - ((_root.hscores._height - _root.frame._height) * loc);
} else {
_root.hscores._y = _root.frame._y;
}
}
Symbol 28 Button
on (press) {
getURL ("http://www.armorgames.com/", _blank);
}
Symbol 32 Button
on (release) {
_root.nextFrame();
trace("next");
}
Symbol 672 MovieClip [__Packages.md5] Frame 0
class md5
{
function md5 (b64pad, chrsz) {
if (b64pad != undefined) {
this.b64pad = b64pad;
}
if (((chrsz != undefined) && (chrsz == 8)) || (chrsz == 16)) {
this.chrsz = chrsz;
}
}
function hash(s) {
return(hex_md5(s));
}
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local6 = 0;
while (_local6 < x.length) {
var _local11 = _local5;
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 0], 7, -680876936);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 1], 12, -389564586);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 2], 17, 606105819);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 3], 22, -1044525330);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 4], 7, -176418897);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 5], 12, 1200080426);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 6], 17, -1473231341);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 7], 22, -45705983);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 8], 7, 1770035416);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 9], 12, -1958414417);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 10], 17, -42063);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 11], 22, -1990404162);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 12], 7, 1804603682);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 13], 12, -40341101);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 14], 17, -1502002290);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 15], 22, 1236535329);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 1], 5, -165796510);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 6], 9, -1069501632);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 11], 14, 643717713);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 0], 20, -373897302);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 5], 5, -701558691);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 10], 9, 38016083);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 15], 14, -660478335);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 4], 20, -405537848);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 9], 5, 568446438);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 14], 9, -1019803690);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 3], 14, -187363961);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 8], 20, 1163531501);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 13], 5, -1444681467);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 2], 9, -51403784);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 7], 14, 1735328473);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 12], 20, -1926607734);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 5], 4, -378558);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 8], 11, -2022574463);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 11], 16, 1839030562);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 14], 23, -35309556);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 1], 4, -1530992060);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 4], 11, 1272893353);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 7], 16, -155497632);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 10], 23, -1094730640);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 13], 4, 681279174);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 0], 11, -358537222);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 3], 16, -722521979);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 6], 23, 76029189);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 9], 4, -640364487);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 12], 11, -421815835);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 15], 16, 530742520);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 2], 23, -995338651);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 0], 6, -198630844);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 7], 10, 1126891415);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 14], 15, -1416354905);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 5], 21, -57434055);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 12], 6, 1700485571);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 3], 10, -1894986606);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 10], 15, -1051523);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 1], 21, -2054922799);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 8], 6, 1873313359);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 15], 10, -30611744);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 6], 15, -1560198380);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 13], 21, 1309151649);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 4], 6, -145523070);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 11], 10, -1120210379);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 2], 15, 718787259);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 9], 21, -343485551);
_local5 = safe_add(_local5, _local11);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local6 = _local6 + 16;
}
return(Array(_local5, _local4, _local3, _local2));
}
function core_hmac_md5(key, data) {
var _local3 = new Array(str2binl(key));
if (_local3.length > 16) {
_local3 = core_md5(_local3, key.length * chrsz);
}
var _local4 = new Array(16);
var _local5 = new Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = new Array(core_md5(_local4.concat(str2binl(data)), 512 + (data.length * chrsz)));
return(core_md5(_local5.concat(_local6), 640));
}
function safe_add(x, y) {
var _local1 = new Number((x & 65535) + (y & 65535));
var _local2 = new Number(((x >> 16) + (y >> 16)) + (_local1 >> 16));
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local4 = new Array();
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (str.length * chrsz)) {
_local4[_local2 >> 5] = _local4[_local2 >> 5] | ((str.charCodeAt(_local2 / chrsz) & _local5) << (_local2 % 32));
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2str(bin) {
var _local4 = new String("");
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (bin.length * 32)) {
_local4 = _local4 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 % 32)) & _local5);
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2hex(binarray) {
var _local3 = "0123456789abcdef";
var _local4 = new String("");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
function binl2b64(binarray) {
var _local7 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local5 = new String("");
var _local3 = 0;
while (_local3 < (binarray.length * 4)) {
var _local6 = ((((binarray[_local3 >> 2] >> (8 * (_local3 % 4))) & 255) << 16) | (((binarray[(_local3 + 1) >> 2] >> (8 * ((_local3 + 1) % 4))) & 255) << 8)) | ((binarray[(_local3 + 2) >> 2] >> (8 * ((_local3 + 2) % 4))) & 255);
var _local2 = 0;
while (_local2 < 4) {
if (((_local3 * 8) + (_local2 * 6)) > (binarray.length * 32)) {
_local5 = _local5 + b64pad;
} else {
_local5 = _local5 + _local7.charAt((_local6 >> (6 * (3 - _local2))) & 63);
}
_local2++;
}
_local3 = _local3 + 3;
}
return(_local5);
}
var b64pad = new String("");
var chrsz = new Number(8);
}
Symbol 57 MovieClip Frame 145
_root.nextFrame();
Symbol 72 MovieClip Frame 94
_root.nextFrame();
Symbol 81 MovieClip Frame 90
stop();
Symbol 87 Button
on (release) {
gotoAndStop ("songselect");
}
Symbol 92 Button
on (release) {
gotoAndStop ("loadscreen");
}
Symbol 96 Button
on (release) {
_root.creds._visible = true;
}
Symbol 101 Button
on (press) {
getURL ("http://armorgames.com/tag/rhythm/", _blank);
}
Symbol 105 Button
on (release) {
_root.gotoAndStop("download");
}
Symbol 115 Button
on (release) {
_root.creds._visible = false;
}
Symbol 140 MovieClip Frame 1
stop();
Symbol 148 Button
on (release) {
_root.currentType = "id";
_root.resetSongs(1);
}
Symbol 152 Button
on (release) {
_root.currentType = "plays";
_root.resetSongs(1);
}
Symbol 156 Button
on (release) {
_root.currentType = "rating";
_root.resetSongs(1);
}
Symbol 160 Button
on (release) {
_root.searchString(_root.search.text, 0);
}
Symbol 164 Button
on (release) {
_root.songS = 0;
_root.mySound.stop();
_root.gotoAndStop("menu");
}
Symbol 186 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 210 Button
on (release) {
_root.genreP._visible = true;
_root.genreP.play();
}
Symbol 215 Button
on (release) {
_root.resetSongs(2);
}
Symbol 239 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 1
stop();
Symbol 256 Button
on (release) {
_root.openPage();
}
Symbol 263 MovieClip Frame 1
stop();
Instance of Symbol 263 MovieClip "s5" in Symbol 265 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
_parent.s1.gotoAndStop(2);
_parent.s2.gotoAndStop(2);
_parent.s3.gotoAndStop(2);
_parent.s4.gotoAndStop(2);
_root.rateN = 5;
}
on (rollOut) {
this.gotoAndStop(1);
_parent.s1.gotoAndStop(1);
_parent.s2.gotoAndStop(1);
_parent.s3.gotoAndStop(1);
_parent.s4.gotoAndStop(1);
}
Instance of Symbol 263 MovieClip "s4" in Symbol 265 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
_parent.s1.gotoAndStop(2);
_parent.s2.gotoAndStop(2);
_parent.s3.gotoAndStop(2);
_root.rateN = 4;
}
on (rollOut) {
this.gotoAndStop(1);
_parent.s1.gotoAndStop(1);
_parent.s2.gotoAndStop(1);
_parent.s3.gotoAndStop(1);
}
Instance of Symbol 263 MovieClip "s3" in Symbol 265 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
_parent.s1.gotoAndStop(2);
_parent.s2.gotoAndStop(2);
_root.rateN = 3;
}
on (rollOut) {
this.gotoAndStop(1);
_parent.s1.gotoAndStop(1);
_parent.s2.gotoAndStop(1);
}
Instance of Symbol 263 MovieClip "s2" in Symbol 265 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
_parent.s1.gotoAndStop(2);
_root.rateN = 2;
}
on (rollOut) {
this.gotoAndStop(1);
_parent.s1.gotoAndStop(1);
}
Instance of Symbol 263 MovieClip "s1" in Symbol 265 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
_root.rateN = 1;
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 275 Button
on (release) {
_root.playGame();
}
Symbol 285 MovieClip Frame 1
stop();
Symbol 293 Button
on (release) {
_root.lastFrame = 0;
_root.songS = _root.stats.id;
_root.mySound.stop();
_root.diffvar = _root.stats.bg._currentframe;
_root.gotoAndStop("highscores");
}
Symbol 315 Button
on (release) {
_root.stats._visible = false;
_root.mySound.stop();
_root.banner.gotoAndStop(4);
}
Symbol 320 MovieClip Frame 10
stop();
Symbol 330 Button
on (release) {
trace(_name);
_root.loadGenre(_name);
}
Symbol 372 Button
on (release) {
_root.genreP._visible = false;
_root.genreP.gotoAndStop(1);
}
Symbol 374 MovieClip Frame 1
stop();
Instance of Symbol 323 MovieClip in Symbol 374 MovieClip Frame 2
on (release) {
}
Symbol 374 MovieClip Frame 10
stop();
Symbol 383 Button
on (release) {
_root.endGame();
}
Symbol 387 Button
on (release) {
if (_root.black._currentframe == 1) {
_root.black.swapDepths(_root.getNextHighestDepth());
_root.black.play();
_root.restartGame = true;
}
}
Symbol 403 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 1
stop();
Symbol 408 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 45
stop();
Symbol 475 Button
on (release) {
_root.diff = 0;
_root.typeGame = 0;
if (c1._currentframe == 2) {
_root.diff = 1;
} else if (c2._currentframe == 2) {
_root.diff = 2;
} else if (c3._currentframe == 2) {
_root.diff = 3;
}
if (d1._currentframe == 2) {
_root.typeGame = 1;
} else if (d2._currentframe == 2) {
_root.typeGame = 2;
} else if (d3._currentframe == 2) {
_root.typeGame = 3;
}
trace((((_root.songnumber.text + " ") + _root.yname.text) + " ") + _root.loadingm._visible);
if (((((((_root.songnumber.text != "ID #") && (_root.yname.text != "NAME")) && (_root.songnumber.text != "")) && (_root.yname.text != "")) && (!_root.loadingm._visible)) && (_root.typeGame != 0)) && (_root.diff != 0)) {
if (_root.faqread) {
_root.loadingm._visible = true;
loadText = new LoadVars();
var sendVars = new LoadVars();
var loadVars = new LoadVars();
loadVars.onLoad = function (success) {
if (success) {
_root.nameS = unescape(loadVars.name);
_root.artistN = unescape(loadVars.artist);
_root.genreN = unescape(loadVars.genre);
_root.linkS = unescape(loadVars.link);
_root.authorN = _root.yname.text;
_root.gotoAndStop("syncscreen");
}
};
sendVars.link = "http://www.newgrounds.com/audio/listen/" + songnumber.text;
sendVars.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/ng_data.php", loadVars, "GET");
} else {
error2._alpha = 100;
}
} else {
error._alpha = 100;
}
}
Symbol 486 Button
on (release) {
if (!_root.loadingm._visible) {
_root.gotoAndStop("menu");
}
}
Symbol 494 Button
on (release) {
getURL ("http://www.newgrounds.com/audio/", _blank);
}
Symbol 500 Button
on (release) {
_root.readFaq();
_root.faqread = true;
_root.faq._visible = true;
}
Symbol 505 Button
on (release) {
_visible = false;
}
Symbol 510 Button
on (release) {
_root.mySound.stop();
_root.bitmapH.swapDepths(666);
removeMovieClip(_root.loadbar);
removeMovieClip(_root.bitmapH);
removeMovieClip(_root.namemc);
removeMovieClip(_root.rec);
removeMovieClip(_root.checks);
_root.gotoAndStop("loadscreen");
removeMovieClip(this);
}
Symbol 519 Button
on (release) {
if (((!_root.loadbar._visible) && (!_root.failure._visible)) && (_root.array.length > 30)) {
trace("saved");
var sendVars = new LoadVars();
sendVars.songname = _root.nameS;
sendVars.artist = _root.artistN;
sendVars.author = _root.authorN;
sendVars.link = _root.linkS;
sendVars.genre = _root.genreN;
sendVars.difficulty = _root.diff;
sendVars.type = _root.typeGame;
string = _root.types + "|";
i = 0;
while (i < _root.array.length) {
string = (string + _root.array[i]) + "|";
i++;
}
sendVars.stringsync = string;
sendVars.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/input.php", sendVars, "POST");
_root.mySound.stop();
_root.bitmapH.swapDepths(666);
removeMovieClip(_root.bitmapH);
removeMovieClip(_root.namemc);
removeMovieClip(_root.rec);
removeMovieClip(_root.checks);
removeMovieClip(_root.loadbar);
_root.gotoAndStop("songselect");
removeMovieClip(this);
}
}
Symbol 526 Button
on (release) {
_root.mySound.start();
_root.array = new Array();
this.gotoAndStop(2);
}
Symbol 531 Button
on (release) {
_root.mySound.stop();
this.gotoAndStop(1);
}
Symbol 532 MovieClip Frame 1
stop();
Instance of Symbol 140 MovieClip "c1" in Symbol 534 MovieClip Frame 1
on (press) {
_root.cMc(this);
}
Instance of Symbol 140 MovieClip "c2" in Symbol 534 MovieClip Frame 1
on (press) {
_root.cMc(this);
}
Instance of Symbol 140 MovieClip "c3" in Symbol 534 MovieClip Frame 1
on (press) {
_root.cMc(this);
}
Instance of Symbol 140 MovieClip "c4" in Symbol 534 MovieClip Frame 1
on (press) {
_root.cMc(this);
}
Instance of Symbol 140 MovieClip "c5" in Symbol 534 MovieClip Frame 1
on (press) {
_root.cMc(this);
}
Symbol 547 MovieClip Frame 3
stop();
Instance of Symbol 577 MovieClip "back" in Symbol 595 MovieClip Frame 1
on (press) {
}
Symbol 609 Button
on (press) {
gotoAndPlay (60);
}
Symbol 611 MovieClip Frame 59
stop();
Symbol 611 MovieClip Frame 72
stop();
Symbol 616 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 617 Button
on (release) {
_root.faq._visible = true;
}
Symbol 635 Button
on (release) {
_root.submitted = false;
_root.gotoAndStop(_root.lastFrame);
}
Symbol 639 Button
on (release) {
_root.gotoAndStop("highscores");
}
Symbol 640 Button
on (release) {
_root.gotoAndStop("songselect");
}
Symbol 645 Button
on (release) {
if (savefile.data["score" + _root.songS] != undefined) {
if (_root.scorevar > savefile.data["score" + _root.songS]) {
_root.hack = true;
var sendVars = new LoadVars();
sendVars.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/ce.php", sendVars, "GET");
_root.scorevar = 0;
}
}
if ((_root.svar2 / -27) != _root.scorevar) {
_root.hack = true;
trace("h2");
var sendVars = new LoadVars();
sendVars.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/ce.php", sendVars, "GET");
}
if ((_root.svar3 - _root.ltime2) != _root.scorevar) {
_root.hack = true;
trace("h3");
var sendVars = new LoadVars();
sendVars.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/ce.php", sendVars, "GET");
}
if (_root.hack) {
var sendVars = new LoadVars();
sendVars.sendAndLoad("http://www.thorgaming.com/feelthebeats/test/ce.php", sendVars, "GET");
}
if ((_root.results.namevar.text != "Insert Name") && (!_root.hack)) {
_root.sendScore();
}
}
Symbol 646 MovieClip Frame 1
stop();
Instance of Symbol 646 MovieClip "s" in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
if (_root.submitted) {
this.gotoAndStop(2);
}
}
Symbol 664 Button
on (release) {
if (lastFrame == 0) {
_root.gotoAndStop("songselect");
} else {
_root.gotoAndStop("results");
}
}