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

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

Player.swf

This is the info page for
Flash #78314

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


Text
Song Title

0:00/5:00

ActionScript [AS1/AS2]

Symbol 2 MovieClip Frame 1
ParamsValue = "<ParamsValue><Bg.Color>0x000000</Bg.Color><Bg.BgColor>0xFFFFFF</Bg.BgColor></ParamsValue>"; ParamsDefine = "<ParamsDefine><Bg.Color caption=\"Color\" type=\"color\" default=\"0xFFFFFF\"/><Bg.BgColor caption=\"Background color\" type=\"color\" default=\"0x000000\"/></ParamsDefine>"; param = new Array(); if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = true; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; i++; } param["Bg.Color"] = parseInt(param["Bg.Color"]); } else { param["Bg.Color"] = 16777215 /* 0xFFFFFF */; param["Bg.BgColor"] = 0; } _parent.stop(); var myColor = new Color(loadingCircle); myColor.setRGB(param["Bg.Color"]); bytesDisplay.textColor = param["Bg.Color"];
Symbol 2 MovieClip Frame 2
var siteLoaded = _parent.getBytesLoaded(); var siteTotal = _parent.getBytesTotal(); var percentage = Math.round((siteLoaded / siteTotal) * 100); bytesDisplay.text = percentage; if (siteLoaded >= siteTotal) { gotoAndPlay(_currentframe + 2); }
Symbol 2 MovieClip Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 2 MovieClip Frame 4
stop(); _parent.play();
Symbol 13 MovieClip Frame 1
stop(); this.onRollOver = function () { this.gotoAndStop(2); }; this.onRollOut = function () { this.gotoAndStop(1); }; this.onPress = function () { this.gotoAndStop(3); };
Symbol 15 MovieClip Frame 1
stop(); this.onRollOver = function () { this.gotoAndStop(2); }; this.onRollOut = function () { this.gotoAndStop(1); }; this.onPress = function () { this.gotoAndStop(3); };
Symbol 17 MovieClip Frame 1
stop(); this.onRollOver = function () { this.gotoAndStop(2); }; this.onRollOut = function () { this.gotoAndStop(1); }; this.onPress = function () { this.gotoAndStop(3); };
Symbol 19 MovieClip Frame 1
stop(); this.onRollOver = function () { this.gotoAndStop(2); }; this.onRollOut = function () { this.gotoAndStop(1); }; this.onPress = function () { this.gotoAndStop(3); };
Symbol 21 MovieClip Frame 1
stop(); this.onRollOver = function () { this.gotoAndStop(2); }; this.onRollOut = function () { this.gotoAndStop(1); }; this.onPress = function () { this.gotoAndStop(3); };
Symbol 25 MovieClip Frame 1
stop(); this.onRollOver = function () { this.gotoAndStop(2); }; this.onRollOut = function () { this.gotoAndStop(1); }; this.onPress = function () { this.gotoAndStop(3); };
Symbol 25 MovieClip Frame 4
stop(); this.onRollOver = function () { this.gotoAndStop(5); }; this.onRollOut = function () { this.gotoAndStop(4); }; this.onPress = function () { this.gotoAndStop(6); };
Symbol 33 MovieClip Frame 1
stop(); var i = 0; while (i < 5) { this["EffectBar" + i]._visible = true; this["EffectBar" + i]._yscale = 100; this["EffectBar" + i].onEnterFrame = function () { }; i++; }
Symbol 33 MovieClip Frame 29
stop(); var i = 0; while (i < 5) { this["EffectBar" + i]._visible = true; this["EffectBar" + i].onEnterFrame = function () { var _local1 = this; _local1._yscale = _local1._yscale - ((_local1._yscale - (random(80) + 20)) / 2); }; i++; }
Symbol 9 MovieClip Frame 1
ParamsValue = "<ParamsValue><Py.MovieFPS>12</Py.MovieFPS><Py.PlayPercent>0</Py.PlayPercent><Py.Autostart>Yes</Py.Autostart><Py.Loop>Yes</Py.Loop><Py.Shuffle>No</Py.Shuffle></ParamsValue>"; MAXWAITFRAME = 60; GlobalInner = false; function ReadParams() { GlobalPlayerOptions["Py.Loop"] = "Yes"; GlobalPlayerOptions["Py.Autostart"] = "Yes"; GlobalPlayerOptions["Py.Shuffle"] = "No"; GlobalPlayerOptions["Py.LightColor"] = 8421440 /* 0x808040 */; GlobalPlayerOptions["Py.TextColor"] = 15658734 /* 0xEEEEEE */; GlobalPlayerOptions["Py.EffectColor"] = 32768; GlobalPlayerOptions["Py.PlaylistTimeout"] = 36; GlobalPlayerOptions["Py.PlayPercent"] = 10; GlobalPlayerOptions["Py.MovieFPS"] = 12; if (ParamsValue != null) { var _local3 = new XML(ParamsValue); _local3.ignoreWhite = true; var _local2 = 0; while (_local2 < _local3.childNodes[0].childNodes.length) { var _local1 = _local3.childNodes[0].childNodes[_local2]; GlobalPlayerOptions[_local1.nodeName] = _local1.childNodes[0].nodeValue; _local2++; } GlobalPlayerOptions["Py.LightColor"] = parseInt(GlobalPlayerOptions["Py.LightColor"]); GlobalPlayerOptions["Py.TextColor"] = parseInt(GlobalPlayerOptions["Py.TextColor"]); GlobalPlayerOptions["Py.EffectColor"] = parseInt(GlobalPlayerOptions["Py.EffectColor"]); GlobalPlayerOptions["Py.PlaylistTimeout"] = parseInt(GlobalPlayerOptions["Py.PlaylistTimeout"]); GlobalPlayerOptions["Py.PlayPercent"] = parseInt(GlobalPlayerOptions["Py.PlayPercent"]); GlobalPlayerOptions["Py.MovieFPS"] = parseInt(GlobalPlayerOptions["Py.MovieFPS"]); } } function DrawInit() { var _local1; ReadParams(); ProgressBarMC.SetColor = GlobalPlayerOptions["Py.LightColor"]; VolumeBarMC.SetColor = GlobalPlayerOptions["Py.LightColor"]; VolumeBarMC.VolumeLevel = GlobalVolumeValue; EffectMC.SetColor = GlobalPlayerOptions["Py.EffectColor"]; _local1 = new Color(TextTitle); _local1.setRGB(GlobalPlayerOptions["Py.TextColor"]); _local1 = new Color(TextTime); _local1.setRGB(GlobalPlayerOptions["Py.TextColor"]); PlayListObj._alpha = 100; PlayListObj.setStyle("fontSize", 11); PlayListObj.rowHeight = 18; PlayListObj.vScrollPolicy = "auto"; PlayListObj.setStyle("borderStyle", "none"); PlayListObj.setStyle("backgroundColor", 16777215); PlayListObj.setStyle("selectionColor", 10209008); PlayListObj.setStyle("textSelectedColor", 16777215); PlayListObj.setStyle("color", 3355443); if (!GlobalShowPlaylist) { PlayListObj._visible = false; } var _local2 = new Sound(); _local2.setVolume(0); } function DrawAtItem() { var TotalTime; TextTitle.text = ""; if (GlobalPlayList[GlobalCurItem - 1][1] != undefined) { TextTitle.text = GlobalPlayList[GlobalCurItem - 1][1]; } if (GlobalPlayList[GlobalCurItem - 1][2] != undefined) { TextTitle.text = (TextTitle.text + " ") + GlobalPlayList[GlobalCurItem - 1][2]; } if (GlobalPlayList[GlobalCurItem - 1][3] != undefined) { TextTitle.text = (TextTitle.text + " ") + GlobalPlayList[GlobalCurItem - 1][3]; } if (TextTitle.text == "") { TextTitle.text = GlobalPlayList[GlobalCurItem - 1][0]; } TextTitle.hscroll = 0; if (TextTitle.maxhscroll > 0) { TextTitle.text = (TextTitle.text + " ") + TextTitle.text; } DrawTime(); ProgressSlideMC._x = ProgressBarMC._x; ProgressBarMC.ProgressLevel = 0; PlayListObj.selectedIndex = GlobalCurItem - 1; } function DrawEffect(State, CurLoadedPercent) { if (State == 0) { EffectMC.CurLoadedPercent = CurLoadedPercent; EffectMC.gotoAndStop("PlayState"); } else if (State == 1) { EffectMC.gotoAndStop("PlayState"); } else { EffectMC.gotoAndStop("StopState"); } } function CheckMusicValid(Item) { return(true); } function GetCurrentFrame(Item) { var _local2 = Item; var _local1; switch (GlobalItemType[_local2]) { case 0 : _local1 = GlobalItemObject[_local2]._currentframe; break; case 1 : _local1 = GlobalItemObject[_local2].time * GlobalPlayerOptions["Py.MovieFPS"]; break; case 2 : _local1 = (GlobalItemObject[_local2].position / 1000) * GlobalPlayerOptions["Py.MovieFPS"]; } return(_local1); } function GetTotalFrames(Item) { var _local2 = Item; var _local1; switch (GlobalItemType[_local2]) { case 0 : _local1 = GlobalItemObject[_local2]._totalframes; break; case 1 : _local1 = GlobalItemTotalTime[_local2] * GlobalPlayerOptions["Py.MovieFPS"]; break; case 2 : _local1 = (GlobalItemObject[_local2].duration / 1000) * GlobalPlayerOptions["Py.MovieFPS"]; } return(_local1); } function MusicGetBytesTotal(Item) { var _local1 = Item; var _local2; switch (GlobalItemType[_local1]) { case 0 : _local2 = GlobalItemObject[_local1].getBytesTotal(); break; case 1 : if (((GlobalItemTotalTime[_local1] == 0) || (GlobalItemFailed[_local1])) || (isNaN(GlobalItemObject[_local1].bytesTotal))) { _local2 = 0; break; } _local2 = GlobalItemObject[_local1].bytesTotal; break; case 2 : if (((GlobalItemObject[_local1].duration == 0) || (GlobalItemFailed[_local1])) || (isNaN(GlobalItemObject[_local1].getBytesTotal()))) { _local2 = 0; } else { _local2 = GlobalItemObject[_local1].getBytesTotal(); } } return(_local2); } function MusicGetBytesLoaded(Item) { var _local2 = Item; var _local1; switch (GlobalItemType[_local2]) { case 0 : _local1 = GlobalItemObject[_local2].getBytesLoaded(); break; case 1 : _local1 = GlobalItemObject[_local2].bytesLoaded; break; case 2 : _local1 = GlobalItemObject[_local2].getBytesLoaded(); } return(_local1); } function MusicGotoAndPlay(Item, FramePos) { var _local1 = Item; var _local2 = FramePos; switch (GlobalItemType[_local1]) { case 0 : GlobalItemObject[_local1].gotoAndPlay(_local2); return; case 1 : GlobalItemObject[_local1].seek((_local2 - 1) / GlobalPlayerOptions["Py.MovieFPS"]); GlobalItemObject[_local1].pause(false); return; case 2 : GlobalItemObject[_local1].start((_local2 - 1) / GlobalPlayerOptions["Py.MovieFPS"]); } } function MusicGotoAndStop(Item, FramePos) { var _local1 = Item; var _local2 = FramePos; switch (GlobalItemType[_local1]) { case 0 : GlobalItemObject[_local1].gotoAndStop(_local2); return; case 1 : GlobalItemObject[_local1].seek((_local2 - 1) / GlobalPlayerOptions["Py.MovieFPS"]); GlobalItemObject[_local1].pause(true); return; case 2 : GlobalItemObject[_local1].start((_local2 - 1) / GlobalPlayerOptions["Py.MovieFPS"]); GlobalItemObject[_local1].stop(); } } function MusicPlay(Item) { var _local1 = Item; switch (GlobalItemType[_local1]) { case 0 : GlobalItemObject[_local1].play(); return; case 1 : GlobalItemObject[_local1].pause(false); return; case 2 : GlobalItemObject[_local1].start(GlobalItemObject[_local1].position / 1000); } } function MusicStop(Item) { var _local1 = Item; switch (GlobalItemType[_local1]) { case 0 : GlobalItemObject[_local1].stop(); return; case 1 : GlobalItemObject[_local1].pause(true); return; case 2 : GlobalItemObject[_local1].stop(); } } function DetectEnd(Item) { var _local1 = Item; var _local2 = false; switch (GlobalItemType[_local1]) { case 0 : if (GlobalItemObject[_local1]._currentframe == GlobalItemObject[_local1]._totalframes) { _local2 = true; } break; case 1 : _local2 = GlobalItemFinished[_local1]; if (GlobalItemFinished[_local1]) { GlobalItemFinished[_local1] = false; } break; case 2 : _local2 = GlobalItemFinished[_local1]; if (!GlobalItemFinished[_local1]) { break; } GlobalItemFinished[_local1] = false; } return(_local2); } function DrawTime() { var _local2; var _local1; var TextDisplay; var _local3; var TotalTime; _local3 = Math.floor(GetCurrentFrame(GlobalCurItem) / GlobalPlayerOptions["Py.MovieFPS"]); if (isNaN(_local3)) { _local3 = 0; } TotalTime = Math.floor(GetTotalFrames(GlobalCurItem) / GlobalPlayerOptions["Py.MovieFPS"]); if (isNaN(TotalTime)) { TotalTime = 0; } _local2 = int(_local3 / 60); _local1 = _local3 - (_local2 * 60); TextDisplay = ((_local2 + ":") + ((_local1 < 10) ? "0" : "")) + _local1; _local2 = int(TotalTime / 60); _local1 = TotalTime - (_local2 * 60); TextDisplay = ((((TextDisplay + "/") + _local2) + ":") + ((_local1 < 10) ? "0" : "")) + _local1; TextTime.text = TextDisplay; } function DrawRefreshProgress() { var Min; var Sec; var TextDisplay; var _local2; var _local1; TextTitle.hscroll = TextTitle.hscroll + 1; if (TextTitle.hscroll == TextTitle.maxhscroll) { TextTitle.hscroll = (TextTitle.maxhscroll - TextTitle._width) / 2; } DrawTime(); _local2 = Math.floor(GetCurrentFrame(GlobalCurItem) / GlobalPlayerOptions["Py.MovieFPS"]); if (isNaN(_local2)) { _local2 = 0; } _local1 = Math.floor(GetTotalFrames(GlobalCurItem) / GlobalPlayerOptions["Py.MovieFPS"]); if (isNaN(_local1)) { _local1 = 0; } if ((!GlobalProcessDragging) && (_local1 > 0)) { ProgressSlideMC._x = ProgressBarMC._x + ((ProgressBarMC._width - ProgressSlideMC._width) * (_local2 / _local1)); ProgressBarMC.ProgressLevel = _local2 / _local1; } } function InitPlayer() { DrawInit(); LoadPlayList(); } function LoadPlayList() { var XMLPList = new XML(); XMLPList.onLoad = function (Success) { if (!Success) { } else { var Child; Child = this.firstChild; while (Child != null) { if (Child.nodeName == "player") { break; } Child = Child.nextSibling; } Child = Child.firstChild; while (Child != null) { if (Child.nodeName == "playlist") { GlobalPlayList = new Array(); var _local1; var _local3 = 0; var _local2 = 0; _local1 = Child.firstChild; while (_local1 != null) { if (_local1.nodeName == "track") { GlobalPlayList[_local3] = new Array(); _local2 = 0; while (_local2 < _local1.childNodes.length) { if (_local1.childNodes[_local2].nodeName == "file") { GlobalPlayList[_local3][0] = _local1.childNodes[_local2].firstChild.nodeValue; } if (_local1.childNodes[_local2].nodeName == "title") { GlobalPlayList[_local3][1] = _local1.childNodes[_local2].firstChild.nodeValue; } if (_local1.childNodes[_local2].nodeName == "artist") { GlobalPlayList[_local3][2] = _local1.childNodes[_local2].firstChild.nodeValue; } if (_local1.childNodes[_local2].nodeName == "album") { GlobalPlayList[_local3][3] = _local1.childNodes[_local2].firstChild.nodeValue; } _local2++; } _local3++; } _local1 = _local1.nextSibling; } } Child = Child.nextSibling; } GlobalPlayListLoaded = true; LoadMP3(); DrawPlayList(); } }; XMLPList.ignoreWhite = true; if (GlobalInner) { XMLPList.parseXML(GlobalXMLTrackList); XMLPList.onLoad(true); } else { var playerURL = this._url; if ((playerURL.indexOf("?") > 0) && (playerURL.indexOf("trackfile=") > 0)) { GlobalPlayList = new Array(); var urlString = playerURL.slice(playerURL.indexOf("?") + 1); var urlArray = urlString.split("&"); var iIndex = -1; var i1 = 0; while (i1 < urlArray.length) { var paramArray = urlArray[i1].split("="); if (paramArray.length != 2) { } else { switch (paramArray[0].toLowerCase()) { case "trackfile" : iIndex++; GlobalPlayList[iIndex] = new Array(); GlobalPlayList[iIndex][0] = paramArray[1].split("\\").join("/"); break; case "title" : if (iIndex >= 0) { GlobalPlayList[iIndex][1] = paramArray[1]; } break; case "artist" : if (iIndex >= 0) { GlobalPlayList[iIndex][2] = paramArray[1]; } break; case "album" : if (iIndex < 0) { break; } GlobalPlayList[iIndex][3] = paramArray[1]; } } i1++; } GlobalPlayListLoaded = true; LoadMP3(); DrawPlayList(); } else { var XMLFile = (_url.substr(0, _url.lastIndexOf(".")) + ".xml"); XMLPList.load(XMLFile); } } } function DrawPlayList() { var _local1 = 1; while (_local1 <= GlobalPlayList.length) { PlayListObj.addItem(GlobalPlayList[_local1 - 1][1], _local1); _local1++; } } function LoadMP3() { GlobalInitStoped = new Array(GlobalPlayList.length + 1); GlobalItemType = new Array(GlobalPlayList.length + 1); GlobalItemObject = new Array(GlobalPlayList.length + 1); GlobalItemContainer = new Array(GlobalPlayList.length + 1); GlobalItemFailed = new Array(GlobalPlayList.length + 1); GlobalItemTotalTime = new Array(GlobalPlayList.length + 1); GlobalItemFinished = new Array(GlobalPlayList.length + 1); } function LoadCurMP3() { if ((GlobalItemObject[GlobalCurItem] != undefined) && (MusicGetBytesTotal(GlobalCurItem) > 0)) { return(undefined); } if (GlobalInner) { attachMovie(GlobalPlayList[GlobalCurItem - 1][0], "MusicSWF_" + GlobalCurItem, GlobalCurItem); eval ("MusicSWF_" + GlobalCurItem).stop(); GlobalItemType[GlobalCurItem] = 0; GlobalItemObject[GlobalCurItem] = eval ("MusicSWF_" + GlobalCurItem); } else { var StrExt = GlobalPlayList[GlobalCurItem - 1][0]; StrExt = StrExt.substr(StrExt.length - 3, 3); StrExt = StrExt.toUpperCase(); if (StrExt == "SWF") { this.createEmptyMovieClip("MusicSWF_" + GlobalCurItem, GlobalCurItem); loadMovie (GlobalPlayList[GlobalCurItem - 1][0], "MusicSWF_" + GlobalCurItem); eval ("MusicSWF_" + GlobalCurItem).stop(); GlobalItemType[GlobalCurItem] = 0; GlobalItemObject[GlobalCurItem] = eval ("MusicSWF_" + GlobalCurItem); } else if (StrExt == "FLV") { GlobalItemContainer[GlobalCurItem] = new NetConnection(); GlobalItemContainer[GlobalCurItem].connect(null); GlobalItemObject[GlobalCurItem] = new NetStream(GlobalItemContainer[GlobalCurItem]); GlobalItemObject[GlobalCurItem].play(GlobalPlayList[GlobalCurItem - 1][0]); GlobalItemObject[GlobalCurItem].pause(true); GlobalItemTotalTime[GlobalCurItem] = 0; GlobalItemObject[GlobalCurItem].iIndex = GlobalCurItem; GlobalItemObject[GlobalCurItem].onMetaData = function (meta) { GlobalItemTotalTime[this.iIndex] = meta.duration; }; GlobalItemFinished[GlobalCurItem] = false; GlobalItemFailed[GlobalCurItem] = false; GlobalItemObject[GlobalCurItem].onStatus = function (info) { var _local1 = this; if (info.code == "NetStream.Play.Stop") { GlobalItemFinished[_local1.iIndex] = true; } if (info.code == "NetStream.Play.StreamNotFound") { GlobalItemFailed[_local1.iIndex] = true; _local1.close(); } }; GlobalItemType[GlobalCurItem] = 1; } else { GlobalItemContainer[GlobalCurItem] = this.createEmptyMovieClip("MP3_MC_" + GlobalCurItem, GlobalCurItem); GlobalItemObject[GlobalCurItem] = new Sound(GlobalItemContainer[GlobalCurItem]); GlobalItemObject[GlobalCurItem].loadSound(GlobalPlayList[GlobalCurItem - 1][0], true); GlobalItemObject[GlobalCurItem].stop(); GlobalItemObject[GlobalCurItem].iIndex = GlobalCurItem; GlobalItemFinished[GlobalCurItem] = false; GlobalItemFailed[GlobalCurItem] = false; GlobalItemObject[GlobalCurItem].onSoundComplete = function () { GlobalItemFinished[this.iIndex] = true; }; GlobalItemObject[GlobalCurItem].onLoad = function (success) { GlobalItemFailed[this.iIndex] = !success; }; GlobalItemType[GlobalCurItem] = 2; } } } var ParamsDefine = "<ParamsDefine><Py.Autostart caption=\"Auto Play\" type=\"bool\" default=\"Yes\"/><Py.Loop caption=\"Loop Play\" type=\"bool\" default=\"Yes\"/><Py.Shuffle caption=\"Random Play\" type=\"bool\" default=\"No\"/></ParamsDefine>"; var GlobalPlayList; var GlobalPlayListLoaded = false; var GlobalInitStoped; var GlobalAllStoped = false; var GlobalAutoStartCheck = false; var GlobalCurItem = -1; var GlobalIsPlaying = false; var GlobalItemType; var GlobalItemObject; var GlobalItemContainer; var GlobalItemFailed; var GlobalItemTotalTime; var GlobalItemFinished; BtnPlayMC._visible = true; BtnPauseMC._visible = false; var GlobalCurLoaded = false; var GlobalCurLoadStart = true; var GlobalPlayerOptions = new Array(); var GlobalProcessDragging = false; var GlobalPaused = false; var GlobalFrameCount = 0; var GlobalVolumeOn = true; var GlobalVolumeValue = 100; var GlobalShowPlaylist = false; var GlobalToHidePlaylist = false; var GlobalToHidePlaylistCount = -1; InitPlayer(); this.onEnterFrame = function () { if (GlobalToHidePlaylist) { if (GlobalToHidePlaylistCount > 0) { GlobalToHidePlaylistCount = GlobalToHidePlaylistCount - 1; } else { GlobalShowPlaylist = false; PlayListObj._visible = false; GlobalToHidePlaylist = false; } } if (!GlobalPlayListLoaded) { } else { if (!GlobalAutoStartCheck) { GlobalAutoStartCheck = true; if (GlobalPlayerOptions["Py.Shuffle"] == "Yes") { GlobalCurItem = 1 + random(GlobalPlayList.length); } else { GlobalCurItem = 1; } DrawAtItem(); if (GlobalPlayerOptions["Py.Autostart"] == "Yes") { GlobalIsPlaying = true; BtnPlayMC._visible = false; BtnPauseMC._visible = true; } } if (GlobalIsPlaying) { if (GlobalCurItem == -1) { if (GlobalPlayerOptions["Py.Shuffle"] == "Yes") { GlobalCurItem = 1 + random(GlobalPlayList.length); } else { GlobalCurItem = 1; } DrawAtItem(); } if (!GlobalCurLoaded) { if (GlobalCurLoadStart) { GlobalFrameCount = 0; LoadCurMP3(); GlobalCurLoadStart = false; } GlobalFrameCount++; if ((!CheckMusicValid(GlobalCurItem)) || ((CheckMusicValid(GlobalCurItem) && (MusicGetBytesTotal(GlobalCurItem) <= 0)) && (GlobalFrameCount > MAXWAITFRAME))) { GlobalCurLoaded = false; GlobalCurLoadStart = true; DrawEffect(2); if (GlobalPlayerOptions["Py.Shuffle"] == "Yes") { GlobalCurItem = 1 + random(GlobalPlayList.length); } else { GlobalCurItem++; if (GlobalCurItem > GlobalPlayList.length) { GlobalCurItem = 1; if (GlobalPlayerOptions["Py.Loop"] == "No") { GlobalIsPlaying = false; BtnPlayMC._visible = true; BtnPauseMC._visible = false; } } } DrawAtItem(); } else if (MusicGetBytesTotal(GlobalCurItem) > 0) { var _local1 = Math.floor((MusicGetBytesLoaded(GlobalCurItem) / MusicGetBytesTotal(GlobalCurItem)) * 100); if (!isNaN(_local1)) { DrawEffect(0, _local1); if (_local1 >= GlobalPlayerOptions["Py.PlayPercent"]) { MusicPlay(GlobalCurItem); if (GlobalVolumeOn) { var _local2 = new Sound(); _local2.setVolume(GlobalVolumeValue); } GlobalCurLoaded = true; DrawEffect(1); } } } } else if (!isNaN(GetTotalFrames(GlobalCurItem))) { if (DetectEnd(GlobalCurItem)) { MusicGotoAndStop(GlobalCurItem, 1); GlobalCurLoaded = false; GlobalCurLoadStart = true; DrawEffect(2); if (GlobalPlayerOptions["Py.Loop"] != "LoopSingle") { if (GlobalPlayerOptions["Py.Shuffle"] == "Yes") { GlobalCurItem = 1 + random(GlobalPlayList.length); } else { GlobalCurItem++; if (GlobalCurItem > GlobalPlayList.length) { GlobalCurItem = 1; if (GlobalPlayerOptions["Py.Loop"] == "No") { GlobalIsPlaying = false; BtnPlayMC._visible = true; BtnPauseMC._visible = false; } } } } DrawAtItem(); } DrawRefreshProgress(); } } } }; VolumeSlideMC.onPress = function () { startDrag (this, false, VolumeBarMC._x, VolumeSlideMC._y, (VolumeBarMC._x + VolumeBarMC._width) - VolumeSlideMC._width, VolumeSlideMC._y); var _local1 = Math.ceil(((this._x - VolumeBarMC._x) / (VolumeBarMC._width - VolumeSlideMC._width)) * 100); var _local2 = new Sound(); _local2.setVolume(_local1); GlobalVolumeValue = _local1; }; VolumeSlideMC.onRelease = function () { stopDrag(); var _local1 = Math.ceil(((this._x - VolumeBarMC._x) / (VolumeBarMC._width - VolumeSlideMC._width)) * 100); var _local2 = new Sound(); _local2.setVolume(_local1); GlobalVolumeValue = _local1; }; VolumeSlideMC.onReleaseOutside = VolumeSlideMC.onRelease; ProgressSlideMC.onPress = function () { GlobalProcessDragging = true; startDrag (this, false, ProgressBarMC._x, ProgressSlideMC._y, (ProgressBarMC._x + ProgressBarMC._width) - ProgressSlideMC._width, ProgressSlideMC._y); if (GlobalCurItem == -1) { } else if (CheckMusicValid(GlobalCurItem)) { if (!isNaN(GetTotalFrames(GlobalCurItem))) { var _local2 = (this._x - ProgressBarMC._x) / (ProgressBarMC._width - ProgressSlideMC._width); var TotalFrame = GetTotalFrames(GlobalCurItem); var _local1 = Math.floor(_local2 * GetTotalFrames(GlobalCurItem)); if (_local1 <= 0) { _local1 = 1; } if (GlobalIsPlaying && (GlobalCurLoaded)) { MusicGotoAndPlay(GlobalCurItem, _local1); } else { MusicGotoAndStop(GlobalCurItem, _local1); } DrawTime(); } } }; ProgressSlideMC.onRelease = function () { stopDrag(); if (GlobalCurItem == -1) { } else { if (CheckMusicValid(GlobalCurItem)) { if (!isNaN(GetTotalFrames(GlobalCurItem))) { var _local2 = (this._x - ProgressBarMC._x) / (ProgressBarMC._width - ProgressSlideMC._width); var _local1 = Math.floor(_local2 * GetTotalFrames(GlobalCurItem)); if (_local1 <= 0) { _local1 = 1; } if (GlobalIsPlaying && (GlobalCurLoaded)) { MusicGotoAndPlay(GlobalCurItem, _local1); } else { MusicGotoAndStop(GlobalCurItem, _local1); } DrawTime(); } } GlobalProcessDragging = false; } }; ProgressSlideMC.onReleaseOutside = ProgressSlideMC.onRelease; BtnMenuMC.onRelease = function () { if (GlobalShowPlaylist) { GlobalShowPlaylist = false; PlayListObj._visible = false; } else { GlobalShowPlaylist = true; PlayListObj._visible = true; } }; BtnPlayMC.onRelease = function () { if (GlobalIsPlaying) { return(undefined); } GlobalIsPlaying = true; BtnPlayMC._visible = false; BtnPauseMC._visible = true; if (GlobalCurItem == -1) { GlobalCurItem = 1; DrawAtItem(); } this.gotoAndStop(1); }; BtnStopMC.onRelease = function () { GlobalIsPlaying = false; BtnPlayMC._visible = true; BtnPauseMC._visible = false; GlobalCurLoaded = false; GlobalCurLoadStart = true; if (CheckMusicValid(GlobalCurItem)) { MusicGotoAndStop(GlobalCurItem, 1); } DrawAtItem(); DrawEffect(2); this.gotoAndStop(1); }; BtnPauseMC.onRelease = function () { if (GlobalIsPlaying) { GlobalPaused = true; GlobalIsPlaying = false; BtnPlayMC._visible = true; BtnPauseMC._visible = false; GlobalCurLoaded = false; GlobalCurLoadStart = true; if (CheckMusicValid(GlobalCurItem)) { MusicStop(GlobalCurItem); } DrawEffect(2); this.gotoAndStop(1); } else if (GlobalPaused) { GlobalPaused = false; GlobalIsPlaying = true; BtnPlayMC._visible = false; BtnPauseMC._visible = true; if (GlobalCurItem == -1) { GlobalCurItem = 1; DrawAtItem(); } this.gotoAndStop(1); } }; BtnNextMC.onRelease = function () { if ((GlobalCurItem != -1) && (CheckMusicValid(GlobalCurItem))) { MusicGotoAndStop(GlobalCurItem, 1); } GlobalCurItem++; if (GlobalCurItem > GlobalPlayList.length) { GlobalCurItem = 1; } DrawAtItem(); GlobalCurLoaded = false; GlobalCurLoadStart = true; this.gotoAndStop(1); }; BtnPrevMC.onRelease = function () { if ((GlobalCurItem != -1) && (CheckMusicValid(GlobalCurItem))) { MusicGotoAndStop(GlobalCurItem, 1); } GlobalCurItem--; if (GlobalCurItem < 1) { GlobalCurItem = GlobalPlayList.length; } DrawAtItem(); GlobalCurLoaded = false; GlobalCurLoadStart = true; this.gotoAndStop(1); }; var ListListener = new Object(); ListListener.change = function (EvtObj) { var _local1 = EvtObj.target.selectedIndex + 1; GlobalToHidePlaylist = true; GlobalToHidePlaylistCount = GlobalPlayerOptions["Py.PlaylistTimeout"]; if (GlobalCurItem == _local1) { } else { if ((GlobalCurItem != -1) && (CheckMusicValid(GlobalCurItem))) { MusicGotoAndStop(GlobalCurItem, 1); } GlobalCurItem = _local1; if (GlobalCurItem < 1) { GlobalCurItem = GlobalPlayList.length; } DrawAtItem(); GlobalCurLoaded = false; GlobalCurLoadStart = true; } }; PlayListObj.addEventListener("change", ListListener); BtnVolumeMC.onRelease = function () { if (GlobalVolumeOn) { var _local1 = new Sound(); GlobalVolumeValue = _local1.getVolume(); _local1.setVolume(0); GlobalVolumeOn = false; this.gotoAndStop("off"); } else { var _local1 = new Sound(); _local1.setVolume(GlobalVolumeValue); GlobalVolumeOn = true; this.gotoAndStop("on"); } }; BtnLoopMC.onRelease = function () { if (GlobalPlayerOptions["Py.Loop"] == "Yes") { GlobalPlayerOptions["Py.Loop"] = "No"; this.gotoAndStop("No"); } else { GlobalPlayerOptions["Py.Loop"] = "Yes"; this.gotoAndStop("Yes"); } }; BtnShuffleMC.onRelease = function () { if (GlobalPlayerOptions["Py.Shuffle"] == "Yes") { GlobalPlayerOptions["Py.Shuffle"] = "No"; this.gotoAndStop("No"); } else { GlobalPlayerOptions["Py.Shuffle"] = "Yes"; this.gotoAndStop("Yes"); } }; VolumeBarMC.onPress = function () { var _local1 = 100 - Math.ceil((this._ymouse / VolumeBarMC._height) * 100); GlobalVolumeValue = _local1; if (GlobalVolumeOn) { var _local2 = new Sound(); _local2.setVolume(_local1); } this.VolumeLevel = _local1; }; ProgressBarMC.onPress = function () { if (GlobalCurItem == -1) { } else { GlobalProcessDragging = true; if (CheckMusicValid(GlobalCurItem)) { if (!isNaN(GetTotalFrames(GlobalCurItem))) { var _local2 = this._xmouse / ProgressBarMC._width; var _local1 = Math.floor(_local2 * GetTotalFrames(GlobalCurItem)); if (_local1 <= 0) { _local1 = 1; } if (GlobalIsPlaying && (GlobalCurLoaded)) { MusicGotoAndPlay(GlobalCurItem, _local1); } else { MusicGotoAndStop(GlobalCurItem, _local1); } DrawTime(); } } GlobalProcessDragging = false; } };

Library Items

Symbol 1 GraphicUsed by:Timeline
Symbol 3 FontUsed by:4
Symbol 4 EditableTextUses:3Used by:2
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:2
Symbol 2 MovieClipUses:4 6Used by:Timeline
Symbol 8 GraphicUsed by:Timeline
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClipUses:10Used by:9
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClipUses:12Used by:9
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClipUses:14Used by:9
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClipUses:16Used by:9
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClipUses:18Used by:9
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClipUses:20Used by:9
Symbol 22 GraphicUsed by:25
Symbol 23 GraphicUsed by:25
Symbol 24 GraphicUsed by:25
Symbol 25 MovieClipUses:22 23 24Used by:9
Symbol 26 FontUsed by:27 28
Symbol 27 EditableTextUses:26Used by:9
Symbol 28 EditableTextUses:26Used by:9
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:29Used by:9
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:31Used by:33
Symbol 33 MovieClipUses:32Used by:9
Symbol 9 MovieClipUses:11 13 15 17 19 21 25 27 28 30 33Used by:Timeline

Instance Names

"bytesDisplay"Symbol 2 MovieClip Frame 1Symbol 4 EditableText
"loadingCircle"Symbol 2 MovieClip Frame 1Symbol 6 MovieClip
"EffectBar1"Symbol 33 MovieClip Frame 1Symbol 32 MovieClip
"EffectBar2"Symbol 33 MovieClip Frame 1Symbol 32 MovieClip
"EffectBar3"Symbol 33 MovieClip Frame 1Symbol 32 MovieClip
"EffectBar4"Symbol 33 MovieClip Frame 1Symbol 32 MovieClip
"EffectBar0"Symbol 33 MovieClip Frame 1Symbol 32 MovieClip
"EffectBar1"Symbol 33 MovieClip Frame 29Symbol 32 MovieClip
"EffectBar2"Symbol 33 MovieClip Frame 29Symbol 32 MovieClip
"EffectBar3"Symbol 33 MovieClip Frame 29Symbol 32 MovieClip
"EffectBar4"Symbol 33 MovieClip Frame 29Symbol 32 MovieClip
"EffectBar0"Symbol 33 MovieClip Frame 29Symbol 32 MovieClip
"BackgroundMC"Symbol 9 MovieClip Frame 1Symbol 11 MovieClip
"BtnPlayMC"Symbol 9 MovieClip Frame 1Symbol 13 MovieClip
"BtnStopMC"Symbol 9 MovieClip Frame 1Symbol 15 MovieClip
"BtnNextMC"Symbol 9 MovieClip Frame 1Symbol 17 MovieClip
"BtnPrevMC"Symbol 9 MovieClip Frame 1Symbol 19 MovieClip
"BtnPauseMC"Symbol 9 MovieClip Frame 1Symbol 21 MovieClip
"BtnVolumeMC"Symbol 9 MovieClip Frame 1Symbol 25 MovieClip
"TextTitle"Symbol 9 MovieClip Frame 1Symbol 27 EditableText
"TextTime"Symbol 9 MovieClip Frame 1Symbol 28 EditableText
"EffectMC"Symbol 9 MovieClip Frame 1Symbol 33 MovieClip

Labels

"on"Symbol 25 MovieClip Frame 1
"off"Symbol 25 MovieClip Frame 4
"StopState"Symbol 33 MovieClip Frame 1
"PlayState"Symbol 33 MovieClip Frame 29




http://swfchan.com/16/78314/info.shtml
Created: 3/4 -2019 17:01:13 Last modified: 3/4 -2019 17:01:13 Server time: 28/04 -2024 11:38:11