STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228076
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2560 · P5120

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/34000497?noj=FRM34000497-1DC" width="1" height="1"></div>

webradio.swf

This is the info page for
Flash #84865

(Click the ID number above for more basic data on this flash file.)


Text
<p align="center"><font face="Arial" size="14" color="#000000" letterSpacing="0.000000" kerning="0"><b>Start Upgrade</b></font></p>

<p align="center"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="0">This Flash movie requres a <sbr />newer version of the Flash <sbr />plugin. Please click &apos;Start <sbr />Upgrade&apos; to upgrade your <sbr />Flash plugin.</font></p>

ActionScript [AS1/AS2]

Frame 1
Stage.align = "TL"; Stage.scaleMode = "noScale"; Stage.showMenu = false; var _xml; var o = new Object(); var stations = new Array(); _xml = new XML(); if (_root.xml != undefined) { _xml.load(_root.xml); } else { _xml.load("config.xml"); } _xml.onLoad = function (success) { var _local3 = 0; while (_local3 < this.firstChild.childNodes.length) { if (this.firstChild.childNodes[_local3].nodeType == 1) { if (this.firstChild.childNodes[_local3].nodeName != "station") { o[this.firstChild.childNodes[_local3].nodeName] = this.firstChild.childNodes[_local3].firstChild.nodeValue; } else { var _local7 = this.firstChild.childNodes[_local3].attributes.url; var _local5 = ""; var _local6 = ""; var _local4 = 0; while (_local4 < this.firstChild.childNodes[_local3].childNodes.length) { if (this.firstChild.childNodes[_local3].childNodes[_local4].nodeType == 1) { if (this.firstChild.childNodes[_local3].childNodes[_local4].nodeName == "name") { _local5 = this.firstChild.childNodes[_local3].childNodes[_local4].firstChild.nodeValue; } else if (this.firstChild.childNodes[_local3].childNodes[_local4].nodeName == "genre") { _local6 = this.firstChild.childNodes[_local3].childNodes[_local4].firstChild.nodeValue; } } _local4++; } stations.push({surl:_local7, sname:_local5, sgenre:_local6}); } } _local3++; } webradio_mc.setAutoStart(o.auto_start == "true"); if (_root.player_skin == undefined) { webradio_mc.setSkin(o.player_skin); } else { webradio_mc.setSkin(_root.player_skin); } if (o.main_title != undefined) { webradio_mc.setMainTitle(o.main_title); } if (o.playlist_title != undefined) { webradio_mc.setPlayListTitle(o.playlist_title); } if (o.time_text != undefined) { webradio_mc.setTotalTimeCaption(o.time_text); } if (o.pan_labels != undefined) { webradio_mc.setPanLabels(o.pan_labels); } if ((o.playlist_show != undefined) && (o.playlist_show == "IP")) { webradio_mc.playListShow("IP"); } else if (o.genre_title != undefined) { webradio_mc.setGenreTitle(o.genre_title); } if (o.station_title != undefined) { webradio_mc.setStationTitle(o.station_title); } if (o.quality_title != undefined) { webradio_mc.setQualityTitle(o.quality_title); } if (o.quality_icon != undefined) { webradio_mc.setQualityIcon(o.quality_icon); } if (((!isNaN(Number(o.scroller_speed) / 2)) && (Number(o.scroller_speed) >= 1)) && (Number(o.scroller_speed) <= 20)) { webradio_mc.setScrollerSpeed(Number(o.scroller_speed)); } else { webradio_mc.setScrollerSpeed(4); } webradio_mc.setScrollerMarqueeContent(o.scroller_marquee_content); webradio_mc.setShuffleEnabled(o.shuffle_is_enabled == "true"); if (((!isNaN(Number(o.default_volume) / 2)) && (Number(o.default_pan) >= -100)) && (Number(o.default_pan) <= 100)) { webradio_mc.setVolume(Number(o.default_volume)); } else { webradio_mc.setVolume(50); } if (!isNaN(Number(o.default_pan) / 2)) { webradio_mc.setPan(Number(o.default_pan)); } else { webradio_mc.setPan(0); } webradio_mc.setStations(stations); webradio_mc.setMusicErrorMessage(o.music_error_message); if (!isNaN(Number(o.musicname_timeout) / 2)) { webradio_mc.setMusicnameTimeout(Number(o.musicname_timeout)); } else { webradio_mc.setMusicnameTimeout(2); } if (!isNaN(Number(o.quality_timeout) / 2)) { webradio_mc.setQualityTimeout(Number(o.quality_timeout)); } else { webradio_mc.setQualityTimeout(2); } webradio_mc.loadSkin(); }; stop();
Instance of Symbol 12 MovieClip [webradio] "webradio_mc" in Frame 1
//component parameters onClipEvent (construct) { auto_start = true; default_pan = 0; default_volume = 50; genre_title = "GENRE"; musicname_timeout = 2; quality_timeout = 3; main_title = "WINAMP"; music_error_message = "Please, open WebRadio in Mozilla"; pan_labels = "L,R"; default_skin = "./skins/skin1.swf"; playlist_title = "PLAYLIST"; quality_icon = "*"; quality_title = "QUALITY"; scroller_marquee_content = "#TRACK_NAME#"; scroller_speed = 2; shuffle_is_enabled = true; socket_error_message = "Sockets are not enabled on server"; station_title = "STATION"; total_time_caption = "TOTAL TIME"; visible = true; minHeight = 0; minWidth = 0; }
Symbol 12 MovieClip [webradio] Frame 1
#initclip 7 Object.registerClass("webradio", tufat.com.controls.webradio); #endinitclip stop(); opened_by = _root.opened_by;
Symbol 1 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip { var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled; function UIObject () { super(); constructObject(); } function get width() { return(_width); } function get height() { return(_height); } function get left() { return(_x); } function get x() { return(_x); } function get top() { return(_y); } function get y() { return(_y); } function get right() { return(_parent.width - (_x + width)); } function get bottom() { return(_parent.height - (_y + height)); } function getMinHeight(Void) { return(_minHeight); } function setMinHeight(h) { _minHeight = h; } function get minHeight() { return(getMinHeight()); } function set minHeight(h) { setMinHeight(h); //return(minHeight); } function getMinWidth(Void) { return(_minWidth); } function setMinWidth(w) { _minWidth = w; } function get minWidth() { return(getMinWidth()); } function set minWidth(w) { setMinWidth(w); //return(minWidth); } function setVisible(x, noEvent) { if (x != _visible) { _visible = x; if (noEvent != true) { dispatchEvent({type:(x ? "reveal" : "hide")}); } } } function get visible() { return(_visible); } function set visible(x) { setVisible(x, false); //return(visible); } function get scaleX() { return(_xscale); } function set scaleX(x) { _xscale = x; //return(scaleX); } function get scaleY() { return(_yscale); } function set scaleY(y) { _yscale = y; //return(scaleY); } function doLater(obj, fn) { if (methodTable == undefined) { methodTable = new Array(); } methodTable.push({obj:obj, fn:fn}); onEnterFrame = doLaterDispatcher; } function doLaterDispatcher(Void) { delete onEnterFrame; if (invalidateFlag) { redraw(); } var _local3 = methodTable; methodTable = new Array(); if (_local3.length > 0) { var _local2; while (_local2 = _local3.shift() , _local2 != undefined) { _local2.obj[_local2.fn](); } } } function cancelAllDoLaters(Void) { delete onEnterFrame; methodTable = new Array(); } function invalidate(Void) { invalidateFlag = true; onEnterFrame = doLaterDispatcher; } function invalidateStyle(Void) { invalidate(); } function redraw(bAlways) { if (invalidateFlag || (bAlways)) { invalidateFlag = false; var _local2; for (_local2 in tfList) { tfList[_local2].draw(); } draw(); dispatchEvent({type:"draw"}); } } function draw(Void) { } function move(x, y, noEvent) { var _local3 = _x; var _local2 = _y; _x = x; _y = y; if (noEvent != true) { dispatchEvent({type:"move", oldX:_local3, oldY:_local2}); } } function setSize(w, h, noEvent) { var _local3 = __width; var _local2 = __height; __width = w; __height = h; size(); if (noEvent != true) { dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2}); } } function size(Void) { _width = __width; _height = __height; } function drawRect(x1, y1, x2, y2) { moveTo(x1, y1); lineTo(x2, y1); lineTo(x2, y2); lineTo(x1, y2); lineTo(x1, y1); } function createLabel(name, depth, text) { createTextField(name, depth, 0, 0, 0, 0); var _local2 = this[name]; _local2._color = textColorList; _local2._visible = false; _local2.__text = text; if (tfList == undefined) { tfList = new Object(); } tfList[name] = _local2; _local2.invalidateStyle(); invalidate(); _local2.styleName = this; return(_local2); } function createObject(linkageName, id, depth, initobj) { return(attachMovie(linkageName, id, depth, initobj)); } function createClassObject(className, id, depth, initobj) { var _local3 = className.symbolName == undefined; if (_local3) { Object.registerClass(className.symbolOwner.symbolName, className); } var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj)); if (_local3) { Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner); } return(_local4); } function createEmptyObject(id, depth) { return(createClassObject(mx.core.UIObject, id, depth)); } function destroyObject(id) { var _local2 = this[id]; if (_local2.getDepth() < 0) { var _local4 = buildDepthTable(); var _local5 = findNextAvailableDepth(0, _local4, "up"); var _local3 = _local5; _local2.swapDepths(_local3); } _local2.removeMovieClip(); delete this[id]; } function getSkinIDName(tag) { return(idNames[tag]); } function setSkin(tag, linkageName, initObj) { if (_global.skinRegistry[linkageName] == undefined) { mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement); } return(createObject(linkageName, getSkinIDName(tag), tag, initObj)); } function createSkin(tag) { var _local2 = getSkinIDName(tag); createEmptyObject(_local2, tag); return(this[_local2]); } function createChildren(Void) { } function _createChildren(Void) { createChildren(); childrenCreated = true; } function constructObject(Void) { if (_name == undefined) { return(undefined); } init(); _createChildren(); createAccessibilityImplementation(); _endInit(); if (validateNow) { redraw(true); } else { invalidate(); } } function initFromClipParameters(Void) { var _local4 = false; var _local2; for (_local2 in clipParameters) { if (hasOwnProperty(_local2)) { _local4 = true; this["def_" + _local2] = this[_local2]; delete this[_local2]; } } if (_local4) { for (_local2 in clipParameters) { var _local3 = this["def_" + _local2]; if (_local3 != undefined) { this[_local2] = _local3; } } } } function init(Void) { __width = _width; __height = _height; if (initProperties == undefined) { initFromClipParameters(); } else { initProperties(); } if (_global.cascadingStyles == true) { stylecache = new Object(); } } function getClassStyleDeclaration(Void) { var _local4 = this; var _local3 = className; while (_local3 != undefined) { if (ignoreClassStyleDeclaration[_local3] == undefined) { if (_global.styles[_local3] != undefined) { return(_global.styles[_local3]); } } _local4 = _local4.__proto__; _local3 = _local4.className; } } function setColor(color) { } function __getTextFormat(tf, bAll) { var _local8 = stylecache.tf; if (_local8 != undefined) { var _local3; for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) { if (tf[_local3] == undefined) { tf[_local3] = _local8[_local3]; } } } return(false); } var _local6 = false; for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) { if (tf[_local3] == undefined) { var _local5 = _tf[_local3]; if (_local5 != undefined) { tf[_local3] = _local5; } else if ((_local3 == "font") && (fontFamily != undefined)) { tf[_local3] = fontFamily; } else if ((_local3 == "size") && (fontSize != undefined)) { tf[_local3] = fontSize; } else if ((_local3 == "color") && (color != undefined)) { tf[_local3] = color; } else if ((_local3 == "leftMargin") && (marginLeft != undefined)) { tf[_local3] = marginLeft; } else if ((_local3 == "rightMargin") && (marginRight != undefined)) { tf[_local3] = marginRight; } else if ((_local3 == "italic") && (fontStyle != undefined)) { tf[_local3] = fontStyle == _local3; } else if ((_local3 == "bold") && (fontWeight != undefined)) { tf[_local3] = fontWeight == _local3; } else if ((_local3 == "align") && (textAlign != undefined)) { tf[_local3] = textAlign; } else if ((_local3 == "indent") && (textIndent != undefined)) { tf[_local3] = textIndent; } else if ((_local3 == "underline") && (textDecoration != undefined)) { tf[_local3] = textDecoration == _local3; } else if ((_local3 == "embedFonts") && (embedFonts != undefined)) { tf[_local3] = embedFonts; } else { _local6 = true; } } } } if (_local6) { var _local9 = styleName; if (_local9 != undefined) { if (typeof(_local9) != "string") { _local6 = _local9.__getTextFormat(tf, true, this); } else if (_global.styles[_local9] != undefined) { _local6 = _global.styles[_local9].__getTextFormat(tf, true, this); } } } if (_local6) { var _local10 = getClassStyleDeclaration(); if (_local10 != undefined) { _local6 = _local10.__getTextFormat(tf, true, this); } } if (_local6) { if (_global.cascadingStyles) { if (_parent != undefined) { _local6 = _parent.__getTextFormat(tf, false); } } } if (_local6) { _local6 = _global.style.__getTextFormat(tf, true, this); } return(_local6); } function _getTextFormat(Void) { var _local2 = stylecache.tf; if (_local2 != undefined) { return(_local2); } _local2 = new TextFormat(); __getTextFormat(_local2, true); stylecache.tf = _local2; if (enabled == false) { var _local3 = getStyle("disabledColor"); _local2.color = _local3; } return(_local2); } function getStyleName(Void) { var _local2 = styleName; if (_local2 != undefined) { if (typeof(_local2) != "string") { return(_local2.getStyleName()); } return(_local2); } if (_parent != undefined) { return(_parent.getStyleName()); } return(undefined); } function getStyle(styleProp) { var _local3; _global.getStyleCounter++; if (this[styleProp] != undefined) { return(this[styleProp]); } var _local6 = styleName; if (_local6 != undefined) { if (typeof(_local6) != "string") { _local3 = _local6.getStyle(styleProp); } else { var _local7 = _global.styles[_local6]; _local3 = _local7.getStyle(styleProp); } } if (_local3 != undefined) { return(_local3); } var _local7 = getClassStyleDeclaration(); if (_local7 != undefined) { _local3 = _local7[styleProp]; } if (_local3 != undefined) { return(_local3); } if (_global.cascadingStyles) { if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) { var _local5 = stylecache; if (_local5 != undefined) { if (_local5[styleProp] != undefined) { return(_local5[styleProp]); } } if (_parent != undefined) { _local3 = _parent.getStyle(styleProp); } else { _local3 = _global.style[styleProp]; } if (_local5 != undefined) { _local5[styleProp] = _local3; } return(_local3); } } if (_local3 == undefined) { _local3 = _global.style[styleProp]; } return(_local3); } static function mergeClipParameters(o, p) { for (var _local3 in p) { o[_local3] = p[_local3]; } return(true); } static var symbolName = "UIObject"; static var symbolOwner = mx.core.UIObject; static var version = "2.0.2.126"; static var textColorList = {color:1, disabledColor:1}; var invalidateFlag = false; var lineWidth = 1; var lineColor = 0; var tabEnabled = false; var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1}; }
Symbol 2 MovieClip [__Packages.tufat.com.controls.webradio] Frame 0
class tufat.com.controls.webradio extends mx.core.UIObject { var loaded_movie_mc, createEmptyMovieClip, loading_mc, attachMovie, _visible, stop, send_quality_vars, load_quality_vars, ping_mc, getNextHighestDepth, PL, Timer, Slider, rewind_btn, mainbuttons_mc, play_btn, pause_btn, stop_btn, ff_btn, vol, pan, plScrollbg_mc, plScroller_mc, Scroller, sliderbg_mc, muteonoff_mc, _Repeat, repeat_btn, _Shuffle, shuffle_btn, vol_clicker, pan_clicker, playlist_top_mc, add_config, PlayList, Display_Volume, mp3, onEnterFrame, send_sockstate_vars, load_sockstate_vars, plMask_mc, TotalTimer, Equa_Laser, TrackNumber, _url, opened_by, currmp3_txt, _parent, loading_txt, loading_checker_mc, getURL, maintitle_txt, playlist_title_txt, mm_ss_txt, panl_txt, panr_txt; function webradio () { super(); loaded_movie_mc = createEmptyMovieClip("loaded_movie_mc", 50); loading_mc._visible = false; var ExpressInstall = function () { this.needsUpdate = ((_root.MMplayerType == undefined) ? false : true); }; ExpressInstall.prototype = {init:function () { if (this.needsUpdate) { this.loadUpdater(); return(true); } return(false); }, loadUpdater:function () { System.security.allowDomain("fpdownload.macromedia.com"); this.updater = _root.createEmptyMovieClip("expressInstallHolder", 10000000); var _self = this; this.updater.installStatus = _self.onInstallStatus; this.hold = this.updater.createEmptyMovieClip("hold", 1); this.updater.onEnterFrame = function () { if (typeof(this.hold.startUpdate) == "function") { _self.initUpdater(); this.onEnterFrame = null; } }; var _local3 = Math.random(); this.hold.loadMovie("http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + _local3); }, initUpdater:function () { this.hold.redirectURL = _root.MMredirectURL; this.hold.MMplayerType = _root.MMplayerType; this.hold.MMdoctitle = _root.MMdoctitle; this.hold.startUpdate(); }, onInstallStatus:function (msg) { if (msg == "Download.Complete") { } else if (msg == "Download.Cancelled") { (this.getURL("javascript:alert('This content requires a more recent version of the Macromedia Flash Player.')"));// not popped } else if (msg == "Download.Failed") { (this.getURL("javascript:alert('There was an error downloading the Flash Player update. Please try again later, or visit macromedia.com to download the latest version of the Flash plugin.')"));// not popped } }}; var ExpressInstall = new ExpressInstall(); if (ExpressInstall.needsUpdate) { var _local4 = attachMovie("upgradeMsg_src", "upgradeMsg", 60); _local4._x = _local4._width / 2; _local4._y = _local4._height / 2; _local4.upgradeBtn.onRelease = function () { ExpressInstall.init(); }; _visible = true; flash_player_need_update = true; _root.stop(); stop(); } else { flash_player_need_update = false; send_quality_vars = new LoadVars(); load_quality_vars = new LoadVars(); var o = this; ping_mc = createEmptyMovieClip("ping_mc", getNextHighestDepth()); ping_mc.sound_ping = new Sound(); ping_mc.onEnterFrame = function () { o.pinging(); }; } } function setSockEnabled(inV) { if (inV == "1") { sockets_enabled = true; } else { sockets_enabled = false; } } function loadQualityVarsOnLoad(vars, success) { var _local3 = 0; if (success) { _local3 = vars._result; } else { _local3 = 20; } var _local4 = true; var _local2 = 0; while (_local2 < PL.length) { if (PL[_local2].surl == send_quality_vars.surl) { PL[_local2].squality = _local3; break; } _local2++; } _local2 = 0; while (_local2 < PL.length) { if (PL[_local2].squality == "") { checkQuality(_local2); _local4 = false; break; } _local2++; } if (_local4) { calcQuality(quality_icon); } } function InitPlayer() { if (flash_player_need_update) { return(undefined); } var o = this; Timer._visible = false; Slider._visible = false; for (var mc_variable_name in loaded_movie_mc) { this[mc_variable_name] = loaded_movie_mc[mc_variable_name]; } rewind_btn = mainbuttons_mc.rewind_btn; play_btn = mainbuttons_mc.play_btn; pause_btn = mainbuttons_mc.pause_btn; stop_btn = mainbuttons_mc.stop_btn; ff_btn = mainbuttons_mc.ff_btn; vol.vol_start_x = vol._x; vol.vol_start_y = vol._y; pan.pan_start_x = pan._x; pan.pan_start_y = pan._y; plScrollbg_mc.onPress = function () { this.pressed = true; this._parent.plScroller_mc.gotoAndStop(3); this.onMouseMove(); }; plScrollbg_mc.onMouseMove = function () { if (o.PlayList._height > o.plMask_mc._height) { if (this.pressed) { if ((this._parent._ymouse >= (this._parent.plScrollbg_mc._y + (this._parent.plScroller_mc._height / 2))) && (this._parent._ymouse <= ((this._parent.plScrollbg_mc._y + this._parent.plScrollbg_mc._height) - (this._parent.plScroller_mc._height / 2)))) { this._parent.plScroller_mc._y = this._parent._ymouse - (this._parent.plScroller_mc._height / 2); } else if (this._parent._ymouse < (this._parent.plScrollbg_mc._y + (this._parent.plScroller_mc._height / 2))) { this._parent.plScroller_mc._y = this._parent.plScrollbg_mc._y; } else { this._parent.plScroller_mc._y = (this._parent.plScrollbg_mc._y + this._parent.plScrollbg_mc._height) - this._parent.plScroller_mc._height; } this.value = (this._parent.plScroller_mc._y - this._y) / (this._height - this._parent.plScroller_mc._height); o.playlistShow(this.value); } } }; plScrollbg_mc.onRelease = (plScrollbg_mc.onReleaseOutside = function () { this.pressed = false; this._parent.plScroller_mc.gotoAndStop(1); }); plScroller_mc.onPress = function () { this.gotoAndStop(3); this._parent.plScrollbg_mc.onPress(); }; plScroller_mc.onRollOver = function () { this.gotoAndStop(2); }; plScroller_mc.onRollOut = function () { this.gotoAndStop(1); }; plScroller_mc.onRelease = (plScroller_mc.onReleaseOutside = function () { this.gotoAndStop(1); this._parent.plScrollbg_mc.onRelease(); }); Scroller.Value.txt = ""; Scroller.Value._x = (sliderbg_mc._width / 2) - 20; Scroller.Value.onEnterFrame = function () { this._x = this._x - o.scroller_speed; if ((this._x + this._width) < 0) { this._x = this._parent.bg_mc._width; } }; sliderbg_mc.pressed = false; sliderbg_mc.onPress = function () { if ((this._parent._xmouse >= o.slider_start_x) && (o.Playing)) { if ((this._parent._xmouse >= (o.slider_start_x + (this._parent.Slider._width / 2))) && (this._parent._xmouse <= ((o.slider_start_x + (o.sliderbg_mc._width * (o.mp3.getBytesLoaded() / o.mp3.getBytesTotal()))) - (o.Slider._width / 2)))) { o.Slider._x = this._parent._xmouse - (this._parent.Slider._width / 2); } else if (this._parent._xmouse < (o.slider_start_x + (this._parent.Slider._width / 2))) { o.Slider._x = o.slider_start_x; } else { o.Slider._x = (o.slider_start_x + (o.sliderbg_mc._width * (o.mp3.getBytesLoaded() / o.mp3.getBytesTotal()))) - o.Slider._width; } this.press = true; o.Slider.onPress(); o.Slider.onMouseMove(); } }; sliderbg_mc.onRelease = (sliderbg_mc.onReleaseOutside = function () { o.Slider.onRelease(); }); slider_start_x = Slider._x; Slider = createEmptyMovieClip("Slider", getNextHighestDepth()); Slider.onPress = function () { this.gotoAndStop(2); if (o.Playing) { this.value = (((this._x - o.slider_start_x) * 100) / o.sliderbg_mc._width) * (o.sliderbg_mc._xscale / 100); this.is_draging = true; } }; Slider.onRelease = (Slider.onReleaseOutside = function () { this.gotoAndStop(1); if (o.Playing) { this.value = (((this._x - o.slider_start_x) * 100) / o.sliderbg_mc._width) * (o.sliderbg_mc._xscale / 100); this.is_draging = false; this.stopDrag(); this.press = false; this.x_moused = false; } }); Slider.onMouseMove = function () { if (o.Playing) { if (this.is_draging) { if (((((this._parent._xmouse - ((this.delta != undefined) ? (this.delta) : 0)) >= o.slider_start_x) && ((this._parent._xmouse - ((this.delta != undefined) ? (this.delta) : 0)) <= (((o.slider_start_x + (o.sliderbg_mc._width * (o.mp3.getBytesLoaded() / o.mp3.getBytesTotal()))) - this._width) - 2))) && ((this._x + this._width) < (this._parent.sliderbg_mc._x + this._parent.sliderbg_mc._width))) || (this._parent.sliderbg_mc.press)) { if (this._parent.sliderbg_mc.press) { this._parent.sliderbg_mc.press = false; } else if (o.add_config.Slider.pixel_width != true) { if ((this.x_moused == false) || (this.x_moused == undefined)) { this._x = this._parent._xmouse - (this._parent._xmouse - this._xmouse); this.delta = this._parent._xmouse - this._xmouse; this._x = this._parent._xmouse - this.delta; } else { this._x = this._parent._xmouse - this.delta; } this.x_moused = true; } else { this._x = this._parent._xmouse; } this.Percent = (o.mp3.getBytesLoaded() / o.mp3.getBytesTotal()) * 100; this.Duration = (o.mp3.duration / o.mp3.getBytesLoaded()) * o.mp3.getBytesTotal(); this.value = (((this._x - o.slider_start_x) * 100) / this._parent.sliderbg_mc._width) * (this._parent.sliderbg_mc._xscale / 100); o.setVolValue(int(this.value)); o.mp3.stop(); o.mp3.start((((this._x - o.slider_start_x) / (this._parent.sliderbg_mc._width - this._width)) * this.Duration) / 1000); o.equaLaserSet(3); if (((o.mainbuttons_mc.playbtn_eff != undefined) || (o.mainbuttons_mc.stopbtn_eff != undefined)) || (o.mainbuttons_mc.pausebtn_eff != undefined)) { o.resetMainButtonEffect(); o.setMainButtonEffect("play"); } this.minute = int(int(o.mp3.position / 1000) / 60); if (this.minute < 10) { this.minute = "0" + this.minute; } this.Second = int(o.mp3.position / 1000) - (this.minute * 60); if (this.Second < 10) { this.Second = "0" + this.Second; } var _local3 = o.time_format.split("MM"); var _local2 = _local3[1].split("SS"); o.Timer.text = (((_local3[0] + this.minute) + _local2[0]) + this.Second) + _local2[1]; } } } }; Slider._i = 19; Slider.onEnterFrame = function () { if (((!this.is_draging) && (o.Playing)) && (o.current_music != "")) { this.Percent = (o.mp3.getBytesLoaded() / o.mp3.getBytesTotal()) * 100; this.Duration = (o.mp3.duration / o.mp3.getBytesLoaded()) * o.mp3.getBytesTotal(); var _local7 = int(((o.mp3.position / this.Duration) * (this._parent.sliderbg_mc._width - this._width)) + o.slider_start_x); if (_local7 < o.slider_start_x) { this._x = o.slider_start_x; } else { this._x = _local7; } this._y = o.slider_start_y; this.minute = int(int(o.mp3.position / 1000) / 60); if (this.minute < 10) { this.minute = "0" + this.minute; } this.Second = int(o.mp3.position / 1000) - (this.minute * 60); if (this.Second < 10) { this.Second = "0" + this.Second; } var _local9 = o.time_format.split("MM"); var _local8 = _local9[1].split("SS"); o.Timer.text = (((_local9[0] + this.minute) + _local8[0]) + this.Second) + _local8[1]; if (o.mp3.duration > 0) { o.setTotalTimer(); } } if (o.Playing) { if (o.Buffering && ((o.mp3.position + 5000) < o.mp3.duration)) { if (o.buffer_mc != undefined) { o.buffer_mc.setBufferActive(false); } o.equaLaserSet(3); o.equaLaserSet(3); } if (((((o.mp3.duration - o.mp3.position) / 5000) * 45) - 45) > 0) { if (o.buffer_mc != undefined) { o.buffer_mc.setBufferActive(false); } } else { var _local13 = (((o.mp3.duration - o.mp3.position) / 5000) * 45) * 1.23; if (o.buffer_mc != undefined) { o.buffer_mc.setBufferActive(true); var _local12 = (_local13 * 1.8) / 100; o.buffer_mc.setBuffer(_local12); } } if (((o.mp3.position + 50) >= o.mp3.duration) && ((o.mp3.duration + 50) <= int(this.Duration))) { if (!o.Buffering) { o.Buffering = true; o.equaLaserSet(1); } } } this._i++; if (this._parent.current_music >= 0) { if ((this._i % (12 * o.musicname_timeout)) == 0) { var _local3 = o.PL[o.current_music].surl.split(":"); var _local5 = ""; var _local6 = ""; if (_local3.length >= 3) { _local5 = _local3[1].substring(2); var _local11 = _local3[2].split("/"); _local6 = _local11[0]; } else { _local5 = _local3[0]; _local6 = "80"; } this._sendvars.ip = _local5; this._sendvars.port = _local6; var _local4 = _root._url; _local4 = _local4.substring(0, _local4.lastIndexOf("webradio.swf")); if ((o.scroller_marquee_content.indexOf("#CURRENT_SONG#") != -1) || (o.scroller_marquee_content.indexOf("#CURRENT_ARTIST#") != -1)) { if (o.sockets_enabled == true) { this._sendvars.sendAndLoad(_local4 + "php/song.name.php", this._loadvars, "GET"); } else { o.Scroller.Value.txt = o.socket_error_message; } } else if (o.scroller_marquee_content.indexOf("#STATION_URL#") != -1) { var _local10 = o.scroller_marquee_content.split("#STATION_URL#"); o.Scroller.Value.txt = (((_local10[0] + " ") + o.PL[o.current_music].surl) + " ") + _local10[1]; } else if (o.scroller_marquee_content.indexOf("#STATION_NAME#") != -1) { var _local10 = o.scroller_marquee_content.split("#STATION_NAME#"); o.Scroller.Value.txt = (((_local10[0] + " ") + o.PL[o.current_music].sname) + " ") + _local10[1]; } else if (o.scroller_marquee_content.indexOf("#GENRE#") != -1) { var _local10 = o.scroller_marquee_content.split("#GENRE#"); o.Scroller.Value.txt = (((_local10[0] + " ") + o.PL[o.current_music].sgenre) + " ") + _local10[1]; } } } else { this._parent.Scroller.Value.txt = ""; } }; Slider._sendvars = new LoadVars(); Slider._loadvars = new LoadVars(); Slider._loadvars.onLoad = function (success) { if (((((((o.Slider._i != undefined) && (o.Slider._i > 140)) && (o.PlayList["Music" + o.current_music].r_txt.text != "")) && (o.PlayList["Music" + o.current_music].r_txt.text != "-")) && (o.PlayList["Music" + o.current_music].r_txt.text != undefined)) && (String(o.opened_by) != "MOZILLA")) && (o.mp3.duration < 200)) { o.Scroller.Value.txt = o.music_error_message; } else if (o.scroller_marquee_content.indexOf("#CURRENT_SONG#") != -1) { if (this._result != "") { o.Scroller.Value.txt = this._result; } else { o.Scroller.Value.txt = o.PL[o.current_music].sname; } } else if (o.scroller_marquee_content.indexOf("#CURRENT_ARTIST#") != -1) { if (this._result == "") { o.Scroller.Value.txt = o.PL[o.current_music].sname; } else { var _local2 = this._result.split("-"); o.Scroller.Value.txt = _local2[(_local2.length - 1) - 1]; } } }; rewind_btn.onRelease = function () { if (o.random_array.length == 1) { o.random_array.pop(); } if ((o._Shuffle._currentframe == 2) && (o.random_array.length >= 2)) { o.current_music = o.random_array[o.random_array.length - 2]; o.random_array.pop(); o.playMusic(o.current_music); } else { o.current_music = o.current_music - 1; if (o.current_music < 0) { o.current_music = o.Music_Count - 1; } o.playMusic(o.current_music); } o.playlistShowMusic(o.current_music); var _local2 = o.add_config[this._name].Release; if (_local2 != undefined) { if (_local2.autoHide != undefined) { this._visible = !_local2.autoHide; } if (_local2.showPlay != undefined) { o.play_btn._visible = _local2.showPlay; } if (_local2.showPause != undefined) { o.pause_btn._visible = _local2.showPause; } } }; play_btn.onRelease = function () { if (((o.mainbuttons_mc.playbtn_eff != undefined) || (o.mainbuttons_mc.stopbtn_eff != undefined)) || (o.mainbuttons_mc.pausebtn_eff != undefined)) { o.resetMainButtonEffect(); o.setMainButtonEffect("play"); } if ((!o.Playing) || (o.Paused)) { o.mp3.start(o.Pause / 1000); o.equaLaserSet(3); o.Playing = true; o.Paused = false; } var _local2 = o.add_config[this._name].Release; if (_local2 != undefined) { if (_local2.autoHide != undefined) { this._visible = !_local2.autoHide; } if (_local2.showPause != undefined) { o.pause_btn._visible = _local2.showPause; } } }; if (((mainbuttons_mc.playbtn_eff != undefined) || (mainbuttons_mc.stopbtn_eff != undefined)) || (mainbuttons_mc.pausebtn_eff != undefined)) { mainbuttons_mc.play_btn.onPress = function () { o.resetMainButtonEffect(); }; } if (pause_btn != undefined) { pause_btn.onRelease = function () { if (((o.mainbuttons_mc.playbtn_eff != undefined) || (o.mainbuttons_mc.stopbtn_eff != undefined)) || (o.mainbuttons_mc.pausebtn_eff != undefined)) { o.resetMainButtonEffect(); o.setMainButtonEffect("pause"); } o.Pause = o.mp3.position; o.mp3.stop(); o.equaLaserSet(1); o.Playing = false; o.Paused = true; var _local2 = o.add_config[this._name].Release; if (_local2 != undefined) { if (_local2.autoHide != undefined) { this._visible = !_local2.autoHide; } if (_local2.showPlay != undefined) { o.play_btn._visible = _local2.showPlay; } } }; if (((mainbuttons_mc.playbtn_eff != undefined) || (mainbuttons_mc.stopbtn_eff != undefined)) || (mainbuttons_mc.pausebtn_eff != undefined)) { mainbuttons_mc.pause_btn.onPress = function () { o.resetMainButtonEffect(); }; } } stop_btn.onRelease = function () { if (((o.mainbuttons_mc.playbtn_eff != undefined) || (o.mainbuttons_mc.stopbtn_eff != undefined)) || (o.mainbuttons_mc.pausebtn_eff != undefined)) { o.resetMainButtonEffect(); o.setMainButtonEffect("stop"); } o.equaLaserSet(1); o.Playing = false; o.Paused = false; o.mp3.stop(); o.Pause = 0; o.Slider._x = o.slider_start_x; var _local2 = o.add_config[this._name].Release; if (_local2 != undefined) { if (_local2.autoHide != undefined) { this._visible = !_local2.autoHide; } if (_local2.showPlay != undefined) { o.play_btn._visible = _local2.showPlay; } if (_local2.showPause != undefined) { o.pause_btn._visible = _local2.showPause; } } }; if (((mainbuttons_mc.playbtn_eff != undefined) || (mainbuttons_mc.stopbtn_eff != undefined)) || (mainbuttons_mc.pausebtn_eff != undefined)) { mainbuttons_mc.stop_btn.onPress = function () { o.resetMainButtonEffect(); }; } ff_btn.onRelease = function () { if (o.isShuffle()) { var _local2 = 0; do { _local2 = random(o.Music_Count); } while (o.current_music == _local2); o.random_array.push(_local2); o.current_music = _local2; } else { o.current_music = o.current_music + 1; if (o.current_music >= o.Music_Count) { o.current_music = 0; } } o.playMusic(o.current_music); o.playlistShowMusic(o.current_music); var _local3 = o.add_config[this._name].Release; if (_local3 != undefined) { if (_local3.autoHide != undefined) { this._visible = !_local3.autoHide; } if (_local3.showPlay != undefined) { o.play_btn._visible = _local3.showPlay; } if (_local3.showPause != undefined) { o.pause_btn._visible = _local3.showPause; } } }; if (mainbuttons_mc.addvolume_btn != undefined) { with (mainbuttons_mc) { addvolume_btn.onRelease = function () { o.setVolume(o.pl_value + 10); if (this._parent.vol_txt != undefined) { var _local2 = o.pl_value / 10; this._parent.vol_txt.text = ("Vol" + ((_local2 == 10) ? "" : " ")) + _local2; } }; subvolume_btn.onRelease = function () { o.setVolume(o.pl_value - 10); if (this._parent.vol_txt != undefined) { var _local2 = o.pl_value / 10; this._parent.vol_txt.text = ("Vol" + ((_local2 == 10) ? "" : " ")) + _local2; } }; } } if (muteonoff_mc != undefined) { muteonoff_mc.onPress = function () { this.gotoAndStop(3); if ((this.muteoff == undefined) || (this.muteoff == false)) { this.muteoff = true; } else { this.muteoff = false; } if (this.muteoff) { this.was_sound = o.pl_value; o.setVolume(0); } else { o.setVolume(this.was_sound); } }; muteonoff_mc.onEnterFrame = function () { if (this.muteoff && (o.pl_value > 0)) { this.muteoff = false; this.onRelease(); } }; muteonoff_mc.onRelease = (muteonoff_mc.onReleaseOutside = function () { if (this.muteoff) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } }); } if ((_Repeat.repeatoff_mc != undefined) || (_Repeat.repeaton_mc != undefined)) { repeat_btn.onPress = function () { if (o._Repeat._currentframe == 1) { o._Repeat.repeatoff_mc.gotoAndStop(2); o._Repeat.repeaton_mc.gotoAndStop(1); } else { o._Repeat.repeaton_mc.gotoAndStop(2); o._Repeat.repeatoff_mc.gotoAndStop(1); } }; } repeat_btn.onRelease = function () { o.repeat(); }; if ((_Shuffle.shuffleoff_mc != undefined) || (_Shuffle.shuffleon_mc != undefined)) { shuffle_btn.onPress = function () { if (o._Shuffle._currentframe == 1) { o._Shuffle.shuffleoff_mc.gotoAndStop(2); o._Shuffle.shuffleon_mc.gotoAndStop(1); } else { o._Shuffle.shuffleon_mc.gotoAndStop(2); o._Shuffle.shuffleoff_mc.gotoAndStop(1); } }; } shuffle_btn.onRelease = function () { if (o._Shuffle._currentframe == 2) { delete o.random_array; o.random_array = new Array(); } o.shuffle(); }; if (vol != undefined) { vol.onPress = function () { if (o.add_config.vol_clicker.isVertical == undefined) { this.startDrag(0, this.vol_start_x, this.vol_start_y, (this.vol_start_x + this._parent.vol_clicker._width) - this._width, this.vol_start_y); this.value = int(((this._x - this.vol_start_x) * 100) / (this._parent.vol_clicker._width - this._width)); } else { this.startDrag(0, this.vol_start_x, o.vol_clicker._y, this.vol_start_x, this.vol_start_y); this.value = 100 - int(((this._y - o.vol_clicker._y) * 100) / (this._parent.vol_clicker._height - this._height)); } if (this.value >= 98) { this.value = 100; } o.pl_value = this.value; this.draging = true; this.gotoAndStop(2); }; vol.onRelease = (vol.onReleaseOutside = function () { if (o.add_config.vol_clicker.isVertical == undefined) { this.startDrag(0, this.vol_start_x, this.vol_start_y, (this.vol_start_x + this._parent.vol_clicker._width) - this._width, this.vol_start_y); this.value = int(((this._x - this.vol_start_x) * 100) / (this._parent.vol_clicker._width - this._width)); } else { this.startDrag(0, this.vol_start_x, this.vol_start_y, this.vol_start_x, o.vol_clicker._y); this.value = 100 - int(((this._y - o.vol_clicker._y) * 100) / (this._parent.vol_clicker._height - this._height)); } if (this.value >= 98) { this.value = 100; } o.pl_value = this.value; this.stopDrag(); this.gotoAndStop(1); }); vol.onMouseMove = function () { if (this.draging) { if (o.add_config.vol_clicker.isVertical == undefined) { this.value = int(((this._x - this.vol_start_x) * 100) / (this._parent.vol_clicker._width - this._width)); } else { this.value = 100 - int(((this._y - o.vol_clicker._y) * 100) / (this._parent.vol_clicker._height - this._height)); } if (this.value >= 98) { this.value = 100; } o.pl_value = this.value; if (this.value != 0) { o.Display_Volume.Vol._y = 100 - this.value; } else { o.Display_Volume.Vol._y = 120; } o.mp3.setVolume(this.value); } }; vol_clicker.onPress = function () { if (o.add_config.vol_clicker.isVertical == undefined) { if ((this._parent._xmouse >= (this._parent.vol.vol_start_x + (this._parent.vol._width / 2))) && (this._parent._xmouse <= ((this._parent.vol.vol_start_x + this._parent.vol_clicker._width) - (this._parent.vol._width * 0.5)))) { this._parent.vol._x = this._parent._xmouse - (this._parent.vol._width / 2); } else if (this._parent._xmouse < (this._parent.vol.vol_start_x + (this._parent.vol._width / 2))) { this._parent.vol._x = this._parent.vol.vol_start_x; } else { this._parent.vol._x = (this._parent.vol.vol_start_x + this._parent.vol_clicker._width) - this._parent.vol._width; } } else if ((this._parent._ymouse >= (this._parent.vol_clicker._y + (this._parent.vol._height / 2))) && (this._parent._ymouse <= ((this._parent.vol_clicker._y + this._parent.vol_clicker._height) - (this._parent.vol._height / 2)))) { this._parent.vol._y = this._parent._ymouse; } else if (this._parent._ymouse < (this._parent.vol_clicker._y + (this._parent.vol._height / 2))) { this._parent.vol._y = this._parent.vol_clicker._y; } else { this._parent.vol._y = (o.vol_clicker._y + o.vol_clicker._height) - (this._parent.vol._height / 2); } this._parent.vol.onPress(); this._parent.vol.onMouseMove(); }; vol_clicker.onRelease = (vol_clicker.onReleaseOutside = function () { this._parent.vol.onRelease(); }); } if (pan != undefined) { pan_clicker.onPress = function () { if ((this._parent._xmouse > (o.pan.pan_start_x + (o.pan._width / 2))) && (this._parent._xmouse < ((o.pan.pan_start_x + this._width) - (o.pan._width / 2)))) { this._parent.pan._x = this._parent._xmouse - (this._parent.pan._width / 2); } else if (this._parent._xmouse <= (o.pan.pan_start_x + (o.pan._width / 2))) { this._parent.pan._x = o.pan.pan_start_x; } else { this._parent.pan._x = (o.pan.pan_start_x + this._width) - o.pan._width; } this._parent.pan.onPress(); this._parent.pan.onMouseMove(); }; pan_clicker.onRelease = (pan_clicker.onReleaseOutside = function () { this._parent.pan.onRelease(); }); pan.onPress = function () { this.value = int(((this._x - this.pan_start_x) * 100) / (this._parent.pan_clicker._width - this._width)) - 50; if (this.value > 47) { this.value = 50; } this.value = this.value * 2; this.draging = true; this.startDrag(0, this.pan_start_x, this.pan_start_y, (this.pan_start_x + this._parent.pan_clicker._width) - this._width, this.pan_start_y); this.gotoAndStop(2); }; pan.onRelease = (pan.onReleaseOutside = function () { this.value = int(((this._x - this.pan_start_x) * 100) / (this._parent.pan_clicker._width - this._width)) - 50; if (this.value > 47) { this.value = 50; } this.value = this.value * 2; this.draging = false; this.stopDrag(); this.gotoAndStop(1); }); pan.onMouseMove = function () { if (this.draging) { this.value = int(((this._x - this.pan_start_x) * 100) / (this._parent.pan_clicker._width - this._width)) - 50; if (this.value > 47) { this.value = 50; } this.value = this.value * 2; o.pl_pan = this.value; o.mp3.setPan(this.value); } }; } _Repeat.onPress = function () { o.repeat(); }; _Shuffle.onPress = function () { o.shuffle(); }; playlist_top_mc.station_mc.sort_asc = true; playlist_top_mc.station_mc.onPress = function () { o.playlist_top_mc.genre_or_ip_mc.sort_asc = true; o.playlist_top_mc.quality_mc.sort_asc = false; o.playlistSort("STATION", this.sort_asc); this.sort_asc = !this.sort_asc; }; playlist_top_mc.genre_or_ip_mc.sort_asc = true; playlist_top_mc.genre_or_ip_mc.onPress = function () { o.playlist_top_mc.station_mc.sort_asc = true; o.playlist_top_mc.quality_mc.sort_asc = false; o.playlistSort("GENRE_OR_IP", this.sort_asc); this.sort_asc = !this.sort_asc; }; playlist_top_mc.quality_mc.sort_asc = false; playlist_top_mc.quality_mc.onPress = function () { o.playlist_top_mc.station_mc.sort_asc = true; o.playlist_top_mc.genre_or_ip_mc.sort_asc = true; o.playlistSort("QUALITY", this.sort_asc); this.sort_asc = !this.sort_asc; }; if (add_config.PlayList.scrollOnOver == true) { PlayList.onEnterFrame = function () { if (this.Over) { var _local3 = (o.plMask_mc._y + (o.plMask_mc._height / 2)) + 15; var _local2 = (o.plMask_mc._y + (o.plMask_mc._height / 2)) + 30; var _local5 = o.plMask_mc._y + o.plMask_mc._height; var _local4 = o.plMask_mc._y - 5; if ((this._parent._ymouse > _local3) && (this._y > (_local5 - (o.Music_Count * 11)))) { this._y = this._y - Math.sqrt(this._parent._ymouse - 86); } if ((this._parent._ymouse < _local2) && (this._y < (_local4 + 6))) { this._y = this._y + Math.sqrt(86 - this._parent._ymouse); } } }; } vol.value = int(((vol._x - 218) * 100) / 67); Display_Volume.Vol._y = 71 - ((vol.value * 71) / 100); if (Display_Volume.Vol._y == 100) { Display_Volume.Vol._y = 120; } mp3 = new Sound(); mp3.onID3 = function () { for (var _local2 in this.id3) { } }; mp3.onSoundComplete = function (success) { o.equaLaserSet(1); o.Playing = false; o.Buffering = false; o.Paused = false; o.Pause = 0; o.Slider._x = o.slider_start_x; o.Slider.draging = false; if (o.isRepeat()) { } else if (o.isShuffle()) { o.current_music = random(o.Music_Count); } else { o.current_music = o.current_music + 1; if (o.current_music >= o.Music_Count) { o.current_music = 0; } } o.playMusic(o.current_music); o.playlistShowMusic(o.current_music); }; onEnterFrame = function () { var _local2 = 0; while (_local2 < this.Music_Count) { this.PlayList["Music" + _local2].bg._visible = false; _local2++; } this.PlayList["Music" + this.current_music].bg._visible = true; }; if ((PL.length != 0) && (PL.length != undefined)) { loadPlayList(); } setMainSettings(); if ((PL.length != 0) && (PL.length != undefined)) { current_music = 0; } if ((PL.length != 0) && (PL.length != undefined)) { PlayList.Music0.Over = true; } if ((PL.length != 0) && (PL.length != undefined)) { PlayList.Music0._btn.onRelease(); playlistShowMusic(0); } if ((PL.length != 0) && (PL.length != undefined)) { checkAutoStart(); } var dir = _root._url; dir = dir.substring(0, dir.lastIndexOf("webradio.swf")); send_sockstate_vars = new LoadVars(); load_sockstate_vars = new LoadVars(); load_sockstate_vars.onLoad = function (success) { o.setSockEnabled(this.result); }; send_sockstate_vars.sendAndLoad(dir + "php/sock.exist.php", load_sockstate_vars); } function resetMainButtonEffect() { setMainButtonEffect(""); } function setMainButtonEffect(button_name) { switch (button_name) { case "play" : mainbuttons_mc.playbtn_eff.gotoAndStop(2); break; case "pause" : mainbuttons_mc.pausebtn_eff.gotoAndStop(2); break; case "stop" : mainbuttons_mc.stopbtn_eff.gotoAndStop(2); break; default : mainbuttons_mc.playbtn_eff.gotoAndStop(1); mainbuttons_mc.pausebtn_eff.gotoAndStop(1); mainbuttons_mc.stopbtn_eff.gotoAndStop(1); } } function playlistSetSize(inWidth) { var _local2 = 0; while (_local2 < Music_Count) { PlayList["Music" + _local2].bg._width = 400; PlayList["Music" + _local2].ln_txt._x = 0; PlayList["Music" + _local2].ln_txt._width = plMask_mc._width * 0.08; PlayList["Music" + _local2].l_txt._x = PlayList["Music" + _local2].ln_txt._x + PlayList["Music" + _local2].ln_txt._width; PlayList["Music" + _local2].l_txt._width = (plMask_mc._width * 0.445) - 15; PlayList["Music" + _local2].m_txt._x = PlayList["Music" + _local2].l_txt._width + 15; PlayList["Music" + _local2].m_txt._width = PlayList["Music" + _local2].l_txt._width - 16; PlayList["Music" + _local2].r_txt._x = PlayList["Music" + _local2].m_txt._x + PlayList["Music" + _local2].m_txt._width; PlayList["Music" + _local2].r_txt._width = ((plMask_mc._width - PlayList["Music" + _local2].ln_txt._width) - PlayList["Music" + _local2].l_txt._width) - PlayList["Music" + _local2].m_txt._width; PlayList["Music" + _local2]._btn._xscale = 300; _local2++; } } function setTotalTimer() { var _local2 = int(int(mp3.duration / 1000) / 60); if (_local2 < 10) { _local2 = "0" + _local2; } var _local3 = int(mp3.duration / 1000) - (_local2 * 60); if (_local3 < 10) { _local3 = "0" + _local3; } var _local5 = time_format.split("MM"); var _local4 = _local5[1].split("SS"); TotalTimer.text = (((_local5[0] + _local2) + _local4[0]) + _local3) + _local4[1]; } function loadPlayList(inmusicToShow, inautoplayMusicToShow) { var o = this; var _local2 = 0; while (_local2 < Music_Count) { PlayList["Music" + _local2].removeMovieClip(); _local2++; } Music_Count = PL.length; _local2 = 0; while (_local2 < Music_Count) { PlayList.attachMovie("Music_File", "Music" + _local2, PlayList.getNextHighestDepth()); PlayList["Music" + _local2].ln_txt.text = (_local2 + 1) + "."; PlayList["Music" + _local2].l_txt.text = PL[_local2].sname; if (pl_option == "GENRE") { PlayList["Music" + _local2].m_txt.text = PL[_local2].sgenre; } else { var _local3 = PL[_local2].surl.split("//"); _local3.shift(); var _local4 = _local3.join(); PlayList["Music" + _local2].m_txt.text = _local4; } if (quality_calced) { PlayList["Music" + _local2].r_txt.text = PL[_local2].squality; } PlayList["Music" + _local2].Track = _local2; PlayList["Music" + _local2].over_color = pl_ro_color; if (_local2 > 0) { PlayList["Music" + _local2]._y = (_local2 * (PlayList.Music0._height + 1)) + 1; } else { PlayList["Music" + _local2]._y = 1; } PlayList["Music" + _local2]._btn.onRelease = function () { o.playMusic(this._parent.Track); }; PlayList["Music" + _local2]._btn.onRollOver = function () { this._parent.Over = true; this._parent._parent.Over = true; }; PlayList["Music" + _local2]._btn.onRollOut = function () { this._parent.Over = false; this._parent._parent.Over = false; }; PlayList["Music" + _local2].bg._alpha = 100; _local2++; } playlistSetSize(plMask_mc._width * (plMask_mc._xscale / 100)); if (inmusicToShow != undefined) { current_music = inmusicToShow; if (inautoplayMusicToShow == true) { playMusic(current_music); } } else { playMusic(0); checkAutoStart(); } if ((PlayList._height - 1) < plMask_mc._height) { plScroller_mc._visible = false; } else { plScroller_mc._visible = true; } } function equaLaserSet(inValue) { Equa_Laser.gotoAndStop(inValue); } function playMusic(Track_Number) { var _local5 = track_format.split("number"); TrackNumber.text = (_local5[0] + (Track_Number + 1)) + _local5[1]; Playing = false; equaLaserSet(2); Slider._x = slider_start_x; current_music = Track_Number; var _local3 = _url; _local3 = _local3.substring(0, _local3.lastIndexOf("webradio.swf")); System.security.allowDomain(PL[Track_Number].surl.substr(0, PL[Track_Number].surl.lastIndexOf(":"))); mp3.start(0); mp3.stop(); mp3.loadSound(); if (sockets_enabled) { if (String(opened_by) == "MOZILLA") { mp3.loadSound((_local3 + "php/stream.php?url=") + escape(PL[Track_Number].surl), true); } else { mp3.loadSound((_local3 + "php/stream.php?url=") + escape(PL[Track_Number].surl), true); } } else { Scroller.Value.txt = socket_error_message; } mp3.start(); mp3.setVolume(pl_value); mp3.setPan(pl_pan); setTotalTimer(); Buffering = true; Paused = false; Pause = 0; Playing = true; var _local2 = add_config.onStartPlay; if (_local2 != undefined) { if (_local2.showPause != undefined) { pause_btn._visible = _local2.showPause; } if (_local2.showPlay != undefined) { play_btn._visible = _local2.showPlay; } } if (currmp3_txt != undefined) { currmp3_txt.text = (String(current_music + 1) + "/") + String(Music_Count); } if (((mainbuttons_mc.playbtn_eff != undefined) || (mainbuttons_mc.stopbtn_eff != undefined)) || (mainbuttons_mc.pausebtn_eff != undefined)) { resetMainButtonEffect(); setMainButtonEffect("play"); } Slider._i = 19; } function playlistSort(inColumnName, inSortAsc) { function compareByStation(o1, o2) { if (o1.sname < o2.sname) { return(-1); } if (o1.sname > o2.sname) { return(1); } return(0); } function compareByGenre(o1, o2) { if (o1.sgenre < o2.sgenre) { return(-1); } if (o1.sgenre > o2.sgenre) { return(1); } return(0); } function compareByIP(o1, o2) { if (o1.surl < o2.surl) { return(-1); } if (o1.surl > o2.surl) { return(1); } return(0); } function compareByQuality(o1, o2) { if (o1.squality < o2.squality) { return(-1); } if (o1.squality > o2.squality) { return(1); } return(0); } var _local4 = PL[current_music].surl; switch (inColumnName) { case "STATION" : if (inSortAsc) { PL.sort(compareByStation); } else { PL.sort(compareByStation, Array.DESCENDING); } break; case "GENRE_OR_IP" : if (pl_option == "GENRE") { if (inSortAsc) { PL.sort(compareByGenre); } else { PL.sort(compareByGenre, Array.DESCENDING); } } else if (inSortAsc) { PL.sort(compareByIP); } else { PL.sort(compareByIP, Array.DESCENDING); } break; case "QUALITY" : if (inSortAsc) { PL.sort(compareByQuality); } else { PL.sort(compareByQuality, Array.DESCENDING); } break; default : return(undefined); } var _local3 = 0; var _local2 = 0; while (_local2 < PL.length) { if (PL[_local2].surl == _local4) { _local3 = _local2; break; } _local2++; } loadPlayList(_local3, false); setPlayListRollOverColor(pl_ro_color); setPlayListClickColor(pl_cl_color); playlistShowMusic(current_music); } function playlistShow(inValue) { var _local2 = (PlayList._height - plMask_mc._height) / (PlayList.Music0._height + 1); var _local3 = inValue * _local2; PlayList._y = (plMask_mc._y - (_local3 * (PlayList.Music0._height + 1))) + 1.5; } function repeat(inValue) { if (inValue != undefined) { if (inValue) { _Repeat.gotoAndStop(2); } else { _Repeat.gotoAndStop(1); } } else if (_Repeat._currentframe == 1) { _Repeat.gotoAndPlay(2); } else { _Repeat.gotoAndPlay(1); } } function isRepeat() { return(_Repeat._currentframe == 2); } function shuffle(inValue) { if (inValue != undefined) { if (inValue) { _Shuffle.gotoAndStop(2); } else { _Shuffle.gotoAndStop(1); } } else if (_Shuffle._currentframe == 1) { _Shuffle.gotoAndPlay(2); } else { _Shuffle.gotoAndPlay(1); } } function isShuffle() { return(_Shuffle._currentframe == 2); } function checkAutoStart() { if (!auto_start) { stop_btn.onRelease(); Slider._x = slider_start_x; } } function playlistShowMusic(y_index) { if ((PlayList["Music" + (Music_Count - 1)]._y + PlayList["Music" + (Music_Count - 1)]._height) < plMask_mc._height) { return(undefined); } var _local3 = PlayList["Music" + y_index]._y - (PlayList["Music" + y_index]._height / 3); var _local4 = PlayList["Music" + (Music_Count - 1)]._y; if ((_local4 - _local3) > (plMask_mc._height - 5)) { PlayList._y = (plMask_mc._y - _local3) - 1.5; } else { PlayList._y = (plMask_mc._y - (PlayList._height - plMask_mc._height)) + 1.5; plScroller_mc._y = (plScrollbg_mc._y + plScrollbg_mc._height) - plScroller_mc._height; return(undefined); } if ((_parent._ymouse >= (_parent.plScrollbg_mc._y + (_parent.plScroller_mc._height / 2))) && (_parent._ymouse <= ((_parent.plScrollbg_mc._y + _parent.plScrollbg_mc._height) - (_parent.plScroller_mc._height / 2)))) { _parent.plScroller_mc._y = _parent._ymouse - (_parent.plScroller_mc._height / 2); } var _local2 = ((plMask_mc._y - PlayList._y) - 5) / (PlayList._height - plMask_mc._height); if (_local2 < 0) { _local2 = 0; } plScroller_mc._y = plScrollbg_mc._y + ((plScrollbg_mc._height - plScroller_mc._height) * _local2); if (plScroller_mc._y > ((plScrollbg_mc._y + plScrollbg_mc._height) - plScroller_mc._height)) { plScroller_mc._y = (plScrollbg_mc._y + plScrollbg_mc._height) - plScroller_mc._height; } } function checkSkinLoading() { var _local2 = (loaded_movie_mc.getBytesLoaded() / loaded_movie_mc.getBytesTotal()) * 100; if (_local2 == 100) { loaded_movie_mc._xscale = 100; loaded_movie_mc._yscale = 100; loading_txt._visible = false; loading_mc._visible = false; InitPlayer(); loading_checker_mc.onEnterFrame = undefined; } } function setPlayerSkin() { loaded_movie_mc.unloadMovie(); loaded_movie_mc.loadMovie(default_skin); loading_checker_mc = createEmptyMovieClip("loading_checker_mc", 2); loading_checker_mc.onEnterFrame = function () { this._parent.checkSkinLoading(); }; } function startCheckingQuality() { checkQuality(0); } function checkQuality(PL_index) { var _local3 = PL[PL_index].surl.split(":"); var _local5 = ""; if (_local3.length >= 3) { _local5 = (_local3[0] + ":") + _local3[1]; } else if (_local3[1].indexOf("/") == -1) { _local5 = (_local3[0] + ":") + _local3[1]; } else { var _local7 = _local3[1].split("/"); _local5 = (_local3[0] + ":") + _local7[0]; } var _local4 = _root._url; _local4 = _local4.substring(0, _local4.lastIndexOf("webradio.swf")); send_quality_vars.host = _local5; send_quality_vars.surl = PL[PL_index].surl; var _local8 = new Date(); ping_mc.start_time = _local8.getTime(); if (sockets_enabled) { if (String(opened_by) == "MOZILLA") { send_quality_vars.sendAndLoad((_local4 + "php/stream.php?ping=true&url=") + escape(PL[PL_index].surl), load_quality_vars); } else { send_quality_vars.sendAndLoad((_local4 + "php/stream.php?ping=true&url=") + escape(PL[PL_index].surl), load_quality_vars); } } else { Scroller.Value.txt = socket_error_message; } send_quality_vars.start_pinging = true; } function pinging() { if (send_quality_vars.start_pinging == true) { var _local2 = new Date(); var _local4 = _local2.getTime() - ping_mc.start_time; var _local3 = quality_timeout * 1000; if (_local4 > _local3) { send_quality_vars.start_pinging = false; delete load_quality_vars; load_quality_vars = new LoadVars(); load_quality_vars._result = 20; loadQualityVarsOnLoad(load_quality_vars, true); return(undefined); } if ((load_quality_vars.getBytesLoaded() != undefined) && (load_quality_vars.getBytesLoaded() > 0)) { send_quality_vars.start_pinging = false; delete load_quality_vars; load_quality_vars = new LoadVars(); load_quality_vars._result = (_local2.getTime() - ping_mc.start_time) / 10000; loadQualityVarsOnLoad(load_quality_vars, true); return(undefined); } } } function debug(inStr) { getURL(("JavaScript:show(' " + inStr) + " ') "); } function calcQuality(quality_icon) { quality_calced = true; var _local6 = 1000; var _local7 = 0; var _local2 = quality_icon; var _local4 = 0; while (_local4 < PL.length) { if (PL[_local4].squality == 20) { } else { if (PL[_local4].squality > _local7) { _local7 = PL[_local4].squality; } if (PL[_local4].squality < _local6) { _local6 = PL[_local4].squality; } } _local4++; } _local4 = 0; while (_local4 < PL.length) { if (PL[_local4].squality == 20) { PL[_local4].squality = "-"; } else { var _local5 = 0.1; var _local3 = ""; if (_local6 != _local7) { _local5 = (PL[_local4].squality - _local6) / (_local7 - _local6); } if (_local5 < 0.2) { _local3 = (((_local2 + _local2) + _local2) + _local2) + _local2; } else if (_local5 < 0.4) { _local3 = ((_local2 + _local2) + _local2) + _local2; } else if (_local5 < 0.6) { _local3 = (_local2 + _local2) + _local2; } else if (_local5 < 0.8) { _local3 = _local2 + _local2; } else { _local3 = _local2; } PL[_local4].squality = _local3; } _local4++; } showQuality(quality_icon); } function setMainSettings() { setPlayListRollOverColor(pl_ro_color); setPlayListClickColor(pl_cl_color); setShuffleEnabled(shuffle_is_enabled); setVolume(default_volume); setPan(default_pan); setLabels(); showQuality(quality_icon); if (pl_option == "GENRE") { setGenreTitle(genre_title); } else if (pl_option == "IP") { playlist_top_mc.genre_or_ip_mc.genre_or_ip_txt.text = "IP"; } setStationTitle(station_title); setQualityTitle(quality_title); } function setLabels() { if (main_title != "") { maintitle_txt.text = main_title; } if (playlist_title != "") { playlist_title_txt.text = playlist_title; } if (total_time_caption != "") { mm_ss_txt.text = total_time_caption; } if (pan_labels != "") { var _local2 = pan_labels.split(","); panl_txt.text = _local2[0]; panr_txt.text = _local2[1]; } } function showQuality(in_quality_icon) { quality_icon = in_quality_icon; var _local2 = 0; while (_local2 < PL.length) { if (PL[_local2].squality == undefined) { return(undefined); } if (PL[_local2].squality == "-") { PlayList["Music" + _local2].r_txt.text = "-"; } else { var _local4 = ""; var _local3 = 0; while (_local3 < PL[_local2].squality.length) { _local4 = _local4 + in_quality_icon; _local3++; } PlayList["Music" + _local2].r_txt.text = _local4; } _local2++; } } function setAutoStart(inauto_start) { auto_start = inauto_start; } function setMainTitle(inTitle) { main_title = inTitle; maintitle_txt.text = main_title; } function setGenreTitle(inTitle) { genre_title = inTitle; playlist_top_mc.genre_or_ip_mc.genre_or_ip_txt.text = inTitle; } function setStationTitle(inTitle) { station_title = inTitle; playlist_top_mc.station_mc.station_txt.text = inTitle; } function setQualityTitle(inTitle) { quality_title = inTitle; playlist_top_mc.quality_mc.quality_txt.text = inTitle; } function setQualityIcon(inIcon) { quality_icon = inIcon; showQuality(quality_icon); } function setTotalTimeCaption(inCaption) { total_time_caption = inCaption; mm_ss_txt.text = total_time_caption; } function setPanLabels(inLabels) { pan_labels = inLabels; var _local2 = pan_labels.split(","); panl_txt.text = _local2[0]; panr_txt.text = _local2[1]; } function setPlayListTitle(inTitle) { playlist_title = inTitle; playlist_title_txt.text = playlist_title; } function setSkin(skin_path) { default_skin = skin_path; } function loadSkin() { if (flash_player_need_update) { return(undefined); } setPlayerSkin(default_skin); } function setPlayListRollOverColor(inColor) { var _local2 = 0; while (_local2 < Music_Count) { var _local3 = new Color(PlayList["Music" + _local2]._btn); _local3.setRGB(inColor); _local2++; } } function setPlayListClickColor(inColor) { var _local2 = 0; while (_local2 < Music_Count) { var _local3 = new Color(PlayList["Music" + _local2].bg); _local3.setRGB(inColor); PlayList["Music" + _local2].bg._alpha = 100; _local2++; } } function setScrollerSpeed(inValue) { scroller_speed = inValue; } function setScrollerMarqueeContent(inValue) { scroller_marquee_content = inValue; } function setShuffleEnabled(inValue) { shuffle(inValue); shuffle_is_enabled = inValue; } function setVolume(inValue) { if (inValue < 0) { inValue = 0; } else if (inValue > 100) { inValue = 100; } pl_value = inValue; default_volume = inValue; Display_Volume.Vol._y = 100 - inValue; if (inValue == 0) { Display_Volume.Vol._y = 120; } mp3.setVolume(inValue); var _local3 = vol.vol_start_x + ((inValue / 100) * ((((vol.vol_start_x + (vol_clicker._width * (vol_clicker._xscale / 100))) - (vol._width * 2)) - (vol.vol_start_x + (vol._width / 2))) + 4)); if (add_config.vol_clicker.isVertical == undefined) { vol._x = vol.vol_start_x + ((inValue / 100) * (vol_clicker._width - vol._width)); } else { vol._y = vol.vol_start_y - ((pl_value / 100) * (vol_clicker._height - vol._height)); } if (mainbuttons_mc.vol_txt != undefined) { _local3 = pl_value / 10; mainbuttons_mc.vol_txt.text = ("Vol" + ((_local3 == 10) ? "" : " ")) + _local3; } } function setPan(inValue) { if (inValue < -100) { inValue = -100; } else if (inValue > 100) { inValue = 100; } default_pan = inValue; pan._x = ((inValue + 100) * ((pan_clicker._width - pan._width) / 200)) + pan.pan_start_x; mp3.setPan(inValue); pl_pan = inValue; } function playListShow(option) { if (option == "GENRE") { pl_option = option; playlist_top_mc.genre_or_ip_txt.text = "GENRE"; } else if (option == "IP") { pl_option = option; playlist_top_mc.genre_or_ip_txt.text = "IP"; } loadPlayList(); } function setStations(s_arr) { quality_calced = false; stop_btn.onRelease(); delete PL; PL = new Array(); var _local2 = 0; while (_local2 < s_arr.length) { var _local4 = s_arr[_local2].surl.split(":"); var _local5 = _local4[0].substring(1); s_arr[_local2].squality = ""; PL.push(s_arr[_local2]); _local2++; } loadPlayList(); current_music = -1; ff_btn.onRelease(); PlayList.Music0.Over = true; PlayList.Music0._btn.onRelease(); checkAutoStart(); startCheckingQuality(); } function setMusicErrorMessage(inStr) { if (inStr != "") { music_error_message = inStr; } } function setSocketErrorMessage(inStr) { socket_error_message = inStr; } function setQualityTimeout(inN) { if ((inN > 0) && (inN < 50)) { quality_timeout = inN; } else if (inN <= 0) { quality_timeout = 1; } else if (inN >= 50) { quality_timeout = 50; } } function setMusicnameTimeout(inN) { if ((inN > 0) && (inN < 50)) { musicname_timeout = inN; } else if (inN <= 0) { musicname_timeout = 1; } else if (inN >= 50) { musicname_timeout = 50; } } var sockets_enabled = true; var random_array = []; var slider_start_x = 0; var pl_option = "GENRE"; var quality_calced = false; var auto_resize = true; var time_format = "MM:SS"; var time_visible = true; var track_format = "#number"; var track_visible = true; var pl_cl_color = 12907519; var pl_ro_color = 10132122; var radio_stations = new Array(); var pl_value = -1; var pl_pan = -101; var Pause = 0; var Buffering = false; var Playing = false; var Paused = false; var current_music = 0; var Music_Count = 0; var flash_player_need_update = false; var auto_start = true; var scroller_speed = 2; var scroller_marquee_content = "#CURRENT_SONG#"; var shuffle_is_enabled = true; var default_volume = 50; var default_pan = 0; var default_skin = "../component/skin1.swf"; var main_title = "WINAMP"; var playlist_title = "PLAYLIST"; var total_time_caption = "TOTAL TIME"; var pan_labels = "L,R"; var genre_title = "GENRE"; var station_title = "STATION"; var quality_title = "QUALITY"; var quality_icon = "*"; var music_error_message = "Please, open WebRadio in Mozilla"; var socket_error_message = "Sockets are not enabled on server"; var quality_timeout = 3; var musicname_timeout = 2; }
Symbol 13 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip { var _visible, _x, _y, _width, _height; function SkinElement () { super(); } static function registerElement(name, className) { Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className))); _global.skinRegistry[name] = true; } function __set__visible(visible) { _visible = visible; } function move(x, y) { _x = x; _y = y; } function setSize(w, h) { _width = w; _height = h; } }
Symbol 14 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles { function CSSTextStyles () { } static function addTextStyles(o, bColor) { o.addProperty("textAlign", function () { return(this._tf.align); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.align = x; }); o.addProperty("fontWeight", function () { return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.bold = x == "bold"; }); if (bColor) { o.addProperty("color", function () { return(this._tf.color); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.color = x; }); } o.addProperty("fontFamily", function () { return(this._tf.font); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.font = x; }); o.addProperty("textIndent", function () { return(this._tf.indent); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.indent = x; }); o.addProperty("fontStyle", function () { return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.italic = x == "italic"; }); o.addProperty("marginLeft", function () { return(this._tf.leftMargin); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.leftMargin = x; }); o.addProperty("marginRight", function () { return(this._tf.rightMargin); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.rightMargin = x; }); o.addProperty("fontSize", function () { return(this._tf.size); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.size = x; }); o.addProperty("textDecoration", function () { return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.underline = x == "underline"; }); o.addProperty("embedFonts", function () { return(this._tf.embedFonts); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.embedFonts = x; }); } }
Symbol 15 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager { function StyleManager () { } static function registerInheritingStyle(styleName) { inheritingStyles[styleName] = true; } static function isInheritingStyle(styleName) { return(inheritingStyles[styleName] == true); } static function registerColorStyle(styleName) { colorStyles[styleName] = true; } static function isColorStyle(styleName) { return(colorStyles[styleName] == true); } static function registerColorName(colorName, colorValue) { colorNames[colorName] = colorValue; } static function isColorName(colorName) { return(colorNames[colorName] != undefined); } static function getColorName(colorName) { return(colorNames[colorName]); } static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true}; static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true}; static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344}; static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false}; static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true}; }
Symbol 16 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration { var _tf; function CSSStyleDeclaration () { } function __getTextFormat(tf, bAll) { var _local5 = false; if (_tf != undefined) { var _local2; for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) { if (tf[_local2] == undefined) { var _local3 = _tf[_local2]; if (_local3 != undefined) { tf[_local2] = _local3; } else { _local5 = true; } } } } } else { _local5 = true; } return(_local5); } function getStyle(styleProp) { var _local2 = this[styleProp]; var _local3 = mx.styles.StyleManager.getColorName(_local2); return(((_local3 == undefined) ? (_local2) : (_local3))); } static function classConstruct() { mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true); return(true); } static var classConstructed = classConstruct(); static var CSSTextStylesDependency = mx.styles.CSSTextStyles; }

Library Items

Symbol 3 GraphicUsed by:4
Symbol 4 MovieClipUses:3Used by:12
Symbol 5 GraphicUsed by:8
Symbol 6 FontUsed by:7
Symbol 7 EditableTextUses:6Used by:8
Symbol 8 MovieClip [upgrade button]Uses:5 7Used by:11 12
Symbol 9 FontUsed by:10
Symbol 10 EditableTextUses:9Used by:11
Symbol 11 MovieClip [upgradeMsg_src]Uses:8 10Used by:12
Symbol 12 MovieClip [webradio]Uses:4 8 11Used by:Timeline
Symbol 1 MovieClip [__Packages.mx.core.UIObject]
Symbol 2 MovieClip [__Packages.tufat.com.controls.webradio]
Symbol 13 MovieClip [__Packages.mx.skins.SkinElement]
Symbol 14 MovieClip [__Packages.mx.styles.CSSTextStyles]
Symbol 15 MovieClip [__Packages.mx.styles.StyleManager]
Symbol 16 MovieClip [__Packages.mx.styles.CSSStyleDeclaration]

Instance Names

"webradio_mc"Frame 1Symbol 12 MovieClip [webradio]
"upgradeBtn"Symbol 11 MovieClip [upgradeMsg_src] Frame 1Symbol 8 MovieClip [upgrade button]
"loading_mc"Symbol 12 MovieClip [webradio] Frame 1Symbol 4 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 8 as "upgrade button"
ExportAssets (56)Timeline Frame 1Symbol 11 as "upgradeMsg_src"
ExportAssets (56)Timeline Frame 1Symbol 12 as "webradio"
ExportAssets (56)Timeline Frame 1Symbol 1 as "__Packages.mx.core.UIObject"
ExportAssets (56)Timeline Frame 1Symbol 2 as "__Packages.tufat.com.controls.webradio"
ExportAssets (56)Timeline Frame 1Symbol 13 as "__Packages.mx.skins.SkinElement"
ExportAssets (56)Timeline Frame 1Symbol 14 as "__Packages.mx.styles.CSSTextStyles"
ExportAssets (56)Timeline Frame 1Symbol 15 as "__Packages.mx.styles.StyleManager"
ExportAssets (56)Timeline Frame 1Symbol 16 as "__Packages.mx.styles.CSSStyleDeclaration"




http://swfchan.com/17/84865/info.shtml
Created: 31/3 -2019 05:50:52 Last modified: 31/3 -2019 05:50:52 Server time: 01/05 -2024 09:43:14