The End-All MP3 Player Question(s)

All right, listen. I’ve scoured the web for days now trying to find a decent MP3 player that’ll stream MP3s in Flash MX 2004.

Thus far, I’ve found out how to do it by doing the following:

[AS]
url = “C:/Some Folder/SomeSong.mp3”;

function playMyStupidMP3() {
if (playing != true) {
mySound = new Sound();
mySound.loadSound(url, true);
mySound.start((_root.pos)/1000, 1);
myStatus = “Playing…”;
}
}[/AS]

And then giving a button/movie clip:

[AS]on (press) {
playMyStupidMP3();
}[/AS]

The stop function was even easier.

But how do I control playback? How can I allow users to pause the streamed mp3? How could I add a slider that would allow the user to click on is in any spot and have it play the mp3 from that spot? If I didn’t explain that well at all, then just open your preferred media player, and click around on the slider that controls the playhead position.

Or, is there a good component that would make this easier? I’ve tried the newer FSound110, but I had a few questions about it which were never responded to by the author. I’ve also sampled THOUSANDS of MP3-player offerings from FlashKit, and what else I could find on the web using Google.

All I want is an MP3 player that can stream mp3s, have pause/seek functionality (using a pause button and a playhead position slider), that steps trough an array or an XML-loaded list of songs when a user clicks the “Next” button. I think I may also list the songs, and give the user double-click functionality to select and play the song of their preference.

Any/all help is more than welcome since this is taking me WAY too long to get answers to and/or figure out.

Thanks everyone/anyone,

  • Michael

www.kennybellew.com

^the number one source for sound object information

His tutorial is amazing, I agree. But it doesn’t cover controlling playhead movement and/or pausing a streamed mp3. I know how to play/stop/adjust volume (just learned the latter).

I’m looking for something with functionality along the lines of the Tunage player from Dull Grey Studios, but I hope to add the ability to load different playlists (rock, hip-hop, pop…you get the idea by now) so that users can choose what genre to listen to.

I really just need to know how to control the playback of a streamed music source.

Heh, so no help eh? Ah well, I guess it’ll be better to figure things out on my own anyways. Also, the KB tut doesn’t fully work under 2004 mx. His slider worked only with some minor tweaking, and the stop/play/pausing of loops doesn’t work. Anyone know of any other good 2004 mx sound pages?