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);
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);