# Problems closing netstream object

**URL:** <https://forum.kirupa.com/t/problems-closing-netstream-object/307836>\
**Category:** flash\
**Created:** [April 11, 2010, 5:57pm UTC](https://forum.kirupa.com/t/problems-closing-netstream-object/307836 "2010-04-11T17:57:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m\_h\_w](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@m\_h\_w](https://forum.kirupa.com/u/m_h_w)\
**Post date:** [April 11, 2010, 5:57pm UTC](https://forum.kirupa.com/t/problems-closing-netstream-object/307836/1 "2010-04-11T17:57:14Z")

</div>

I am having trouble closing the netstream object. when i unload a videoclipthe video stream remains open.

Im am fetching the external files like this:

function contactClick(event:MouseEvent=null):void {  
nextContent = “contact.swf”;  
var content:MovieClip = MovieClip(image.content );  
content.gotoAndPlay(“exit”);  
content.addEventListener(“exit”, onContentExit);  
}

I have encountered this problem before but i mean i solved it by  
using: image.unloadAndStop()

But this wont work for me now. Just get this error:

Error #1009: Cannot access a property or method of a null object reference.

Would apretiate any help.

Thank you
