# Cannot stop SoundChannel

**URL:** <https://forum.kirupa.com/t/cannot-stop-soundchannel/240079>\
**Category:** flash\
**Created:** [September 28, 2007, 8:18pm UTC](https://forum.kirupa.com/t/cannot-stop-soundchannel/240079 "2007-09-28T20:18:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xEnOn](https://avatars.discourse-cdn.com/v4/letter/x/85e7bf/32.png) [@xEnOn](https://forum.kirupa.com/u/xEnOn)\
**Post date:** [September 28, 2007, 8:18pm UTC](https://forum.kirupa.com/t/cannot-stop-soundchannel/240079/1 "2007-09-28T20:18:17Z")

</div>

It is pretty weird that I could stop a SoundChannel from playing. Anyway, I have a Sound object that returns a SoundChannel object to a reference called musicChannel from the music.play().

So now, it plays. but there is no way i could stop the freaking sound by using musicChannel.stop(). the sound just gets soften a bit and continues to play…it seems very weird to me because there documentation didn’t state this.

[AS]  
if(musicChannel) musicChannel.stop();  
if(music.bytesLoaded \< music.bytesTotal) music.close();  
music = new Sound();  
music.load(new URLRequest(“resources/musics/mysong.mp3”));  
music.addEventListener(Event.COMPLETE, playSong);

```
	private function playSong(event:Event):void {
		
		musicChannel = music.play(0, int.MAX_VALUE);
	}

```

[/AS]

i have been trying this thing for over 2 hours plus and i have no idea why the hell it isn’t stopping the sound but just softening it by a little.
