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

FLV Player
Horizontal Line Transition
Moving Clouds and Waving Grass
Photo Reel
Drivable Car
Custom Mouse Cursor


Links

Foundation-Flash
MickM
TutorialQuest
Tutorialsphere.com - Free Online Tutorials
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


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
Comments
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 05: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 09:04PM   -   John
what would u type in the XML file? do u know?
April 19th 2007 08:04PM   -   robert
when will u release a XML file with the source content that u have provided?
April 19th 2007 08:04PM   -   mark
where do i put the mp3 file.

michael_agha@hotmail.co.uk
October 4th 2007 10:10AM   -   Michael
its doesnt work for blogger
August 15th 2008 01:08PM   -   88th
I love it!

I already had a music player that loaded multiple songs, and I got it working with that. It didn't work in a matter of seconds, I had to change some of my code and yours to fit my format & variabls.

I store all my songs in an SQL database, which are then translated into XML through php. I only had to put your code in my xml loader and change the variable "currentSong" for it to work.

I put it on my profile on my website, if anyone wants to see.

http://www.avsbest.com/profile/profile.php?username=Spence
August 22nd 2008 04:08PM   -   Spence
This is a nifty lil feature, easy for novices too. Nice one.
September 5th 2008 08:09AM   -   Stu
I'm trying to make it so it does not autoplay when it loads, but I cant figure it out. Can it be done?

thanks

shukri@noformat.com
November 5th 2008 05:11PM   -   shukri
good job
November 18th 2008 11:11PM   -   clip
wonderful article awesome...
January 10th 2009 01:01PM   -   efriel
The player has misreads the audio file if the mp3 file is too long. Other than that, it's a nice player.
January 23rd 2009 02:01PM   -   Charlie
Is there a posibility to change the colors of the player without editing the fla in flash application?

thanx
April 13th 2009 03:04AM   -   Fish
thx, works:)
September 28th 2009 02:09PM   -   xaanaax
I was browsing through the net and searching about answers with my MP3 questions. Glad I found this. THanks!
November 4th 2009 01:11AM   -   violin strings
Thank you for another great article. Where else could anyone get that kind of information in such a perfect way of writing? I have a presentation next week, and I am on the look for such information.
November 24th 2009 05:11PM   -   Marc Jacobs Sunglasses
Wonderful, thanks.
December 6th 2009 02:12AM   -   seo
Really nice post,thanks for sharing.
December 7th 2009 10:12AM   -   condo
I have bookmarked your site. Thanks for sharing
December 13th 2009 08:12AM   -   dental
I tried implement this Music Play on my website and it work well. Thank you for sharing.
January 4th 2010 01:01AM   -   &#3627;&#3634;&am
nice
January 4th 2010 01:01AM   -   Evening Gowns
Thanks for sharing these info with us! I was reading something similar on another website that i was researching. I will be sure to look around more. thanks...
January 15th 2010 08:01PM   -   evening dresses

Thank you for another great article. Where else could anyone get that kind of information in such a perfect way of writing? I have a presentation next week, and I am on the look for such information.
January 16th 2010 05:01PM   -   International Foods Onlin
Nice information, valuable and excellent design, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which we all need, thanks for all the enthusiasm to offer such helpful information here.
January 16th 2010 09:01PM   -   Movers Brooklyn
We sincerely enjoyed your article. It looks like you have placed a lot of effort into your blog and I need more of these on the net these days.
January 18th 2010 06:01AM   -   new york bus charter
Seldom to a find something of such a great significance.
January 20th 2010 08:01PM   -   What is SEO
Very useful
January 22nd 2010 04:01PM   -   buy acyclovir
Thank a lot
January 23rd 2010 04:01PM   -   reform
Thank a lot
January 24th 2010 07:01AM   -   evening dresses
Thank a lot. I like it.
January 24th 2010 02:01PM   -   newwmusic
YEAH!!!!!!!!!!!!!!!!!!!!!!!
January 26th 2010 01:01PM   -   Neil
Special thank for good post.
February 5th 2010 08:02AM   -   à¹‚หลดเพลงà
Thank for the information
February 6th 2010 07:02AM   -   à¹‚หลดเพลงm
Special thank for good post.
February 10th 2010 03:02AM   -   à¹‚หลดเพลงà
Special thank for good post.
February 10th 2010 08:02AM   -   à¹‚หลดเพลงà
Thank u very much. I'm about introducing a single mp3-file player into a client's flash, so this post has come in very handy for me. I'm noob in flash :) Thank u once more.
March 5th 2010 12:03AM   -   Rinat
Add a Comment
name:
website (optional):
captcha type the characters into the box
message (5000 characters or less):