# Unload() and NetStreams

**URL:** https://forum.kirupa.com/t/unload-and-netstreams/225335
**Category:** Uncategorized
**Created:** [May 10, 2007, 7:49pm UTC](https://forum.kirupa.com/t/unload-and-netstreams/225335 "2007-05-10T19:49:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gamemaker](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@gamemaker](https://forum.kirupa.com/u/gamemaker)
#### Post date: [May 10, 2007, 7:49pm UTC](https://forum.kirupa.com/t/unload-and-netstreams/225335/1 "2007-05-10T19:49:51Z")

</div>

Hi there. I am having a problem with the Loader() class, specifically with unloading content.

Let’s say I load a external SWF containing an FLV playback component into a MovieClip instance called videoSlot

```auto
 var myLoader:Loader = new Loader();
videoSlot.addChild(myLoader);
var url:URLRequest = new URLRequest("video1.swf"); 
myLoader.load(url);

```

If I then move to another frame without an instance of the videoSlot MovieClip, I still hear the audio from the loaded SWF, even though I cannot see it. The same holds true even if I then use unload() to remove the loaded object. Adobe’s TechNotes say that unloading will only remove the object from the display list but not from the actual flash player memory ([http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a360ede)](http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a360ede%29), and the only way to remove it entirely is to register an UNLOAD event listener that clears all the NetStreams.

… but in my code, I have not instantiated any NetSteams, so how can I close them? What am I missing here?? …it suddenly seems so tricky to load video - that can’t be right! All I want to do is load a SWF (containing an FLV) onto frame A and then have it gone when I go to frame B. Any sage advice?

Thanks!
