# Stopping embedded sound with SoundChannel?

**URL:** <https://forum.kirupa.com/t/stopping-embedded-sound-with-soundchannel/233486>\
**Category:** flash\
**Created:** [July 24, 2007, 1:38pm UTC](https://forum.kirupa.com/t/stopping-embedded-sound-with-soundchannel/233486 "2007-07-24T13:38:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wvoets](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/wvoets/32/3904_2.png) [@wvoets](https://forum.kirupa.com/u/wvoets)\
**Post date:** [July 24, 2007, 1:38pm UTC](https://forum.kirupa.com/t/stopping-embedded-sound-with-soundchannel/233486/1 "2007-07-24T13:38:24Z")

</div>

I’m trying to figure out how to stop an embedded (event) sound **without** using the method SoundMixer.stopAll()

In the embedded sound I’ve set the Class to “HornSound”.  
Here’s the code so far:

> car\_mc.addEventListener(MouseEvent.MOUSE\_DOWN, carClick);  
> var horn:HornSound = new HornSound();

function carClick(event:MouseEvent):void {  
var channel:SoundChannel = horn.play();  
}

This works, but I want to add a line of code to stop the HornSound. You first stop the HornSound and then start the HornSound again, so I dousn’t play simultaneously. And this without using the method SoundMixer.stopAll() - otherwise my background music stops aswell.

Thanks in advance! Cheers, Wim
