This appears to be a flash file, you cannot see a preview because flash player is no longer supoorted in browsers, but you can still download the file to study it's source code.
You can open/play the swf file with Flash Player exe
You can open/play the swf file with Flash Player exe
dickfunk (2)
simple XML mp3 player
ZIP file This mp3 player uses XML to drive it's playlist. Designed to be as simple as possible, yet pleasing to the eye, the disc spins and stops when the music does the same. The XML is a small chunk of code:<audio>
<file>
<track>http://somedomain.com/music/nin.mp3</track>
<caption>Just Like You Imagined</caption>
<record>Nine Inch Nails</record>
</file>
</audio>
You need to... more >
Listing url: project107.net/downloads/mp3_player.php
10170 downloads, 36718 views
Comments
You need to login to post a comment.
excellent!
Very good dude keep on!
AS2 or AS3?
nice
Banging mp3 player. Thank you.!!!
Thank you!!!!!!!!!!!!! Great JOb!!!! =)
Thank you, very nice work!
I like the idea
Merci
that is one cool CD spin, dickfunk! great idea like this, add up some mood for mp3's listening.
muchas gracias!
aprendiendo cada da!
vale copmpaero, muy bueno el recurso fla.
Thanks!, this is nice!
yeah, i downloaded it again and now my mac says nothing, the first time my mac said a password was needed, everything o.k. now, thanks!
Deadaim, password for what? Because I checked and didn't see a password anywhere.
can somebody tell me what the password is? TIA
thnx so much dickfunk.........for being so helpful with this
more mp3 players???????
Go here: project107.net/downloads/mp3_player.php and copy the code. It should work just fine. Posting code here in the comments doesn't work very well.
or email me the code in notepad so it will be as is ....no modification..... [email protected]
thnx dickfunk
this is a follow up for the one that you answered from goa_s.....where autoplay is turned off....i copied the code below and still got some errors....i removed the </br> and <p> and also fixed the nodevalue....and still got some errors on it... pls help
thnx in advance dickfunk
this is a follow up for the one that you answered from goa_s.....where autoplay is turned off....i copied the code below and still got some errors....i removed the </br> and <p> and also the nodevalue....and still got some errors on it... pls help
thnx in advance dickfunk
I don't understand what you're asking. ?
i copied the code and there are errors on it......
pls help.....removed all the </br> and </p>
HEY MEN!! THNKX SO MUCH VERY EASY TO CUSTOMISE TOO!
THE GOD RWM BLESS YOU!
yes!! now it works rigth!!!
Thank you so much for the attention.
I'll add this player in my website..ok?
if have any problem, please let me now! =)
The space appeared because of the site I think, it ads spaces to long text lines, so that it doesnt break the site layout.
??? those 3 lines should be: nodeValue with no space
Hi...i copy this code and appear this error message:
**Error** Scene=Scene 1, layer=actions, frame=1:Line 13: Syntax error.
track[i] = xmlNode.childNodes[i].childNodes[0].firs tChild.nod eValue;
what's the meaning of this error??
Thanks for the help!!! =)
Perfect - thanks for being so speedy and helpful!
DickFunk, I edited your comment so code should appear ok now.
<p>Sure thing. Clear all of the actions in frame 1 on the actions layer and paste this:</p>
<p>//********************************** *********<br />
//****** created by PROJECT107.net **********<br />
//*********** 2007-2008 *******************<br />
//************************************** *****<br />
function loadXML(loaded) {<br />
if (loaded) {<br />
xmlNode = this.firstChild;<br />
track = [];<br />
description = [];<br />
record = [];<br />
total = xmlNode.childNodes.length;<br />
for (i=0;i<total;i++) {<br />
track[i] = xmlNode.childNodes[i].childNodes[0].firs tChild.nodeValue;<br />
description[i] = xmlNode.childNodes[i].childNodes[1].firs tChild.nodeValue;<br />
record[i] = xmlNode.childNodes[i].childNodes[2].firs tChild.nodeValue;<br />
}<br />
//firstPlay();<br />
} else {<br />
content = "file not loaded!";<br />
}<br />
}<br />
xmlData = new XML();<br />
xmlData.ignoreWhite = true;<br />
xmlData.onLoad = loadXML;<br />
xmlData.load("audio.xml");<br />
//************************************** **********<br />
//********** Done with the XML *******************<br />
//************************************** **********<br />
var k:Number = 0;<br />
var player = new Sound();<br />
//************************************** **********<br />
//********** get track info **********************<br />
//************************************** **********<br />
function getInfo(){<br />
player.onLoad = function(success:Boolean) {<br />
var totalSeconds:Number = this.duration/1000;<br />
var minutes:Number = Math.floor(totalSeconds/60);<br />
var seconds = Math.floor(totalSeconds)%60;<br />
if (seconds<10) {<br />
seconds = "0"+seconds;<br />
}<br />
current = this.position;<br />
track_time.text = minutes+":"+seconds;<br />
}<br />
}<br />
//************************************** ********<br />
//********** end of getting info ***************<br />
//************************************** ********<br />
first_time = true;<br />
spinner.stop();</p>
<p>player.onSoundComplete = function() {<br />
trace("going to next track!");<br />
nextTrack();<br />
}<br />
function firstPlay(){<br />
first_time = false;<br />
getInfo();<br />
player.loadSound(track[k], true);<br />
track_info.text = description[k];<br />
record_info.text = record[k];<br />
spinner.play();<br />
}<br />
function nextTrack(){<br />
stopAllSounds();<br />
k++;<br />
spinner.play();<br />
if(k > total-1){<br />
stopAllSounds();<br />
k = 0;<br />
player.loadSound(track[k], true);<br />
track_info.text = description[k];<br />
record_info.text = record[k];<br />
}<br />
else{<br />
player.loadSound(track[k], true);<br />
track_info.text = description[k];<br />
record_info.text = record[k];<br />
}<br />
}<br />
next_bttn.onRelease = function(){<br />
nextTrack();<br />
}<br />
stop_bttn.onRelease = function(){<br />
stopAllSounds();<br />
spinner.stop();<br />
}<br />
play_bttn.onRelease = function(){<br />
if(first_time == true){<br />
firstPlay();<br />
}<br />
else{<br />
player.start();<br />
spinner.play();<br />
}<br />
}<br />
stop();<br />
</p>
<p>You should be all set. :P<br />
</p>
Very good player!!!
Is it possible that the music only plays when i press the play btn?? How?? because i didn't get this!! =(
Thanks!!
dickFunk you are
Splendid() {
_root.app_mc(applause)
}
hi dickfunk can u help me out in mute button working
i have a volume slider and mute button my slider is working file but my mute button is not muting
can i send u my files
and ur tutorial was nice
thanx.. I checked out your page and saw the obvious problem..
@nwlaschin, you need to make sure you use the absolute path in your XML file. If you need help, email me: info at project107 dot net.
ok.. Lov this little gizmo, but im having trouble getting mp3 url to play.. plays fine off the PC
Good work dickfunk, allthough I think it's a good ideea to make it paused when it loads.
Can you tell me what piece of code I need to do that?
Thanks
Hi! i need some good rollover button..effect...somebody help me...
Just add another:
<file>
<track>http://somedomain.com/music/nin. mp3</track>
<caption>Just Like You Imagined</caption>
<record>Nine Inch Nails</record>
</file>
hey there..i was wondering how you can add more songs to the mp3,i tried manipulating the XML to no avail.
@pedrocoimbra: download worked here. Try this: if you have download software installed then disable it, also try both these ways: click direct on download link and also right clicking it and chose "save target as". If your download takes more than few minutes then it might be FFILE's fault. Let me know.
pedro, it's in Flash 8 format. Are you using something older?
yo this thing lets me download but then doestn open
amazing!
;D
great work buddy!
Go for it! :P
this is great is it ok if i make a modified version of this for a website i am working on. i was thinking of adding a clock and list of songs to chose from
mp3
Thanks mate!
Fixed.
I'm good with you adding to it. Thanks!
No problem, you could eider upload a new file with same name, I will then remove this one, or *I could modify those.
Oh yeah, sorry about the misunderstanding. Are you going to edit it, or is there any way I can do it?
I seen it workeing at that link, I was asking if you agree to edit your file and put an MP3 next to it so that the preview on this site will also work.
I'm not sure what you are asking, but to see it in action, go to the above 'Listing URL'. It uses the exact same XML file included in the zip file here. You can edit the whole thing as much as you want. :P
It will not work to load files (mp3) from another host, so can I edit your file and put an mp3 there?
I didn't provide an mp3, just the player and xml. The zip file that you download from here has an xml file with 3 tracks that I do not host.
Can you please upload an updated file? If the mp3 works correctly you can zip the xml and the mp3 and upload them in the zip upload field, then these files will be working correctly.