Preloader and sound problem

i have a .swf movie which is about 350k and all but 25k is an embedded mp3. but my preloader doesn’t work properly in the sense that it only appears once the the mp3 has downloaded. at the moment the preloader reads:

onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)100)).25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {
_parent.gotoAndStop(2);
}
}

the mp3 is in a in a variable ‘tune’ which is in a clip called ‘sound’ and that clip is in a clip called ‘music’. music is found on the root level.
tune = new Sound();
tune.attachSound(“myMP3”);
tune.start(0,999);

any help will be gratefully received.
thanx

could you ad a fla file?

hi,
you can see my .fla the following url:
http://www.audiogroove.co.uk/audio1.0.fla
thanx,
colin

The problem is probably your MP3 in the library being exported in first frame. A better solution, definately since it’s only 25k, is loading your sound externally instead of placing it in the library. Very simple, just delete the mp3 from your library, place the mp3 file in the same folder as which your swf is in (or will be in), and replace the attachSound line by

tune.loadSound("myMP3.mp3",true)

Where true indicates streaming or not.