Newest Articles

MegaCombs
Flash Media Player
XML Driven Pie Chart
Base Defender
Hangman Game
8 Ball Pool


Popular Articles

True Fullscreen Flash Mode
Mp3 Player with XML Playlist
Image Slider
Flash Media Player
3d Rotating Image Cube
Catapult Game


Random Articles

XHTML Image Mapper
Horizontal Line Transition
MegaCombs
Picture Puzzle
Photo Reel
Gravitas


Links

Foundation-Flash
MickM
TutorialQuest
Tutorialsphere.com - Free Online Tutorials
Newgrounds
TWiT
Link to SwfSpot
Swf Spot



rss feed

Mp3 Player with XML Playlist

Mp3 Player with XML Playlist
AddThis Social Bookmark Button
Description: Mp3s are loaded and played using an XSPF playlist
Author: John Bezanis
Added: November 25th 2007
Version: Flash 8


This mp3 player loads a playlist from an XML file using the GET parameter playlist. The GET parameter autostart determines whether or not to start playing the music as soon as the player loads. The quality of the sample songs has been reduced to lower bandwidth use and to avoid copyright issues.
Player Features:
  • Playlist loaded from an xml file
  • The ability to have music autostart or not on load
  • Full volume control
  • Alternating play/pause button
  • Buttons to advance to the previous or next song
  • Scrub bar to advance to any position in a song
  • Scrolling text
  • Scrollbar for the playlist
  • Clicking a playlist item starts that song
  • Autostart of the next song after a song has finished
Example code for the XHTML:
<object data="http://www.somesite.com/musicplayer.swf?autostart=true&playlist=http://www.somesite.com/playlist.xml" type="application/x-shockwave-flash" width="300" height="200"><param name="movie" value="http://www.somesite.com/musicplayer.swf?autostart=true&playlist=http://www.somesite.com/playlist.xml"/></object>

Example XML:
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
 <trackList>
  <track><creator>Iron Maiden</creator><title>Fear of the Dark</title><location>http://www.bezzmedia.com/swfspot/resources/42-song3.mp3</location></track>
  <track><creator>Social Distortion</creator><title>Ring of Fire</title><location>http://www.bezzmedia.com/swfspot/resources/42-song4.mp3</location></track>
 </trackList>
</playlist>


Download the files below:

Download XML File
Download Source File
Download the built Mp3 Player
Comments
thanks
November 29th 2007 06:11PM   -   kaghem
Riggght this is awesome but i want to add <songid>11232</songid> and when a button is clicked when that song is playing goes to a url/songid.

Any idea how i can do this?
December 1st 2007 04:12PM   -   Damien Deakes
You could set up the xml file so it is dynamically processed by php. Instead of <songid>11232</songid>, have php replace the id 11232 with the actual mp3 url that the id links to.
December 2nd 2007 10:12AM   -   John
Hi john ive set that up already the php driven xml.

But basically i have a php page at www.site.com/song/songid... and i want to link (via button) to that dynamic page for the current playing song.
December 2nd 2007 04:12PM   -   Damien
hey there. ok i love the mp3 player and it works great in a site that only has one playlist, but i am having trouble modifying the code for my website which has many different playlists. could you tell me where to change the code on the mp3 player if the name of the playlist is "acoustic_playlist" for example? then i think i can figure out the rest. great job :)

sincerely,

Jane Andre'
jane@janesmusic.com
December 4th 2007 07:12PM   -   cynthia jane burrill
one other question i have is : how do i modify the code so that the music does not start automatically on load, but only when the use pushes the play button?

thanks again,

Jane Andre'
jane@janesmusic.com
December 4th 2007 08:12PM   -   Jane Andre'
Jane, in the html, change both places where it says autostart=true to autostart=false
December 4th 2007 09:12PM   -   John
Anyone got a solution to my problem ...

I want to link to the currently playing tracks informtion page... i already have <trackid>TRACKID</trackid> in the XML file, i just need to be able to insert a button which links to www.mysite.com/track/CURRENTLYPLAYINGTRACKID


Any ideas. Would be greatly appreciated.
December 5th 2007 06:12AM   -   Damien
Where will we write this xhtml code? to swf?
December 5th 2007 01:12PM   -   aster
do you think to give some lessons about making spectrum analysis for music?
December 5th 2007 02:12PM   -   huseyin
huseyin, I believe you need to use AS3.0 to analyze the spectrum. Check out revolt: http://www.anttikupila.com/flash/revolt-actionscript-3-based-spectrum-analyzer-source-released/
December 5th 2007 06:12PM   -   John
Hey John, all I got to say is THANKS!!!

I'm building a flash page for a friend that has a band and by adding this mp3 player to the page adds so much to it, it's amazing for bands.

Thank you sooo much!
If there's any paypal donation needed let me know...

aragoneldragon@hotmail.com
December 12th 2007 03:12AM   -   Federico
I like mac much better and ipods i would prefer the ipod slider instead of that stupid playlist!
December 17th 2007 07:12AM   -   mikkel
How can i edit the player so it will accept this...
<channel>
<title>Podcasts</title>
<description></description>
<item>
<title>traxexample8_oriental.mp3</title>
<description></description>
<itunes:author></itunes:author>
<pubDate>Wed, 18 Jul 2007 11:58:44 +0100</pubDate>
<enclosure url="http://www.hatfield.doncaster.sch.uk/user/59/54100.mp3" length="265968" type="audio/mpeg" />
<guid>http://www.hatfield.doncaster.sch.uk/user/59/54100.mp3</guid>
</item>

Cheers :)
December 18th 2007 05:12AM   -   Damien
this player is awsome, but anyone can fix the slider problem during streaming... it jumping left and right when the music still streaming
December 26th 2007 11:12PM   -   kevin
can i hide the playlist and call it we the user wants
December 27th 2007 11:12PM   -   maestro
undefined error
December 30th 2007 05:12PM   -   Robert
can't get it to work what am I doing wrong...built my own and that works....what do I need to implement to stop this error
December 30th 2007 06:12PM   -   Robert
Error opening URL "file:///G|/SwingSetGroup%5Finc/42%2Dmp3player/undefined",,,have all the files on local computer...do I need them on remote host....to test it?
December 30th 2007 06:12PM   -   Robert again
Robert, check your html and make sure you are pointing to the correct xml file.
December 31st 2007 12:12PM   -   John
Similar to Janes' post i'm trying to have the player only play the mp3 'on demand'. In other words when the user clicks the play button or song title only. I've set the auto start to: autostart=false and this prevents the player on initial load to not play.. however, after that, once you select a song the following songs auto-play. where can i stop that? Is this possible?

BTW: This is an awesome mp3 Player!!! Thanks so much.
January 26th 2008 10:01AM   -   benny
Hi im trying to load this into a swf ive made myself using the loadmovie command but it wont play the mp3's, it does read the playlist and the animations all work but no music. :( can you help?
January 29th 2008 12:01PM   -   dobbin
Dont worry I fixed it, not sure what I did to fix it but it works like a dream now. BTW great player keep up the good work
January 30th 2008 07:01AM   -   dobbin
I'm building a site for my band and I wanted to use this player. However, the site I'm building is a Flash site. I've never worked with .xml. How do I get it to work if I'm not directly embeding the player though html?

any suggestions?

Thanks in advance.

February 5th 2008 08:02AM   -   Nino
I have the player working in a folder on my local machine, but when I post the same folder to my website, the player and all the information displays, but the mp3s don't play. Detail: In one failed instance the timer displays 00:00, in another, NaN:NaN.
February 22nd 2008 03:02PM   -   Bobby
Hey John

Where in the actionscript i can change the code, that the loading progress is lower that i can play when it's already load's 2% of the music ?

because if i put it on my website everey thing is going to a tild when it's loads the music.

kind of regards,

Djashuard
February 28th 2008 04:02PM   -   DJashuard
There are already a couple of posts on this subject but no solution yet.I also have different playlists on my site and I'm solving this now by putting different players on my site (one player.swf for each artist). There must be a way to load all the playlists(xml files or file) in the same player but how is this done?

Anyone have an idea?

March 1st 2008 09:03AM   -   silky jack
Thank you very much. This is exactly what i needed. Great player!
March 3rd 2008 01:03PM   -   Levent
is there a way to read ID3 tags?
I like you player
March 6th 2008 03:03PM   -   jorge
How do I change the font size and color of the playlistbox?

Please help.

Thanks,

Louis
March 14th 2008 12:03PM   -   Louis
Player updated. It now uses the XSPF standard.
March 19th 2008 04:03PM   -   John
Hi... i'm quite new in "actionscripting" and would like to know if you can set the default volume in... let's say 50%, how can we do that?... by the way the mp3 flash is very good :)
March 28th 2008 02:03AM   -   sLo331
Esta mierda no anda!!!
March 30th 2008 01:03PM   -   cmtik
Hi! I would like to add this swf file insite my fla movie,

I want to insert it in another movieclip so it lays as a swf file insite a Movie Clip (musicplayer_mc)

Please help!
April 2nd 2008 09:04AM   -   Rasmus Eeg
Hi - Great Player!
I was wondering if anyone might tell me how to go about adding a stop button?
Many thanks!
April 3rd 2008 10:04AM   -   Francis
Francis--What's wrong with just having a pause button?
April 4th 2008 05:04AM   -   Frankie
There's nothing wrong with only having a pause button, and I like the play/pause toggle, feature but I'd just like to have a stop button as well. I've added the button in flash I just don't know what to add to the actionscript.
April 4th 2008 12:04PM   -   Francis
Hi, Does anybody know how tho change font style of the playlistbox? I think John already asked this question but can not see an answer to it. How do does this lines of code look like and where do you put them? My tries didn't work.

Coba
April 16th 2008 06:04AM   -   coba
coba, to change the fonts, open the .fla in flash, click each text box, and change their fonts in the properties tab.
April 16th 2008 06:04AM   -   John
Hi, i have many question to u.
My site is a free download music, i want this player swf have a download song and using code embed music to other site.
Please help me,
I have using playlist swf JW, i want using this script.
Thanks so much
April 20th 2008 03:04AM   -   ken phan
Is there a way to configure the XML or the XHTML to do or not loop the playlist??
April 24th 2008 10:04AM   -   joanmanuel
Hi John, Great player, very responsive! Can you point me to any tutorials on how to display the album cover photo in a nested movie clip, that is triggered by the XML playlist?
May 15th 2008 11:05AM   -   Joe C
Thanks, I've managed to get it working fine, it's great
May 15th 2008 11:05AM   -   Paul
Nice topic
Thanks
I have found two interesting sources http://fileshunt.com and http://filesfinds.com and would like to give the benefit of my experience to you.
May 18th 2008 11:05AM   -   Natasha
How would you add a function that changed the playlist? I noticed that in the playlist.XML file it starts with <playlist version="1">,

How would you make the play jump two <playlist version="2"> or load playlist2.XML?
May 19th 2008 12:05PM   -   Max Warburg (tyrant)
Hi

Excellent player, I love it!

Just wondering if anybody here knows what part of the actionscript must be edited to get the playlist to display when embedding the player into a new flash file. I have just copied the frames over into a new movie clip in a new fla file, and everything works just fine except the playlist window which displays nothing. I can't find what to edit in the script, and hope one of you might have the solution for me.

I have found several good players with that works, but not as good as this one. Excellent work!
May 27th 2008 01:05PM   -   Paul
good work, ty..
June 4th 2008 10:06PM   -   theolbap
we are using your mp3 player,is there possiblity of displaying my thumbnail images for each song?
June 9th 2008 10:06AM   -   rajan
ok i have my playlist file but whenever i try to play a song on my pc i get this:
Error opening URL "

http://www.filefreak.com/pfiles/64927/electrikmp3/03%20Oh%20Foolish%20Heros.mp3

the mp3 at the url is valid though and when i have the swf online iit just does nothing and the box for song name says undefined-undefined

the xml is here:http://electrikdesigns.50webs.com/42-playlist.xml
and the swf is here:http://i169.photobucket.com/albums/u203/uluvjosh/mp3.swf

please help :(


June 29th 2008 05:06AM   -   shua
shua, looks like your xml file is malformed. Try adding <?xml version="1.0" encoding="UTF-8"?> to the beginning.
June 29th 2008 08:06AM   -   John
ok i added the line but im still having the same problem.
music refuses to play. i still get the same errors as my previous post states.. any more ideas. e-mail me at: musicboxdesigns@yahoo.com
June 29th 2008 05:06PM   -   shua
how do you update the xml so it sources the mp3 files from a folder (called mp3) rather than a web address?
July 2nd 2008 09:07PM   -   Franky Moops
Thank you so much for this wonderful player. I copied all the xml code, and for some reason, the playlist wouldn't show up in the playlistbox. I don't know what I did wrong and I would really appreciate any input you could give.

Thank you.

xml code:
<?xml version="1.0" encoding="utf-8" ?>
- <playlist version="1" xmlns="http://xspf.org/ns/0/">
- <trackList>
- <track>
<creator>Jim Carroll Band</creator>
<title>People Who Died</title>
<location>http://www.bezzmedia.com/swfspot/resources/42-song1.mp 3</location>
</track>
</trackList>
</playlist>
July 6th 2008 02:07AM   -   Di
Di, it looks like your browser reformatted the xml file to make it more friendly to read. There should not be '-' between tags. When you open the file, try viewing the source, or instead just right click the link and save the file directly.
July 6th 2008 02:07AM   -   John
John, thank you so much for your response. I cleaned up all the xml codes, but the playlist details still won't show in the playlistbox.......I am embedding this player into my flash website fla file, and this is the best player I have found so far, so if you have any input, I would greatly appreciate.

p.s.: I think I have similar problem w/ Paul (posted on May 27th).
July 8th 2008 12:07AM   -   Di
i believe my problem is the same as di's and paul's
July 8th 2008 01:07PM   -   shua
ok so ive gotten my songs to show up in the playlist but they will not play http://electrikdesigns.50webs.com/mp3.swf
July 13th 2008 07:07PM   -   shua
shua, file freak may be blocking direct downloads.
July 13th 2008 10:07PM   -   John
does anyone know - how to add a shuffle button to this player? so that it will play the tracks in random order. your help will be greatly appreciated!
July 16th 2008 07:07AM   -   GH
How to make own xml tag like dat???
August 14th 2008 03:08PM   -   88th
I cant input ma playlist to ya flash!

http://www.fileden.com/files/2008/7/28/2023973/My%20Documents/187%20Ride%20or%20Die%20soundtrack.xml
August 15th 2008 12:08PM   -   88th
This player looks very nice and it's functioning well! However it would be even better when there would be a shuffle function. Is there somebody who knows how to put in this player? Thanks for the good work!
August 30th 2008 12:08PM   -   Harald
Hi,
Anybody knows Is there any possibility of changing view of the player (buttons shape size, colours) ?
September 3rd 2008 04:09AM   -   ph
How Do I Change the font style and color in the "playlistbox" text area. I want the font color to be white so I can see it against my black background. Someone please HEEEEELLLLLLPPPPP!! Haha. I really need it. Thanks.----Marv
September 19th 2008 07:09PM   -   Marv
I think i discovered the problem to most peoples issues here..... In the sample code above for the xhtml, John has musicplayer.swf etc.... whereas, in the download codes, you use mp3player.swf etc.... People, make sure your syntax is all the same. Cheers. Matt
September 23rd 2008 09:09AM   -   Matt Drywood
Hi Folks,
I can get the player to work wonderfully in firefox, but IE just shows a blank white box, sized the same as the right size, but blank inside? Is there something i need to add or removove in the code to make it work in IE.
Thanx in advance!
Maceman
September 23rd 2008 06:09PM   -   Maceman
I had to change the .swf text in the <object data section to "musicplayer.swf" to get it to work.

I too would like the change the color of the player. Anybody with some ideas?

sample site:
http://www.justmymusic.com/store/index.php?main_page=product_music_info&cPath=1&products_id=1
September 27th 2008 05:09PM   -   jasmel
How would one add the ability to use the arrow keys for huge play lists? Say list of 1,900+? I have 7 very large play lists and when I use the up and down arrow buttons it skips over about 10 to 20 songs at a time. When I click and drag the scroll bar I again can't seem to get it to rest on the section I want to view due to the fact that it jumps every 10 to 20. Is there something I can do withing Flash to get the use of the keyboard arrow keys? Thanks!
Example site: http://www.justmymusic.com/music_clips/player/elmo_player_full.html
September 28th 2008 08:09PM   -   jasmel
I just noticed a problem... Cna someone help with this... Notice that when you reload the page, for a split second the player says Iron Maiden- The Trooper or something like that??? How do we get rid of that? It is not in the code....
September 30th 2008 04:09PM   -   Maceman
You can open the file in Flash and edit the Iron Maiden - The Trooper text with whatever you like. Than save the file and done. See example of the changed text here: http://www.JustMyMusic.com (Just click on any product to see the player)

What I want to know... is how do you slow down the scroll bar. I want to click the up or down arrow and have it just move one item at a time, not 10+.

Thanks!
October 11th 2008 10:10PM   -   jasmel
First of all, I would like to say that this is an awesome music player.


I wanted to make this player bigger in dimension, so I tried to enlarge it, but after enlarging, I realized the position of the playslider and the playlist scroller went out of place. I know that the dragging is enabled and their position is programmed to a fixed position.


So I was wondering if there is anyway to enlarge the dimension of the player without disrupting the position of the slider and the scroller.


Thanks. :)
October 13th 2008 04:10AM   -   Alvin
this player is awesome! thanks in a million
October 20th 2008 05:10AM   -   celilu
HI!

I have one question. When I insert MP3 player in my flash page, it doen't want to show me playlist. Another question is: How can I make progress bar shorter, so that progress point would go strait from the beggining till end of progress bar. can you help me please. Thanks a lot. Bye
October 22nd 2008 09:10AM   -   D
Muchas Gracias!!!
October 27th 2008 08:10PM   -   Leo De las Praderas
thank you very much, just what i was looking for!
November 4th 2008 09:11AM   -   ola
Thank you very much!
November 12th 2008 03:11AM   -   tran ngoc duc
thank you Great player!
November 18th 2008 10:11PM   -   
Well I still cant get the player to load the songs in my flash cs3 movieclip..always comes up with url error when i press play or next track..
November 19th 2008 04:11PM   -   Mike
For undefined "Error opening URL" You need to publish your settings so with flash ver 8 and AS ver 2, under menu: file-->publish settings.

November 20th 2008 07:11PM   -   David
Stll not working, looks like its trying to load something in the root timeline of my flash movie..cant seem to find anything in the as file..help..
November 21st 2008 03:11PM   -   Mike
I love the player, thank you. Is there a piece of actionscript that would cause the player to not autostart. Im embedding to different versions and need one to autostart and one to not autostart. The html fix above is working for me. Thanks For your help.
November 21st 2008 06:11PM   -   Noah
s
November 22nd 2008 04:11PM   -   EFE
This player is not working properly. When i copied the code present in this website and pasted in my website, it worked. When i changed some colors and embedded it there where no effects.
November 24th 2008 12:11PM   -   Aakash
hello, i need some help with my own player that i made that replicates the new Ipod chromatic found at: http://webdesigndeluxe.com/images/ipod_player_mp3_1481/Ipod%20Nano-Chromatic%20Player.swf. I need to put this onto one of my client's myspace and I was going to use an <iframe src= .. but myspace does not allow iframe so I want to use your code above but i need to know how to make the .xml playlist in the same php, xhtml, or xstl page so that i can use this link on myspace using you code above. i had the:: http://webdesigndeluxe.com/images/ipod_player_mp3_1481/Ipod%20Nano-Chromatic%20Player.swf?autostart=true&playlist=http://www.webdesigndeluxe.com/images/ipod_player_mp3_1481/IpodPlayerFlash.xml -- where http://webdesigndeluxe.com/images/ipod_player_mp3_1481/Ipod%20Nano-Chromatic%20Player.swf is the .swf and http://www.webdesigndeluxe.com/images/ipod_player_mp3_1481/IpodPlayerFlash.xml is the .xml playlist but i keep getting an error that says XML Parsing Error: not well-formed
Location: file:///C:/Users/Internet/Documents/Untitled-4.xhtml
Line Number 1, Column 128:.... Sorry this is so long, but I need someones help ASAP so i can finish this for my client. Thank you.
November 25th 2008 08:11PM   -   Alex Moore
well I still cant find anything and Im starting to get mad at you but I think that he's a awesome music player and he should keep making music. I wish that I can help out with the songs and become just as famous(well he's very famous in my world.



THANK YOU
December 2nd 2008 07:12PM   -   keiasha
How can I resize the playlist area? I would like the player to be a little slimmer, more rectangular (something like 300x125). But when I try to resize the playlist box it also resizes the text within it. Also, when I try to resize the scroll bar the playlistscroller still scrolls all the way down to its original point. I'm sure I need to change something within the actionscript I'm just not sure what.
I'm also unsure how to change the text properties for the playlistbox since it is a movieclip and not a textbox.
I appreciate help from anyone who can assist me with the issues above.
December 18th 2008 10:12PM   -   theloomis
thank u for developing my skills.....lot of thanks to u
January 3rd 2009 05:01AM   -   raju
John,
Thank You very much, wish you all the best
January 4th 2009 02:01AM   -   Steven
HELP!

I will pay via paypal for this support, please:

I need to be able to have special characters in the song title. At the moment this does not works.

email me at fernando.delgado (at) aon.at
January 8th 2009 09:01AM   -   fer
I mean spanish characters such as
January 8th 2009 09:01AM   -   fer
Hi, i have some problems with the buttons on mozzila firefox, at this demo site I have no problem, but in my page i can't use the buttons... i wander why ... in ie and google chrome I have no problem... so ... can u help me with this? And I wanna ask you if I this is totally free, I mean if I can use it on my website without pay a penny. Thanks, keep up with the good work ;))
January 10th 2009 07:01AM   -   BlAkY
Awesome, thanks! I tried to donate a thousand bucks but theres no papypal button, oh well.... :)
January 12th 2009 05:01PM   -   Rick
Hi, is there a way to add an item to the playlist from a link?
January 21st 2009 10:01AM   -   Alex
This is a really good tutorial
thanks a lot
January 21st 2009 12:01PM   -   thaisong
That music playing from the demo player is cool! )))
January 22nd 2009 05:01PM   -   albert_ru
No tutorial of how to make the player, just a simple download. :(

"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime"
February 5th 2009 10:02PM   -   &#12493;&#12473;&
Theis mp3 Player is awesome. I want the playlistbox to display 5 songs instead of 10. I tried to reduce the height of the playlistbox, but it still displays 10 songs. I hope someone can help me to solve this. Thank you.
February 6th 2009 04:02AM   -   Teddy
Awesome player. Thanks a ton for sharing the files.
Keep it up!!
February 9th 2009 12:02AM   -   abdul

How do I stop it from playing on load. I am loading it from a Flash page so there isnt a code like the one above. The only 'autostart' on the code is already set to 'False'

Please Help!

Otherwise great player glad I found it

Thanks
March 4th 2009 05:03PM   -   joel
Joel, there are two lines to set autostart in, I think one of them is even in the playlist path...

You probably missed one
March 5th 2009 12:03AM   -   Adam
Great Help
March 9th 2009 11:03AM   -   Jean Claude
cuando ejecuto el swf funciona pero ejecuto el html y naranjas porfa ayuda
March 16th 2009 11:03AM   -   andres
Wow!... nice player!!!

thanks a lot!!! =)
March 23rd 2009 05:03PM   -   Anonimomax
I Love it, Thanks, My stage is 986.3 w by 493 h
How do I position this to be centered? I tried but the playlistscroller and the progressslider does not move with the rest...Please help
March 24th 2009 07:03PM   -   Greg
how can i make the flash transparen? how can i add the transparent code? I will be thankful for help.
love vivian
March 29th 2009 09:03AM   -   Vivian
Thats all great and beautiful, all works, but i cannot edit the fla file in flash, it says "UNEXPECTED FILE FORMAT" Why?????

Thanks for help.
March 31st 2009 10:03AM   -   Rossanna
Rossanna, you must have at least flash 8.
April 1st 2009 05:04AM   -   John
Love this flash player, it looks great and works with IE8 too (unlike the previous one I was using). Thanks for sharing, John!

I just want to get rid of the "Iron Maiden" track that appears for a split second when the player loads. Nothing against the Maiden as such, it's just not in keeping with the music I'm playing!

I understand you can open the file in Flash and edit it out, but where? I'm not really a Flash expert. Plus I only have Flash 7 - does that mean I can never edit it out?
April 1st 2009 07:04AM   -   Code Red
Code Red, do you have a link so I can see what is going on?
April 2nd 2009 06:04AM   -   John
Hey, is there a way to keep the prgressslider in line with the song as it plays while the song is loading instead of jumping back?

Thanks man.
April 5th 2009 02:04PM   -   Jeremy
great songs! ^^
April 6th 2009 08:04AM   -   phil
Hey I like your player but HOW TO DO IF I WANT TO PUT THE PLAYLIST IN OTHER LANGUAGE LIKE THAI, CHINESE JAPANES ?
April 8th 2009 09:04AM   -   Aleksander
I can't get anything to work...i can call information from your site, but it won't use the XML file I made...Can someone please help? email is invicus12@gmail.com
April 16th 2009 06:04PM   -   CM
You have to make sure that the "42-playlist.xml" file is renamed to "playlist.xml" before uploading the file to your server. If you look in the AS3 file you will see that the "_root.playlist" is pointing to "playlist.xml" and not "42-playlist.xml".
May 7th 2009 05:05AM   -   LaycedupDezignz
Hi John-

Excellent work here. The player is really great and I have enjoyed using it. I was wondering if it is possible to modify the script to allow me to duplicate the frames into adjacent frames and use a button to toggle to another instance of the script/frames. The effect would be that a user would click a button and go from one playlist to another. I'm certain either a modification is needed or it just won't work. I tried what I'm describing and it plays the same playlist, even though I have defined a new one in the new frames/script.

Any tips I would be grateful for!

Thanks
May 11th 2009 08:05AM   -   franky
Below is an example of what my site requires for me to play music..Could someone complete one track so I can have an example on where to put the music i want to play on site.



<?xml version="1.0"?>
<songs>
<song url= "tracks/song1.mp3" artist="Artist 1" track="Track 1"/>
<song url= "tracks/song2.mp3" artist="Artist 2" track="Track 2"/>
<song url= "tracks/song3.mp3" artist="Artist 3" track="Track 3"/>
<song url= "tracks/song4.mp3" artist="Artist 4" track="Track 4"/>
</songs>
May 11th 2009 07:05PM   -   divindiva
Diva...you need to have a folder in the root of your web server called "tracks" and put your songs in it. Then in the xml file change the file names to reflect the names of the songs on your server. The swf would reside in the root directory too, according to the path in the xml example you have here.
May 11th 2009 11:05PM   -   franky
After poking around a bit I finally figured out how to point to different playlists in the timeline. First off, make sure you change the frame designation in the loader script. Then in the main script, change _root.playlist to _root.playlist1 and so on. That's the key to getting multple playlists in one player. Then make buttons that point to each unique loading cell. Probably a dirty hack but it seems to work.
May 12th 2009 12:05AM   -   franky
thank you.
May 19th 2009 11:05AM   -   oovoo
Maaan :)! You Rock!!!!!!
May 26th 2009 11:05AM   -   yasin crow
Wow!... nice player!!!
lol
thanks a lot!!! =) You Rock !!!!!
May 27th 2009 11:05PM   -   bestpricetoday
Very nice. :=)

Thanks
June 8th 2009 08:06PM   -   Kerim Candan
it is nice but not supporting arabic can anyone help me?
June 17th 2009 08:06AM   -   jacobepl
Hi guys
this player is very good but How i remove autoplay function.
June 24th 2009 11:06PM   -   Zeeshan
You have not been very bad, convenient player.Thenk you!
June 27th 2009 08:06AM   -   Amanda
r&#7845;t tuy&#7879;t v&#7901;i b&#7841;n ah !!! C&#7843;m &#417;n nhi&#7873;u nha ...

DEMO : http://sieudoc.com
June 30th 2009 02:06PM   -   0932200231
hey when i download your 3 files put them all in the same directory and create html file with :
<object data="42-mp3player.swf?autostart=true&amp;playlist=42-playlist.xml"
type="application/x-shockwave-flash" width="300" height="200" >
<param name="movie" value="42-mp3player.swf?autostart=true&amp;playlist=42-playlist.xml" />
</object>

( which is the same as your website. it wont play the songs and gives me a time of NaNaNa)
all files are in the same folder and all names are as downloaded.
42-playlist.xml
42-mp3player.swf
42-mp3player.fla

whats going on >???
July 16th 2009 12:07AM   -   goofhead
Thank u !!! Great Job !!! The best that a i found in web !!! Congratulations !!!
July 17th 2009 12:07PM   -   Marcelo | Brasil
Great player and just what I needed for my Flash-based site.
To those who are wondering how to prevent playback on load, just go to line 17 in the Actions editor and you will probably see this:
if (_root.autostart == "false")

Notice there are two = signs?
Delete one and it's fixed.
July 28th 2009 02:07AM   -   Deevolved
Great player, used it successfully a few times.

Only one issue: How can I prevent the playlist from repeating (looping) when reaching the last song?
August 2nd 2009 07:08AM   -   Florin
Hi,

This is an amazing player - I've used it on a number of sites, thanks for sharing it!

I've managed to modify the AS exactly how I want it but am having an issue with the playlist scroll function - after changing the height of the playlist box, some of the mp3s are below the masked playlistbox when the scroller is at the bottom.

I've narrowed it down to this -
does anyone know what the number 149 on line 207 does? I've been trying for a few hours and can't figure it out. Any help would be massively appreciated.

Ant
August 12th 2009 08:08AM   -   Ant
True to form, solved it as soon as I asked.

once again, great player :)
August 12th 2009 09:08AM   -   Ant
Awesome! help you with a couple questions I seen above here ...
Transparency param name="wmode" value="transparent" /
and the plugin code at the end... embed src="" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent"/ This makes it trans parent...
Buttons and colors? FLASH Duplicate image then replace image with the dup. Colors same way! And now My Problem...The XML List can you add a function to add a buy now URL in it? BTW John YOU ROCK! I also am creating www.phillymusicstore.com and looking for a cart player or I'm just going to do the scroll list thumbnail - info - sample button (rather have a player) and the buy track now paypal button. any ideas?
September 4th 2009 11:09AM   -   Frank
Great MP3 player! Thank you. One small question: How can I modify the AS to assign a specific font style to the "playlistbox" mc (not "songdisplay" and "songtime" textboxes)?
September 15th 2009 04:09AM   -   Tim
Is the code of playlistitem hidding in the "playlistitemcontainer" movie clip? I believe people will be really appreciated if you can share the code for adjusting the font style/font size of the playlistbox.
September 15th 2009 07:09AM   -   Tim
Sorry. Found the playlistitem code in the library :) YEAH!
September 15th 2009 07:09AM   -   Tim
I need the button to be white and background to be black. How can I do it?
September 15th 2009 10:09PM   -   Stair Gates
Love the player and works fine with some minor issues.

1) The scrubber : Acting buggy. (Seems to move as the mp3 is buffered, fine once the entire mp3 has been downloaded so to speak).

2) Track Info Box : The text stays still on track1, track2; scrolls left then stops then scrolls right. I think 2 is bugged or something in how it moves.. can we get a fix to keep it still like track1 instead of scrolling?

Great player but im unable to use it till this minor things are fixed, just hoping someone can help.
September 16th 2009 10:09AM   -   jeremy (SC)
seems its random as to which tracks stay still and which ones do the wiggle thing.
September 16th 2009 10:09AM   -   Jeremy (SC)
And Last suggestion to improve this player.

The scrolling playlist.. how can I edit it so that if you dont have enough tracks to fill the playlist up it wont scroll the playlist still.
September 16th 2009 10:09AM   -   Jeremy (SC)
A good start, just need to make a few improvements!
October 13th 2009 07:10AM   -   email marketing company
Thanks for this, great idea and I'm sure with some little improvements this could be awesome!
October 13th 2009 09:10AM   -   reductil side effects
Hi, This is a great player!! Thank you very much!

However I am having issues with IE, the player is showing as a white box. It works fine in every other browser?

I thank you in advance for any help you may be able to offer me :-)

Helen
October 13th 2009 06:10PM   -   Helen
i had problems until in realize the file was saved as 42-playlist erase the 42- and it should work. :)
October 16th 2009 01:10PM   -   hailee
Hi Just wondering if there was a quick work around for adding multiple playlist tabs say if you wanted to multiple albums to select from? How would i go about this? Any help would be great!
October 22nd 2009 12:10AM   -   Clinton
Guys as you see this mp3 player can only be user with actionscript 2
higher or lowler actionscript will not work

if you some tutorials i would me honored to help you guys out
November 5th 2009 11:11AM   -   Expert
Man, this is the only mp3 player that works when I publish my html page. Congratulations and thanks a lot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
November 5th 2009 07:11PM   -   Ci
great work ...thanks man
really clean and effective
November 6th 2009 09:11AM   -   Luis
great
November 6th 2009 10:11AM   -   vigrx
Thats Fab but the sample work of MP3 player you created above does not play anything, its only showing that we can select the song and move the scroll up and down to see the play list but why it is not playing? By the way excellent work.
November 6th 2009 05:11PM   -   sticker printing
Great blog.It is really informative article. Thank you for sharing your experience and teaching us.
November 9th 2009 10:11AM   -   chat online
Great Player. I want to have polish characters in song names but player don't read them form playlist.xml, just skips them. Anyone got a clue how to fix that?
November 10th 2009 05:11PM   -   Kamil
Hi , this is a great player !!! Somebody knows how to add a picture in the xml that load in a movieclip ??? And is it possible to add a shuffle function to the playlist ? Thanks for answers...
November 12th 2009 10:11AM   -   beginner
Hello,

Thanks for this great MP3 player.
I have one question: how do I stop looping the XML playlist ? When the last song is played it starts all over again. I want to stop it from restarting.

How do i do this ?

Yhanks!

Fred
Belgium
November 14th 2009 07:11AM   -   Fred
I just need to change the data in the xml file according to different sessions.

so i made a simple solution like this, but its not working, please check.

<?php
header("Content-type:text/xml; charset=utf-8");
session_start();
echo "<playlist version="1" xmlns=\"http://xspf.org/ns/0/\"><trackList>";
echo " <track><creator>$_SESSION[artist]</creator><title>$_SESSION[title1]</title><location>http://www.aweintv.info//datasecure/mp3/1.mp3</location></track>";
echo "</trackList></playlist>";
exit;
?>
November 17th 2009 04:11AM   -   Giridhar
when i tried to put all xml inside php and tell browser that the header is xml, it only works with internet explorer and not with any other browser, what to do for this.
November 18th 2009 01:11AM   -   Giridhar
How do i modify the code so that the music does not start automatically on load, but only when a user pushes the play button?
November 22nd 2009 10:11AM   -   play games
Hi Just wondering if there was a quick work around for adding multiple playlist tabs say if you wanted to multiple albums to select from? How would i go about this? Any help would be great!
Thanks a lot!
November 24th 2009 10:11PM   -   Ilumina
Thank you for good information
November 28th 2009 04:11AM   -   download mp3
How can i embed this player to another site? It works great on the same site as I have it uploaded but not when I try to embed it in another site. I have a crossdomain.xml on my site. The strange thing is that the player loads the playlist but it want start to play. I have autostart=true. What can I do?
December 2nd 2009 10:12AM   -   Olof
I forgott to ask one thing. I have Flash CS4 and when I made any change in the file and publish it, it will not work. I got questions if I like to convert it to cs4 file. I have tried everything. Can you please help me out?
December 2nd 2009 11:12AM   -   Olof
This is cool code. I had never heard of embedding an MP3 player using XML. This is a very helpful post.
December 5th 2009 10:12PM   -   Sandisk MP3 Player
Wonderful, thanks.
December 6th 2009 01:12AM   -   seo
Excellence.Thanks for sharing great informations.
December 7th 2009 02:12PM   -   furacoua
thank you for this interesting info.
i enjoy reading your blog
December 8th 2009 01:12PM   -   creditos rapidos
Hi!! John, Great player, very responsive! Can you point me to any tutorials on how to display the album cover photo in a nested movie clip
December 10th 2009 01:12AM   -   &#3615;&#3633;&am
Hi!! John, Great player, very responsive! Can you point me to any tutorials on how to display the album cover photo in a nested movie clip
December 10th 2009 01:12AM   -   Music
I love this player... cool.
December 10th 2009 10:12AM   -   cleaner reviews
Great player, lots of codex
December 10th 2009 02:12PM   -   ramon1982
I have bookmarked your site. Thanks for sharing
December 13th 2009 08:12AM   -   dental
excellent post, thank you for sharing
i love reading your blog
December 15th 2009 12:12PM   -   rinitis
Nice share really helpful post... thanks for sharing awesome info and tips MP3 Player with XML Playlist....
December 17th 2009 12:12PM   -   Online Printing
Code Red, do you have a link so I can see what is going on?
December 18th 2009 07:12AM   -   MP3
great work ...thanks man
December 22nd 2009 10:12AM   -   shop online
suggestion to improve this player.
December 22nd 2009 10:12AM   -   download mp3 free
I'm new to flash. I have a dynamic flash site. The player is great and works awesome separate. I want to embed the player inside of my flash page. I tried to copy it and paste it into my flash.fla file and then run it, but that didn't work.

thanks,
Ginger
December 22nd 2009 09:12PM   -   Ginger
http://www.picktorrent.com
December 23rd 2009 09:12AM   -   Torrent search engine
Thank you.
December 23rd 2009 09:12AM   -   &#3650;&#3627;&am
Considerably, the article is in reality the greatest on this noteworthy topic. I agree with your conclusions and will eagerly look forward to your next updates. Saying thanks will not just be sufficient, for the wonderful clarity in your writing. I will immediately grab your rss feed to stay privy of any updates. Pleasant work and much success in your business dealings!
<a href="http://lossweightdiets.com/acai-berry-benefits-you-can-take-off-the-weight/">acai berry</a>
December 26th 2009 06:12AM   -   weight loss pills
Excellence.Thanks for sharing great informations.
December 29th 2009 12:12AM   -   free online advertising
so nice post about flash. flash developers will love it.
December 29th 2009 12:12AM   -   shopping online center
Do you think to give some lessons about making spectrum analysis for music?
December 29th 2009 12:12AM   -   tidy cats
very interesting and useful article.
December 30th 2009 05:12AM   -   burning calories
Great, thanks for this!
December 30th 2009 07:12PM   -   travel deals
Great Mp3 player. nice find!
January 1st 2010 03:01PM   -   symptoms of hemorrhoids
I am pleased I found this!
January 1st 2010 07:01PM   -   Online Slimming
very interesting and useful article.
January 2nd 2010 02:01AM   -   orville redenbacher
thank god i found your article
January 2nd 2010 10:01AM   -   Andrew Wilcox
that's really nice...
January 3rd 2010 10:01AM   -   sticker printing
nice
January 4th 2010 02:01AM   -   Wedding Dresses Sale
Where is the shuffle button in this mp3 player?
January 4th 2010 03:01AM   -   jobs
Lots of <a href="http://www.primewritings.com">custom essay website</a> about would be composed for some people which will like to have knowledge superb content connecting with <a href="http://www.primewritings.com">home page</a>.
January 5th 2010 07:01AM   -   hE26Gemma
Useful information!
January 5th 2010 12:01PM   -   Den
Useful information!
January 5th 2010 12:01PM   -   Den
Useful information!
January 5th 2010 12:01PM   -   Den
nice mp3 list)))
January 6th 2010 01:01PM   -   download movies 2010
Autoplay code has two = signs. You just have to remove one.

WRONG:
if (_root.autostart == "false") {

RIGHT:
if (_root.autostart = "false") {
January 6th 2010 03:01PM   -   Phonobase
very nice article and has nice information about flash thanks
January 7th 2010 02:01AM   -   Discount Addams Family Ti
thank you for this interesting info. i was looking for something like this.
January 7th 2010 11:01AM   -   maca andin
I have made a simple site for streaming my music..

STEP 1, go to music list in php, click to find ablum wanted

STEP 2, click play, creates xml playlist, loads mp3player.swf plays song(s)

great

but if i go back (browser back) to first page, find new album, php updates xml (checked this) but the mp3 player still plays first playlist. if i close browser (IE8) then go back to begining, all is fine.

how do i solve this? where is cache stored? and simple solutions?
January 7th 2010 12:01PM   -   Gary
The MP3 player, which is a compression format that shrinks digital audio files with negligible sound-quality degradation, has revolutionized the way people can listen to music (MP3 Developments).
January 8th 2010 12:01AM   -   buy laptop
Really great MP3 thanks for share this.
Really great information i like it.
January 9th 2010 05:01AM   -   Sticker Printing
Its time to entertain yourself with Rock of Ages play. We are here to entertain you on your all kinds of questions like Rock of Ages tour, Rock of Ages schedule and Rock of Ages theatre
January 9th 2010 05:01AM   -   Rock of Ages Tickets
thank you for this interesting info. i was looking for something like this.
January 10th 2010 02:01PM   -   acido folico
Thanks for great stuff!
January 11th 2010 04:01AM   -   Web Design Company
@Gary
use rand function in php for link

data="42-mp3player.swf?autostart=true&playlist=42-playlist.php&rand=<? echo rand();?>"

same for

param name="movie" value="42-mp3player.swf?autostart=true&playlist=42-playlist.php&rand=<? echo rand();?>"
January 12th 2010 09:01AM   -   kokoanada
This player is great, I've just downloaded it!
January 12th 2010 01:01PM   -   Debt
The player is really something! Thanks for sharing!
January 12th 2010 01:01PM   -   Credit card debt
Hi
How I can put my music from file to this player.
Please help
January 12th 2010 07:01PM   -   trufel3
Thanks for great stuff! I love it.
January 12th 2010 09:01PM   -   Outdoor Propane Fireplace
It's a great information, Thank you very much.
January 13th 2010 04:01AM   -   Best Buy Shop
thanks
January 14th 2010 09:01AM   -   projeksiyon
That is very good comment you shared.Thank you so much that for you shared those things with us.Im wishing you to carry on with ur achivments.All the best.
January 14th 2010 07:01PM   -   mirc
Thanks for sharing such a wonderful information with us.
January 14th 2010 07:01PM   -   chat
The blog is really informative and i like to share it with my friends we can easily learn more about web designing through this post thanks for post
January 15th 2010 08:01PM   -   evening dresses
ai" wow!!! astig!!!!!!!!!
January 16th 2010 09:01PM   -   hanferth
Wow, I sure would like to know the meaning behind the symbols. I suspect they carry a message.
January 17th 2010 05:01AM   -   Backgrounds
Mp3 - like this stuff in my site
January 17th 2010 01:01PM   -   fotografia &#347;lubn
thank you for this interesting info. i was looking for something like this.
January 18th 2010 02:01PM   -   alergia acaros
Simple and easy to made player. I will try it myself.
January 18th 2010 08:01PM   -   presentation folder
thanks for the work
January 19th 2010 03:01AM   -   solve sudoku
I think it is the very interesting mp3 player.
January 19th 2010 07:01AM   -   book
It's great and there are many basic features of player.
January 19th 2010 07:01AM   -   film
Nice interesting concept
January 19th 2010 08:01AM   -   Acai Berry
Thank you for everything. Very useful
January 19th 2010 11:01AM   -   mp3
From my opinion, it is the very interesting mp3 player. Thank you for this interesting info. i was looking for something like this.
January 19th 2010 12:01PM   -   Metal Gear Solid Action F
From my opinion, it is the very interesting mp3 player. Thank you for this interesting info. i was looking for something like this.
January 19th 2010 12:01PM   -   Metal Gear Solid Figures
It is interesting concept and <a href="http://www.ppcindo.com">usefull</a> too
January 20th 2010 02:01AM   -   Saul Williams
I am new to XML, but I get very familiar with things, and I can see that this code is simple.
January 20th 2010 08:01PM   -   Boat Party
thx
January 21st 2010 10:01AM   -   ben
i work it with xml
January 21st 2010 01:01PM   -   war airplanes samples
The MP3 player works great once I fixed the xml. I dont know what I did wrong the first time
January 21st 2010 02:01PM   -   Cremation Urns
Very nice post. Information given is nicely elaborated. Thanks for sharing.
January 22nd 2010 04:01AM   -   John goper
the good work.
January 22nd 2010 04:01PM   -   cheap online drug store
I was wondering if it is possible to modify the script to allow me to duplicate the frames into adjacent frames and use a button to toggle to another instance of the script/frames.
January 23rd 2010 11:01AM   -   wowweetoys
thanx for this post i really loved it
January 23rd 2010 03:01PM   -   order augmentin
thanks.
January 23rd 2010 04:01PM   -   levitra plus
great post i will read this more often
January 23rd 2010 10:01PM   -   order augmentin
love this info i will read this more often
January 23rd 2010 11:01PM   -   buy augmentin
THANKS
January 24th 2010 06:01AM   -   evening dresses
<a href="http://www/yahoo/com"> yahoo</a>
January 25th 2010 07:01AM   -   john
I love the player, thank you. Is there a piece of actionscript that would cause the player to not autostart. It's a Great One!
January 25th 2010 03:01PM   -   Show
I'm getting a scripted blocked error when I try on my site, any have any ideas why?

Cheers
January 25th 2010 04:01PM   -   Tiffany Lamps
Hi john ive set that up already the php driven xml.

But basically i have a php page at www.site.com/song/songid... and i want to link (via button) to that dynamic page for the current playing song.
January 25th 2010 08:01PM   -   thai song
Hi!! John, Great player, very responsive! Can you point me to any tutorials on how to display the album cover photo in a nested movie clip
how do i solve this? where is cache stored? and simple solutions?
January 25th 2010 09:01PM   -   fishoil
I downloaded all the files put the player in a Div tag in my Dreamweaver cs4 Inserted the swf player uploaded all the files xml,swf fla files and edited the XML Play list in text wrangler saved the file refreshed the page .
All the mp3's are in the same place not in separate folder on my server site typed in the exact URL Link
put the title of the song nothing no song shows up
just says undefined-undefined . So what the hell i am doing wrong why can't the xml file locate the Mp3 in the same place with a direct url link . Please can someone explain in Lay mans terms i am a total newbee and need to be explained to like a child .
It's a player that i really would like to have working
January 25th 2010 10:01PM   -   Stube
Love the Mp3 player, its sweet!
January 25th 2010 11:01PM   -   web hosting
I have downloaded the source code file but i cannot open, it gives me some western code error. Where to open this file.
February 4th 2010 09:02AM   -   sticker printing
Your articles are brilliant and informative, thanks a ton.
February 5th 2010 04:02AM   -   tattoosgirls
Special thank for good post.
February 5th 2010 08:02AM   -   à¹‚หลดเพลงà
this musician is awsome, but anyone fault produce the slider challenging during streaming... incarnate jumping unattended and germane when the song still streaming
February 5th 2010 08:02AM   -   Andre Smith
Thank for the information
February 6th 2010 07:02AM   -   à¹‚หลดเพลงm
Hi John and folks, thanx for the nice player. It runs good, but if I implemet the player in a flash site the playlist details won't show in the playlistbox. The songdisplay is working and I can hear the first song. But I can not choose the songs without the list. Which path I have to change to get the playlist back? Thanx for your help.
February 7th 2010 11:02AM   -   Webster
for the information
February 10th 2010 12:02AM   -   å¤–汇交易
Special thank for good post.
February 10th 2010 03:02AM   -   à¹‚หลดเพลงà
Special thank for good post.
February 10th 2010 08:02AM   -   à¹‚หลดเพลงà
Thank for the information
February 11th 2010 02:02AM   -   onetum
thank you for this interesting info.
February 12th 2010 04:02AM   -   travel
heelp
February 13th 2010 03:02PM   -   vietnoinho
This is a great project, I have been looking for just such an idea to play our radio show clips.
February 15th 2010 04:02AM   -   Mike
Thanks i am using this in such site as www.lietuvos-na.lt/?spykeriniai

www.bulius.lt

greate man .. (y)

February 16th 2010 05:02AM   -   Giedrius Varnas
Thank you for everything. Very useful, but I have one quastion
How to stop automatic playing of music?
February 16th 2010 01:02PM   -   Lika
Can I ask again ... Hi John and folks, thanx for the nice player. It runs good, but if I implemet the player in a flash site the playlist details won't show in the playlistbox. The songdisplay is working and I can hear the first song. But I can not choose the songs without the list. Which path I have to change to get the playlist back? Thanx for your help.
March 7th 2010 03:03PM   -   Webster
for everyone who has the issue of the mp3 file code having a bunch of %20 signs written into the mp3 file location!!! Replace %20 with a Space! thats all you have to do! Such as Http://www.somesite.com/some%20Cool%20Song.mp3 change it to Http://www.somesite.com/some Cool Song.mp3

I hope this helps many of you!
March 8th 2010 12:03PM   -   EagleFlyt
Thank you very much!
March 10th 2010 06:03PM   -   Son Cheng Chon
Add a Comment
name:
website (optional):
captcha type the characters into the box
message (5000 characters or less):