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

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

mp3player.swf

This is the info page for
Flash #206901

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


Text
<p align="right"><font face="Verdana_10pt_st" size="10" color="#66ccff" letterSpacing="0.000000" kerning="1">loading &nbsp;playlist</font></p>

<p align="right"><font face="Verdana_10pt_st" size="10" color="#66ccff" letterSpacing="0.000000" kerning="1">loading &nbsp;playlist</font></p>

ActionScript [AS1/AS2]

Frame 1
function xmlIsLoaded(success) { playList_xml = new XML(); playList_xml = this.firstChild; if (success) { i = 0; while (i < playList_xml.childNodes.length) { location = String(playList_xml.childNodes[i].attributes.location); artist = String(playList_xml.childNodes[i].attributes.artist); album = String(playList_xml.childNodes[i].attributes.album); songname = String(playList_xml.childNodes[i].attributes.songname); thisTrack = new mp3Track(location + ".mp3", artist, album, songname); if (location.length > 0) { playlist_array.push(thisTrack); } i++; } clearInterval(trackTimer); clearInterval(fieldTimer); if (playlist_array.length > 0) { playlist_array.shuffle(); playTrack(); } else { clearInterval(trackTimer); clearInterval(fieldTimer); trackInfo = "ERROR: no tracks"; fieldTimer = setInterval(updateFields, 100); } } else { xmlStatus = this.status; if (xmlStatus < 0) { xmlStatus = -1 * xmlStatus; } errMsg = "There was an error loading the XML:\n"; switch (xmlStatus) { case 0 : errMsg = errMsg + "No data returned."; break; case 2 : errMsg = errMsg + "A CDATA section was not properly terminated."; break; case 3 : errMsg = errMsg + "The XML declaration was not properly terminated."; break; case 4 : errMsg = errMsg + "The DOCTYPE declaration was not properly terminated."; break; case 5 : errMsg = errMsg + "A comment was not properly terminated."; break; case 6 : errMsg = errMsg + "An XML element was malformed."; break; case 7 : errMsg = errMsg + "Out of memory."; break; case 8 : errMsg = errMsg + "An attribute value was not properly terminated."; break; case 9 : errMsg = errMsg + "A start-tag was not matched with an end-tag."; break; case 10 : errMsg = errMsg + "An end-tag was encountered without a matching start-tag."; break; default : errMsg = errMsg + "General XML load error."; } trackInfo = errMsg; clearInterval(fieldTimer); fieldTimer = setInterval(updateFields, 100); } } function updateFields() { if (trackPlaying) { trackTotal = track_sound.getBytesTotal(); trackLoaded = track_sound.getBytesLoaded(); trackHead = track_sound.position; cleanTime = trackHead / 1000; numMilisec = Math.round(trackHead % 1000); if (cleanTime < 60) { numMinutes = 0; numSeconds = Math.floor(cleanTime); } else { numMinutes = Math.floor(cleanTime / 60); numSeconds = Math.floor(cleanTime % 60); } if (numMilisec < 10) { numMilisec = "00" + String(numMilisec); } else if (numMilisec < 100) { numMilisec = "0" + String(numMilisec); } else { numMilisec = String(nummiliSec); } numMilisec = ((numMilisec < 10) ? ("0" + String(numMilisec)) : (String(numMilisec))); numMinutes = ((numMinutes < 10) ? ("0" + String(numMinutes)) : (String(numMinutes))); numSeconds = ((numSeconds < 10) ? ("0" + String(numSeconds)) : (String(numSeconds))); TrackTime_txt.text = (numMinutes + ":") + numSeconds; if (trackInfo == "") { currentChar = 0; currentSpace = 0; currentStr = ""; } else if (currentChar < trackInfo.length) { if (currentChar < tickerMax) { currentStr = currentStr + trackInfo.charAt(currentChar); } else { currentStr = currentStr.substring(1, currentStr.length) + trackInfo.charAt(currentChar); } currentChar++; } else { if (currentSpace == (tickerMax + trailingSpace)) { currentChar = 0; currentSpace = 0; currentStr = ""; } if (currentchar < tickerMax) { currentStr = currentStr + " "; } else { currentStr = currentStr.substring(1, currentStr.length) + " "; } currentSpace++; } } else { trackInfo = ""; currentStr = ""; currentChar = 0; currentSpace = 0; TrackTime_txt.text = "00:00"; clearInterval(fieldTimer); } TrackInfo_txt.text = currentStr; } function checkTrack() { if (trackPlaying) { trackTotal = track_sound.getBytesTotal(); trackLoaded = track_sound.getBytesLoaded(); trackHead = track_sound.position; if (parseInt(trackLoaded / trackTotal) == 1) { trackLength = track_sound.duration; if (trackHead >= (trackLength - 1)) { nextTrack(1); } } } else { trackTotal = 0; trackLoaded = 0; trackHead = 0; } } function setVol(up) { if (up) { currentVol = currentVol + 10; if (currentVol > 100) { currentVol = 100; } } else { currentVol = currentVol - 10; if (currentVol < 0) { currentVol = 0; } } track_sound.setVolume(_root.currentVol); } function playTrack() { if (!trackPlaying) { track_sound = new Sound(); track_sound.loadSound(playlist_array[currentTrack].location, 1); track_sound.setVolume(currentVol); trackInfo = ""; trackPlaying = 1; if (playlist_array[currentTrack].artist != "") { trackInfo = " Artist: " + playlist_array[currentTrack].artist; } else { trackInfo = " Artist: N/A "; } if (playlist_array[currentTrack].album != "") { trackInfo = trackInfo + (" Album: " + playlist_array[currentTrack].album); } else { trackInfo = trackInfo + " Album: N/A"; } if (playlist_array[currentTrack].songname != "") { trackInfo = trackInfo + (" Title: " + playlist_array[currentTrack].songname); } else { trackInfo = trackInfo + " Title: N/A "; } clearInterval(fieldTimer); fieldTimer = setInterval(updateFields, 100); clearInterval(trackTimer); trackTimer = setInterval(checkTrack, dT); } } function nextTrack(up) { stopTrack(); if (up) { currentTrack++; if (currentTrack >= playlist_array.length) { currentTrack = 0; } } else { currentTrack--; if (currentTrack < 0) { currentTrack = playlist_array.length - 1; } } trackInfo = ""; trackPlaying = 0; playTrack(); } function stopTrack() { track_sound.stop(); trackInfo = ""; trackPlaying = 0; currentChar = 0; currentSpace = 0; trackInfo = ""; currentStr = ""; clearInterval(trackTimer); } function mp3Track(location, artist, album, songname) { this.location = location; this.artist = artist; this.album = album; this.songname = songname; } NC_xml = new XML(); NC_xml.ignoreWhite = true; NC_xml.onLoad = xmlIsLoaded; Array.prototype.shuffle = function () { var _local5 = this.length - 1; var _local3 = _local5; while (_local3--) { var _local2 = parseInt(Math.random() * _local5); var _local4 = this[_local3]; this[_local3] = this[_local2]; this[_local2] = _local4; } }; _soundbuftime = 6; track_sound = new Sound(); playlist_array = new Array(); trackTimer = ""; currentTrack = 0; currentVol = 100; trackPlaying = 0; dT = 50; tickerMax = 100; currentChar = 0; currentSpace = 0; trailingSpace = 100; currentStr = ""; fieldTimer = ""; trackInfo = "loading playlist"; NC_xml.load("playlist.xml");
Frame 2
stop();
Symbol 9 Button
on (release) { stopTrack(); }
Symbol 10 Button
on (release) { nextTrack(0); }
Symbol 11 Button
on (release) { nextTrack(1); }
Symbol 15 Button
on (release) { setVol(1); }
Symbol 16 Button
on (release) { setVol(0); }

Library Items

Symbol 1 BitmapUsed by:2
Symbol 2 GraphicUses:1Used by:Timeline
Symbol 3 FontUsed by:4 5 19
Symbol 4 EditableTextUses:3Used by:Timeline
Symbol 5 EditableTextUses:3Used by:Timeline
Symbol 6 GraphicUsed by:9 10 11
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:7Used by:9 10 11
Symbol 9 ButtonUses:6 8Used by:Timeline
Symbol 10 ButtonUses:6 8Used by:Timeline
Symbol 11 ButtonUses:6 8Used by:Timeline
Symbol 12 GraphicUsed by:15 16
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClipUses:13Used by:15 16
Symbol 15 ButtonUses:12 14Used by:Timeline
Symbol 16 ButtonUses:12 14Used by:Timeline
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:17Used by:Timeline
Symbol 19 EditableTextUses:3Used by:Timeline

Instance Names

"TrackInfo_txt"Frame 1Symbol 4 EditableText
"TrackTime_txt"Frame 1Symbol 5 EditableText
"TrackInfo_txt"Frame 2Symbol 19 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.

Labels

"2"Frame 1




http://swfchan.com/42/206901/info.shtml
Created: 9/10 -2018 17:04:44 Last modified: 9/10 -2018 17:04:44 Server time: 22/12 -2024 01:35:47