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