I didn't actually post the code in the open forum so anyway, here is the simplest code for getting a music file to play and to create a rewind a play button. The scrubber bar is a little more work so get this part down first.
Sorry it’s taken so long to get back to you, had some computer problems to deal with. OK, looks like you’ve got a little more work to do on your music player.
First, I didn’t get anything to play with the player… main problem, you will want to use loadSound instead of loadMovie. Here is a little bit of code that you can test in a new, blank .fla. Just change the path to find your music. Put one simple button on the stage with instance name “playover_btn”.
var jukebox = new Sound();
jukebox.loadSound("d01_15_09_Fourth_of_July.mp3", true);
// true is autoplay, false is paused
var currentPosition:Number = 0;
var paused:Boolean = false;
// set paused to opposite of load sound true/false //
function playover() {
jukebox.loadSound("d01_15_09_Fourth_of_July.mp3", true);
}
playover_btn.onRelease = playover;
Second, does your loading bar actually work? There are lots of way to create “loading” bars so maybe it works and I just didn’t figure yours out. Anyway, you will also need a scrub bar if you want to display how far along in the file the audio has played. This starts to get a little more complicated. Your best bet may be to work though a couple tutorials from:
www.gotoandlearn.com
and
www.flashkit.com
Also, mp3s will be a lot more user friendly (much smaller files), so you may want to convert them.
Hope this gets you headed in the right direction.
Best wishes,
EfV