<p>I want to put songs on a web page and have a little play button, like you can see on Last.fm or Pandora. There can be multiple songs listed on the site, and if you start playing a different song with one already playing, it will pause the first track and begin playing the one you just clicked on. I think they use Flash for this, and I could probably implement it in a few hours, but is there already code I could use for this? Maybe just a flash swf file that you stick hidden on a web page with a basic Javascript API that I can use to stream mp3 files?</p>

<p>Also, what about WMA or AAC files? Is there a universal solution that will play these 3 file types?</p>

<hr>

<p><a href="http://musicplayer.sourceforge.net/" rel="nofollow noreferrer">http://musicplayer.sourceforge.net/</a></p>

There are
many
flash mp3 players that you can use that do this. Usually, you just have to edit a text file to point at the mp3s you want to have available.
Here is the first one that showed up on a google search for
```
flash mp3 player
```
:
http://www.flashmp3player.org/demo.html