alert 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
user dickfunk
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, 36531 views
Download (8.34 MB)

Comments

You need to login to post a comment.

user gentewiki
gentewiki 12 years ago

excellent!

user bernardovaghi
bernardovaghi 13 years ago

Very good dude keep on!

user ALEPREMIER
ALEPREMIER 13 years ago

AS2 or AS3?

user gotDESIGN
gotDESIGN 13 years ago

nice

user rayanthony
rayanthony 13 years ago

Banging mp3 player. Thank you.!!!

user hoelzcarol
hoelzcarol 13 years ago

Thank you!!!!!!!!!!!!! Great JOb!!!! =)

user Hologramember
Hologramember 13 years ago

Thank you, very nice work!

user morphyus
morphyus 14 years ago

I like the idea

user SefiR_
SefiR_ 14 years ago

Merci

user weirdwired
weirdwired 14 years ago

that is one cool CD spin, dickfunk! great idea like this, add up some mood for mp3's listening.

user limon3s
limon3s 14 years ago

muchas gracias!
aprendiendo cada da!

user graficaturner
graficaturner 15 years ago

vale copmpaero, muy bueno el recurso fla.

user Contraband
Contraband 15 years ago

Thanks!, this is nice!

user deadaim
deadaim 15 years ago

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!

user adrianTNT
adrianTNT (admin) 15 years ago

Deadaim, password for what? Because I checked and didn't see a password anywhere.

user deadaim
deadaim 15 years ago

can somebody tell me what the password is? TIA

user langaw360
langaw360 16 years ago

thnx so much dickfunk.........for being so helpful with this
more mp3 players???????

user dickfunk
the listing author dickfunk 16 years ago

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.

user langaw360
langaw360 16 years ago

or email me the code in notepad so it will be as is ....no modification..... [email protected]
thnx dickfunk

user langaw360
langaw360 16 years ago

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

user langaw360
langaw360 16 years ago

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

user dickfunk
the listing author dickfunk 16 years ago

I don't understand what you're asking. ?

user langaw360
langaw360 16 years ago

i copied the code and there are errors on it......
pls help.....removed all the </br> and </p>

user evansrwm
evansrwm 16 years ago

HEY MEN!! THNKX SO MUCH VERY EASY TO CUSTOMISE TOO!
THE GOD RWM BLESS YOU!

user goa_s
goa_s 16 years ago

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! =)

user adrianTNT
adrianTNT (admin) 16 years ago

The space appeared because of the site I think, it ads spaces to long text lines, so that it doesnt break the site layout.

user dickfunk
the listing author dickfunk 16 years ago

??? those 3 lines should be: nodeValue with no space

user goa_s
goa_s 16 years ago

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!!! =)

user dickfunk
the listing author dickfunk 16 years ago

Perfect - thanks for being so speedy and helpful!

user adrianTNT
adrianTNT (admin) 16 years ago

DickFunk, I edited your comment so code should appear ok now.

user dickfunk
the listing author dickfunk 16 years ago

<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&lt;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 = &quot;file not loaded!&quot;;<br />
}<br />
}<br />
xmlData = new XML();<br />
xmlData.ignoreWhite = true;<br />
xmlData.onLoad = loadXML;<br />
xmlData.load(&quot;audio.xml&quot;);<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&lt;10) {<br />
seconds = &quot;0&quot;+seconds;<br />
}<br />
current = this.position;<br />
track_time.text = minutes+&quot;:&quot;+seconds;<br />
}<br />
}<br />
//************************************** ********<br />
//********** end of getting info ***************<br />
//************************************** ********<br />
first_time = true;<br />
spinner.stop();</p>
<p>player.onSoundComplete = function() {<br />
trace(&quot;going to next track!&quot;);<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 &gt; 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>

user goa_s
goa_s 16 years ago

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!!

user wolverene
wolverene 16 years ago

dickFunk you are
Splendid() {
_root.app_mc(applause)
}

user nite21
nite21 16 years ago

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

user nwlaschin
nwlaschin 16 years ago

thanx.. I checked out your page and saw the obvious problem..

user dickfunk
the listing author dickfunk 16 years ago

@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.

user nwlaschin
nwlaschin 16 years ago

ok.. Lov this little gizmo, but im having trouble getting mp3 url to play.. plays fine off the PC

user Vampy
Vampy 16 years ago

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

user sha123nk
sha123nk 16 years ago

Hi! i need some good rollover button..effect...somebody help me...

user dickfunk
the listing author dickfunk 16 years ago

Just add another:
<file>
<track>http://somedomain.com/music/nin. mp3</track>
<caption>Just Like You Imagined</caption>
<record>Nine Inch Nails</record>
</file>

user Marto
Marto 16 years ago

hey there..i was wondering how you can add more songs to the mp3,i tried manipulating the XML to no avail.

user adrianTNT
adrianTNT (admin) 16 years ago

@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.

user dickfunk
the listing author dickfunk 16 years ago

pedro, it's in Flash 8 format. Are you using something older?

user pedrocoimbra
pedrocoimbra 16 years ago

yo this thing lets me download but then doestn open

user dariolavora
dariolavora 16 years ago

amazing!
;D

user shabith
shabith 16 years ago

great work buddy!

user dickfunk
the listing author dickfunk 16 years ago

Go for it! :P

user CalgarC
CalgarC 16 years ago

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

user fdeflint
fdeflint 16 years ago

mp3

user dickfunk
the listing author dickfunk 16 years ago

Thanks mate!

user adrianTNT
adrianTNT (admin) 16 years ago

Fixed.

user dickfunk
the listing author dickfunk 16 years ago

I'm good with you adding to it. Thanks!

user adrianTNT
adrianTNT (admin) 16 years ago

No problem, you could eider upload a new file with same name, I will then remove this one, or *I could modify those.

user dickfunk
the listing author dickfunk 16 years ago

Oh yeah, sorry about the misunderstanding. Are you going to edit it, or is there any way I can do it?

user adrianTNT
adrianTNT (admin) 16 years ago

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.

user dickfunk
the listing author dickfunk 16 years ago

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

user adrianTNT
adrianTNT (admin) 16 years ago

It will not work to load files (mp3) from another host, so can I edit your file and put an mp3 there?

user dickfunk
the listing author dickfunk 16 years ago

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.

user adrianTNT
adrianTNT (admin) 16 years ago

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.