# Sound continues when I removeChild?

**URL:** <https://forum.kirupa.com/t/sound-continues-when-i-removechild/254773>\
**Category:** flash\
**Created:** [March 15, 2008, 2:52am UTC](https://forum.kirupa.com/t/sound-continues-when-i-removechild/254773 "2008-03-15T02:52:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sapiens](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@sapiens](https://forum.kirupa.com/u/sapiens)\
**Post date:** [March 15, 2008, 2:52am UTC](https://forum.kirupa.com/t/sound-continues-when-i-removechild/254773/1 "2008-03-15T02:52:09Z")

</div>

I’ve made an application in AS3 which contains 5 buttons who each loads a different application (SWF) that contains embedded video. I’ve made this very simple with a loader.

var ldr:Loader;  
[…]  
addChild(ldr);

When I add the child ldr, I also add a button with an eventListner that will remove the child when clicked, by calling this function…

private function removeSWF(e:MouseEvent):void {  
removeChild(ldr);  
}

and it almost works… the SWF is removed from the stage, but the sound continues to play.

How do i do to stop the sound?

Hope you understand my question…

and thanks for a great Forum…
