soundChannel.SOUND_COMPLETE won't fire :(

hey guys!
thx for your amazing forum, i like it alot!! you saved me hours of “getting things by myself”

i have a little flash-player with a playlist and so, it plays normally a vlc-mp3-stream but has an extended prelisten-function (wich plays the mp3’s directly via http, secured with a password)

i’ve got an array with 2 Sound()-objects (for preloading purposes), the code looks like this :


playStream = url=="";
if (playStream) {
    SoundObjects[SN].load(new URLRequest("http://" + URL + ":8001/MIRstream.mp3?" + Math.random()), sloader);
} else {
    var URLreq:URLRequest = new URLRequest(url);
    URLreq.requestHeaders = [URLreqHeader];
    URLreq.method = URLRequestMethod.POST;
    URLreq.data = "lol";
    
    SoundObjects[SN].load(URLreq, new SoundLoaderContext(0));
}
SoundObjects[SN].addEventListener(IOErrorEvent.IO_ERROR, onIOError);

like i said, if an url is set, it will play the mp3 at the url…
if not, it plays the stream…

after preloading i’ve got this code :


soundChannel = SoundObjects[SN].play(0, 0, volume);
if (soundChannel == null) {
    var object:Object = new Object();
    object.msg = "Could not open the sound-interface
(SoundChannel)";
    dispatchEvent(new myEvent("ErrorMessage", object));
    return;
}
soundChannel.addEventListener(Event.SOUND_COMPLETE, playComplete);
SoundObjects[SN].addEventListener(Event.COMPLETE, loadComplete);

now my PROBLEM:
this works for the vlc stream (which is not continuos), but not for the mp3s on the http-server :frowning:
in my opinion, this doesn’t makes sense…
except, maybe the recent CSRF-hardcore-paranoia (http://www.derkeiler.com/Mailing-Lists/VulnWatch/2006-10/msg00018.html)

with other words, i have no clue, please help!

gH2OBrain

PS: i use AS3 with flex_sdk_3.2.0.3794 and flashdevelop (i activated flash10-support, but it still works in fp9)