Newest Articles

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

Popular Articles

Hangman Game
Mp3 Player with XML Playlist
Infinitely Zooming Image
True Fullscreen Flash Mode
Catapult Game
Base Defender

Random Articles

Show the Current Frames Per Second
Photo Reel
Catapult Game
Drivable Car
Picture Puzzle


Shapes the Game
Link to SwfSpot
Swf Spot

Contact me on Google+

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="" type="application/x-shockwave-flash" width="300" height="200"><param name="movie" value=""/></object>

Example XML:
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="">
  <track><creator>Iron Maiden</creator><title>Fear of the Dark</title><location></location></track>
  <track><creator>Social Distortion</creator><title>Ring of Fire</title><location></location></track>

Download the files below:

Download XML File
Download Source File
Download the built Mp3 Player
Comments Currently Disabled