Symbol 9 MovieClip [mc_volbutton] Frame 1
#initclip 9
Object.registerClass("mc_volbutton", iButton);
#endinitclip
this.bluedisc._alpha = 0;
stop();
Symbol 15 MovieClip Frame 1
stop();
Symbol 16 MovieClip [mc_AppleButton] Frame 1
#initclip 7
Object.registerClass("mc_AppleButton", iButton);
#endinitclip
Symbol 22 MovieClip [mc_buttonArray] Frame 1
mc_tippedCursor._visible = false;
mc_play.mc = mc_tippedCursor;
mc_web.mc = mc_tippedCursor;
mc_vol.mc = mc_tippedCursor;
Symbol 27 MovieClip [FMP256] Frame 1
#initclip 8
Object.registerClass("FMP256", FMP256core4S);
#endinitclip
function setTitle() {
mc_LCD.t1.text = scrolltext(nFlip);
}
function dFlip() {
nFlip = 1 - nFlip;
}
function disableMe(msg) {
this.isEnabled = false;
mc_LCD.t1.text = msg;
}
function versionKill() {
disableMe("You need to upgrade your Flash Player plugin - please click here");
this.onRelease = function () {
getURL ("http://www.macromedia.com/go/getflashplayer/");
};
stop();
}
function configureUI() {
var _local1 = (isPaused ? "play_b" : "pause");
var _local2 = arrTIPS[(isPaused ? 0 : 1)];
mc_BA.mc_play.setIT(_local1, _local2);
}
function ticker() {
if (isSliding) {
var _local1 = Math.round((mc_BA.mc_vol._x - volDisplay[0]) * volScale);
setGlobalVolume(_local1);
}
}
var arrTIPS = new Array("Play", "Pause", "Help/Info", "Volume", "Website");
var lblSTART = "Stream connected: Press PLAY";
Stage.showMenu = false;
Stage.align = "TL";
Stage.scaleMode = "noScale";
var lblWAIT = "Web Radio Player";
var _uarr = _level0._url.split("?", 1);
var _configFile = (_uarr[0].slice(0, -3) + "xml");
if (typeof(_uarr[1]) == "string") {
var _uparr = _uarr[1].split("&");
var i = 0;
while (i < _uparr.length) {
var token = _uparr[i].split("=");
if (token[0].toLowerCase() == "config") {
_configFile = token[1];
}
i++;
}
}
if (typeof(_level0.config) == "string") {
_configFile = _level0.config;
}
var _cache = ((_level0.cache == 1) ? true : false);
var SCPT = System.capabilities.playerType;
var strDNeXurl = "http://www.draftlight.net/dnex/mp3player/";
var _cacheXML = (_cache || (_level0._url.slice(0, 4) == "file"));
var FMPlistener = new Object();
var isSliding = false;
var version_ok = false;
var nFlip = 0;
var int_Flip;
var int_Ticker;
var int_Scroller;
var _sdata;
var strScrollText = "";
var version_sys = System.capabilities.version;
if (typeof(version_sys) == "string") {
var ava = version_sys.split(" ");
var avn = ava[1].split(",");
version_ok = Number(avn[0]) >= 8;
}
var volDisplay = new Array(67, 14, 30);
var volScale = (100 / volDisplay[2]);
var thisWidth = Stage.width;
var displayLine = true;
var sWidth = 180;
var sHeight = 70;
var tf_lcd = new TextFormat("_sans", 10);
var bfilter = (new flash.filters.BlurFilter(10, 0, 20));
var steel = (new flash.display.BitmapData(sWidth, 100, false, 13421772));
var xy_LCD = (new flash.geom.Point(10, 45));
var wh_LCD = (new flash.geom.Point(160, 20));
this.createEmptyMovieClip("mc_BG", this.getNextHighestDepth());
steel.noise(128, 100, 200, 1, true);
steel.applyFilter(steel, steel.rectangle, new flash.geom.Point(0, 0), bfilter);
FMPUtils.bevelRectBitmap(mc_BG, steel, 0, 0, sWidth - 1, sHeight - 1, 2105376, 14540253, 10, 100);
this.createEmptyMovieClip("mc_LCD", this.getNextHighestDepth());
this.attachMovie("mc_branding", "mc_BRAND", this.getNextHighestDepth(), {_x:55, _y:32});
mc_LCD.attachMovie("mc_lcdPanel", "mc_panel", this.getNextHighestDepth());
this.attachMovie("mc_buttonArray", "mc_BA", this.getNextHighestDepth());
FMPUtils.setXY(mc_LCD, xy_LCD);
mc_LCD.mc_panel._width = wh_LCD.x;
mc_BA.mc_vol.tip = arrTIPS[3];
mc_BA.mc_play.setIT("play_g", arrTIPS[0]);
mc_BA.mc_web.setIT("help", arrTIPS[2]);
mc_BA.mc_web.setOffset(-60, 0);
mc_LCD.createTextField("t1", mc_LCD.getNextHighestDepth(), 5, 1, wh_LCD.x - 5, 17);
mc_LCD.t1.setNewTextFormat(tf_lcd);
mc_LCD.t1.text = lblWAIT;
FMPlistener.noCONFIG = function (_file) {
disableMe("No Configuration File");
};
FMPlistener.badCONFIG = function (_file) {
disableMe("Syntax Error in Configuration File");
};
FMPlistener.noPLAYLIST = function () {
disableMe("Stream unavailable or not in MP3 format");
};
FMPlistener.genError = function (_reason) {
this.strScrollText = _reason;
};
FMPlistener.badPLAYLIST = function (_file) {
disableMe("Stream not found");
};
FMPlistener.updateUI = function (_isPL) {
configureUI();
};
FMPlistener.initVol = function (_vol) {
mc_BA.mc_vol._x = Math.round(volDisplay[0] + (_vol / volScale));
};
FMPlistener.announceTrack = function () {
var isLink = (strCPWsite.length > 0);
var _local1 = (isLink ? (arrTIPS[4]) : (arrTIPS[2]));
var _local2 = (isLink ? "url_b" : "help");
mc_BA.mc_web.setIT(_local2, _local1);
mc_BA.mc_web.onRelease = function () {
getURL ((isLink ? (strCPWsite) : (strDNeXurl)), "_blank");
};
};
mc_BRAND.onRelease = function () {
getURL (strDNeXurl, "_blank");
};
if (version_ok) {
int_Scroller = setInterval(mx.utils.Delegate.create(this, setTitle), 200);
int_Ticker = setInterval(mx.utils.Delegate.create(this, ticker), 200);
int_Flip = setInterval(mx.utils.Delegate.create(this, dFlip), 15000);
this.addListener(FMPlistener);
if (flash.external.ExternalInterface.available) {
if (flash.external.ExternalInterface.addCallback("setconfig", this, setConfig)) {
extendedReporting.xtrace("113:setconfig registered to JavaScript");
}
if (flash.external.ExternalInterface.addCallback("playpause", this, pressPlay)) {
extendedReporting.xtrace("113:playpause registered to JavaScript");
}
}
mc_BA.mc_vol.onPress = function () {
if (isEnabled) {
this.bluedisc._alpha = 100;
this.startDrag(true, volDisplay[0], volDisplay[1], volDisplay[2] + volDisplay[0], volDisplay[1]);
isSliding = true;
}
};
mc_BA.mc_vol.onRelease = function () {
if (isSliding) {
this.bluedisc._alpha = 0;
this.stopDrag();
isSliding = false;
}
};
mc_BA.mc_vol.onReleaseOutside = function () {
if (isSliding) {
this.bluedisc._alpha = 0;
this.stopDrag();
isSliding = false;
}
};
mc_BA.mc_play.onRelease = function () {
if (isEnabled) {
pressPlay();
}
};
mc_BA.mc_web.onRelease = function () {
getURL (strDNeXurl);
};
this.setup(_configFile, _cacheXML, 29);
} else {
versionKill();
}
Symbol 28 MovieClip [__Packages.extendedReporting] Frame 0
class extendedReporting
{
function extendedReporting () {
}
static function xtrace(_str) {
flash.external.ExternalInterface.call("xtrace", _str);
}
}
Symbol 29 MovieClip [__Packages.FMPUtils] Frame 0
class FMPUtils
{
function FMPUtils () {
}
static function setXY(_mc, _p) {
_mc._x = _p.x;
_mc._y = _p.y;
}
static function centerMovieClip(_mc) {
_mc._x = Math.floor((Stage.width - _mc._width) / 2);
_mc._y = Math.floor((Stage.height - _mc._height) / 2);
}
static function centerVideoClip(_mc, _w, _h, availWidth, availHeight, _Yoffset, _stf) {
var _local2 = availWidth / _w;
var _local3 = availHeight / _h;
_mc._x = Math.floor(Stage.width / 2);
_mc._y = Math.floor(availHeight / 2) + _Yoffset;
if (((availWidth < _w) || (availHeight < _h)) || (_stf)) {
_mc._width = _w * ((_local2 < _local3) ? (_local2) : (_local3));
_mc._height = _h * ((_local2 < _local3) ? (_local2) : (_local3));
} else {
_mc._width = _w;
_mc._height = _h;
}
}
static function bevelRect(mc, x1, y1, x2, y2, fc, c1, c2, r, a) {
mc.beginFill(fc, a);
roundRect(mc, x1, y1, x2, y2, c1, c2, r, a);
mc.endFill();
}
static function bevelRectBitmap(mc, bmd, x1, y1, x2, y2, c1, c2, r, a) {
mc.beginBitmapFill(bmd, null, true, true);
roundRect(mc, x1, y1, x2, y2, c1, c2, r, a);
mc.endFill();
}
static function plainFrame(mc, w, h, c, a) {
roundRect(mc, 0, 0, w, h, c, c, 0, a);
}
static function plainRect(mc, w, h, c, a) {
mc.beginFill(c, a);
mc.moveTo(0, 0);
mc.lineTo(0, h);
mc.lineTo(w, h);
mc.lineTo(w, 0);
mc.lineTo(0, 0);
mc.endFill();
}
static function line(mc, x1, y1, x2, y2, c, a) {
mc.lineStyle(0, c, a, true);
mc.moveTo(x1, y1);
mc.lineTo(x2, y2);
}
static function circ(mc, d, c, a) {
mc.beginFill(c, a);
mc.moveTo(0, -d);
mc.curveTo(d, -d, d, 0);
mc.curveTo(d, d, 0, d);
mc.curveTo(-d, d, -d, 0);
mc.curveTo(-d, -d, 0, -d);
mc.endFill();
}
static function roundRect(mc, x1, y1, x2, y2, c1, c2, r, a) {
mc.lineStyle(0, c1, a, true);
mc.moveTo(x1 + (0.29 * r), y2 - (0.29 * r));
if (r > 0) {
mc.curveTo(x1, y2 - (0.62 * r), x1, y2 - r);
}
mc.lineTo(x1, y1 + r);
if (r > 0) {
mc.curveTo(x1, y1, x1 + r, y1);
}
mc.lineTo(x2 - r, y1);
if (r > 0) {
mc.curveTo(x2 - (0.62 * r), y1, x2 - (0.29 * r), y1 + (0.29 * r));
}
mc.lineStyle(0, c2, a, true);
if (r > 0) {
mc.curveTo(x2, y1 + (0.62 * r), x2, y1 + r);
}
mc.lineTo(x2, y2 - r);
if (r > 0) {
mc.curveTo(x2, y2, x2 - r, y2);
}
mc.lineTo(x1 + r, y2);
if (r > 0) {
mc.curveTo(x1 + (0.62 * r), y2, x1 + (0.29 * r), y2 - (0.29 * r));
}
}
}
Symbol 30 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 31 MovieClip [__Packages.iButton] Frame 0
class iButton extends MovieClip
{
var onRollOver, onRollOut, mc_tip, __get__mc, __get__tip, mc_icon, intFade;
function iButton (_name, _depth, _initObj) {
super(_name, _depth, _initObj);
onRollOver = showTip;
onRollOut = oRO;
}
function onRollOver2() {
}
function onRollOut2() {
}
function onRelease2() {
}
function onPress2() {
}
function set mc(_mc) {
mc_tip = _mc;
//return(__get__mc());
}
function set tip(_st) {
_tooltip = _st;
//return(__get__tip());
}
function setIT(_ic, _st) {
mc_icon.gotoAndStop(_ic);
_tooltip = _st;
}
function setOffset(_ox, _oy) {
x_offset = x_offset + _ox;
y_offset = y_offset + _oy;
}
function showTip() {
if (_tooltip.length > 0) {
var _local3 = new flash.geom.Point(_root._xmouse + x_offset, _root._ymouse + y_offset);
mc_tip.tipText.text = _tooltip;
mc_tip.tipText2.text = _tooltip;
mc_tip._parent.globalToLocal(_local3);
FMPUtils.setXY(mc_tip, _local3);
if (mc_tip._x < 0) {
mc_tip._x = 0;
}
if (mc_tip._y < 0) {
mc_tip._y = 0;
}
if (mc_tip._x > (Stage.width - mc_tip._width)) {
mc_tip._x = Stage.width - mc_tip._width;
}
if (mc_tip._y > (Stage.height - mc_tip._height)) {
mc_tip._y = Stage.height - mc_tip._height;
}
mc_tip._visible = true;
intFade = setInterval(mx.utils.Delegate.create(this, hideTip), 600);
onRollOver2();
}
}
function oRO() {
hideTip();
onRollOut2();
}
function hideTip() {
if (intFade != undefined) {
clearInterval(intFade);
}
mc_tip._visible = false;
}
var _tooltip = "";
var x_offset = 15;
var y_offset = 5;
}
Symbol 32 MovieClip [__Packages.FMP256core4S] Frame 0
class FMP256core4S extends MovieClip
{
var lvPLS, lvPLR, arrSoundMCs, createEmptyMovieClip, getNextHighestDepth, arrSounds, arrMounts, arrScrollOffset, arrScrollText, sndSoundG, xmlCONFIG, strConfigURL, broadcastMessage;
function FMP256core4S () {
super();
extendedReporting.xtrace(("100:-#- FMP256 Minicaster FREE " + coreVersion) + " -#-");
AsBroadcaster.initialize(this);
lvPLS = new LoadVars();
lvPLR = new LoadVars();
arrSoundMCs = new Array(createEmptyMovieClip("mc0", getNextHighestDepth()), createEmptyMovieClip("mc1", getNextHighestDepth()));
arrSounds = new Array(new Sound(arrSoundMCs[0]), new Sound(arrSoundMCs[1]));
arrMounts = new Array();
arrScrollOffset = new Array(0, 0, 0, 0, 0);
arrScrollText = new Array("Web Radio Player " + coreVersion, "Loading setup data...", "", "", "");
sndSoundG = new Sound();
sndSoundG.setVolume(100);
}
function setup(_config, _cacheXML, _sclen) {
isCached = _cacheXML;
nScrollLength = _sclen;
if (_config.length > 0) {
xmlCONFIG = new XML();
strConfigURL = _config;
xmlCONFIG.ignoreWhite = true;
xmlCONFIG.onLoad = mx.utils.Delegate.create(this, parseConfigXML);
xmlCONFIG.load(strConfigURL);
} else {
broadcastMessage("NoCONFIG", strConfigURL);
}
}
function startPlaying(_playNow) {
var _local4;
var _local2;
if (isFirstPlay) {
isFirstPlay = false;
}
isPaused = !_playNow;
isWaiting = !_playNow;
if (_playNow) {
if (isXFade && (XFM)) {
if (intFadeout > 0) {
clearInterval(intFadeout);
}
nS = ((nS == 1) ? 0 : 1);
intFadeout = setInterval(mx.utils.Delegate.create(this, soundFade), 200);
}
arrSounds[nS] = null;
arrSounds[nS] = new Sound(arrSoundMCs[nS]);
arrSounds[nS].onLoad = mx.utils.Delegate.create(this, soundLoad);
intReload = setInterval(mx.utils.Delegate.create(this, soundReload), nReload * 60000);
arrScrollText[1] = "SERVER: " + arrMounts[0]._streamURL;
_local2 = arrMounts[0]._streamURL + (isAntiCache ? ("?fmp256anticache=" + Math.random()) : "");
extendedReporting.xtrace((((("120:LOADING '" + _local2) + "' slot=") + nS) + " XFade=") + XFM);
arrSounds[nS].loadSound(_local2, true);
arrSounds[nS].setVolume(((isXFade && (XFM)) ? 0 : 100));
if (intCheckAudio > 0) {
clearInterval(intCheckAudio);
}
intCheckAudio = setInterval(mx.utils.Delegate.create(this, checkAudio), 2000);
}
announceTrack(_playNow);
}
function stopAudio(_isOK, _msg) {
extendedReporting.xtrace(("501:Audio stopped [" + _msg) + "]");
isPaused = true;
if (intFadeout > 0) {
clearInterval(intFadeout);
}
if (intReload > 0) {
clearInterval(intReload);
}
arrSounds[0].stop();
arrSounds[0] = null;
arrSounds[1].stop();
arrSounds[1] = null;
if (_isOK) {
broadcastMessage("updateUI", false);
} else {
broadcastMessage("stopAudio", _msg);
}
}
function pressPlay(_type) {
if (_type == 0) {
stopAudio(true, "forced");
} else if (isEnabled && (isAllDefined)) {
if (isFirstPlay || (isPaused)) {
isFirstPlay = false;
broadcastMessage("playPending", 0);
startPlaying(true);
} else {
stopAudio(true, "button press");
}
}
}
function scrolltext(i) {
var _local2 = arrScrollText[i];
var _local6 = _local2.length;
if (arrScrollOffset[i] == undefined) {
arrScrollOffset[i] == 0;
}
if (_local6 < nScrollLength) {
return(_local2);
}
_local2 = _local2 + " : ";
var _local4 = _local2.substr(arrScrollOffset[i], nScrollLength);
var _local5 = "";
if (_local4.length < (nScrollLength + 3)) {
_local5 = _local2.substr(0, nScrollLength - _local4.length);
}
arrScrollOffset[i]++;
if (arrScrollOffset[i] == (_local6 + 3)) {
arrScrollOffset[i] = 0;
}
return(_local4 + _local5);
}
function setGlobalVolume(_vol) {
sndSoundG.setVolume(_vol);
}
function setConfig(_u) {
stopAudio();
extendedReporting.xtrace("112:Received new config URL: " + _u);
setup(_u, isCached, nScrollLength);
}
function XML_init_parse(attr) {
var _local2;
for (var _local4 in attr) {
_local2 = Number(attr[_local4]);
switch (_local4.toLowerCase()) {
case "volume" :
nInitialVolume = (((_local2 >= 0) && (_local2 <= 100)) ? (_local2) : 100);
setVol(nInitialVolume, "config file");
break;
case "autoplay" :
isAutoStart = ((_local2 == 1) ? true : false);
break;
case "reload" :
nReload = _local2;
if (nReload < 1) {
nReload = 1;
}
if (nReload > 30) {
nReload = 30;
}
break;
case "xfade" :
XFM = ((_local2 == 1) ? true : false);
break;
default :
broadcastMessage("XML_init_" + _local4.toLowerCase(), _local2);
}
}
}
function XML_mount_parse(attr) {
if ((attr.firstChild.nodeValue != null) && (!isPlaylistDefined)) {
var _local2 = urlDecode(attr.firstChild.nodeValue);
isMountDefined = true;
arrMounts = new Array();
var _local3 = new FMPMountData("", "", _local2, 0, 0, "unlimited", "-1");
arrMounts.push(_local3);
extendedReporting.xtrace("103:Config defines mount point: " + _local2);
}
}
function XML_playlist_parse(attr) {
if ((attr.firstChild.nodeValue != null) && (!isMountDefined)) {
strCPWplaylist = urlDecode(attr.firstChild.nodeValue);
isPlaylistDefined = true;
lvPLR.onData = mx.utils.Delegate.create(this, parsePLS);
var _local2 = ["User-Agent", "Mozilla/Flash DNeX_MinicasterPro/www.draftlight.net"];
lvPLS.addRequestHeader(_local2);
lvPLS.sendAndLoad(strCPWplaylist, lvPLR, "POST");
extendedReporting.xtrace("104:Config defines DNAS playlist file: " + strCPWplaylist);
}
}
function XML_website_parse(attr) {
strCPWsite = ((attr.firstChild.nodeValue == null) ? "" : (urlDecode(attr.firstChild.nodeValue)));
extendedReporting.xtrace("105:Config defines info website: " + strCPWsite);
}
function XML_title_parse(attr) {
strCPWtitle = ((attr.firstChild.nodeValue == null) ? "" : (urlDecode(attr.firstChild.nodeValue)));
arrScrollText[0] = strCPWtitle;
arrScrollText[1] = strCPWtitle;
extendedReporting.xtrace("106:Config defines stream title: " + strCPWtitle);
}
function XML_mp3cast_parse(_tag) {
var _local4 = _tag.childNodes.length;
var _local5;
var _local2 = 0;
while (_local2 < _local4) {
_local5 = _tag.childNodes[_local2];
switch (_tag.childNodes[_local2].nodeName.toLowerCase()) {
case "mount" :
XML_mount_parse(_tag.childNodes[_local2]);
break;
case "playlist" :
XML_playlist_parse(_tag.childNodes[_local2]);
break;
case "website" :
XML_website_parse(_tag.childNodes[_local2]);
break;
case "title" :
XML_title_parse(_tag.childNodes[_local2]);
}
_local2++;
}
}
function parseConfigXML(_st) {
isMountDefined = false;
var _local3;
var _local5;
var _local2;
var _local4;
if ((xmlCONFIG.status == 0) && (xmlCONFIG.firstChild.nodeName.toLowerCase() == "config")) {
extendedReporting.xtrace("114:Config file loaded and accepted");
_local5 = xmlCONFIG.firstChild.childNodes.length;
_local3 = 0;
while (_local3 < _local5) {
_local2 = xmlCONFIG.firstChild.childNodes[_local3];
_local4 = _local2.nodeName.toLowerCase();
if (_local4 == "init") {
XML_init_parse(_local2.attributes);
} else if (_local4 == "mp3cast") {
XML_mp3cast_parse(_local2);
}
_local3++;
}
broadcastMessage("createUI");
if (isMountDefined) {
preparePlayback();
}
} else {
extendedReporting.xtrace("506:Config file not found or XML format incorrect");
broadcastMessage("badCONFIG", strConfigURL);
}
}
function preparePlayback() {
isAllDefined = isPlaylistDefined || (isMountDefined);
startPlaying(isAutoStart);
}
function parsePLS(_s) {
var _local5;
var _local4;
var _local2;
var _local6 = false;
if (_s != undefined) {
extendedReporting.xtrace("110:DNAS playlist file loaded OK");
_local4 = _s.toString().split(newline);
if (_local4[0].substr(0, 10) == "[playlist]") {
_local2 = 2;
while (_local2 < _local4.length) {
if (_local4[_local2].substr(0, 4) == "File") {
_local5 = _local4[_local2].split("=", 2);
var _local3 = new FMPMountData("", "", _local5[1], 0, 0, "0", "-1");
arrMounts.push(_local3);
_local6 = true;
}
_local2++;
}
}
if (_local6) {
extendedReporting.xtrace(("111:DNAS playlist file parsed OK - " + arrMounts.length) + " entries");
preparePlayback();
}
}
if (!_local6) {
broadcastMessage("badPLAYLIST");
}
}
function announceTrack(_playingNow) {
if (!_playingNow) {
broadcastMessage("trackWaiting", 1);
isFirstPlay = true;
}
broadcastMessage("announceTrack");
broadcastMessage("updateUI", true);
}
function soundReload() {
isXFade = true;
clearInterval(intReload);
extendedReporting.xtrace("150:Reloading stream, XFade=" + XFM);
startPlaying(true);
}
function soundFade() {
var _local2 = ((nS == 1) ? 0 : 1);
var _local5 = arrSounds[nS].position;
if (_local5 > 5000) {
var _local3 = arrSounds[_local2].getBytesLoaded();
var _local4 = ((_local3 > 0) ? (_local3) : "N/A");
arrSounds[nS].setVolume(100);
arrSounds[_local2].stop();
delete arrSounds[_local2];
clearInterval(intFadeout);
intFadeout = 0;
isXFade = false;
extendedReporting.xtrace("151:XFade completed. Chunk size = " + _local4);
}
}
function soundLoad(_st) {
if (!_st) {
extendedReporting.xtrace("502:Stream failed to load from " + arrMounts[0].streamURL);
if (!soundError) {
if (arrMounts.length > 1) {
extendedReporting.xtrace("503:Trying next URL in playlist...");
arrMounts.shift();
startPlaying(true);
} else if (isXFade) {
XFM = false;
delete arrSounds[1];
nS = 0;
isXFade = false;
clearInterval(intFadeout);
clearInterval(intCheckAudio);
startPlaying(true);
} else {
stopAudio(false, "Audio stream failed to load");
}
}
} else {
extendedReporting.xtrace("121:Stream loaded OK");
}
soundError = false;
}
function setVol(_vol, _st) {
sndSoundG.setVolume(_vol);
extendedReporting.xtrace((("108:Volume set to " + _vol) + "% by ") + _st);
broadcastMessage("initVol", _vol);
}
function str_replace(_s, _r, _t) {
var _local1 = _t.split(_s);
return(_local1.join(_r));
}
function urlDecode(_u) {
_u = str_replace("%20", " ", _u);
_u = str_replace(newline, "", _u);
_u = str_replace("\r", "", _u);
_u = str_replace("\t", "", _u);
_u = str_replace("%26", "&", _u);
_u = str_replace("%3D", "=", _u);
_u = str_replace("%22", "\"", _u);
return(_u);
}
function checkAudio() {
intCheckCount++;
var _local2;
if (arrSounds[0].position != undefined) {
_local2 = (((("Bytes Loaded=" + arrSounds[0].getBytesLoaded()) + ", Position=") + arrSounds[0].position) + ", Duration=") + arrSounds[0].duration;
extendedReporting.xtrace("109:Slot 0 status: " + _local2);
}
if (arrSounds[1].position != undefined) {
_local2 = (((("Bytes Loaded=" + arrSounds[1].getBytesLoaded()) + ", Position=") + arrSounds[1].position) + ", Duration=") + arrSounds[1].duration;
extendedReporting.xtrace("109:Slot 1 status: " + _local2);
}
if (intCheckCount == 6) {
clearInterval(intCheckAudio);
intCheckCount = 0;
if ((arrSounds[nS].getBytesLoaded() <= 10000) && (arrSounds[nS].position == 0)) {
extendedReporting.xtrace("504:Content of stream does not seem to be music");
soundError = true;
if (XFM && (isXFade)) {
XFM = false;
delete arrSounds[1];
nS = 0;
isXFade = false;
if (intFadeout > 0) {
clearInterval(intFadeout);
}
startPlaying(true);
} else {
stopAudio();
broadcastMessage("genError", "Cannot play: Stream server not responding");
}
} else if ((arrSounds[nS].position == 0) && (arrSounds[nS].duration == 0)) {
soundError = true;
stopAudio();
extendedReporting.xtrace("505:Content of stream does not seem to be MP3");
broadcastMessage("genError", "Cannot play: Stream is not in MP3 format");
}
}
}
static var coreVersion = "v4.32c";
var nS = 0;
var XFM = true;
var intFadeout = 0;
var intCheckAudio = 0;
var intCheckCount = 0;
var intNP = 0;
var nSep = 0;
var intReload = 0;
var nReload = 5;
var nScrollLength = 0;
var nInitialVolume = 100;
var nCurrVolume = 0;
var soundError = false;
var isCached = false;
var isAntiCache = false;
var isNPdata = false;
var isFirstPlay = true;
var isXFade = false;
var isAllDefined = false;
var isAutoStart = false;
var isPaused = true;
var isLoaded = false;
var isWaiting = true;
var isEnabled = true;
var isMountDefined = false;
var isPlaylistDefined = false;
var strCPWplaylist = "";
var strCPWtitle = "";
var strCPWsite = "";
var nNowPlayingPOLL = 15;
var strNowPlayingURL = "";
var strCPWType = "S";
}
Symbol 33 MovieClip [__Packages.FMPMountData] Frame 0
class FMPMountData
{
var _uid, _songTitle, _streamURL, _currList, _peakList, _maxList, _bitrate;
function FMPMountData (_uid, _title, _u, _cl, _pl, _ml, _br) {
this._uid = _uid;
_songTitle = _title;
_streamURL = _u;
_currList = _cl;
_peakList = _pl;
_maxList = _ml;
_bitrate = _br;
}
function get uid() {
return(_uid);
}
function get songTitle() {
return(_songTitle);
}
function get streamURL() {
return(_streamURL);
}
function get cL() {
return(_currList);
}
function get pL() {
return(_peakList);
}
function get mL() {
return(_maxList);
}
function get bitrate() {
return(_bitrate);
}
function set uid(_s) {
_uid = _s;
//return(uid);
}
function set songTitle(_s) {
_songTitle = _s;
//return(songTitle);
}
function set streamURL(_s) {
_streamURL = _s;
//return(streamURL);
}
function set cL(_n) {
_currList = _n;
//return(cL);
}
function set pL(_n) {
_peakList = _n;
//return(pL);
}
function set mL(_s) {
_maxList = _s;
//return(mL);
}
function set bitrate(_s) {
_bitrate = _s;
//return(bitrate);
}
}