Frame 1
function setspeed(speed) {
var _local1 = speed;
bandspeed = _local1;
cookie.data.bandspeed = _local1;
cookie.data.flush();
op = "Cookie set to " + _local1;
}
cookie = SharedObject.getLocal("frankcooker");
if (cookie.data.bandspeed != undefined) {
bandspeed = cookie.data.bandspeed;
dotest = false;
} else {
dotest = true;
}
offset = _root.getBytesLoaded();
_root.onEnterFrame = function () {
var _local1 = _root;
if (_local1.getBytesLoaded() == _local1.getBytesTotal()) {
if (dotest) {
test_timer = getTimer() / 1000;
test_total = _local1.getBytesTotal() / 1000;
test_kbps = test_total / test_timer;
test_kbits = test_kbps * 8;
if (test_kbits >= 250) {
bandspeed = "high";
} else {
bandspeed = "low";
}
cookie.data.bandspeed = bandspeed;
cookie.data.flush();
}
play();
}
};
Frame 2
stop();
song = "";
Set("/:r", 0);
function xml2array(node) {
var _local3 = new Array();
for (ident in node.childNodes) {
var _local2 = node.childNodes[ident].nodeName;
var _local1 = 0;
while (_local3[_local2][_local1] != undefined) {
_local1++;
}
if (_local1 == 0) {
_local3[_local2] = new Array();
}
if (node.childNodes[ident].childNodes[1] != undefined) {
_local3[_local2][_local1] = xml2array(node.childNodes[ident]);
} else {
_local3[_local2][_local1] = node.childNodes[ident].childNodes[0];
}
}
return(_local3);
}
function listCats() {
var c = 1;
countdown = catOffset;
var n = 0;
while ((c <= 6) and (n < jdata.category.length)) {
if (parseInt(jdata.category[n].hidden[0]) == 0) {
if (countdown > 0) {
countdown--;
} else {
eval ("_root.cat" + c).cat = ("<p align='center'>" + String(jdata.category[n].name[0])) + "</p>";
eval ("_root.cat" + c).id = n;
c++;
}
}
n++;
}
while (c <= 6) {
eval ("_root.cat" + c).cat = "";
eval ("_root.cat" + c).id = -1;
c++;
}
}
loaded = 0;
buf = 20;
stop();
_highquality = 2;
site = "http://www.frankklepacki.com/";
folder = "music/";
ext = ".fk";
catOffset = 0;
numCats = 0;
_root.category = -1;
_root.tsdelay = 1;
_root.spectrumtype = 0;
_root.textscroll = 2;
_root.s = "";
_root.src = new Array();
_root.srcr = new Array();
_root.cat = new Array();
_root.catn = new Array();
_root.catid = new Array();
_root.desc = new Array();
_root.name = new Array();
_root.id = new Array();
_root.prj = new Array();
_root.pl = 0;
_root.onEnterFrame = function () {
if (bandspeed == "low") {
_root.pl = 100;
}
};
jukebox = new XML();
jukebox.load(site + "listxml.php");
jukebox.onLoad = function (success) {
var _local1 = _root;
if (success) {
jdata = xml2array(jukebox);
jdata.category.reverse();
for (n in jdata) {
if (n != "category") {
_local1[n] = parseInt(jdata[n][0]);
}
}
for (n in jdata.category) {
if (parseInt(jdata.category[n].hidden[0]) == 0) {
numCats++;
}
}
listCats();
}
};
stop();
snd = new Sound(_root);
if (_root.spectrumtype == 0) {
_root.spectrumtype = 2;
}
incoming_lc = new LocalConnection();
incoming_lc.lcSong = function (num) {
var _local1 = num;
var _local2 = _root;
found = false;
ns = 0;
n1 = 0;
while ((n1 < jdata.category.length) and (!found)) {
n2 = 0;
while ((n2 < jdata.category[n1].song.length) and (!found)) {
ns++;
if (parseInt(jdata.category[n1].song[n2].id[0]) == _local1) {
_local2.name[_local1] = jdata.category[n1].song[n2].name[0];
_local2.desc[_local1] = jdata.category[n1].song[n2].description[0];
_local2.prj[_local1] = jdata.category[n1].song[n2].project[0];
song = _local1;
found = true;
}
n2++;
}
n1++;
}
ns = _local1;
};
incoming_lc.connect("frank_connect");
Instance of Symbol 5 MovieClip in Frame 2
onClipEvent (load) {
if (_root.spectrumtype == 2) {
Set("/:s", new Array());
Set("/:s2", new Array());
Set("/:s3", new Array());
Set("/:st", new Array());
Set("/:sz", new Array());
factor = 2;
fac = 5;
maxu = 30;
if (int(_root.decl) == 0) {
dec = 2;
} else {
dec = _root.decl;
}
}
if (_root.spectrumtype == 1) {
Set("/:s", new Array());
Set("/:s2", new Array());
Set("/:s3", new Array());
Set("/:st", new Array());
Set("/:sz", new Array());
factor = 2;
fac = 5;
maxu = 30;
more = 4.5;
if (int(_root.decl) == 0) {
dec = 1;
} else {
dec = _root.decl;
}
}
}
onClipEvent (enterFrame) {
if (_root.playing == 1) {
/:s2[0] = _root.music.s0;
/:s2[1] = _root.music.s1;
/:s2[2] = _root.music.s2;
/:s2[3] = _root.music.s3;
/:s2[4] = _root.music.s4;
/:s2[5] = _root.music.s5;
/:s2[6] = _root.music.s6;
/:s2[7] = _root.music.s7;
/:s2[8] = _root.music.s8;
/:s2[9] = _root.music.s9;
/:s2[10] = _root.music.s10;
/:s2[11] = _root.music.s11;
/:s2[12] = _root.music.s12;
/:s2[13] = _root.music.s13;
/:s2[14] = _root.music.s14;
/:s2[15] = _root.music.s15;
/:s2[16] = _root.music.s16;
/:s2[17] = _root.music.s17;
/:s2[18] = _root.music.s18;
} else {
/:s2[0] = _root.music2.s0;
/:s2[1] = _root.music2.s1;
/:s2[2] = _root.music2.s2;
/:s2[3] = _root.music2.s3;
/:s2[4] = _root.music2.s4;
/:s2[5] = _root.music2.s5;
/:s2[6] = _root.music2.s6;
/:s2[7] = _root.music2.s7;
/:s2[8] = _root.music2.s8;
/:s2[9] = _root.music2.s9;
/:s2[10] = _root.music2.s10;
/:s2[11] = _root.music2.s11;
/:s2[12] = _root.music2.s12;
/:s2[13] = _root.music2.s13;
/:s2[14] = _root.music2.s14;
/:s2[15] = _root.music2.s15;
/:s2[16] = _root.music2.s16;
/:s2[17] = _root.music2.s17;
/:s2[18] = _root.music2.s18;
}
}
onClipEvent (enterFrame) {
if (_root.spectrumtype == 1) {
n = 0;
while (n < 18) {
/:s2[n] = /:s2[n] * more;
if (/:s2[n] >= /:s[n]) {
/:s[n] = /:s2[n];
} else if ((((((/:s[n] / 31) * 100) - factor) / 100) * 31) > /:s2[n]) {
/:s[n] = ((((/:s[n] / 31) * 100) - factor) / 100) * 31;
} else {
/:s[n] = /:s2[n];
}
n = n + 1;
}
Set("/:amp", /:s[1]);
Set("/:amp", /:amp * 3.2258064516129);
}
if (_root.spectrumtype == 2) {
n = 0;
while (n < 18) {
/:sz[n] = /:s2[n];
n = n + 1;
}
n = 0;
while (n < 18) {
if (/:s2[n] >= /:s3[n]) {
/:s3[n] = /:s2[n];
} else if ((((((/:s3[n] / 31) * 100) - factor) / 100) * 31) > /:s2[n]) {
/:s3[n] = ((((/:s3[n] / 31) * 100) - factor) / 100) * 31;
} else {
/:s3[n] = /:s2[n];
}
n = n + 1;
}
n = 0;
while (n < 18) {
/:s[n] = /:s[n] - dec;
if (/:s[n] < 0) {
/:s[n] = 0;
}
if (/:s2[n] > /:st[n]) {
/:s[n] = /:s2[n] * fac;
if (/:s[n] > maxu) {
/:s[n] = maxu;
}
} else {
/:s2[n] = 0;
}
n = n + 1;
}
n = 0;
while (n < 18) {
/:st[n] = /:sz[n];
n = n + 1;
}
Set("/:amp", /:s[1]);
Set("/:amp", /:amp * 3.2258064516129);
}
}
Instance of Symbol 5 MovieClip "ct" in Frame 2
onClipEvent (load) {
_root.song = 0;
_root.playing = 2;
ss = 0;
assn1 = false;
assn2 = false;
Set("/:offset", 0);
b2 = 0;
b1 = 0;
tload = 1;
count = 0;
ll = 0;
cat = _root.category;
}
onClipEvent (enterFrame) {
if (_root.category != cat) {
_root.of = 0;
_root.total = 0;
_root.name = new Array();
_root.prj = new Array();
_root.desc = new Array();
_root.id = new Array();
for (n in _root.jdata.category[_root.category].song) {
_root.total = _root.total + 1;
_root.id[_root.total] = _root.jdata.category[_root.category].song[n].id[0];
_root.name[_root.id[_root.total]] = String(_root.jdata.category[_root.category].song[n].name[0]);
_root.prj[_root.id[_root.total]] = String(_root.jdata.category[_root.category].song[n].project[0]);
_root.desc[_root.id[_root.total]] = String(_root.jdata.category[_root.category].song[n].description[0]);
}
cat = _root.category;
}
if (b1 < _root.buf) {
b1 = b1 + 1;
buf1 = false;
} else if (assn1) {
buf1 = true;
}
if (b2 < _root.buf) {
b2 = b2 + 1;
buf2 = false;
} else if (assn2) {
buf2 = true;
}
if (_root.playing == 1) {
_root.music2.stop();
}
if (_root.playing == 2) {
_root.music.stop();
}
if ((_root.playing == 1) and buf2) {
if (((((_root.music2.getBytesLoaded() / _root.music2.getBytesTotal()) * 100) >= _root.pl) and (!pl)) and (_root.song != 0)) {
Set("/:offset", 0);
if (assn1) {
unloadMovie (_root.music);
assn1 = false;
buf1 = false;
}
_root.music2.gotoAndPlay(3);
_root.playing = 2;
tload = 1;
}
}
if ((_root.playing == 2) and buf1) {
if ((((_root.music.getBytesLoaded() / _root.music.getBytesTotal()) * 100) >= _root.pl) and (_root.song != 0)) {
if (assn2) {
unloadMovie (_root.music2);
assn2 = false;
buf2 = false;
}
Set("/:offset", 0);
_root.music.gotoAndPlay(3);
_root.playing = 1;
tload = 2;
}
}
if ((ss != _root.song) and (_root.song != -1)) {
sname = _root.name[_root.song];
prjname = _root.prj[_root.song];
_root.file = ((_root.site + _root.folder) + _root.song) + _root.ext;
if (tload == 1) {
b1 = 0;
unloadMovie (_root.music);
loadMovie (_root.file, _root.music);
assn1 = true;
_root.descr = _root.desc[_root.song];
ll = 1;
}
if (tload == 2) {
b2 = 0;
unloadMovie (_root.music2);
loadMovie (_root.file, _root.music2);
assn2 = true;
_root.descr = _root.desc[_root.song];
ll = 2;
}
ss = _root.song;
n = 0;
count = 5;
}
if (ll != 0) {
if (count >= 5) {
secs = 0;
secs2 = 0;
if (ll == 2) {
secs = Math.floor(_root.music2._totalframes / 20);
secs2 = Math.floor(secs * (_root.music2._currentframe / _root.music2._totalframes));
if (((_root.loopsongs == 0) and (_root.music2._totalframes == _root.music2._currentframe)) and (_root.music2._totalframes > 0)) {
_root.music2.gotoAndStop(1);
Set("/:offset", 1);
}
}
if (ll == 1) {
secs = Math.floor(_root.music._totalframes / 20);
secs2 = Math.floor(secs * (_root.music._currentframe / _root.music._totalframes));
if (((_root.loopsongs == 0) and (_root.music._totalframes == _root.music._currentframe)) and (_root.music._totalframes > 0)) {
_root.music.gotoAndStop(1);
Set("/:offset", 1);
}
}
mins = 0;
while (secs > 59) {
secs = secs - 60;
mins = mins + 1;
}
mins2 = 0;
while (secs2 > 59) {
secs2 = secs2 - 60;
mins2 = mins2 + 1;
}
if (secs <= 9) {
secs = "0" + secs;
}
if (secs2 <= 9) {
secs2 = "0" + secs2;
}
if (prjname != "") {
_root.songname = (((((((((sname + " (") + mins2) + ":") + secs2) + "/") + mins) + ":") + secs) + ") featured in ") + prjname;
} else {
_root.songname = ((((((((sname + " (") + mins2) + ":") + secs2) + "/") + mins) + ":") + secs) + ")";
}
}
}
_root.bl = _root.music.getBytesLoaded();
_root.bt = _root.music.getBytesTotal();
if (((_root.music.getBytesLoaded() / _root.music.getBytesTotal()) * 100) < _root.pl) {
_root.music.stop();
}
if (((_root.music2.getBytesLoaded() / _root.music2.getBytesTotal()) * 100) < _root.pl) {
_root.music2.stop();
}
_root.as1 = assn1;
_root.as2 = assn2;
}
Instance of Symbol 13 MovieClip in Frame 2
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 22 MovieClip in Frame 2
onClipEvent (load) {
vol = 100;
sett = 0;
setProperty("bar", _xscale , 100);
setProperty(slider, _x , 58.3);
}
onClipEvent (enterFrame) {
if (vol > 95) {
vol = 100;
}
setProperty("bar", _xscale , vol);
click = ("Volume = " + vol) + "%";
if (sett == 1) {
if (((_root._xmouse - this._x) >= 0) and ((_root._xmouse - this._x) <= 54.3)) {
vol = Math.floor(((_root._xmouse - this._x) / 54.3) * 100);
pos = _xmouse;
}
if ((_root._xmouse - this._x) < 0) {
vol = 0;
pos = 0;
}
if ((_root._xmouse - this._x) > 54.3) {
vol = 100;
pos = 54.3;
}
setProperty("bar", _xscale , vol);
setProperty(slider, _x , pos);
_root.snd.setVolume(vol);
}
}
onClipEvent (mouseDown) {
if (hit.hitTest(_root._xmouse, _root._ymouse)) {
sett = 1;
}
}
onClipEvent (mouseUp) {
sett = 0;
}
Instance of Symbol 25 MovieClip "cat1" in Frame 2
onClipEvent (load) {
n = 1;
gotoAndStop (1);
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse) and (String(cat) != "")) {
_root.category = id;
gotoAndStop (2);
}
}
onClipEvent (mouseUp) {
gotoAndStop (1);
}
Instance of Symbol 25 MovieClip "cat2" in Frame 2
onClipEvent (load) {
n = 2;
gotoAndStop (1);
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse) and (String(cat) != "")) {
_root.category = id;
gotoAndStop (2);
}
}
onClipEvent (mouseUp) {
gotoAndStop (1);
}
Instance of Symbol 25 MovieClip "cat3" in Frame 2
onClipEvent (load) {
n = 3;
gotoAndStop (1);
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse) and (String(cat) != "")) {
_root.category = id;
gotoAndStop (2);
}
}
onClipEvent (mouseUp) {
gotoAndStop (1);
}
Instance of Symbol 25 MovieClip "cat4" in Frame 2
onClipEvent (load) {
n = 4;
gotoAndStop (1);
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse) and (String(cat) != "")) {
_root.category = id;
gotoAndStop (2);
}
}
onClipEvent (mouseUp) {
gotoAndStop (1);
}
Instance of Symbol 25 MovieClip "cat5" in Frame 2
onClipEvent (load) {
n = 5;
gotoAndStop (1);
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse) and (String(cat) != "")) {
_root.category = id;
gotoAndStop (2);
}
}
onClipEvent (mouseUp) {
gotoAndStop (1);
}
Instance of Symbol 27 MovieClip in Frame 2
onClipEvent (load) {
sn = _root.song;
w = 210;
text.autosize = "left";
}
onClipEvent (enterFrame) {
if (_root.song != 0) {
text._x = text._x - _root.textscroll;
if (_root.song != sn) {
text._x = w + ((_root.textscroll * 20) * _root.tsdelay);
sn = _root.song;
}
if (text._x < (-text._width)) {
text._x = w + ((_root.textscroll * 20) * _root.tsdelay);
}
}
}
Instance of Symbol 43 MovieClip "list" in Frame 2
onClipEvent (load) {
function up() {
if (done) {
tm = 0;
done = false;
ym = 3;
}
}
function down() {
if (done) {
tm = 0;
done = false;
ym = -3;
}
}
_root.of = 0;
gotoAndStop (1);
_root.smd = 0;
done = true;
tm = 0;
stop();
gu = false;
gd = false;
godir = "";
}
onClipEvent (enterFrame) {
if (done) {
if ((godir == "down") and (_root.of < (_root.total - 6))) {
down();
} else if ((godir == "up") and (_root.of > 0)) {
up();
}
}
if (gu) {
setProperty(list, _y , list._y - 15);
gu = false;
}
if (gd) {
setProperty(list, _y , list._y + 15);
gd = false;
}
if (!done) {
if (Math.abs(tm + (ym * 3)) < 15) {
_root.smd = (-(tm + ym)) / 15;
}
if (ym < 0) {
setProperty(list, _y , list._y + ym);
tm = tm + ym;
if (tm < -15) {
setProperty(list, _y , list._y - (tm + 15));
tm = -15;
}
if (tm == -15) {
done = true;
_root.smd = 0;
_root.of = _root.of + 1;
gd = true;
}
}
if (ym > 0) {
setProperty(list, _y , list._y + ym);
tm = tm + ym;
if (tm > 15) {
setProperty(list, _y , list._y - (tm - 15));
tm = 15;
}
if (tm == 15) {
done = true;
_root.smd = 0;
_root.of = _root.of - 1;
gu = true;
}
}
}
}
Instance of Symbol 59 MovieClip in Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (_root.total > 6) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 62 MovieClip in Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (_root.infobox.maxscroll > 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 65 MovieClip in Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (_root.numCats > 5) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 13 MovieClip Frame 1
stop();
Set("/:r", 1);
Instance of Symbol 12 MovieClip in Symbol 13 MovieClip Frame 1
onClipEvent (enterFrame) {
setProperty(b, _yscale , 100 * (/:s[1] / 31));
}
Instance of Symbol 12 MovieClip in Symbol 13 MovieClip Frame 1
onClipEvent (enterFrame) {
setProperty(b, _yscale , 100 * (/:s[4] / 31));
}
Instance of Symbol 12 MovieClip in Symbol 13 MovieClip Frame 1
onClipEvent (enterFrame) {
setProperty(b, _yscale , 100 * (/:s[7] / 31));
}
Instance of Symbol 12 MovieClip in Symbol 13 MovieClip Frame 1
onClipEvent (enterFrame) {
setProperty(b, _yscale , 100 * (/:s[10] / 31));
}
Instance of Symbol 12 MovieClip in Symbol 13 MovieClip Frame 1
onClipEvent (enterFrame) {
setProperty(b, _yscale , 100 * (/:s[13] / 31));
}
Instance of Symbol 12 MovieClip in Symbol 13 MovieClip Frame 1
onClipEvent (enterFrame) {
setProperty(b, _yscale , 100 * (/:s[16] / 31));
}
Symbol 33 Button
on (release) {
Set("/:offset", 1);
if (_root.playing == 1) {
_root.music.gotoAndPlay(/:offset);
} else {
_root.music2.gotoAndPlay(/:offset);
}
}
Symbol 34 Button
on (release) {
Set("/:offset", 1);
if (_root.playing == 1) {
_root.music.gotoAndStop(1);
} else {
_root.music2.gotoAndStop(1);
}
}
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
stop();
Instance of Symbol 41 MovieClip "b2" in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
n = 1;
sett = 0;
}
onClipEvent (enterFrame) {
n2 = _root.id[n + _root.of];
click = _root.name[n2];
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse) and (sett == 0)) {
if (n2 != -1) {
sett = 1;
gotoAndStop (2);
_root.song = n2;
}
}
}
onClipEvent (mouseUp) {
gotoAndStop (1);
sett = 0;
}
Instance of Symbol 41 MovieClip "b3" in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
n = 2;
sett = 0;
}
onClipEvent (enterFrame) {
n2 = _root.id[n + _root.of];
click = _root.name[n2];
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse) and (sett == 0)) {
if (n2 != -1) {
sett = 1;
gotoAndStop (2);
_root.song = n2;
}
}
}
onClipEvent (mouseUp) {
gotoAndStop (1);
sett = 0;
}
Instance of Symbol 41 MovieClip "b4" in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
n = 3;
sett = 0;
}
onClipEvent (enterFrame) {
n2 = _root.id[n + _root.of];
click = _root.name[n2];
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse) and (sett == 0)) {
if (n2 != -1) {
sett = 1;
gotoAndStop (2);
_root.song = n2;
}
}
}
onClipEvent (mouseUp) {
gotoAndStop (1);
sett = 0;
}
Instance of Symbol 41 MovieClip "b5" in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
n = 4;
sett = 0;
}
onClipEvent (enterFrame) {
n2 = _root.id[n + _root.of];
click = _root.name[n2];
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse) and (sett == 0)) {
if (n2 != -1) {
sett = 1;
gotoAndStop (2);
_root.song = n2;
}
}
}
onClipEvent (mouseUp) {
gotoAndStop (1);
sett = 0;
}
Instance of Symbol 41 MovieClip "b6" in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
n = 5;
sett = 0;
}
onClipEvent (enterFrame) {
n2 = _root.id[n + _root.of];
click = _root.name[n2];
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse) and (sett == 0)) {
if (n2 != -1) {
sett = 1;
gotoAndStop (2);
_root.song = n2;
}
}
}
onClipEvent (mouseUp) {
gotoAndStop (1);
sett = 0;
}
Instance of Symbol 41 MovieClip "b7" in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
n = 6;
sett = 0;
}
onClipEvent (enterFrame) {
n2 = _root.id[n + _root.of];
click = _root.name[n2];
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse) and (sett == 0)) {
if (n2 != -1) {
sett = 1;
gotoAndStop (2);
_root.song = n2;
}
}
}
onClipEvent (mouseUp) {
gotoAndStop (1);
sett = 0;
}
Instance of Symbol 41 MovieClip "b8" in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
n = 7;
sett = 0;
}
onClipEvent (enterFrame) {
n2 = _root.id[n + _root.of];
click = _root.name[n2];
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse) and (sett == 0)) {
if (n2 != -1) {
sett = 1;
gotoAndStop (2);
_root.song = n2;
}
}
}
onClipEvent (mouseUp) {
gotoAndStop (1);
sett = 0;
}
Instance of Symbol 41 MovieClip "b1" in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
n = 0;
sett = 0;
}
onClipEvent (enterFrame) {
n2 = _root.id[n + _root.of];
click = _root.name[n2];
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse) and (sett == 0)) {
if (n2 != -1) {
sett = 1;
gotoAndStop (2);
_root.song = n2;
}
}
}
onClipEvent (mouseUp) {
gotoAndStop (1);
sett = 0;
}
Symbol 43 MovieClip Frame 1
stop();
Symbol 57 Button
on (press) {
_root.list.godir = "down";
}
on (release) {
_root.list.godir = "";
}
Symbol 58 Button
on (press) {
_root.list.godir = "up";
}
on (release) {
_root.list.godir = "";
}
Instance of Symbol 49 MovieClip in Symbol 59 MovieClip Frame 1
onClipEvent (load) {
h = this._height;
y = this._y - (h / 2);
smoothing = 0.5;
scrollsize = 2;
minscrollsize = 10;
dragging = false;
}
onClipEvent (enterFrame) {
if (_root.total > 6) {
if (dragging) {
target_y = _root._ymouse + y_offset;
if (target_y > y_max) {
this._y = y_max;
} else if (target_y < y_min) {
this._y = y_min;
} else {
this._y = target_y;
}
_root.of = Math.round((_root.total - 6) * ((this._y - y_min) / y_range));
} else {
scrollsize = 100 / (_root.total - 5);
if (scrollsize < minscrollsize) {
scrollsize = minscrollsize;
}
_yscale = scrollsize;
y_min = y + (h2 / 2);
y_max = (y + (h2 / 2)) + (h - h2);
y_range = y_max - y_min;
h2 = this._height;
ygoto = (h - h2) * ((_root.of + _root.smd) / (_root.total - 6));
_y = (_y + (((ygoto + (y + (h2 / 2))) - _y) * smoothing));
}
} else {
_yscale = 100;
_y = y;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
dragging = true;
y_offset = this._y - _root._ymouse;
}
}
onClipEvent (mouseUp) {
dragging = false;
}
Symbol 60 Button
on (release) {
if (_root.infobox.scroll < _root.infobox.maxscroll) {
_root.infobox.scroll = _root.infobox.scroll + 1;
}
}
Symbol 61 Button
on (release) {
if (_root.infobox.scroll > 0) {
_root.infobox.scroll = _root.infobox.scroll - 1;
}
}
Instance of Symbol 49 MovieClip in Symbol 62 MovieClip Frame 1
onClipEvent (load) {
h = this._height;
y = this._y;
dragging = false;
}
onClipEvent (enterFrame) {
if (_root.infobox.maxscroll > 1) {
if (dragging) {
target_y = _root._ymouse + y_offset;
if (target_y > y_max) {
this._y = y_max;
} else if (target_y < y_min) {
this._y = y_min;
} else {
this._y = target_y;
}
_root.infobox.scroll = Math.round(_root.infobox.maxscroll * ((this._y - y_min) / y_range));
} else {
setProperty(this, _yscale , 100 / _root.infobox.maxscroll);
h2 = this._height / 2;
h3 = this._height;
y_min = (y - (h / 2)) + h2;
y_max = ((y - (h / 2)) + h2) + (h - h3);
y_range = y_max - y_min;
setProperty(this, _y , ((y - (h / 2)) + h2) + (((_root.infobox.scroll - 1) / (_root.infobox.maxscroll - 1)) * (h - h3)));
}
} else {
setProperty(this, _yscale , 100);
setProperty(this, _y , y);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
dragging = true;
y_offset = this._y - _root._ymouse;
}
}
onClipEvent (mouseUp) {
dragging = false;
}
Symbol 63 Button
on (release) {
if (_root.catOffset < (_root.numCats - 5)) {
_root.catOffset = _root.catOffset + 1;
_root.listCats();
}
}
Symbol 64 Button
on (release) {
if (_root.catOffset > 0) {
_root.catOffset = _root.catOffset - 1;
_root.listCats();
}
}
Instance of Symbol 49 MovieClip in Symbol 65 MovieClip Frame 1
onClipEvent (load) {
h = this._height;
y = this._y;
dragging = false;
if ((_root.numCats - 5) > 0) {
setProperty(this, _yscale , 100 / (_root.numCats - 4));
h2 = this._height / 2;
h3 = this._height;
}
this.useHandCursor = true;
y_min = (y - (h / 2)) + h2;
y_max = ((y - (h / 2)) + h2) + (h - h3);
y_range = y_max - y_min;
}
onClipEvent (enterFrame) {
if (dragging) {
target_y = _root._ymouse + y_offset;
if (target_y > y_max) {
this._y = y_max;
} else if (target_y < y_min) {
this._y = y_min;
} else {
this._y = target_y;
}
_root.catOffset = Math.round((_root.numCats - 5) * ((this._y - y_min) / y_range));
_root.listCats();
} else if ((_root.numCats - 5) > 0) {
this._y = ((y - (h / 2)) + h2) + ((_root.catOffset / (_root.numCats - 5)) * (h - h3));
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
dragging = true;
y_offset = this._y - _root._ymouse;
}
}
onClipEvent (mouseUp) {
dragging = false;
}