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

Great! Is this true for externally loaded mp3s too? That is what I was refering to. Any/all comments are welcome.

*Originally posted by Voetsjoeba *
**I don’t know where you got that idea from, but it is possible to loop a sound that has been loaded with loadSound, both for streaming and non-streaming sound:

Streaming:


yourSound = new Sound();
yourSound.loadSound("yoursong.mp3",true);
yourSound.onSoundComplete = yourSound.start;

Non-streaming:


yourSound = new Sound();
yourSound.load("yoursong.mp3",false);
yourSound.start(0,999);

**

Heh, sounds loaded using loadSound are externally loaded. Only if you’d use attachSound, that’d be non-dynamic (from the library).

Check me out, non-dynamic! Couldn’t have done it without you guys and your posts. THANK YOU!
:trout: