# soundChannel.SOUND\_COMPLETE won't fire :(

**URL:** <https://forum.kirupa.com/t/soundchannel-sound-complete-wont-fire/279289>\
**Category:** Uncategorized\
**Created:** [January 12, 2009, 11:10pm UTC](https://forum.kirupa.com/t/soundchannel-sound-complete-wont-fire/279289 "2009-01-12T23:10:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![H2OBrain](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@H2OBrain](https://forum.kirupa.com/u/H2OBrain)\
**Post date:** [January 12, 2009, 11:10pm UTC](https://forum.kirupa.com/t/soundchannel-sound-complete-wont-fire/279289/1 "2009-01-12T23:10:50Z")

</div>

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 :

```auto

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 :

```auto

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 ☹  
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](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)
