# Problem unloading an AS2 swf with sound from a AS3 loader

**URL:** <https://forum.kirupa.com/t/problem-unloading-an-as2-swf-with-sound-from-a-as3-loader/276388>\
**Category:** Uncategorized\
**Created:** [November 26, 2008, 2:44pm UTC](https://forum.kirupa.com/t/problem-unloading-an-as2-swf-with-sound-from-a-as3-loader/276388 "2008-11-26T14:44:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mediashock](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mediashock](https://forum.kirupa.com/u/Mediashock)\
**Post date:** [November 26, 2008, 2:44pm UTC](https://forum.kirupa.com/t/problem-unloading-an-as2-swf-with-sound-from-a-as3-loader/276388/1 "2008-11-26T14:44:09Z")

</div>

Hi, I have created a simple example and I cant get this to work.

```auto

var l:Loader = new Loader();
l.load(new URLRequest("as2filewithsound.swf"));
addChild(l);

unloadButton.addEventListener(MouseEvent.CLICK, function(){
								l.unload() 
								l = null;
							          });

```

If i unload the swf before the sound get initialized its fine but otherwise the sound keeps playing… which is weird… you would think that it will unload with the loader…  
I need to make sure the sound gets killed.

anyone had this problem?
