Frame 1
function randomNumber(minNum, maxNum) {
return(minNum + Math.floor(Math.random() * ((maxNum - minNum) + 1)));
}
function stripWhiteSpace(string_in) {
return(string_in.split(newline).join("").split("\t").join("").split("%0A").join("").split("%09").join(""));
}
function stringReplace(string_in, theBadGuy, theGoodGuy) {
return(string_in.split(theBadGuy).join(theGoodGuy));
}
function js_wimpy_appendPlaylist(playlist_or_track_in, my_filename_in, my_artist_in, my_title_in, my_link_on_graphic_in, my_visual_in) {
wimpy.js_appendPlaylist(playlist_or_track_in, my_filename_in, my_artist_in, my_title_in, my_link_on_graphic_in, my_visual_in, playlist_or_track_in);
}
function js_wimpy_clearPlaylist() {
wimpy.js_clearPlaylist();
}
function js_wimpy_play() {
wimpy.js_play();
}
function js_wimpy_pause() {
wimpy.js_pause();
}
function js_wimpy_stop() {
wimpy.js_stop();
}
function js_wimpy_gotoTrack(getMe_in) {
wimpy.js_gotoTrack(Number(getMe_in));
}
function js_wimpy_next() {
wimpy.js_next();
}
function js_wimpy_prev(getMe_in) {
wimpy.js_prev();
}
stop();
timeLimiter = "no";
required_version = "6,0,47,0";
allowContinue = "no";
actual_version = System.capabilities.version;
if (typeof(actual_version) == "string") {
allowContinue = "yes";
} else {
actual_version = getVersion();
if (typeof(actual_version) != "string") {
actual_version = "NUL 4,0,0,0";
}
allowContinue = "no";
}
if (allowContinue == "yes") {
myPlaylist = new Array();
if (_root.wimpyConfigs.length > 5) {
var myConfigs = new XML();
myConfigs.ignoreWhite = true;
myConfigs.onLoad = function (success) {
var _local2 = _root;
if (myConfigs.hasChildNodes()) {
var _local1 = myConfigs.firstChild.firstChild;
while (_local1 != null) {
_local2[_local1.nodeName] = stripWhiteSpace(_local1.childNodes[0].nodeValue);
_local1 = _local1.nextSibling;
}
gotoAndPlay (2);
}
};
myConfigs.load((_root.wimpyConfigs + "?") + randomNumber(1, 10000));
} else {
gotoAndPlay (2);
}
} else {
stop();
}
var proxy = (new com.macromedia.javascript.JavaScriptProxy(_root.lcId, this));
function splashScreen(who) {
var _local1 = who;
if (Number(_root.wW) > 2) {
s_w = _root.wW;
s_h = _root.wH;
} else {
s_w = Stage.width;
s_h = Stage.height;
}
var _local2 = _local1._width;
var _local3 = _local1._height;
if (_local2 > s_w) {
c_s = s_w / _local2;
t_w = _local2 * c_s;
t_h = _local3 * c_s;
if (t_h > s_h) {
c_s = s_h / t_h;
t_w = _local2 * c_s;
t_h = _local3 * c_s;
}
} else if (_local3 > s_h) {
c_s = s_h / _local3;
t_w = _local2 * c_s;
t_h = _local3 * c_s;
if (t_w > s_w) {
c_s = s_h / t_w;
t_w = _local2 * c_s;
t_h = _local3 * c_s;
}
}
_local1._width = t_w;
_local1._height = t_h;
_local1._x = (s_w / 2) - (_local1._width / 2);
_local1._y = (s_h / 2) - (_local1._height / 2);
linkto._width = s_w;
linkto._height = s_h;
}
Instance of Symbol 21 MovieClip "infoStuff" in Frame 2
onClipEvent (load) {
_parent.splashScreen(this);
}
Frame 23
stop();
Instance of Symbol 232 MovieClip "wimpy" in Frame 23
onClipEvent (load) {
this._alpha = 0;
alphaUp.gotoAndStop("on");
}
Instance of Symbol 30 MovieClip in Frame 23
onClipEvent (load) {
_parent.stop();
_parent.infoStuff._visible = false;
}
Frame 32
stop();
Symbol 2 Button
on (press) {
getURL ("http://www.macromedia.com/software/flash/", "_blank");
}
Symbol 233 MovieClip [__Packages.com.macromedia.javascript.JavaScriptProxy] Frame 0
class com.macromedia.javascript.JavaScriptProxy
{
var controller;
function JavaScriptProxy (lcId, instance) {
var _local1 = this;
if ((lcId == undefined) || (instance == undefined)) {
} else {
_local1.instance = instance;
_local1.lcId = lcId;
_local1.receiving_lc = new LocalConnection();
_local1.receiving_lc.controller = _local1;
_local1.receiving_lc.callFlash = _local1.callFlash;
_local1.receiving_lc.connect(_local1.lcId);
}
}
function callFlash(args) {
var _local1 = controller;
var _local2 = args.shift();
var _local3 = _local1.instance[_local2];
_local3.apply(_local1.instance, args);
}
function __resolve(functionName) {
var _local1 = function () {
arguments.splice(0, 0, functionName);
var _local1 = this.call;
_local1.apply(this, arguments);
};
return(_local1);
}
function call(functionName) {
var _local3 = arguments.length;
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3) {
_local2 = _local2 + com.macromedia.javascript.JavaScriptSerializer.serializeItem(arguments[_local1]);
if (_local1 != (_local3 - 1)) {
_local2 = _local2 + ",";
}
_local1++;
}
var callString = (("javascript:FlashProxy.callJS(" + _local2) + ");");
getURL (callString);
}
}
Symbol 234 MovieClip [__Packages.com.macromedia.javascript.JavaScriptSerializer] Frame 0
class com.macromedia.javascript.JavaScriptSerializer
{
function JavaScriptSerializer () {
}
static function serializeItem(item) {
var _local2 = item;
var _local3 = typeof(_local2);
var _local1;
switch (_local3) {
case "string" :
_local1 = serializeString(String(_local2));
break;
case "number" :
_local1 = serializeNumber(Number(_local2));
break;
case "boolean" :
_local1 = serializeBoolean(Boolean(_local2));
break;
case "null" :
_local1 = serializeNull();
break;
case "undefined" :
_local1 = serializeUndefined();
break;
case "object" :
if (_local2 instanceof Date) {
_local1 = serializeDate(new Date(_local2.getTime()));
} else if (_local2 instanceof Array) {
_local1 = serializeArray(_local2);
} else {
_local1 = serializeObject(_local2);
}
}
return(_local1);
}
static function serializeObject(o) {
var _local1 = o;
var _local2 = "{";
for (var _local3 in _local1) {
if (typeof(_local3[_local1]) == "function") {
continue;
}
_local2 = _local2 + (((_local3 + ":") + serializeItem(_local1[_local3])) + ",");
}
if (_local2.substring(_local2.length - 1) == ",") {
_local2 = _local2.substring(0, _local2.length - 1);
}
_local2 = _local2 + "}";
return(_local2);
}
static function serializeArray(o) {
var _local3 = o.length;
var _local2 = "[";
var _local1 = 0;
while (_local1 < _local3) {
_local2 = _local2 + serializeItem(o[_local1]);
if (_local1 != (_local3 - 1)) {
_local2 = _local2 + ",";
}
_local1++;
}
_local2 = _local2 + "]";
return(_local2);
}
static function serializeString(s) {
return(("'" + s) + "'");
}
static function serializeNumber(n) {
return(String(n));
}
static function serializeBoolean(b) {
return(String(b));
}
static function serializeUndefined(Void) {
return("undefined");
}
static function serializeNull(Void) {
return("null");
}
static function serializeDate(d) {
return(("new Date(" + d.getTime()) + ")");
}
static function deserializeItem(type, data) {
var _local2 = data;
var _local1;
switch (type) {
case "str" :
_local1 = deserializeString(_local2);
break;
case "num" :
_local1 = deserializeNumber(_local2);
break;
case "bool" :
_local1 = deserializeBoolean(_local2);
break;
case "null" :
_local1 = deserializeNull();
break;
case "undf" :
_local1 = deserializeUndefined();
break;
case "date" :
_local1 = deserializeDate(_local2);
break;
case "xser" :
_local1 = deserializeXMLSerializedItem(_local2);
}
return(_local1);
}
static function deserializeString(s) {
return(s);
}
static function deserializeNumber(s) {
return(Number(s));
}
static function deserializeBoolean(s) {
return(Boolean(s));
}
static function deserializeUndefined(s) {
return(undefined);
}
static function deserializeNull(s) {
return(null);
}
static function deserializeDate(s) {
return(new Date(Number(s)));
}
static function deserializeXMLSerializedItem(data) {
var _local1 = new XML();
_local1.ignoreWhite = true;
_local1.parseXML(data);
var _local2 = parseNode(_local1.firstChild.firstChild, new Object());
return(_local2);
}
static function parseNode(x, o) {
var _local1 = o;
var _local3 = x;
var nodeName = _local3.nodeName;
var nodeValue = _local3.firstChild.nodeValue;
var varName = _local3.attributes.name;
var children = _local3.childNodes;
var len = children.length;
switch (nodeName) {
case "obj" :
if (varName == null) {
_local1 = new Object();
} else {
_local1[varName] = new Object();
}
break;
case "str" :
if (varName == undefined) {
_local1 = String(nodeValue);
} else {
_local1[varName] = nodeValue;
}
break;
case "num" :
if (varName == null) {
_local1 = Number(nodeValue);
} else {
_local1[varName] = Number(nodeValue);
}
break;
case "bool" :
if (varName == null) {
_local1 = Boolean(nodeValue);
} else {
_local1[varName] = Boolean(nodeValue);
}
break;
case "null" :
if (varName == null) {
_local1 = null;
} else {
_local1[varName] = null;
}
break;
case "undf" :
if (varName == null) {
_local1 = undefined;
} else {
_local1[varName] = undefined;
}
break;
case "date" :
if (varName == null) {
_local1 = new Date(Number(nodeValue));
} else {
_local1[varName] = new Date(Number(nodeValue));
}
break;
case "array" :
var arr;
if (varName == null) {
_local1 = new Array();
arr = _local1;
} else {
_local1[varName] = new Array();
arr = _local1[varName];
}
_local3 = 0;
while (_local3 < len) {
arr.push(parseNode(children[_local3], _local1));
_local3++;
}
return(arr);
}
var _local2 = 0;
while (_local2 < len) {
parseNode(children[_local2], _local1);
_local2++;
}
return(_local1);
}
}
Symbol 6 Button
on (press) {
var id = ((escape(_root._url) + "&aID=") + _root.aID);
if (_parent.timeLimiter == "no") {
getURL ("http://www.wimpyplayer.com/linkin.php?id=" + id, "_blank");
} else {
getURL ("http://www.wimpyplayer.com/", "_blank");
}
}
Symbol 27 MovieClip Frame 1
stop();
Instance of Symbol 24 MovieClip "bkgd" in Symbol 27 MovieClip Frame 1
onClipEvent (data) {
this._width = _parent._parent.bkgd_main.myW;
this._height = _parent._parent.bkgd_main.myH;
}
Symbol 27 MovieClip Frame 2
stop();
Symbol 27 MovieClip Frame 3
stop();
Symbol 31 MovieClip Frame 1
stop();
state = "off";
function powerON() {
tick = 0;
power_up = true;
power_down = false;
eqControlVol = 2;
this.gotoAndStop("on");
}
function powerOFF() {
tick = 0;
power_down = true;
power_up = false;
}
function initialize() {
var _local2 = this;
var _local3 = _parent;
var _local1 = 1;
while (_local1 < totalBars) {
bar0.duplicateMovieClip("bar" + _local1, _local3.eqDepth++);
_local2["bar" + _local1]._x = (bar0._width + barMargin) * _local1;
_local1++;
}
_local2._width = myWidth;
_local2._height = myHeight;
}
function randomNumber(min, max) {
return(min + Math.floor(Math.random() * ((Number(max) - Number(min)) + Number(1))));
}
function doit() {
var _local3 = this;
var _local2 = 0;
while (_local2 < randomNumber(1, totalBars)) {
var _local1 = randomNumber(0, totalBars);
if ((_local1 <= 1) || (_local1 > (totalBars - (totalBars / 2)))) {
myVol = volMax / 2;
} else {
myVol = volMax;
}
if (_local1 > (totalBars - (totalBars / 4))) {
myVol = myVol / 2;
} else {
myVol = myVol;
}
if (eqControlVol > 1) {
_local3["bar" + _local1.toString()].bar._height = eqControlVol * (randomNumber(1, myVol) / volMax);
} else {
_local3["bar" + _local1.toString()].bar._height = 1;
}
_local2++;
}
if ((volMax > 10) || (volMax < 1)) {
y = y * -1;
}
volMax = volMax + ((1 / randomNumber(2, eqControlVol)) * y);
if (volMax > eqControlVol) {
volMax = eqControlVol;
y = -1;
}
if (volMax < 1) {
volMax = 1;
y = 1;
}
if (power_down == true) {
tick++;
if (tick % 2) {
eqControlVol--;
}
if (eqControlVol < 2) {
power_down = false;
_local3.gotoAndStop("off");
_local2 = 0;
while (_local2 < totalBars) {
_local3["bar" + _local2.toString()].bar._height = 1;
_local2++;
}
}
}
if (power_up == true) {
tick++;
if (tick % 2) {
eqControlVol++;
}
if (eqControlVol > 9) {
power_up = false;
}
}
}
_parent.eqDepth = 7000;
barMargin = 2;
y = -1;
eqControlVol = 1;
volMax = 15;
Symbol 31 MovieClip Frame 2
stop();
state = "on";
Instance of Symbol 30 MovieClip in Symbol 31 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent.doit();
}
Symbol 33 Button
on (press) {
_parent._parent.toggleBalloons("off");
}
on (rollOver) {
if (_parent._parent.balloonState == "on") {
_parent._parent.doBalloon("turn these annoying yellow \rpop up help thingy's off");
}
}
on (rollOut) {
if (_parent._parent.balloonState == "on") {
_parent._parent.popBalloon();
}
}
Symbol 34 Button
on (press) {
_parent._parent.toggleBalloons("on");
}
on (rollOver) {
if (_parent._parent.balloonState == "on") {
_parent._parent.doBalloon("turn on pop up help");
}
}
on (rollOut) {
if (_parent._parent.balloonState == "on") {
_parent._parent.popBalloon();
}
}
Symbol 35 Button
on (press) {
var id = ((escape(_root._url) + "&aID=") + _root.aID);
if (_parent._parent.timeLimiter == "no") {
getURL ("http://www.wimpyplayer.com/linkin.php?id=" + id, "_blank");
} else {
getURL ("http://www.wimpyplayer.com/", "_blank");
}
}
on (rollOver) {
if (_parent._parent.balloonState == "on") {
_parent._parent.doBalloon("go to www.wimpyplayer.com");
}
}
on (rollOut) {
if (_parent._parent.balloonState == "on") {
_parent._parent.popBalloon();
}
}
Symbol 36 Button
on (press) {
_parent._parent.toggleInfoStuff();
}
Symbol 41 MovieClip Frame 1
stop();
myState = "on";
Symbol 41 MovieClip Frame 2
stop();
myState = "off";
Symbol 48 MovieClip Frame 1
stop();
state = "opened";
Symbol 48 MovieClip Frame 2
stop();
state = "opened";
Symbol 48 MovieClip Frame 3
stop();
state = "opened";
_parent.initializeBalloons();
Symbol 48 MovieClip Frame 4
stop();
state = "opened";
_parent.initializeBalloons();
Symbol 48 MovieClip Frame 5
stop();
state = "closed";
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 2
stop();
Instance of Symbol 49 MovieClip in Symbol 50 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent._parent.turnON();
}
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 2
stop();
Symbol 64 MovieClip Frame 1
function preload() {
var _local1 = _parent;
if (timestarted == false) {
timeB = getTimer();
timestarted = true;
}
var timeA = getTimer();
if ((timeA - timeB) > 500) {
var _local3 = Number(_local1._parent.myInputSound.getBytesTotal());
var _local2 = Number(_local1._parent.myInputSound.getBytesLoaded());
if (_local2 > 0) {
percent = 100 * (_local2 / _local3);
} else {
percent = 5;
}
if (percent >= 100) {
timestarted = false;
this.gotoAndStop("off");
}
} else {
percent = 5;
}
_local1.theMask._width = _local1.bkgd._width - (_local1.bkgd._width * (_local2 / _local3));
_local1._parent.myInputSound.setVolume(_local1._parent.currentVolume);
_local1._parent.loadedPercent = percent;
}
stop();
_parent._parent.doneLoading = 0;
_parent._parent.playingStream = 1;
timestarted = false;
Symbol 64 MovieClip Frame 2
stop();
_parent._parent.doneLoading = 0;
_parent._parent.playingStream = 0;
Instance of Symbol 63 MovieClip in Symbol 64 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent.preload();
}
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 2
stop();
Symbol 70 MovieClip Frame 3
stop();
Symbol 71 Button
on (press) {
if (_parent.playingStream == 1) {
_parent.scrubDirection = "scrub";
_parent.scrubber.gotoAndStop("scrub");
_parent.scrubber._x = _parent._xmouse;
}
}
on (release, releaseOutside) {
_parent.scrubDirection = "zero";
_parent.scrubber.gotoAndStop("on");
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
stop();
Symbol 91 MovieClip Frame 3
stop();
Symbol 91 MovieClip Frame 4
stop();
Symbol 91 MovieClip Frame 5
stop();
Symbol 91 MovieClip Frame 6
stop();
Symbol 91 MovieClip Frame 8
stop();
Symbol 91 MovieClip Frame 9
stop();
Instance of Symbol 81 MovieClip "bkgd" in Symbol 91 MovieClip Frame 9
onClipEvent (data) {
_parent._parent.button._width = this._width;
_parent._parent.button._height = this._height;
}
Symbol 92 Button
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 93 Button
on (press) {
_parent.scrubDirection = "scrub";
this.gotoAndStop("scrub");
var theYspot = this._y;
this.startDrag(false, _parent.scrub_line._x, theYspot, _parent.scrub_line._x + ((_parent.scrub_line._width - this._width) * (_parent.loadedPercent / 100)), theYspot);
EQmem = EQpause;
_parent.fakeEQ.powerOFF();
EQpause = true;
}
on (release, releaseOutside) {
_parent.scrubDirection = "resume";
this.gotoAndStop("on");
this.stopDrag();
if (EQmem == false) {
_parent.fakeEQ.powerON();
EQpause = false;
}
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 94 MovieClip Frame 1
stop();
scrubberState = "off";
function end(setTarget, frame) {
setTarget.stop();
setTarget.position = trackTotalTime;
_parent.scrubTargetState = "stop";
_parent.fakeEQ.powerOFF();
}
function begin(setTarget, frame) {
setTarget.start(0);
setTarget.position = 0;
_parent.scrubTargetState = "stop";
_parent.fakeEQ.powerON();
}
function stopMovie(setTarget) {
var _local1 = _parent;
theDirection = setTarget.position;
setTarget.stop();
_local1.scrubTargetState = "stop";
_local1.playControl_play.gotoAndStop("play");
_local1.fakeEQ.powerOFF();
EQpause = true;
}
function playMovie(setTarget) {
var _local1 = _parent;
setTarget.start(theDirection / 1000, 0);
_local1.scrubTargetState = "play";
_local1.playControl_play.gotoAndStop("stop");
if (scrubDirection != "scrub") {
_local1.fakeEQ.powerON();
}
EQpause = false;
}
function printTime() {
var _local1 = _parent;
timeMinRem = ((trackTotalTime / 1000) * playP) / 60;
if (timeMinRem > Number(0)) {
timeMin = Number(Math.floor(timeMinRem));
timeSec = Number(Math.floor((timeMinRem - timeMin) * 60));
timeMinRemTot = (trackTotalTime / 1000) / 60;
timeMinTot = Math.floor(timeMinRemTot);
timeSecTot = Math.floor((timeMinRemTot - timeMinTot) * 60);
if (timeSec < Number(10)) {
timeSec = "0" + timeSec;
}
if (timeSecTot < Number(10)) {
timeSecTot = "0" + timeSecTot;
}
if (_local1.timeLimiter == "yes") {
if (timeSec > _local1.timeLimiterTime) {
_local1.getNextSong("next");
}
}
_local1.itime.text = (timeMin + ":") + timeSec;
} else {
_local1.itime.text = "";
}
if (_local1.timeLimiter == "yes") {
_local1.itime.text = "DEMO";
}
}
function scrubHandlePlay(setTarget) {
var _local1 = _parent;
var _local2 = setTarget;
var a = Number(_local1.theTrackTime);
if (Number(a) <= Number(0)) {
trackTotalTime = (_local2.getBytesTotal() / _local2.getBytesLoaded()) * _local2.duration;
} else {
trackTotalTime = _local1.theTrackTime * 1000;
}
if (_local1.timeLimiter == "yes") {
if (trackTotalTime > _local1.timeLimiterTime) {
trackTotalTime = _local1.timeLimiterTime * 1000;
}
}
if (_local1.scrubDirection == "resume") {
_local2.position = theDirection;
playP = theDirection / trackTotalTime;
_local1.scrubDirection = "zero";
} else {
playP = _local2.position / trackTotalTime;
}
if (_local2.position > Number(1)) {
_local1.playingStream = 1;
if (_local1.fakeEQ.state == "off") {
if (EQpause != true) {
_local1.fakeEQ.powerON();
}
}
} else {
_local1.playingStream = 0;
if (_local1.fakeEQ.state == "on") {
_local1.fakeEQ.powerOFF();
}
}
printTime();
currentX = _local1.scrub_line._width - this._width;
if (playP > 1) {
setX = _local1.scrub_line._x + currentX;
} else {
setX = _local1.scrub_line._x + (currentX * playP);
}
var _local3 = (_local1.scrub_line._x + _local1.scrubberMaxW) - this._width;
if (Number(setX) > _local3) {
setX = _local3;
}
this._x = setX;
}
function scrubEngine(setTarget, myXpos) {
var _local1 = _parent;
var _local2 = setTarget;
if (_local1.scrubTargetState == "play") {
_local2.stop();
}
theDirection = _local2.position;
if (_local1.scrubDirection == "reverse") {
theDirection = theDirection - internalSpeed;
internalSpeed = internalSpeed + _local1.scrubSpeed;
}
if (_local1.scrubDirection == "forward") {
theDirection = theDirection + internalSpeed;
internalSpeed = internalSpeed + _local1.scrubSpeed;
}
if ((_local1.scrubDirection == "stop") || (_local1.scrubDirection == "play")) {
theDirection = _local2.position;
_local1.theDirection = theDirection;
this.gotoAndStop("off");
}
if ((_local1.scrubDirection == "scrub") || (_local1.scrubDirection == "resume")) {
theDirection = trackTotalTime * ((myXpos - _local1.scrub_line._x) / (_local1.scrub_line._width - this._width));
}
_local2.position = theDirection;
if (theDirection < 1) {
theDirection = 0;
}
if (theDirection > trackTotalTime) {
theDirection = trackTotalTime;
}
playP = theDirection / trackTotalTime;
printTime();
if (_local1.scrubTargetState == "play") {
_local1.scrubTarget.position = theDirection;
playMovie(_local2);
}
if (_local1.scrubTargetState == "stop") {
_local1.scrubTarget.start(theDirection / 1000, 0);
_local1.scrubTarget.position = theDirection;
stopMovie(_local1.scrubTarget);
}
}
theDirection = 1;
_parent.bob1 = 0;
internalSpeed = _parent.scrubSpeed;
Symbol 94 MovieClip Frame 2
stop();
scrubberState = "on";
Symbol 94 MovieClip Frame 3
stop();
scrubberState = "on";
Instance of Symbol 30 MovieClip in Symbol 94 MovieClip Frame 3
onClipEvent (enterFrame) {
_parent.scrubEngine(_parent._parent.scrubTarget, _parent._x);
}
Symbol 98 Button
on (press) {
if (flashlistID != null) {
_parent.clickActionSingleClick(flashlistID, entity, filename);
}
_parent.currentSelection = flashlistID;
fill.gotoAndStop("on");
_parent.scrollPlaylist();
}
on (rollOver) {
if (_parent._parent.balloonState == "on") {
_parent._parent.doBalloon(_parent.helpTag);
}
}
on (rollOut) {
if (_parent._parent.balloonState == "on") {
_parent._parent.popBalloon();
}
}
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 2
stop();
Symbol 101 MovieClip Frame 3
stop();
Symbol 104 Button
on (press) {
_parent._parent._parent._parent.downloadMe(_parent._parent.filename);
}
on (rollOver) {
if (_parent._parent._parent._parent.balloonState == "on") {
_parent._parent._parent._parent.doBalloon("download song");
}
}
on (rollOut) {
if (_parent._parent._parent._parent.balloonState == "on") {
_parent._parent._parent._parent.popBalloon();
}
}
Symbol 107 Button
on (press) {
_parent._parent._parent._parent.buyMe(_parent._parent.flashListId);
}
on (rollOver) {
if (_parent._parent._parent._parent.balloonState == "on") {
_parent._parent._parent._parent.doBalloon("buy it");
}
}
on (rollOut) {
if (_parent._parent._parent._parent.balloonState == "on") {
_parent._parent._parent._parent.popBalloon();
}
}
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 2
stop();
Symbol 108 MovieClip Frame 3
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
stop();
Symbol 111 MovieClip Frame 1
function assocIndexSource(id) {
var _local2 = id;
var _local1 = 0;
while (_local1 < AdatasetupSource.length) {
if (AdatasetupSource[_local1] == _local2) {
return(_local1);
}
_local1++;
}
return(undefined);
}
function assocIndexNew(id) {
var _local2 = id;
var _local1 = 0;
while (_local1 < Adatasetup.length) {
if (Adatasetup[_local1] == _local2) {
return(_local1);
}
_local1++;
}
return(undefined);
}
function makeAlist() {
topIndex = 0;
redrawPlaylist();
scrollPlaylist();
}
function scrollPlaylist(scrollDirection) {
var _local2 = this;
if (Aitemlist.length > displayMax) {
if ((scrollDirection == "up") && (topIndex > Number(0))) {
topIndex--;
scrubPlaylistHandelAdjust();
}
if ((scrollDirection == "down") && (topIndex < (Aitemlist.length - displayMax))) {
topIndex++;
scrubPlaylistHandelAdjust();
}
if ((scrollDirection == "pageup") && (topIndex < (Aitemlist.length - displayMax))) {
topIndex = (Number(topIndex) + Number(displayMax)) - 1;
scrubPlaylistHandelAdjust();
}
if ((scrollDirection == "pagedown") && (topIndex < ((Aitemlist.length - displayMax) + 1))) {
topIndex = (topIndex - displayMax) + 1;
scrubPlaylistHandelAdjust();
}
if (topIndex < 0) {
topIndex = 0;
}
if (topIndex > (Aitemlist.length - displayMax)) {
topIndex = Aitemlist.length - displayMax;
}
}
var tempTopIndex = topIndex;
var _local1 = 0;
while (_local1 < displayMax) {
var _local3 = 0;
while (_local3 < Adatasetup.length) {
_local2["displayitem" + _local1.toString()][Adatasetup[_local3]] = Aitemlist[tempTopIndex][_local3];
_local3++;
}
var tempActive = Aitemlist[tempTopIndex][Number(assocIndexNew("flashlistID"))];
var setColorA = new Color(_local2["displayitem" + _local1].bkgd);
var setColorB = new Color(_local2["displayitem" + _local1].textStuff);
if (tempActive == Number(currentSelection)) {
setColorA.setRGB("0x" + _parent.pl_bg_color_playing);
setColorB.setRGB("0x" + _parent.pl_t_color_playing);
_local2["displayitem" + _local1].bkgd._alpha = _parent.pl_bg_color_playing_alpha;
} else {
setColorA.setRGB("0x" + _parent.pl_bg_color_norm);
setColorB.setRGB("0x" + _parent.pl_t_color_norm);
_local2["displayitem" + _local1].bkgd._alpha = _parent.pl_bg_color_norm_alpha;
}
_local2["displayitem" + _local1].textStuff.my_itemLabel.text = _local2["displayitem" + _local1][_parent.my_itemLabel];
var itemType = Aitemlist[tempTopIndex][assocIndexNew("entity")];
_local2["displayitem" + _local1].textStuff.dirIcon.gotoAndStop(itemType);
if ((itemType == "d") || (itemType == "x")) {
_local2["displayitem" + _local1].textStuff.download.gotoAndStop("off");
} else if (_parent.displayDownloadButton == "yes") {
if (_parent.ecommerce == "yes") {
_local2["displayitem" + _local1].textStuff.download.gotoAndStop("ecom");
} else {
_local2["displayitem" + _local1].textStuff.download.gotoAndStop("on");
}
}
if ((Aitemlist[tempTopIndex][assocIndexNew(_parent.mySQL_col_filename)] == null) || (Aitemlist[tempTopIndex][assocIndex(_parent.mySQL_col_filename)] == "")) {
_local2["displayitem" + _local1]._visible = false;
} else {
_local2["displayitem" + _local1]._visible = true;
}
_local2["displayitem" + _local1].displayID = _local2["displayitem" + _local1].flashlistID + 1;
tempTopIndex++;
_local1++;
}
}
function scrubApage(theYpos) {
var _local1 = _parent;
clickspot = _local1.playlistscroller.scrollBarHandel._ymouse;
if (theYpos > _local1.playlistscroller.scrollBarHandel._y) {
scrollPlaylist("pageup");
}
if (theYpos < _local1.playlistscroller.scrollBarHandel._y) {
scrollPlaylist("pagedown");
}
}
function scroll2inView(id) {
var _local1 = id;
aboveView = topIndex;
belowView = (Number(topIndex) + Number(displayMax)) - 1;
if (Aitemlist.length > displayMax) {
if ((_local1 < topIndex) || (_local1 > ((Number(topIndex) + Number(displayMax)) - Number(1)))) {
topIndex = _local1;
}
} else {
topIndex = 0;
}
currentSelection = _local1;
scrollPlaylist();
scrubPlaylistHandelAdjust();
}
function autoScroll(theDirection) {
var _local1;
var _local2;
_local1++;
if (_local1 > 3) {
_local2++;
_local1 = 0;
}
scrollPlaylist(theDirection, _local2);
}
function redrawPlaylist() {
var _local1 = 0;
while (_local1 < Aitemlist.length) {
Aitemlist[_local1][assocIndexNew("flashlistID")] = _local1;
_local1++;
}
scroll2inView(Number(0));
}
function refreshScroll() {
initialize = true;
}
function scrubPlaylistHandelAdjust() {
var _local3 = _parent;
var _local2 = _local3.playlistscroller.scrollBarBkgd._y;
var BGh = _local3.playlistscroller.scrollBarBkgd._height;
var _local1 = _local3.playlistscroller.scrollBarHandel._y;
var Hh = _local3.playlistscroller.scrollBarHandel._height;
_local1 = Number(_local2) + Number((topIndex * (BGh - Hh)) / (Aitemlist.length - displayMax));
if (_local1 < _local2) {
_local1 = _local2;
}
if (_local1 > ((Number(_local2) + Number(BGh)) - Hh)) {
_local1 = (Number(_local2) + Number(BGh)) - Hh;
}
_local3.playlistscroller.scrollBarHandel._y = _local1;
}
function scrubPlaylist() {
var _local1 = _parent;
var _local3 = _local1.playlistscroller.scrollBarBkgd._y;
var BGh = _local1.playlistscroller.scrollBarBkgd._height;
var Hy = _local1.playlistscroller.scrollBarHandel._y;
var Hh = _local1.playlistscroller.scrollBarHandel._height;
var _local2 = (Hy - _local3) / (BGh - Hh);
topIndex = Number(Math.floor(((Aitemlist.length - displayMax) + 1) * _local2));
if (topIndex > (Aitemlist.length - displayMax)) {
topIndex = Aitemlist.length - displayMax;
}
if (topIndex < Number(1)) {
topIndex = Number(0);
}
scrollPlaylist();
}
scrubzone = _parent.playlistscroller.scrollBarHandel._height;
topIndex = Number(0);
if ((Aitemlist.length == 0) || (Aitemlist.length == null)) {
var i = 0;
while (i < displayMax) {
this["displayitem" + i]._visible = false;
i++;
}
}
function playlistRemove(id) {
Aitemlist.splice(id, 1);
redrawPlaylist();
}
function reorderPlaylist(buttonAction, id) {
var tempSelection = currentSelection;
if (buttonAction == "press") {
reorderMe = id;
itemGrabbed = true;
}
if (buttonAction == "release") {
if (reorderMe != reorderTo) {
tempTopIndexReorder = topIndex;
var _local3 = new Array();
_local3 = Aitemlist[reorderMe];
Aitemlist.splice(reorderMe, 1);
var _local1 = new Array();
_local1 = Aitemlist.slice(0, reorderTo);
_local1.push(_local3);
var _local2 = new Array();
_local2 = Aitemlist.slice(reorderTo, listPlayOpen.AitemList.length);
var AtempAll = new Array();
AtempAll = _local1.concat(_local2);
Aitemlist = AtempAll;
redrawPlaylist();
scroll2inView(tempTopIndexReorder, "reorder");
}
itemGrabbed = false;
}
currentSelection = reorderTo;
}
Symbol 112 Button
on (press) {
_parent.listPlayOpen.scrubApage(this._ymouse);
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 2
stop();
Symbol 119 MovieClip Frame 3
stop();
Symbol 120 Button
on (press) {
this.gotoAndStop("on");
var constrain = this._x;
this.startDrag(false, constrain, 0, constrain, _parent.scrollBarBkgd._height - this._height);
}
on (release, releaseOutside) {
this.stopDrag();
this.gotoAndStop("off");
}
on (rollOver) {
if (_parent._parent.balloonState == "on") {
_parent._parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent._parent.balloonState == "on") {
_parent._parent.opBalloon();
}
}
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 2
stop();
Instance of Symbol 49 MovieClip in Symbol 121 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent._parent._parent.listPlayOpen.scrubPlaylist();
}
Symbol 142 MovieClip Frame 1
stop();
Instance of Symbol 124 MovieClip "bkgd" in Symbol 142 MovieClip Frame 1
onClipEvent (data) {
_parent.button._width = this._width;
_parent.button._height = this._height;
}
Symbol 142 MovieClip Frame 2
stop();
Instance of Symbol 124 MovieClip "bkgd" in Symbol 142 MovieClip Frame 2
onClipEvent (data) {
_parent.button._width = this._width;
_parent.button._height = this._height;
}
Symbol 142 MovieClip Frame 3
stop();
Instance of Symbol 124 MovieClip "bkgd" in Symbol 142 MovieClip Frame 3
onClipEvent (data) {
_parent.button._width = this._width;
_parent.button._height = this._height;
}
Symbol 142 MovieClip Frame 4
stop();
Instance of Symbol 124 MovieClip "bkgd" in Symbol 142 MovieClip Frame 4
onClipEvent (data) {
_parent.button._width = this._width;
_parent.button._height = this._height;
}
Symbol 142 MovieClip Frame 5
stop();
Symbol 142 MovieClip Frame 6
stop();
Instance of Symbol 124 MovieClip "bkgd" in Symbol 142 MovieClip Frame 6
onClipEvent (data) {
_parent._parent.button._width = this._width;
_parent._parent.button._height = this._height;
_parent._parent.icon._x = (this._width - _parent._parent.icon._width) / 2;
_parent._parent.icon._y = (this._height - _parent._parent.icon._height) / 2;
}
Symbol 143 Button
on (press) {
alphaMem = this._alpha;
this._alpha = 30;
}
on (release, releaseOutside) {
this._alpha = alphaMem;
if (playPauseState == "play") {
_parent.scrubber.stopMovie(_parent.scrubTarget);
icon.gotoAndStop("play");
playPauseState = "pause";
} else {
_parent.getNextFromClick = 1;
_parent.getNextSong("current");
icon.gotoAndStop("pause");
_parent.trackLaunched = true;
gotoAndStop ("play");
playPauseState = "play";
}
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
stop();
Symbol 147 Button
on (press) {
alphaMem = this._alpha;
this._alpha = 30;
}
on (release, releaseOutside) {
this._alpha = alphaMem;
if (playPauseState == "pause") {
_parent.scrubber.playMovie(_parent.scrubTarget);
icon.gotoAndStop("pause");
playPauseState = "play";
} else if (playPauseState == "play") {
_parent.scrubber.stopMovie(_parent.scrubTarget);
icon.gotoAndStop("play");
playPauseState = "pause";
}
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 2
stop();
button._width = bStyle._width;
button._height = bStyle._height;
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 2
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
stop();
Symbol 154 MovieClip Frame 3
stop();
Symbol 155 Button
on (press) {
_parent.slide2point();
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 157 Button
on (press) {
alphaMem = this._alpha;
this._alpha = 30;
_parent.getNextFromClick = 1;
_parent.getNextSong("prev");
}
on (release, releaseOutside) {
this._alpha = alphaMem;
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 161 Button
on (press) {
alphaMem = this._alpha;
this._alpha = 30;
_parent.getNextFromClick = 1;
_parent.getNextSong("next");
}
on (release, releaseOutside) {
this._alpha = alphaMem;
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 163 Button
on (press) {
alphaMem = this._alpha;
this._alpha = 30;
}
on (release, releaseOutside) {
this._alpha = alphaMem;
_parent.stopPlayer();
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 166 Button
on (press) {
_parent.myPress();
}
on (release) {
_parent.myRelease();
}
on (rollOver) {
_parent.myOver();
}
on (rollOut) {
_parent.myRollout();
}
Symbol 168 Button
on (press) {
_parent.myPress();
}
on (release) {
_parent.myRelease();
}
on (rollOver) {
_parent.myOver();
}
on (rollOut) {
_parent.myRollout();
}
Symbol 169 Button
on (press) {
_parent.myPress();
}
on (release) {
_parent.myRelease();
}
on (rollOver) {
_parent.myOver();
}
on (rollOut) {
_parent.myRollout();
}
Symbol 170 Button
on (press) {
_parent.myPress();
}
on (release) {
_parent.myRelease();
}
on (rollOver) {
_parent.myOver();
}
on (rollOut) {
_parent.myRollout();
}
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
stop();
Symbol 171 MovieClip Frame 3
stop();
Symbol 171 MovieClip Frame 4
stop();
Symbol 171 MovieClip Frame 5
stop();
Symbol 171 MovieClip Frame 6
stop();
Symbol 172 Button
on (press) {
_parent.toggleLoopTrack();
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 2
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 178 Button
on (press) {
alphaMem = this._alpha;
this._alpha = 30;
if (_parent.libDirCurrent.length >= 2) {
_parent.loadPlaylist("dirup");
}
}
on (release, releaseOutside) {
this._alpha = alphaMem;
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 181 Button
on (press) {
_parent.toggleRandom();
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 184 MovieClip Frame 1
stop();
Symbol 186 Button
on (press) {
this.gotoAndStop("on");
if (_parent.volVert == true) {
var constrain = this._x;
this.startDrag(false, constrain, _parent.volControl._y, constrain, (_parent.volControl._y + _parent.volControl._height) - this._height);
} else {
var constrain = this._y;
this.startDrag(false, _parent.volControl._x, constrain, (_parent.volControl._x + _parent.volControl._width) - this._width, constrain);
}
}
on (release, releaseOutside) {
this.stopDrag();
this.gotoAndStop("off");
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 2
stop();
Instance of Symbol 30 MovieClip in Symbol 187 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent._parent.scrubVolume();
}
Symbol 188 Button
on (press) {
_parent.toggleInfoStuff();
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 191 MovieClip Frame 1
stop();
Symbol 193 Button
on (press) {
_parent.volToggleMute();
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 197 MovieClip Frame 1
stop();
Symbol 198 Button
on (press) {
_parent.listPlayOpen.scrollPlaylist("down");
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 2
stop();
Symbol 201 Button
on (press) {
_parent.listPlayOpen.scrollPlaylist("up");
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 2
stop();
Symbol 204 Button
on (press) {
_parent.vote4track();
}
on (rollOver) {
if (_parent.balloonState == "on") {
_parent.doBalloon(helpTag);
}
}
on (rollOut) {
if (_parent.balloonState == "on") {
_parent.popBalloon();
}
}
Symbol 209 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 2
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 2
stop();
Instance of Symbol 30 MovieClip in Symbol 211 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent._parent.fadeBalloon();
}
Symbol 213 Button
on (press) {
_parent._parent.getTrackLink();
}
on (rollOver) {
if (balloonState == "on") {
doBalloon("download the new wimpy radio");
}
}
on (rollOut) {
if (balloonState == "on") {
popBalloon();
}
}
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 2
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 2
stop();
Symbol 222 MovieClip Frame 1
stop();
state = "off";
Symbol 222 MovieClip Frame 2
stop();
state = "on";
Symbol 225 MovieClip Frame 1
stop();
state = "off";
Symbol 225 MovieClip Frame 2
stop();
state = "on";
Instance of Symbol 221 MovieClip in Symbol 225 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent._parent.preloadVisual();
}
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 2
stop();
Instance of Symbol 30 MovieClip in Symbol 226 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent._parent.preloadBkgdImage();
}
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 2
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 2
stop();
Symbol 232 MovieClip Frame 1
timeLimiter = _parent.timeLimiter;
defaultWimpyApp = "wimpy.php";
useVisual = "yes";
timeLimiterTime = 10;
trackPlays = _root.trackPlays;
wimpyApp = _root.wimpyApp;
wimpySkin = _root.wimpySkin;
voteScript = _root.voteScript;
mediaTypes = "flv,swf,mp3";
embeddedPlaylistSource = _root.playlist;
if (embeddedPlaylistSource.length > 5) {
useEmbeddedPlaylist = true;
} else {
useEmbeddedPlaylist = false;
}
if (_root.wW > 2) {
myStage_w = _root.wW;
myStage_h = _root.wH;
} else {
myStage_w = Stage.width;
myStage_h = Stage.height;
}
skinItemsLoaded = 0;
startUpText = "Click on an item to start";
if (wimpySkin.length > 4) {
useSkin = true;
} else {
useSkin = false;
}
startPlayingOnload = _root.startPlayingOnload;
if ((((_root.startOnTrack == "") || (_root.startOnTrack == null)) || (_root.startOnTrack == "undefined")) || (isNaN(_root.startOnTrack))) {
startOnTrack = "no";
} else {
startPlayingOnload = "yes";
startOnTrack = "yes";
}
backgroundColor = _root.backgroundColor;
if (((backgroundColor == "") || (backgroundColor == null)) || (backgroundColor == undefined)) {
backgroundColor = "eeeeee";
}
displayDownloadButton = _root.displayDownloadButton;
infoDisplayTime = _root.infoDisplayTime;
shuffleOnLoad = _root.shuffleOnLoad;
randomOnLoad = _root.randomOnLoad;
popUpHelp = _root.popUpHelp;
loopPlaylist = _root.loopPlaylist;
if (loopPlaylist == "yes") {
loopPlaylist = "all";
} else {
loopPlaylist = "off";
}
forceDownload = _root.forceDownload;
useXMLprefs = "no";
currentVolume = _root.theVolume;
ecommerce = _root.ecommerce;
ecomWindow = _root.ecomWindow;
if (((ecomWindow == "") || (ecomWindow == null)) || (ecomWindow == undefined)) {
ecomWindow = "_BLANK";
}
defaultVisualName = _root.defaultVisualName;
defaultVisualExt = _root.defaultVisualExt;
if (((defaultVisualExt == "") || (defaultVisualExt == null)) || (defaultVisualExt == undefined)) {
defaultVisualExt = "jpg";
}
useSysCodePage = _root.useSysCodePage;
if (useSysCodePage == "yes") {
System.useCodepage = true;
}
serveMP3 = _root.serveMP3;
bufferAudio = _root.bufferAudio;
if (((bufferAudio == "") || (bufferAudio == null)) || (bufferAudio == undefined)) {
bufferAudio = 0;
}
forceXMLplaylist = _root.forceXMLplaylist;
defaultImage = _root.defaultImage;
if (((defaultImage == "") || (defaultImage == null)) || (defaultImage == undefined)) {
defaultImage = "no";
}
autoAdvance = _root.autoAdvance;
if ((autoAdvance == "") || (autoAdvance == null)) {
autoAdvance = "yes";
}
scrollInfoDisplay = _root.scrollInfoDisplay;
if (scrollInfoDisplay == "yes") {
iTextStyle = "scroller";
}
if (((infoDisplayTime == null) || (infoDisplayTime == "")) || (infoDisplayTime == undefined)) {
infoDisplayTime = 3;
}
getMyid3info = _root.getMyid3info;
useMysql = _root.useMysql;
queryWhere = _root.queryWhere;
queryValue = _root.queryValue;
mySQL_col_filename = "filename";
mySQL_col_artist = "artist";
mySQL_col_title = "title";
mySQL_col_album = "album";
mySQL_col_filesize = "filesize";
mySQL_col_seconds = "seconds";
mySQL_col_bitrate = "bitrate";
mySQL_col_genre = "genre";
mySQL_col_track = "track";
mySQL_col_visual = "visual";
mySQL_col_link = "comments";
my_itemLabel = mySQL_col_title;
if (ecommerce == "yes") {
forceDownload = "no";
displayDownloadButton = "yes";
getMyid3info = "yes";
}
if (((currentVolume == null) || (currentVolume == "")) || (currentVolume == undefined)) {
currentVolume = 100;
}
if (((defaultVisualName == "") || (defaultVisualName == null)) || (defaultVisualName == undefined)) {
defaultVisualName = "coverart";
}
if (((defaultVisualExt == "") || (defaultVisualExt == null)) || (defaultVisualExt == undefined)) {
defaultVisualExt = "jpg";
}
if (((voteScript == "") || (voteScript == null)) || (voteScript == undefined)) {
voteScript = "no";
}
fontLeading = 0.1;
text_level_start = 200;
playlist_text_start = 2000;
playlist_bkgd_start = 4000;
pl_item_margin = 2;
pl_normFormat = new TextFormat();
pl_normFormat.size = 12;
pl_normFormat.font = "Arial,Helvetica,sans-serif";
pl_normFormat.align = "left";
function stringReplace(string_in, theBadGuy, theGoodGuy) {
return(string_in.split(theBadGuy).join(theGoodGuy));
}
function stripWhiteSpace(string_in) {
return(string_in.split(newline).join("").split("\t").join("").split("%0A").join("").split("%09").join(""));
}
function traceMe(varPath) {
o_trace[varPath] = varPath;
}
function drawTrace() {
o_trace.view = "";
for (prop in o_trace) {
o_trace.view = o_trace.view + (((prop + " : ") + eval (prop)) + newline);
}
}
function getExtension(theFilename) {
return(unescape(theFilename).split("?")[0].split("/").pop().split(".").pop().toLowerCase());
}
function displayStartupScreen(theKind) {
infoScale = infoDisplayer.infoStuff._xscale;
infoDisplayer.gotoAndStop(theKind);
infoDisplayer.bkgd._width = myStage_w;
infoDisplayer.bkgd._height = myStage_h;
if (infoDisplayer.infoStuff._width > myStage_w) {
infoScale = 100 * (myStage_w / infoDisplayer.infoStuff._width);
} else if (infoDisplayer.infoStuff._height > myStage_h) {
infoScale = 100 * (myStage_h / infoDisplayer.infoStuff._height);
} else {
infoScale = 100;
}
infoDisplayer.infoStuff._xscale = infoScale;
infoDisplayer.infoStuff._yscale = infoScale;
infoDisplayer.infoStuff._x = (myStage_w / 2) - (infoDisplayer.infoStuff._width / 2);
infoDisplayer.infoStuff._y = (myStage_h / 2) - (infoDisplayer.infoStuff._height / 2);
infoDisplayer.infoStuff._alpha = 100;
}
function setBkgdColor() {
bkColor = new Color(bkgdColor);
bkColor.setRGB("0x" + backgroundColor);
}
function buyMe(idnum) {
var _local1 = listPlayOpen.Aitemlist[idnum][listPlayOpen.assocIndexNew(mySQL_col_link)];
if (ecomWindow == "replace") {
getURL (unescape(_local1));
} else {
getURL (unescape(_local1), ecomWindow);
}
}
function createAvailableTracks() {
delete availableRandomTracks;
availableRandomTracks = new Array();
var _local1 = 0;
while (_local1 < (listPlayOpen.Aitemlist.length - listPlayOpen.directoryOffset)) {
availableRandomTracks[_local1] = Number(listPlayOpen.directoryOffset) + Number(_local1);
_local1++;
}
}
function selectRandomTrack() {
var _local1 = randomNumber(0, availableRandomTracks.length - 1);
return(availableRandomTracks[_local1]);
}
function toggleInfoStuff() {
if (infoDisplayer.state == "closed") {
displayStartupScreen("on");
} else {
infoDisplayer.gotoAndStop("off");
}
}
function toggleLoopTrack() {
if (loopPlaylist == "off") {
loopPlaylist = "all";
toggleRepeatMC.icon.icon_on._visible = true;
toggleRepeatMC.icon.icon_on.gotoAndStop("all");
toggleRepeatMC.icon.icon_off._visible = false;
} else if (loopPlaylist == "all") {
loopPlaylist = "one";
toggleRepeatMC.icon.icon_on._visible = true;
toggleRepeatMC.icon.icon_on.gotoAndStop("one");
toggleRepeatMC.icon.icon_off._visible = false;
} else if (loopPlaylist == "one") {
loopPlaylist = "off";
toggleRepeatMC.icon.icon_on.gotoAndStop("all");
toggleRepeatMC.icon.icon_on._visible = false;
toggleRepeatMC.icon.icon_off._visible = true;
}
}
function toggleRandom() {
if (((shuffleList == "no") || (shuffleList == "")) || (shuffleList == undefined)) {
shuffleList = "yes";
toggleRandomMC.icon.icon_on._visible = true;
toggleRandomMC.icon.icon_off._visible = false;
toggleRandomMC.icon.gotoAndStop("on");
shufflePlaylist();
} else {
shuffleList = "no";
toggleRandomMC.icon.icon_on._visible = false;
toggleRandomMC.icon.icon_off._visible = true;
toggleRandomMC.icon.gotoAndStop("off");
shuffleRestore();
}
}
function scrubBadGuys(theString) {
retval = theString;
retval = stringReplace(retval, " ", "%20");
retval = stringReplace(retval, "+", "%2B");
retval = stringReplace(retval, "\"", "%22");
retval = stringReplace(retval, "#", "%23");
retval = stringReplace(retval, "?", "%3F");
retval = stringReplace(retval, "'", "%27");
retval = stringReplace(retval, "&", "%26");
return(retval);
}
function randomNumber(minNum, maxNum) {
return(minNum + Math.floor(Math.random() * ((maxNum - minNum) + 1)));
}
function downloadMe(filename) {
var _local1 = filename;
downloadfilename = _local1;
if (setConnectionType(wimpyApp) == "xml") {
getURL (_local1, "_blank");
} else if (forceDownload == "yes") {
getURL ((((wimpyApp + "?theFile=") + escape(_local1)) + "&action=downloadfile") + authCode);
} else {
getURL (_local1, "_BLANK");
}
}
Array.prototype.in_array = function (what) {
var _local2 = this;
var _local3 = what;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1] == _local3) {
return(_local1);
}
_local1++;
}
return("x");
};
Symbol 232 MovieClip Frame 2
function setMySize() {
myPct_w = myStage_w / bkgd_main.myW;
myPct_h = myStage_h / bkgd_main.myH;
this._xscale = myPct_w * 100;
this._yscale = myPct_h * 100;
}
function initialize() {
setMySize();
if ((wimpyApp == null) || (wimpyApp == "")) {
wimpyApp = defaultWimpyApp;
}
scrubSpeed = 150;
libDirCurrent = new Array();
currentTrackMem = new Array();
initializeBalloons();
if (popUpHelp == "yes") {
balloonState = "on";
} else {
balloonState = "off";
}
ballonTime = 40;
muteZone = 3;
mute = false;
full = false;
setDefaultVolume();
mute = false;
toggleMuteMC.icon.icon_on._visible = false;
toggleMuteMC.icon.icon_off._visible = true;
if (loopPlaylist == "all") {
toggleRepeatMC.icon.icon_on._visible = true;
toggleRepeatMC.icon.icon_on.gotoAndStop("all");
toggleRepeatMC.icon.icon_off._visible = false;
} else {
toggleRepeatMC.icon.icon_on.gotoAndStop("all");
toggleRepeatMC.icon.icon_on._visible = false;
toggleRepeatMC.icon.icon_off._visible = true;
}
if (shuffleOnLoad == "yes") {
shuffleList = "yes";
toggleRandomMC.icon.icon_on._visible = true;
toggleRandomMC.icon.icon_off._visible = false;
toggleRandomMC.icon.gotoAndStop("on");
} else {
shuffleList = "no";
toggleRandomMC.icon.icon_on._visible = false;
toggleRandomMC.icon.icon_off._visible = true;
toggleRandomMC.icon.gotoAndStop("off");
}
infoDisplayer.tick = 0;
loadPlaylist("startup", wimpyApp);
setBkgdColor();
if (useVisual != "yes") {
visualDisplay.gotoAndStop("off");
}
if (seeThrough == "yes") {
bkgdColor.gotoAndStop("off");
bkgdFade.gotoAndStop("off");
}
thinkerScreen._width = listPlayOpen._width;
thinkerScreen._height = listPlayOpen._height;
thinkerScreen._x = listPlayOpen._x;
thinkerScreen._y = listPlayOpen._y;
thinker4visual._x = visualDisplay._x + (visualDisplay._width / 2);
thinker4visual._y = visualDisplay._y + (visualDisplay._height / 2);
duplicateMovieClip (l_high, "l_highest", 8000);
infoDisplayer.swapDepths(l_highest);
loadVisual("");
}
function setDefaultSkin() {
var _local1 = this;
bkgd_main.myW = "480";
bkgd_main.myH = "140";
skinItemsLoaded = 1;
alphaUp.gotoAndStop("off");
_local1._alpha = 100;
pl_bg_color_over = "000000";
pl_bg_color_playing = "000000";
pl_bg_color_norm = "BBC4A2";
pl_t_color_playing = "FFFFFF";
pl_t_color_norm = "000000";
pl_bg_color_over_alpha = 100;
pl_bg_color_playing_alpha = 100;
pl_bg_color_norm_alpha = 100;
pl_t_color_playing_alpha = 100;
pl_t_color_norm_alpha = 100;
totalplaylistitems = 5;
ripPlaylist(bkgd_pl._width - 2, bkgd_pl._height + 3);
if (iTextStyle == "scroller") {
blockMask.gotoAndStop("on");
iTextCapHeight = 40 + Number(40 * (fontLeading * 6));
itextFormat = new TextFormat();
itextFormat.size = 15;
itextFormat.font = "Arial,Helvetica,sans-serif";
itextFormat.align = "left";
itextFormat.color = "0x000000";
block._x = bkgd_info._x;
block._y = bkgd_info._y;
createScroller(200, 40, iTextCapHeight);
} else {
_local1.createTextField("itext", text_level_start++, bkgd_info._x, bkgd_info._y, 195, bkgd_info._height);
itextFormat = new TextFormat();
itextFormat.size = 15;
itextFormat.font = "Arial,Helvetica,sans-serif";
itextFormat.align = "left";
itextFormat.color = "0x000000";
itext.setNewTextFormat(itextFormat);
itext.background = false;
itext.border = false;
itext.selectable = false;
itext.multiline = false;
itext.text = "Click item to start";
itext.autoSize = "none";
itext._height = 40;
}
_local1.createTextField("itime", text_level_start++, (bkgd_info._x + bkgd_info._width) - 50, bkgd_info._y, 50, bkgd_info._height);
itimeFormat = new TextFormat();
itimeFormat.size = 16;
itimeFormat.font = "Arial,Helvetica,sans-serif";
itimeFormat.align = "right";
itimeFormat.color = "0x000000";
itime.setNewTextFormat(itimeFormat);
itime.background = false;
itime.border = false;
itime.selectable = false;
itime.multiline = false;
itime.text = "";
fakeEQ.totalBars = 4;
fakeEQ.myWidth = 20;
fakeEQ.myHeight = 30;
fakeEQ.initialize();
playlistScrollerUp.gotoAndStop("on");
playlistScrollerDown.gotoAndStop("on");
setDefaultHelpTags();
initialize();
scrubberMaxW = scrub_line._width;
}
function setDefaultHelpTags() {
bkgd_main.helpTag = "";
listPlayOpen.helpTag = "click to play / open";
toggleRandomMC.helpTag = "shuffle playlist";
toggleRepeatMC.helpTag = "repeat playlist or track";
toggleInfoMC.helpTag = "help";
toggleMuteMC.helpTag = "mute volume";
playControl_prev.helpTag = "previous track";
playControl_next.helpTag = "next track";
playControl_play.helpTag = "play track";
playControl_pause.helpTag = "pause track";
scrub_line.helpTag = "set track position here";
scrubber.helpTag = "set track position";
playlistscroller.helpTag = "scroll playlist one page";
playlistscroller.scrollBarHandel.helpTag = "scroll playlist";
volControl.helpTag = "set volume here";
vol_handle.helpTag = "adjust volume";
playlist_back.helpTag = "previous playlist";
playlistScrollerUp.helpTag = "scroll playlist up";
playlistScrollerDown.helpTag = "scroll playlist down";
}
function turnON() {
var _local1 = this;
if (skinItemsLoaded == 1) {
if (_local1._alpha >= 100) {
_local1._alpha = 100;
alphaUp.gotoAndStop("off");
} else {
_local1._alpha = 100;
}
}
}
function removePath(thePath) {
var _local2 = thePath.split("/");
var _local1 = _local2.pop();
return(_local1);
}
function setSkinRoot() {
var _local1;
_local1 = wimpySkin.split("/");
_local1.pop();
var _local2 = _local1.join("/");
wimpySkinRoot = _local2 + "/";
if (wimpySkinRoot == "/") {
wimpySkinRoot = "";
}
}
function preloadBkgdImage() {
var _local3 = bkgd_main.bkgd.getBytesLoaded();
var _local1 = bkgd_main.bkgd.getBytesTotal();
var _local2 = _local3 / _local1;
if (_local2 == 1) {
if (timestarted == false) {
timeB = getTimer();
timestarted = true;
}
var timeA = getTimer();
if ((timeA - timeB) > 500) {
bkgdImagePreloader.gotoAndStop("off");
skinItemsLoaded = 1;
bkgd_main.bkgd._width = bkgd_main.myW;
bkgd_main.bkgd._height = bkgd_main.myH;
setMySize();
timestarted = false;
}
}
}
function loadNewBkgd(theURL) {
loadMovie (wimpySkinRoot + theURL, bkgd_main.bkgd);
bkgdImagePreloader.gotoAndStop("on");
}
function setStartupSizers() {
var _local3 = this;
var _local1 = mySkin.firstChild.firstChild;
while (_local1 != null) {
var _local2 = _local1.nodeName;
if (_local2 == "bkgd_main") {
baseX = Number(_local1.attributes.x);
baseY = Number(_local1.attributes.y);
bkgd_main.myW = Number(_local1.attributes.width);
bkgd_main.myH = Number(_local1.attributes.height);
if ((_local1.attributes.style == "custom") || (_local1.attributes.style == "solid")) {
bkgd_main.gotoAndStop(_local1.attributes.style);
}
if ((_local1.attributes.imageURL == "undefined") || (_local1.attributes.imageURL == "")) {
_local3[_local2]._width = Number(_local1.attributes.width);
_local3[_local2]._height = Number(_local1.attributes.height);
_local3[_local2].gotoAndStop(_local1.attributes.style);
if ((_local1.attributes.bkgd_color == "") || (_local1.attributes.bkgd_color == "undefined")) {
tempColor = "FFFFFF";
} else {
tempColor = _local1.attributes.bkgd_color;
}
setObjectColor(_local3[_local2].bkgd, tempColor, _local1.attributes.bkgd_alpha);
if ((_local1.attributes.outline_color == "") || (_local1.attributes.outline_color == "undefined")) {
tempColor = "FFFFFF";
} else {
tempColor = _local1.attributes.outline_color;
}
setObjectColor(_local3[_local2].outline, tempColor, _local1.attributes.outline_alpha);
skinItemsLoaded = 1;
alphaUp.gotoAndStop("off");
_local3._alpha = 100;
} else {
bkgd_main.tempSizer._width = Number(_local1.attributes.width);
bkgd_main.tempSizer._height = Number(_local1.attributes.height);
loadNewBkgd(_local1.attributes.imageURL);
}
}
if (((_local2 == "bkgd_pl") || (_local2 == "visualDisplay")) || (_local2 == "bkgd_info")) {
_local3[_local2]._width = Number(_local1.attributes.width);
_local3[_local2]._height = Number(_local1.attributes.height);
_local3[_local2]._x = Number(_local1.attributes.x) - Number(baseX);
_local3[_local2]._y = Number(_local1.attributes.y) - Number(baseY);
if ((_local1.attributes.bkgd_color == "") || (_local1.attributes.bkgd_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2].bkgd, _local1.attributes.bkgd_color, _local1.attributes.bkgd_alpha);
}
if ((_local1.attributes.outline_color == "") || (_local1.attributes.outline_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2].outline, _local1.attributes.outline_color, _local1.attributes.outline_alpha);
}
}
if (_local2 == "thinker") {
_local3[_local2]._x = Number(_local1.attributes.x) - Number(baseX);
_local3[_local2]._y = Number(_local1.attributes.y) - Number(baseY);
_local3[_local2]._width = Number(_local1.attributes.width);
_local3[_local2]._height = Number(_local1.attributes.height);
if ((_local1.attributes.bkgd_color == "") || (_local1.attributes.bkgd_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2], _local1.attributes.bkgd_color, _local1.attributes.bkgd_alpha);
}
}
if (_local2 == "listPlayOpen") {
listPlayOpen._x = Number(_local1.attributes.x) - Number(baseX);
listPlayOpen._y = Number(_local1.attributes.y) - Number(baseY);
pl_bg_color_playing = _local1.attributes.pl_bg_color_playing;
pl_bg_color_playing_alpha = _local1.attributes.pl_bg_color_playing_alpha;
pl_bg_color_norm_alpha = _local1.attributes.pl_bg_color_norm_alpha;
pl_bg_color_norm = _local1.attributes.pl_bg_color_norm;
pl_bg_color_over = _local1.attributes.pl_bg_color_over;
pl_bg_color_over_alpha = _local1.attributes.pl_bg_color_over_alpha;
pl_t_color_norm = _local1.attributes.pl_t_color_norm;
pl_t_color_playing = _local1.attributes.pl_t_color_playing;
pl_t_color_playing_alpha = _local1.attributes.pl_t_color_playing_alpha;
pl_t_color_norm_alpha = _local1.attributes.pl_t_color_norm_alpha;
totalplaylistitems = _local1.attributes.totalitems;
ripPlaylist(Number(_local1.attributes.width), Number(_local1.attributes.height));
_local3[_local2].helpTag = _local1.attributes.helpTag;
}
if (((((_local2 == "toggleRandomMC") || (_local2 == "toggleRepeatMC")) || (_local2 == "toggleMuteMC")) || (_local2 == "toggleInfoMC")) || (_local2 == "toggleVoteMC")) {
if (_local2 == "toggleVoteMC") {
if (voteScript != "no") {
toggleVoteMC.gotoAndStop("on");
}
}
if ((_local1.attributes.imageURL == "undefined") || (_local1.attributes.imageURL == "")) {
_local3[_local2]._x = Number(_local1.attributes.x) - Number(baseX);
_local3[_local2]._y = Number(_local1.attributes.y) - Number(baseY);
_local3[_local2]._width = Number(_local1.attributes.width);
_local3[_local2]._height = Number(_local1.attributes.height);
if (_local2 != "toggleMuteMC") {
_local3[_local2].bStyle.gotoAndStop(_local1.attributes.style);
if ((_local1.attributes.bkgd_color == "") || (_local1.attributes.bkgd_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2].bStyle.bkgd, _local1.attributes.bkgd_color, _local1.attributes.bkgd_alpha);
}
if ((_local1.attributes.button_color == "") || (_local1.attributes.button_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2].bStyle.button, _local1.attributes.button_color, _local1.attributes.button_alpha);
}
}
if ((_local1.attributes.icon_color == "") || (_local1.attributes.icon_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2].icon.icon_off, _local1.attributes.icon_color, _local1.attributes.icon_alpha);
}
if ((_local1.attributes.icon_on_color == "") || (_local1.attributes.icon_on_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2].icon.icon_on, _local1.attributes.icon_on_color, _local1.attributes.icon_on_alpha);
}
}
_local3[_local2].helpTag = _local1.attributes.helpTag;
}
if (((((((_local2 == "playControl_prev") || (_local2 == "playControl_play")) || (_local2 == "playControl_pause")) || (_local2 == "playControl_next")) || (_local2 == "playlist_back")) || (_local2 == "playlistScrollerDown")) || (_local2 == "playlistScrollerUp")) {
if ((_local2 == "playlistScrollerDown") || (_local2 == "playlistScrollerUp")) {
_local3[_local2].gotoAndStop("on");
}
_local3[_local2].w = _local3[_local2]._x;
_local3[_local2].h = _local3[_local2]._y;
if ((_local1.attributes.imageURL == "undefined") || (_local1.attributes.imageURL == "")) {
_local3[_local2]._x = Number(_local1.attributes.x) - Number(baseX);
_local3[_local2]._y = Number(_local1.attributes.y) - Number(baseY);
_local3[_local2]._width = Number(_local1.attributes.width);
_local3[_local2]._height = Number(_local1.attributes.height);
_local3[_local2].bStyle.gotoAndStop(_local1.attributes.style);
if ((_local1.attributes.bkgd_color == "") || (_local1.attributes.bkgd_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2].bStyle.bkgd, _local1.attributes.bkgd_color, Number(_local1.attributes.bkgd_alpha));
}
if ((_local1.attributes.icon_color == "") || (_local1.attributes.icon_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2].icon, _local1.attributes.icon_color, Number(_local1.attributes.icon_alpha));
}
if ((_local1.attributes.button_color == "") || (_local1.attributes.button_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2].bStyle.button, _local1.attributes.button_color, Number(_local1.attributes.button_alpha));
}
}
_local3[_local2].helpTag = _local1.attributes.helpTag;
}
if (_local2 == "playlist_line") {
playlistscroller.scrollBarBkgd.helpTag = _local1.attributes.helpTag;
playlistscroller.scrollBarBkgd.gotoAndStop(_local1.attributes.style);
playlistscroller.scrollBarBkgd._width = Number(_local1.attributes.width);
playlistscroller.scrollBarBkgd._height = Number(_local1.attributes.height);
playlistscroller.scrollBarBkgd_button._width = Number(_local1.attributes.width);
playlistscroller.scrollBarBkgd_button._height = Number(_local1.attributes.height);
playlistscroller._x = Number(_local1.attributes.x) - Number(baseX);
playlistscroller._y = Number(_local1.attributes.y) - Number(baseY);
if ((_local1.attributes.bkgd_color == "") || (_local1.attributes.bkgd_color == "undefined")) {
donothing = true;
} else {
setObjectColor(playlistscroller.scrollBarBkgd.bkgd, _local1.attributes.bkgd_color, _local1.attributes.bkgd_alpha);
}
if ((_local1.attributes.outline_color == "") || (_local1.attributes.outline_color == "undefined")) {
donothing = true;
} else {
setObjectColor(playlistscroller.scrollBarBkgd.outline, _local1.attributes.outline_color, _local1.attributes.outline_alpha);
}
playlistscroller.helpTag = _local1.attributes.helpTag;
}
if (_local2 == "playlist_handle") {
playlistscroller.scrollBarHandel.helpTag = _local1.attributes.helpTag;
playlistscroller.scrollBarHandel.bStyle.gotoAndStop(_local1.attributes.style);
playlistscroller.scrollBarHandel._width = Number(_local1.attributes.width);
playlistscroller.scrollBarHandel._height = Number(_local1.attributes.height);
playlistscroller.scrollBarHandel._x = (playlistscroller.scrollBarBkgd._width / 2) - (_local1.attributes.width / 2);
playlistscroller.scrollBarHandel._y = 10;
if ((_local1.attributes.bkgd_color == "") || (_local1.attributes.bkgd_color == "undefined")) {
donothing = true;
} else {
setObjectColor(playlistscroller.scrollBarHandel.bStyle.bkgd, _local1.attributes.bkgd_color, _local1.attributes.bkgd_alpha);
}
if ((_local1.attributes.button_color == "") || (_local1.attributes.button_color == "undefined")) {
donothing = true;
} else {
setObjectColor(playlistscroller.scrollBarHandel.bStyle.button, _local1.attributes.button_color, _local1.attributes.button_alpha);
}
}
if (_local2 == "scrub_line") {
_local3[_local2].helpTag = _local1.attributes.helpTag;
_local3[_local2]._x = Number(_local1.attributes.x) - Number(baseX);
_local3[_local2]._y = Number(_local1.attributes.y) - Number(baseY);
_local3[_local2].bStyle.gotoAndStop(_local1.attributes.style);
_local3[_local2]._width = Number(_local1.attributes.width);
_local3[_local2]._height = Number(_local1.attributes.height);
scrubberMaxW = Number(_local1.attributes.width);
if ((_local1.attributes.bkgd_color == "") || (_local1.attributes.bkgd_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2].bkgd, _local1.attributes.bkgd_color, _local1.attributes.bkgd_alpha);
}
if ((_local1.attributes.loader_color == "") || (_local1.attributes.loader_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2].preloader, _local1.attributes.loader_color, _local1.attributes.loader_alpha);
}
if ((_local1.attributes.outline_color == "") || (_local1.attributes.outline_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2].bStyle.outline, _local1.attributes.outline_color, _local1.attributes.outline_alpha);
}
_local3[_local2].helpTag = _local1.attributes.helpTag;
}
if (_local2 == "scrubber") {
_local3[_local2].helpTag = _local1.attributes.helpTag;
_local3[_local2]._x = Number(_local1.attributes.x) - Number(baseX);
_local3[_local2]._y = Number(_local1.attributes.y) - Number(baseY);
_local3[_local2].bStyle.gotoAndStop(_local1.attributes.style);
_local3[_local2]._width = Number(_local1.attributes.width);
_local3[_local2]._height = Number(_local1.attributes.height);
if ((_local1.attributes.bkgd_color == "") || (_local1.attributes.bkgd_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2].bStyle.bkgd, _local1.attributes.bkgd_color, _local1.attributes.bkgd_alpha);
}
if ((_local1.attributes.button_color == "") || (_local1.attributes.button_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2].bStyle.button, _local1.attributes.button_color, _local1.attributes.button_alpha);
}
_local3[_local2].helpTag = _local1.attributes.helpTag;
}
if (_local2 == "vol_line") {
volControl.scrollBarBkgd.gotoAndStop(_local1.attributes.style);
var myRotation = Math.abs(_local1.attributes.rotation);
if (myRotation > 0) {
volControl.scrollBarBkgd._rotation = myRotation;
volControl.scrollBarBkgd._yscale = -100;
volControl.scrollClicker._rotation = myRotation;
volControl.scrollClicker._yscale = -100;
volVert = true;
} else {
volVert = false;
}
volControl._width = Number(_local1.attributes.width);
volControl._height = Number(_local1.attributes.height);
volControl._x = Number(_local1.attributes.x) - Number(baseX);
volControl._y = Number(_local1.attributes.y) - Number(baseY);
if ((_local1.attributes.bkgd_color == "") || (_local1.attributes.bkgd_color == "undefined")) {
donothing = true;
} else {
setObjectColor(volControl.scrollBarBkgd.bkgd, _local1.attributes.bkgd_color, _local1.attributes.bkgd_alpha);
}
if ((_local1.attributes.outline_color == "") || (_local1.attributes.outline_color == "undefined")) {
donothing = true;
} else {
setObjectColor(volControl.scrollBarBkgd.outline, _local1.attributes.outline_color, _local1.attributes.outline_alpha);
}
volControl.helpTag = _local1.attributes.helpTag;
}
if (_local2 == "vol_handle") {
if ((_local1.attributes.imageURL == "undefined") || (_local1.attributes.imageURL == "")) {
_local3[_local2]._x = Number(_local1.attributes.x) - Number(baseX);
_local3[_local2]._y = Number(_local1.attributes.y) - Number(baseY);
_local3[_local2].bStyle.gotoAndStop(_local1.attributes.style);
_local3[_local2].binv._width = _local3[_local2].bStyle._width;
_local3[_local2].binv._height = _local3[_local2].bStyle._height;
_local3[_local2]._width = Number(_local1.attributes.width);
_local3[_local2]._height = Number(_local1.attributes.height);
setObjectColor(_local3[_local2].bStyle.bkgd, _local1.attributes.bkgd_color, _local1.attributes.bkgd_alpha);
}
if ((_local1.attributes.bkgd_color == "") || (_local1.attributes.bkgd_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2].bStyle.bkgd, _local1.attributes.bkgd_color, _local1.attributes.bkgd_alpha);
}
if ((_local1.attributes.button_color == "") || (_local1.attributes.button_color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2].bStyle.button, _local1.attributes.button_color, _local1.attributes.button_alpha);
}
_local3[_local2].helpTag = _local1.attributes.helpTag;
}
if (_local2 == "itext") {
if (iTextStyle == "scroller") {
blockMask.gotoAndStop("on");
itextFormat = new TextFormat();
itextFormat.size = Number(_local1.attributes.height);
itextFormat.font = "Arial,Helvetica,sans-serif";
itextFormat.align = "left";
itextFormat.color = "0x" + _local1.attributes.color;
block._x = _local1.attributes.x - baseX;
block._y = _local1.attributes.y - baseY;
iTextCapHeight = Number(_local1.attributes.height) + Number(Number(_local1.attributes.height) * (fontLeading * 6));
createScroller(_local1.attributes.width, _local1.attributes.height, iTextCapHeight);
} else {
_local3.createTextField(_local2, text_level_start++, _local1.attributes.x - baseX, _local1.attributes.y - baseY, _local1.attributes.width, _local1.attributes.height);
itextFormat = new TextFormat();
itextFormat.size = Number(_local1.attributes.height);
itextFormat.font = "Arial,Helvetica,sans-serif";
itextFormat.align = "left";
itextFormat.color = "0x" + _local1.attributes.color;
itext.setNewTextFormat(itextFormat);
itext.background = false;
itext.border = false;
itext.selectable = false;
itext.multiline = false;
itext.autoSize = "none";
itext._height = Number(_local1.attributes.height) + Number(Number(_local1.attributes.height) * (fontLeading * 6));
}
}
if (_local2 == "itime") {
_local3.createTextField(_local2, text_level_start++, _local1.attributes.x - baseX, _local1.attributes.y - baseY, _local1.attributes.width, _local1.attributes.height);
itimeFormat = new TextFormat();
itimeFormat.size = Number(_local1.attributes.height);
itimeFormat.font = "Arial,Helvetica,sans-serif";
itimeFormat.align = "right";
itimeFormat.color = "0x" + _local1.attributes.color;
itime.setNewTextFormat(itimeFormat);
itime.background = false;
itime.border = false;
itime.selectable = false;
itime.multiline = false;
itime.text = "";
itime._height = Number(_local1.attributes.height) + Number(Number(_local1.attributes.height) * (fontLeading * 6));
}
if (_local2 == "startUpText") {
if ((_local1.attributes.theText != "undefined") && (_local1.attributes.theText != "")) {
startUpText = _local1.attributes.theText;
}
}
if (_local2 == "fakeEQ") {
fakeEQ._visible = true;
_local3[_local2].totalBars = _local1.attributes.totalBars;
_local3[_local2].myWidth = Number(_local1.attributes.width);
_local3[_local2].myHeight = Number(_local1.attributes.height);
fakeEQ.initialize();
_local3[_local2]._x = Number(_local1.attributes.x) - Number(baseX);
_local3[_local2]._y = (Number(_local1.attributes.y) - Number(baseY)) + Number(_local1.attributes.height);
if ((_local1.attributes.color == "") || (_local1.attributes.color == "undefined")) {
donothing = true;
} else {
setObjectColor(_local3[_local2], _local1.attributes.color, _local1.attributes.alpha);
}
}
if (_local1.attributes.showhide != "show") {
handleHiddenThings(_local2);
}
_local1 = _local1.nextSibling;
}
initialize();
}
function setObjectColor(theObject, theColor, theAlpha) {
var _local1 = new Color(theObject);
_local1.setRGB("0x" + theColor.toString());
theObject._alpha = Number(theAlpha);
}
function handleHiddenThings(theObjectName) {
var _local1 = theObjectName;
var _local2 = this;
_local2[_local1]._x = bkgd_main._width + 20;
_local2[_local1]._y = bkgd_main._height + 20;
_local2[_local1]._alpha = 0;
tryAndDelete(theName, "deleteme");
if (_local1 == "visualDisplay") {
useVisual = "no";
}
}
timestarted = false;
function ripPlaylist(theWidth_in, theHeight_in) {
var _local3 = Number(theWidth_in);
var theHeight = Number(theHeight_in);
listPlayOpen.displayMax = totalplaylistitems;
var _local2 = (theHeight - ((totalplaylistitems - 1) * pl_item_margin)) / totalplaylistitems;
pl_normFormat.size = _local2 - (_local2 * fontLeading);
var _local1 = 1;
while (_local1 < totalplaylistitems) {
duplicateMovieClip (listPlayOpen.displayitem0, "displayitem" + _local1.toString(), playlist_bkgd_start++);
listPlayOpen["displayitem" + _local1.toString()]._y = (_local2 + pl_item_margin) * _local1;
_local1++;
}
_local1 = 0;
while (_local1 < totalplaylistitems) {
listPlayOpen["displayitem" + _local1.toString()].bkgd._width = _local3;
listPlayOpen["displayitem" + _local1.toString()].bkgd._height = _local2;
listPlayOpen["displayitem" + _local1.toString()].itemClick._width = _local3;
listPlayOpen["displayitem" + _local1.toString()].itemClick._height = _local2;
listPlayOpen["displayitem" + _local1.toString()].textStuff.download._width = _local2;
listPlayOpen["displayitem" + _local1.toString()].textStuff.download._height = _local2;
listPlayOpen["displayitem" + _local1.toString()].textStuff.dirIcon._width = _local2;
listPlayOpen["displayitem" + _local1.toString()].textStuff.dirIcon._height = _local2;
listPlayOpen["displayitem" + _local1.toString()].textStuff.download._x = (_local3 + pl_item_margin) - _local2;
PL_text_theWidth = _local3 - (_local2 * 2);
listPlayOpen["displayitem" + _local1.toString()].textStuff.createTextField("my_itemLabel", text_level_start++, listPlayOpen.displayitem0.textStuff.dirIcon._width, _local2 * (-(fontLeading * 2)), PL_text_theWidth, _local2 + (pl_item_margin * 4));
listPlayOpen["displayitem" + _local1.toString()].textStuff.my_itemLabel.setNewTextFormat(pl_normFormat);
listPlayOpen["displayitem" + _local1.toString()].textStuff.my_itemLabel.background = false;
listPlayOpen["displayitem" + _local1.toString()].textStuff.my_itemLabel.border = false;
listPlayOpen["displayitem" + _local1.toString()].textStuff.my_itemLabel.selectable = false;
listPlayOpen["displayitem" + _local1.toString()].textStuff.my_itemLabel.multiline = false;
_local1++;
}
listPlayOpen._width = _local3;
listPlayOpen._height = theHeight;
setPlaylistColors();
}
function setPlaylistColors() {
var _local1 = 0;
while (_local1 < totalplaylistitems) {
listPlayOpen["displayitem" + _local1.toString()].bkgd._alpha = pl_bg_color_norm_alpha;
var _local2 = new Color(listPlayOpen["displayitem" + _local1.toString()].bkgd);
_local2.setRGB("0x" + pl_bg_color_norm);
listPlayOpen["displayitem" + _local1.toString()].textStuff._alpha = pl_t_color_norm_alpha;
_local2 = new Color(listPlayOpen["displayitem" + _local1.toString()].textStuff);
_local2.setRGB("0x" + pl_t_color_norm);
listPlayOpen["displayitem" + _local1.toString()].itemClick._alpha = pl_bg_color_over_alpha;
_local2 = new Color(listPlayOpen["displayitem" + _local1.toString()].itemClick);
_local2.setRGB("0x" + pl_bg_color_over);
_local1++;
}
}
function setConnectionType(path2app) {
linkinID = path2app;
connectionType = getExtension(path2app);
wimpyAppExt = connectionType;
if ((connectionType == "xml") || (connectionType == "rss")) {
connectionType = "xml";
} else {
connectionType = "php";
}
return(connectionType);
}
function getExtension(theFilename) {
return(unescape(theFilename).split("?")[0].split("/").pop().split(".").pop().toLowerCase());
}
function loadPlaylist(thekind, path2list) {
delete currentTrackMem;
currentTrackMem = new Array();
myKind = thekind;
if (forceXMLplaylist == "yes") {
connectionType = "xml";
} else {
connectionType = setConnectionType(path2list);
}
listPlayOpen.currentSelection = Number(0);
if (myKind == "dirup") {
currentPath2listCheck = libDirCurrent.pop();
if (currentPath2listCheck == currentPath2list) {
currentPath2listCheck = libDirCurrent[libDirCurrent.length - 1];
}
if (libDirCurrent.length < 1) {
currentPath2listCheck = wimpyApp;
}
currentPath2list = currentPath2listCheck;
startPlayingOnload = "no";
if (forceXMLplaylist == "yes") {
connectionType = "xml";
} else {
connectionType = setConnectionType(currentPath2list);
}
}
if (myKind == "dir") {
if (connectionType == "php") {
if (useMysql == "yes") {
currentPath2list = (((((wimpyApp + "?useMysql=") + useMysql) + "&queryValue=") + queryValue) + "&queryWhere=") + queryWhere;
} else {
currentPath2list = (((((wimpyApp + "?action=dir&dir=") + scrubBadGuys(path2list)) + "&getMyid3info=") + getMyid3info) + "&defaultVisualExt=") + defaultVisualExt;
}
} else if (connectionType == "xml") {
currentPath2list = scrubBadGuys(path2list);
}
libDirCurrent.push(currentPath2list);
startPlayingOnload = "no";
}
if (((currentPath2list == null) || (currentPath2list.length == 0)) || (currentPath2list == "")) {
myKind = "startup";
}
if (myKind == "startup") {
if (useEmbeddedPlaylist == true) {
var _local3 = embeddedPlaylistSource.split("|");
tempPHPplaylist.totalitems = _local3.length;
tempPHPplaylist.datasetup = "filename|artist|title|comments|visual";
var _local1 = 0;
while (_local1 < _local3.length) {
var myFileName = _local3[_local1];
var _local2 = unescape(_local3[_local1]);
if (_local2.indexOf("?") > 0) {
AmyFileNameClean = _local2.split("?");
myFileNameClean4name = AmyFileName[0];
}
var tempName = myFileNameClean4name.split("/").pop().split(".")[0];
tempPHPplaylist["item" + _local1] = ((myFileName + "|") + tempName) + "|||";
_local1++;
}
} else if (connectionType == "php") {
if (timeLimiter == "yes") {
if (useMysql == "yes") {
currentPath2list = (((((wimpyApp + "?useMysql=") + useMysql) + "&queryValue=") + queryValue) + "&queryWhere=") + queryWhere;
} else {
currentPath2list = ((((wimpyApp + "?action=getstartapdirlist") + "&getMyid3info=") + getMyid3info) + "&defaultVisualExt=") + defaultVisualExt;
}
} else if (useMysql == "yes") {
currentPath2list = (((((wimpyApp + "?useMysql=") + useMysql) + "&queryValue=") + queryValue) + "&queryWhere=") + queryWhere;
} else {
currentPath2list = ((((wimpyApp + "?action=getstartupdirlist") + "&getMyid3info=") + getMyid3info) + "&defaultVisualExt=") + defaultVisualExt;
}
} else if (connectionType == "xml") {
if (timeLimiter == "yes") {
currentPath2list = scrubBadGuys(wimpyApp);
} else {
currentPath2list = scrubBadGuys(wimpyApp);
}
}
delete libDirCurrent;
Apath2cover = new Array();
libDirCurrent = new Array();
libDirCurrent.push(currentPath2list);
}
thinkerScreen.gotoAndStop("on");
thinker.gotoAndStop("on");
if (useEmbeddedPlaylist == true) {
processPHP();
useEmbeddedPlaylist = false;
} else if (connectionType == "php") {
loadVariables (currentPath2list + authCode, tempPHPplaylist);
} else if (connectionType == "xml") {
delete playlistXML;
playlistXML = new XML();
playlistXML.ignoreWhite = true;
playlistXML.onLoad = processXML;
Acheck4q = unescape(currentPath2list).split("?");
if (Acheck4q.length > 1) {
check4q = currentPath2list;
} else {
check4q = currentPath2list;
}
playlistXML.load(unescape(check4q));
setVisual(currentPath2list);
}
liblen = libDirCurrent.length;
}
function js_appendPlaylist(playlist_or_track_in, my_filename_in, my_artist_in, my_title_in, my_comments_in, my_visual_in) {
var _local1 = new Array();
_local1[listPlayOpen.assocIndexNew(mySQL_col_filename)] = my_filename_in;
_local1[listPlayOpen.assocIndexNew(mySQL_col_artist)] = my_artist_in;
_local1[listPlayOpen.assocIndexNew(mySQL_col_title)] = my_title_in;
_local1[listPlayOpen.assocIndexNew(mySQL_col_visual)] = my_visual_in;
_local1[listPlayOpen.assocIndexNew(mySQL_col_link)] = my_comments_in;
if (playlist_or_track_in == "track") {
_local1[1] = "m";
} else if (playlist_or_track_in == "playlist") {
_local1[1] = "x";
} else {
_local1[1] = "m";
}
_local1[0] = listPlayOpen.Aitemlist.length;
listPlayOpen.Aitemlist[listPlayOpen.Aitemlist.length] = _local1;
listPlayOpen.totalitems = listPlayOpen.Aitemlist.length;
listPlayOpen.scrollPlaylist();
bob32 = _local1.toString();
}
function js_clearPlaylist() {
delete listPlayOpen.Aitemlist;
listPlayOpen.Aitemlist = new Array();
listPlayOpen.directoryOffset = 0;
listPlayOpen.totalitems = 0;
listPlayOpen.makeAlist();
}
function js_gotoTrack(getMe_in) {
getNextSong("useThis", Number(Number(getMe_in) - 1) + Number(listPlayOpen.directoryOffset));
bob56 = Number(getMe_in) + Number(listPlayOpen.directoryOffset);
}
function js_stop() {
stopPlayer();
}
function js_pause() {
scrubber.stopMovie(scrubTarget);
playControl_play.icon.gotoAndStop("play");
playControl_play.playPauseState = "pause";
}
function js_play() {
if (listPlayOpen.Aitemlist.length > 0) {
if (firstTrackPlayed == false) {
getNextSong();
} else {
scrubber.playMovie(scrubTarget);
playControl_play.icon.gotoAndStop("pause");
playControl_play.playPauseState = "play";
}
}
}
function js_prev() {
getNextFromClick = 1;
getNextSong("prev");
}
function js_next() {
getNextFromClick = 1;
getNextSong("next");
}
firstTrackPlayed = false;
function processXML() {
XMLplaylist = this;
XMLtype = XMLplaylist.childNodes[0].nodeName.toString();
if (XMLtype.toLowerCase() == "rss") {
startitem = 0;
var datasetup = "filename|title|comments";
RSStitle = XMLplaylist.childNodes[0].childNodes[0].childNodes[0].nodeName.toString();
channel_length = XMLplaylist.childNodes[0].childNodes[0].childNodes.length;
var _local3 = 0;
while (_local3 < channel_length) {
myNode = XMLplaylist.childNodes[0].childNodes[0].childNodes[_local3];
myName = myNode.nodeName.toString().toLowerCase();
if (myName == "item") {
delete AtrackInfo;
AtrackInfo = new Array();
var _local1 = 0;
while (_local1 < myNode.childNodes.length) {
if (myNode.childNodes[_local1].nodeName.toString().toLowerCase() == "enclosure") {
enclosureFile = myNode.childNodes[_local1].attributes.url;
AtrackInfo[0] = unescape(enclosureFile);
}
if (myNode.childNodes[_local1].nodeName.toString().toLowerCase() == "title") {
AtrackInfo[1] = unescape(myNode.childNodes[_local1].childNodes);
bob45 = unescape(myNode.childNodes[_local1].childNodes);
}
if (myNode.childNodes[_local1].nodeName.toString().toLowerCase() == "link") {
AtrackInfo[2] = unescape(myNode.childNodes[_local1].childNodes);
}
_local1++;
}
if (enclosureFile.length > 4) {
if (getExtension(enclosureFile) == "mp3") {
tempXMLplaylist["item" + startitem.toString()] = AtrackInfo.join("|");
startitem++;
}
}
}
_local3++;
}
var totalitems = startitem;
} else {
var totalitems = XMLplaylist.childNodes[0].childNodes.length;
var dataLength = XMLplaylist.childNodes[0].childNodes[0].childNodes.length;
var Adata = new Array();
var _local3 = 0;
while (_local3 < dataLength) {
Adata.push(XMLplaylist.childNodes[0].childNodes[0].childNodes[_local3].nodeName.toString());
_local3++;
}
var datasetup = Adata.join("|");
_local3 = 0;
while (_local3 < totalitems) {
delete AtrackInfo;
AtrackInfo = new Array();
var _local2 = 0;
while (_local2 < dataLength) {
AtrackInfo.push(unescape(XMLplaylist.childNodes[0].childNodes[_local3].childNodes[_local2].childNodes.toString()));
_local2++;
}
tempXMLplaylist["item" + _local3.toString()] = AtrackInfo.join("|");
_local3++;
}
}
tempXMLplaylist.totalitems = totalitems;
tempXMLplaylist.datasetup = datasetup;
processPlaylist(tempXMLplaylist);
}
function processPHP() {
processPlaylist(tempPHPplaylist);
}
function processPlaylist(itemsInMC_IN) {
if (Number(itemsInMC_IN.totalitems) < 1) {
if ((authFirstRun == 1) && (authFirstSID != itemsInMC_IN.s)) {
infoDisplayer.theMessage = "ERROR: Your browser has disabled cookies";
loadError = "error";
}
}
_root.s = itemsInMC_IN.s;
_root.auth = itemsInMC_IN.auth;
if ((itemsInMC_IN.auth == "x") && (authFirstRun == 0)) {
authCode = "&s=" + _root.s;
loadPlaylist("startup", wimpyApp);
authFirstRun = 1;
authFirstSID = _root.s;
} else {
see = totalitems;
var totalitems = itemsInMC_IN.totalitems;
var datasetup = itemsInMC_IN.datasetup;
loadVisual(itemsInMC_IN.visualURL);
delete AitemlistMedia;
AitemlistMedia = new Array();
delete Amedia;
Amedia = new Array();
var AitemlistDirectory = new Array();
var AitemlistisCollection = new Array();
delete listPlayOpen.Aitemlist;
listPlayOpen.Aitemlist = new Array();
listPlayOpen.totalitems = totalitems;
listPlayOpen.datasetup = datasetup;
listPlayOpen.AdatasetupSource = datasetup.split("|");
listPlayOpen.Adatasetup = datasetup.split("|");
var AtempA;
var _local1;
var filepathB;
var fakename;
var fileExtension;
var _local3;
var isMedia;
var isCollection;
AmediaTypes = mediaTypes.split(",");
var i = 0;
while (i < totalitems) {
_local1 = itemsInMC_IN["item" + i].split("|");
filepathA = _local1[listPlayOpen.assocIndexSource(mySQL_col_filename)].split("/");
filepathB = filepathA[filepathA.length - 1].split(".");
isMedia = false;
isCollection = false;
if (filepathB.length > Number(1)) {
fileExtension = filepathB.pop();
var _local2 = 0;
while (_local2 < AmediaTypes.length) {
if (fileExtension == AmediaTypes[_local2]) {
isMedia = true;
}
_local2++;
}
if (isMedia == false) {
isCollection = true;
}
}
fakename = stringReplace(filepathB.join("."), "_", " ");
_local3 = Number(listPlayOpen.assocIndexSource(mySQL_col_title));
if (((_local1[_local3] == "undefined") || (_local1[_local3] == "")) || (_local1[_local3] == " ")) {
_local1[_local3] = fakename;
} else {
_local1[_local3] = stringReplace(_local1[_local3], "_", " ");
}
if (isMedia) {
_local1.unshift("m");
AitemlistMedia.push(_local1);
} else {
_local1.unshift("d");
AitemlistDirectory.push(_local1);
}
i++;
}
listPlayOpen.Adatasetup.unshift("entity");
listPlayOpen.Adatasetup.unshift("flashlistID");
listPlayOpen.directoryOffset = 0;
var i = 0;
while (i < AitemlistDirectory.length) {
AitemlistDirectory[i].unshift(listPlayOpen.directoryOffset++);
listPlayOpen.Aitemlist[listPlayOpen.Aitemlist.length] = AitemlistDirectory[i];
i++;
}
var i = 0;
while (i < AitemlistMedia.length) {
AitemlistMedia[i].unshift(Number(listPlayOpen.directoryOffset) + Number(i));
listPlayOpen.Aitemlist[listPlayOpen.Aitemlist.length] = AitemlistMedia[i];
Amedia[Amedia.length] = AitemlistMedia[i];
i++;
}
listPlayOpen.makeAlist();
thinkerScreen.gotoAndStop("off");
thinker.gotoAndStop("off");
playlistCreated = 1;
if (shuffleList == "yes") {
shufflePlaylist();
}
createAvailableTracks();
currentTrack = listPlayOpen.directoryOffset;
getNextSong("current");
if (loadError == "error") {
infoDisplayer.gotoAndStop("error");
} else {
infoDisplayer.gotoAndStop("off");
}
infoDisplayer.wimpyInfo.text = "";
}
}
authFirstRun = 0;
function getID3infoFromFlash() {
var _local1 = myInputSound.id3.comment;
if ((((_local1 != "") || (_local1 != "undefined")) || (_local1 != undefined)) || (_local1 != null)) {
theTrackLink = _local1;
setGraphicLink();
}
}
function launchTrack() {
stopAllSounds();
delete myInputSound;
delete scrubTarget;
_soundbuftime = bufferAudio;
myInputSound = new Sound(tempPHPplaylist);
mySoundFilename = scrubBadGuys(listPlayOpen.Aitemlist[currentTrack][listPlayOpen.assocIndexNew(mySQL_col_filename)]);
mySoundFilename_base = mySoundFilename;
if ((serveMP3 == "yes") && (baseAppCon != "xml")) {
mySoundFilename = ((wimpyApp + "?action=serveMP3&theFile=") + mySoundFilename) + authCode;
}
var _local2 = getExtension(currentPath2list);
if (((_local2 == "xml") || (forceXMLplaylist == "yes")) || (useEmbeddedPlaylist == true)) {
mySoundFilename = unescape(mySoundFilename);
}
if (getMyid3info == "yes") {
}
myInputSound.loadSound(mySoundFilename, true);
if (trackPlays.length > 2) {
trackPlayPingURL = (trackPlays + "?action=trackPlays") + authCode;
var _local1 = 0;
while (_local1 < listPlayOpen.Adatasetup.length) {
trackPlayPingURL = trackPlayPingURL + ((("&" + escape(listPlayOpen.Adatasetup[_local1])) + "=") + escape(ApackForTrackPlays[_local1]));
_local1++;
}
loadVariables (trackPlayPingURL, bkgd_main);
}
myInputSound.onSoundComplete = continuePlayingTracks;
myInputSound.setVolume(currentVolume);
scrubTarget = myInputSound;
scrubTarget.start();
playControl_play.gotoAndStop("stop");
scrub_line.preloader.gotoAndStop("on");
scrubber.gotoAndStop("on");
scrubber.EQpause = false;
scrubTargetState = "play";
setVoteInfo();
firstTrackPlayed = true;
}
function stopPlayer() {
scrubber.stopMovie(scrubTarget);
stopAllSounds();
trackLaunched = false;
playControl_play.icon.gotoAndStop("play");
playControl_play.playPauseState = "pause";
playControl_play.gotoAndStop("launch");
trackTotalTime = "";
scrubber.gotoAndStop("off");
scrubber.stopMovie(scrubTarget);
fakeEQ.powerOFF();
scrubber._x = scrub_line._x;
theTrackArtist = "";
theTrackTitle = "";
theTrackTimeNice = "";
itime.text = "";
currentTrack = Number(listPlayOpen.directoryOffset);
listPlayOpen.currentSelection = currentTrack;
listPlayOpen.scroll2inView(currentTrack);
}
function getNextSong(theType, getMe) {
var _local1 = theType;
popBalloon();
currentTrack = Number(currentTrack);
if (startPlayingOnload == "yes") {
if ((loopPlaylist == "off") && (currentTrack == (listPlayOpen.Aitemlist.length - 1))) {
haltPlayback = 1;
} else {
haltPlayback = 0;
}
if (getNextFromClick == 1) {
haltPlayback = 0;
}
if (_local1 == "current") {
currentTrack = currentTrack;
haltPlayback = 0;
}
if (_local1 == "next") {
currentTrack++;
if (currentTrack >= listPlayOpen.Aitemlist.length) {
currentTrack = listPlayOpen.directoryOffset;
}
}
if (randomOnLoad == "yes") {
currentTrack = selectRandomTrack();
randomOnLoad = "done";
haltPlayback = 0;
}
if (_local1 == "prev") {
if (prevTurn == "A") {
prevTimerA = getTimer();
timediff = prevTimerA - prevTimerB;
prevTurn = "B";
} else {
prevTimerB = getTimer();
timediff = prevTimerB - prevTimerA;
prevTurn = "A";
}
if (timediff < 3000) {
currentTrack--;
if (currentTrack < Number(listPlayOpen.directoryOffset)) {
currentTrack = listPlayOpen.Aitemlist.length - 1;
}
} else {
currentTrack = currentTrack;
}
}
if (startOnTrack == "yes") {
currentTrack = (Number(listPlayOpen.directoryOffset) + Number(_root.startOnTrack)) - 1;
startOnTrack = "no";
haltPlayback = 0;
}
if (_local1 == "useThis") {
currentTrack = getMe;
}
if (haltPlayback == 1) {
stopPlayer();
} else {
if (((currentTrack == "") || (Number(currentTrack) < 0)) || (isNaN(currentTrack))) {
currentTrack = listPlayOpen.directoryOffset;
}
if (currentTrack < Number(listPlayOpen.directoryOffset)) {
currentTrack = listPlayOpen.directoryOffset;
}
if (currentTrack > Number(listPlayOpen.Aitemlist.length - 1)) {
currentTrack = listPlayOpen.Aitemlist.length - 1;
}
listPlayOpen.currentSelection = currentTrack;
ripInfo();
infoDisplayer.tick = 0;
launchTrack();
playControl_play.icon.gotoAndStop("pause");
playControl_play.playPauseState = "play";
trackLaunched = true;
}
} else {
trackLaunched = false;
startPlayingOnload = "yes";
playControl_play.gotoAndStop("launch");
}
getNextFromClick = 0;
}
function continuePlayingTracks() {
if (loopPlaylist == "one") {
getNextSong("useThis", currentTrack);
} else if (autoAdvance == "yes") {
getNextSong("next");
} else {
stopPlayer();
}
}
function secondsToNiceTime(seconds_in) {
if (seconds_in > 0) {
time_format = (seconds_in / 1000) / 60;
TF = time_format.toString().split(".");
if (TF[0] > 0) {
TF_min = TF[0];
} else {
TF_min = "0";
}
TF_sec = Math.ceil(Number("0." + TF[1]) * 60);
if (isNaN(TF_min) || (isNaN(TF_sec))) {
theTrackTimeNice = "";
} else {
if (TF_sec < 10) {
TF_sec = "0" + TF_sec;
}
theTrackTimeNice = (((" (" + TF_min.toString()) + ":") + TF_sec.toString()) + ") ";
}
} else {
theTrackTimeNice = "";
}
}
function ripInfo() {
block.textA._x = 0;
block.textB._x = 1000;
block.textA.text = "";
block.textB.text = "";
listPlayOpen.scroll2inView(currentTrack, "playing");
theTrackFilename = stripWhiteSpace(listPlayOpen.Aitemlist[currentTrack][listPlayOpen.assocIndexNew(mySQL_col_filename)]);
theTrackArtist = stripWhiteSpace(listPlayOpen.Aitemlist[currentTrack][listPlayOpen.assocIndexNew(mySQL_col_artist)]);
theTrackTitle = stripWhiteSpace(listPlayOpen.Aitemlist[currentTrack][listPlayOpen.assocIndexNew(mySQL_col_title)]);
theTrackAlbum = stripWhiteSpace(listPlayOpen.Aitemlist[currentTrack][listPlayOpen.assocIndexNew(mySQL_col_album)]);
if (timeLimiter == "yes") {
theTrackTime = Number(timeLimiterTime);
} else {
theTrackTime = stripWhiteSpace(listPlayOpen.Aitemlist[currentTrack][listPlayOpen.assocIndexNew(mySQL_col_seconds)]);
}
theTrackTimeNice = secondsToNiceTime(Math.ceil(stripWhiteSpace(listPlayOpen.Aitemlist[currentTrack][listPlayOpen.assocIndexNew(mySQL_col_seconds)]) / 60));
theTrackBitrate = stripWhiteSpace(listPlayOpen.Aitemlist[currentTrack][listPlayOpen.assocIndexNew(mySQL_col_bitrate)]);
theTrackGenre = stripWhiteSpace(listPlayOpen.Aitemlist[currentTrack][listPlayOpen.assocIndexNew(mySQL_col_genre)]);
theTrackTrack = stripWhiteSpace(listPlayOpen.Aitemlist[currentTrack][listPlayOpen.assocIndexNew(mySQL_col_track)]);
theTrackFilesize = stripWhiteSpace(listPlayOpen.Aitemlist[currentTrack][listPlayOpen.assocIndexNew(mySQL_col_filesize)]);
theTrackFlashID = stripWhiteSpace(listPlayOpen.Aitemlist[currentTrack][listPlayOpen.assocIndexNew("flashlistID")]);
theTrackVisual = stripWhiteSpace(listPlayOpen.Aitemlist[currentTrack][listPlayOpen.assocIndexNew(mySQL_col_visual)]);
theTrackLink = stripWhiteSpace(listPlayOpen.Aitemlist[currentTrack][listPlayOpen.assocIndexNew(mySQL_col_link)]);
theTrackFileType = stripWhiteSpace(listPlayOpen.Aitemlist[currentTrack][listPlayOpen.assocIndexNew("entity")]);
if (theTrackVisual.length > 5) {
loadVisual(theTrackVisual);
} else {
loadVisual(defaultImage);
}
setGraphicLink();
ApackForTrackPlays = listPlayOpen.Aitemlist[currentTrack];
}
prevTurn = "A";
haltPlayback = 0;
currentTrack = 0;
function shuffleArrayReturn(Ain) {
var _local2 = new Array();
var _local3 = Ain.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1] = Ain[_local1];
_local1++;
}
var N = new Array();
_local1 = 0;
while (_local1 < _local3) {
N.push(_local2.splice(Math.floor(Math.random() * _local2.length), 1));
_local1++;
}
return(N);
}
function shufflePlaylist() {
if (playlistCreated == 1) {
var _local2 = listPlayOpen.directoryOffset;
var AtempA = listPlayOpen.Aitemlist.splice(_local2);
var _local1 = shuffleArrayReturn(Amedia);
i = 0;
while (i < _local1.length) {
if (_local1[i][0][0] == listPlayOpen.currentSelection) {
currentTrack = _local2;
}
_local1[i][0][0] = _local2;
listPlayOpen.Aitemlist.push(_local1[i][0]);
_local2++;
i++;
}
listPlayOpen.scroll2inView(currentTrack, "playing");
}
}
function shuffleRestore() {
var _local1 = listPlayOpen.directoryOffset;
var AtempA = listPlayOpen.Aitemlist.splice(_local1);
var _local2 = Amedia;
i = 0;
while (i < _local2.length) {
if (_local2[i][0] == listPlayOpen.currentSelection) {
currentTrack = _local1;
}
listPlayOpen.Aitemlist.push(_local2[i]);
listPlayOpen.Aitemlist[_local1][0] = _local1;
_local1++;
i++;
}
listPlayOpen.scroll2inView(currentTrack, "playing");
}
playlistCreated = 0;
function preloadVisual() {
var _local1 = visualDisplay.pic.getBytesTotal();
var _local3 = visualDisplay.pic.getBytesLoaded();
var _local2 = _local1 / _local3;
if (Number(_local2) == Number(1)) {
timeA_coverart = getTimer();
if (timestarted_coverart == false) {
timeB_coverart = getTimer();
timestarted_coverart = true;
}
if ((timeA_coverart - timeB_coverart) > 500) {
thinker4visual.gotoAndStop("off");
setupVisual();
timestarted_coverart = false;
}
}
}
function loadVisual(thePath) {
var _local1 = thePath;
if (useVisual == "yes") {
if ((defaultImage.length > 5) && (defaultImageDoneLoading == false)) {
loadMovie (unescape(defaultImage).split("?")[0], visualDisplay.pic);
defaultImageDoneLoading = true;
} else if (_local1.length > 5) {
loadMovie (unescape(_local1).split("?")[0], visualDisplay.pic);
thinker4visual.gotoAndStop("on");
}
}
}
function setupVisual() {
visualDisplay.pic._width = visualDisplay.bkgd._width;
visualDisplay.pic._height = visualDisplay.bkgd._height;
setGraphicLink();
visualDisplay.pic._x = visualDisplay.bkgd._x;
visualDisplay.pic._y = visualDisplay.bkgd._y;
}
function directLink2coverArt(path2cover) {
loadMovie (path2cover, visualDisplay.pic);
}
function setGraphicLink() {
if (theTrackLink.length > 2) {
visualDisplay.urlLink.gotoAndStop("on");
} else {
visualDisplay.urlLink.gotoAndStop("off");
}
}
function getTrackLink() {
if (theTrackLink.length > 2) {
getURL (unescape(theTrackLink), "_blank");
}
}
function loadCoverArt(theDirUrl, extendedPath, theKind) {
var _local2 = "yes";
if (theKind == "dirpath") {
path2cover = ((theDirUrl + defaultVisualName) + ".") + defaultVisualExt;
_local2 = "no";
}
if (_local2 == "yes") {
var _local3 = theDirUrl.split("?");
var _local1 = _local3[0].split("/");
_local1.pop();
if (extendedPath.length > 1) {
_local1[_local1.length] = (((extendedPath + "/") + defaultVisualName) + ".") + defaultVisualExt;
} else {
_local1[_local1.length] = (defaultVisualName + ".") + defaultVisualExt;
}
path2cover = _local1.join("/");
Apath2cover.push(path2cover);
}
loadVisual(path2cover);
}
function setVisual(theFilename) {
var _local1 = theFilename.split(".");
_local1.pop();
_local1[_local1.length] = defaultVisualExt;
loadVisual(_local1.join("."));
}
defaultImageDoneLoading = false;
function createScroller(theWidth, theHeight, iTextCapHeight) {
infoDisplayPrint();
block.createTextField("textA", text_level_start++, 0, 0, 20, 20);
block.textA.setNewTextFormat(itextFormat);
block.textA.background = false;
block.textA.border = false;
block.textA.selectable = false;
block.textA.multiline = false;
block.textA.autoSize = true;
block.textA._height = iTextCapHeight;
block.createTextField("textB", text_level_start++, 1000, 0, block.textA._width, 20);
block.textB.setNewTextFormat(itextFormat);
block.textB.background = false;
block.textB.border = false;
block.textB.selectable = false;
block.textB.multiline = false;
block.textB.autoSize = true;
block.textB._height = iTextCapHeight;
blockMask._x = block._x;
blockMask._y = block._y;
blockMask._width = theWidth;
blockMask._height = theHeight + 100;
block.setMask(blockMask);
}
function infoDisplayPrint() {
if (timeLimiter == "yes") {
theTrackTitle = "DEMO";
}
if (iTextStyle == "scroller") {
if (showClickToPlay == "yes") {
infoDisplay = startUpText;
} else if ((theTrackTitle == "") || (theTrackTitle == null)) {
infoDisplay = startUpText;
} else if (theTrackTitle == theTrackArtist) {
infoDisplay = theTrackTitle;
} else if ((theTrackArtist == "") || (theTrackArtist == null)) {
infoDisplay = theTrackTitle;
} else {
infoDisplay = (theTrackArtist + " - ") + theTrackTitle;
}
block.textA.text = infoDisplay;
if (block.textA._width > blockMask._width) {
printInfoText = infoDisplay + " *** ";
block.textA.text = printInfoText;
block.textB.text = printInfoText;
infoDisplayer.tick++;
if (infoDisplayer.tick > delayTicks) {
if (block.textA._x <= 0) {
block.textA._x = block.textA._x - maxDisplayTime;
block.textB._x = block.textA._width + block.textA._x;
}
if (block.textA._x < (-block.textA._width)) {
block.textA._x = block.textB._width + block.textB._x;
}
if (block.textB._x <= 0) {
block.textB._x = block.textB._x - maxDisplayTime;
block.textA._x = block.textB._width + block.textB._x;
}
if (block.textB._x < (-block.textB._width)) {
block.textB._x = block.textA._width + block.textA._x;
}
}
} else {
block.textA._x = 0;
block.textB.text = "";
}
} else {
if (timeLimiter == "yes") {
theTrackTitle = "DEMO";
}
if (showClickToPlay == "yes") {
infoDisplay = startUpText;
} else if ((theTrackTitle == "") || (theTrackTitle == null)) {
infoDisplay = startUpText;
} else if (theTrackTitle == theTrackArtist) {
infoDisplay = theTrackTitle;
} else if ((theTrackArtist == "") || (theTrackArtist == null)) {
infoDisplay = theTrackTitle;
} else {
if (infoDisplayer.tick < maxDisplayTime) {
infoDisplay = theTrackTitle;
} else {
infoDisplay = theTrackArtist;
}
if (infoDisplayer.tick > (maxDisplayTime * 2)) {
infoDisplayer.tick = 0;
}
infoDisplayer.tick++;
}
itext.text = infoDisplay;
}
}
delayTicks = 20;
if (iTextStyle == "scroller") {
maxDisplayTime = infoDisplayTime / 3;
} else {
maxDisplayTime = infoDisplayTime * 24;
}
function setVoteInfo() {
delete voteSender;
delete voteReceiver;
voteSender = new LoadVars();
voteReceiver = new LoadVars();
voteReceiver.onLoad = function (success) {
if (voteReceiver.retval == "ok") {
showDialog("Vote received");
infoDisplayer.gotoAndStop("off");
} else {
showDialog("Could not process your vote a this time, try again later.");
}
};
voteSender.theTrackFilename = theTrackFilename;
voteSender.theTrackArtist = theTrackArtist;
voteSender.theTrackTitle = theTrackTitle;
voteSender.theTrackTime = theTrackTime;
voteSender.action = "vote";
voteSender.theTrackGenre = theTrackGenre;
voteSender.theTrackVisual = theTrackVisual;
voteSender.theTrackLink = theTrackLink;
}
function showDialog(theString) {
doBalloon(theString);
}
function vote4track(theID) {
showDialog("Voting in progress...");
if (theTrackFilename != "") {
noVote = false;
var _local1 = 0;
while (_local1 < myVotes.length) {
if (myVotes[_local1] == theTrackFilename) {
noVote = true;
}
_local1++;
}
if (noVote == false) {
voteRet = "yo";
voteSender.sendAndLoad(voteScript, voteReceiver);
myVotes.push(theTrackFilename);
} else {
showDialog("You've already voted for this track");
}
} else {
donothing = 1;
}
}
myVotes = new Array();
function setDefaultVolume() {
var _local1 = currentVolume / 100;
if (volVert == true) {
var _local2 = 1 - _local1;
vol_handle._x = (volControl._x + (volControl._width / 2)) - (vol_handle._width / 2);
vol_handle._y = volControl._y + (_local2 * (volControl._height - vol_handle._height));
} else {
vol_handle._y = (volControl._y + (volControl._height / 2)) - (vol_handle._height / 2);
vol_handle._x = volControl._x + (_local1 * (volControl._width - vol_handle._width));
}
volumeSlide(100 - (_local1 * 100));
scrubVolume();
}
function volToggleMute() {
if (volVert == true) {
if (mute == false) {
muteRememberX = vol_handle._y;
vol_handle._y = (volControl._y + volControl._height) - vol_handle._height;
mute = true;
} else {
vol_handle._y = muteRememberX;
mute = false;
}
} else if (mute == false) {
muteRememberX = vol_handle._x;
vol_handle._x = volControl._x;
mute = true;
} else {
vol_handle._x = muteRememberX;
mute = false;
}
if (mute == true) {
toggleMuteMC.icon.icon_on._visible = true;
toggleMuteMC.icon.icon_off._visible = false;
} else {
toggleMuteMC.icon.icon_on._visible = false;
toggleMuteMC.icon.icon_off._visible = true;
}
scrubVolume();
}
function volumeSlide(theInput) {
if (volVert == true) {
currentVolume = theInput;
} else {
currentVolume = 100 - theInput;
}
if (currentVolume > 99) {
currentVolume = 100;
}
if (currentVolume < 1) {
currentVolume = 0;
}
myInputSound.setVolume(currentVolume);
}
function scrubVolume() {
if (volVert == true) {
var _local1 = (vol_handle._y - volControl._y) / (volControl._height - vol_handle._height);
} else {
var _local1 = (vol_handle._x - volControl._x) / (volControl._width - vol_handle._width);
}
volumeSlide(100 - (_local1 * 100));
}
function slide2point() {
if (volVert == true) {
vol_handle._y = this._ymouse;
} else {
vol_handle._x = this._xmouse;
}
scrubVolume();
}
function initializeBalloons() {
if (balloonState == "on") {
infoDisplayer.infoStuff.ballOn.gotoAndStop("on");
infoDisplayer.infoStuff.ballOff.gotoAndStop("off");
} else {
infoDisplayer.infoStuff.ballOn.gotoAndStop("off");
infoDisplayer.infoStuff.ballOff.gotoAndStop("on");
}
}
function toggleBalloons(who) {
if (who == "on") {
infoDisplayer.infoStuff.ballOn.gotoAndStop("on");
infoDisplayer.infoStuff.ballOff.gotoAndStop("off");
balloonState = "on";
balloons.gotoAndStop("on");
} else {
infoDisplayer.infoStuff.ballOn.gotoAndStop("off");
infoDisplayer.infoStuff.ballOff.gotoAndStop("on");
balloonState = "off";
balloons.gotoAndStop("off");
popBalloon();
}
}
function popBalloon() {
balloons.atest.text = "";
balloons.atest.background = false;
balloons.atest.border = false;
}
function doBalloon(theMessage) {
var _local1 = this;
if (setBallonsHigh != true) {
duplicateMovieClip (l_high, "l_text_highest", 9000);
balloons.swapDepths(l_text_highest);
setBallonsHigh = true;
}
balloons.gotoAndStop("on");
balloons.atest.text = (" " + theMessage) + " ";
balloons.atest.background = true;
balloons.atest.backgroundColor = 16777164 /* 0xFFFFCC */;
balloons.atest.border = true;
balloons.atest.borderColor = 6710886 /* 0x666666 */;
balloons.atest.autoSize = "left";
if (((balloons._width + 13) + _local1._xmouse) > myStage_w) {
balloons._x = (myStage_w - balloons._width) - 18;
} else {
balloons._x = _local1._xmouse + 13;
}
if (((Number(balloons._height) + Number(13)) + Number(_local1._ymouse)) > myStage_h) {
balloons._y = (myStage_h - balloons._height) - 18;
} else {
balloons._y = _local1._ymouse + 13;
}
}
function makeTextBlock(theMessage, fontSize, x, y, autoSizeIt, theWidth, theHeight, theAlign, fontColor, bkgdColor, borderColor) {
var _local1 = this;
if (Number(theWidth) < 1) {
theWidthMake = 100;
autoSizeIt = "yes";
} else {
theHeightMake = theWidth;
}
if (Number(theHeight) < 1) {
theHeightMake = 100;
autoSizeIt = "yes";
} else {
theHeightMake = theHeight;
}
if (text_level_start < 1) {
text_level_start = 0;
}
var _local2 = "makeText100" + (text_level_start++);
_local1.createTextField(_local2, text_level_start, x, y, theWidthMake, theHeightMake);
var _local3 = "makeTextFormat" + text_level_start;
_local1[_local3] = new TextFormat();
_local1[_local3].size = fontSize;
_local1[_local3].font = "Arial,Helvetica,sans-serif";
_local1[_local3].align = theAlign;
if (((fontColor == "no") || (fontColor == "")) || (fontColor == null)) {
fontColor = "000000";
}
_local1[_local3].color = "0x" + fontColor;
_local1[_local2].setNewTextFormat(_local1[_local3]);
if (((bkgdColor == "no") || (bkgdColor == "")) || (bkgdColor == null)) {
_local1[_local2].background = false;
} else {
_local1[_local2].backgroundColor = "0x" + bkgdColor;
_local1[_local2].background = true;
}
if (((borderColor == "no") || (borderColor == "")) || (borderColor == null)) {
_local1[_local2].border = false;
} else {
_local1[_local2].borderColor = "0x" + borderColor;
_local1[_local2].border = true;
}
_local1[_local2].selectable = false;
_local1[_local2].multiline = false;
if (autoSizeIt == "yes") {
_local1[_local2].autoSize = true;
}
_local1[_local2]._height = theHeight;
_local1[_local2]._width = theWidth;
_local1[_local2].text = theMessage;
}
function fadeBalloon() {
balloons.clicker++;
if (balloons.clicker > (ballonTime - 10)) {
balloons.alphaClick = balloons.alphaClick - 10;
balloons._alpha = balloons.alphaClick;
if (balloons.clicker > ballonTime) {
popBalloon();
balloons.clicker = 0;
balloons.alphaClick = 100;
balloons.gotoAndStop("off");
}
} else {
balloons.alphaClick = 100;
balloons._alpha = balloons.alphaClick;
}
}
Instance of Symbol 94 MovieClip "scrubber" in Symbol 232 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent.infoDisplayPrint();
if (scrubberState == "on") {
if (_parent.scrubDirection != "scrub") {
scrubHandlePlay(_parent.scrubTarget);
}
}
}
Instance of Symbol 111 MovieClip "listPlayOpen" in Symbol 232 MovieClip Frame 2
onClipEvent (load) {
function clickActionSingleClick(flashlistID, entity, filename) {
var _local1 = entity;
var _local2 = _parent;
if ((_local1 == "m") || (_local1 == "v")) {
currentSelection = flashlistID;
_local2.getNextFromClick = 1;
_local2.getNextSong("useThis", flashlistID);
}
if ((_local1 == "d") || (_local1 == "x")) {
_local2.loadPlaylist("dir", filename);
}
}
}
Instance of Symbol 150 MovieClip in Symbol 232 MovieClip Frame 2
onClipEvent (load) {
if (_parent.timeLimiter == "yes") {
this.gotoAndStop("on");
}
}
Instance of Symbol 223 MovieClip "tempPHPplaylist" in Symbol 232 MovieClip Frame 2
onClipEvent (data) {
_parent.processPHP();
}
Instance of Symbol 229 MovieClip "block" in Symbol 232 MovieClip Frame 2
/* no clip actions */
Symbol 232 MovieClip Frame 3
stop();
toggleVoteMC.gotoAndStop("off");
fakeEQ.gotoAndStop("off");
fakeEQ._visible = false;
if (useSkin == false) {
setDefaultSkin();
} else {
var mySkin = new XML();
mySkin.ignoreWhite = true;
mySkin.onLoad = function (success) {
setStartupSizers();
};
setSkinRoot();
mySkin.load(wimpySkin);
setSkinLoadTimer();
}
baseAppCon = setConnectionType(wimpyApp);