Hi there! I've been browsing here for a few hours and I cant find any way to do an infinite loop with the external songs I am loading into my flash. My code goes as follows (Its in a frame, not a movieclip):
song = new Sound (soundLoader);
song.loadSound("songs/JourneyWithin.mp3"
, true);
stop();
It works perfectly well, but I would like it to loop eternally. The next code I found in a post by EQFlash seemed particularly promising, but it failed to work. I think it might be because of the onEnterFrame code, because my frame is ordered to stop, but then again, if I dont stop my frame it will just continue to the next frame where it will load up my next song. Aaargh! Anyway, here's the code Im talking about:
song = new Sound();
song.loadSound("your.mp3", true);
onEnterFrame = function () {
pos = song.position/1000;
dur = song.duration/1000;
if (pos>=dur) {
song.start();
}
};
Does anybody have any idea how I can just simply load an external mp3
into my .swf and make it loop infinitely? Not from the source file or from
the library or wherever, but from a completely different location. I load
the song up from a folder on my website. The swf is also on my website,
that's why there's no complicated url in the code.
I hope somebody can shine light on this.
-Secret