Newest Articles

Photo Reel
Image Color Tinting using Actionscript
3d Rotating Image Cube
Image Slider with Easing
Catapult Game
Mp3 Player with XML Playlist


Popular Articles

True Fullscreen Flash Mode
FLV Player
Image Slider
Mp3 Player with XML Playlist
Album Slide
Page Flipper


Random Articles

3d Rotating Image Cube
True Fullscreen Flash Mode
Combs
Instantiating an Object
iPod Style Wheel Slider
12 Hour Clock with Hands


Links

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



rss feed

Music Player

Music Player
AddThis Social Bookmark Button
Description: Create an MP3 player with many features
Author: John Bezanis
Added: February 5th 2007
Version: Flash 8
Total Views: 5204
Views in the Past 7 Days: 80


Music is loaded using the GET parameter song. The ID3 info of the song is loaded into the display box, and if no ID3 info is available, the display box shows the file name. While the music loads, it also streams. A download progress bar is shown to display the download percentage. The music can be fast-forwarded or rewinded using the slider bar. There are buttons to change the volume to levels 100%, 80%, 60%, 40%, 20%, and mute. There are also pause and play buttons.
Use code similar to this on your site:
<object data="http://www.somesite.com/musicplayer.swf?song=http://www.somesite.com/somesong.mp3" type="application/x-shockwave-flash" width="250" height="40"><param name="movie" value="http://www.somesite.com/musicplayer.swf?song=http://www.somesite.com/somesong.mp3"/></object>

The source file is available below for download.

Download Source File
Questions and Suggestions
Hi swf spot/John Bezains, I am, trying to figure out how to add aditional songs into the mp3-player...? Can it be used to play several songs and how do I come around that? How do I ensure the right ID3 info when using several songs? Thanks in advance best regards Peter Jorgensen e-mail: peter_jo@mail.dk
April 12th 2007 17:04PM   -   Peter
At the moment only one song can be loaded at a time, but an xml file will be used in the future.
April 12th 2007 21:04PM   -   John
what would u type in the XML file? do u know?
April 19th 2007 20:04PM   -   robert
when will u release a XML file with the source content that u have provided?
April 19th 2007 20:04PM   -   mark
where do i put the mp3 file. michael_agha@hotmail.co.uk
October 4th 2007 10:10AM   -   Michael
Add a Question or Suggestion
name:
website (optional):
captcha type the characters into the box
message (5000 characters or less):