# NetStream.play(); overlapping itself?

**URL:** <https://forum.kirupa.com/t/netstream-play-overlapping-itself/262461>\
**Category:** Uncategorized\
**Created:** [June 6, 2008, 3:37am UTC](https://forum.kirupa.com/t/netstream-play-overlapping-itself/262461 "2008-06-06T03:37:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nineteen](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nineteen/32/2679_2.png) [@Nineteen](https://forum.kirupa.com/u/Nineteen)\
**Post date:** [June 6, 2008, 3:37am UTC](https://forum.kirupa.com/t/netstream-play-overlapping-itself/262461/1 "2008-06-06T03:37:16Z")

</div>

Hi I am using this code:

```auto

//Load and Play Video Function
function loadVideo(sVideoPath:String):void {
    //Clear Screen
    video.clear();
    //Close NetStream
    nsStream.close();
    //Play Movie
    nsStream.play(sVideoPath);
}

```

To load a new FLV file (this function is run every time a FLV Video Name is clicked in a list).

What is happening is each video loads ok, no problems and plays etc etc… However to test it further I decided to SPAM CLICK just the one link and found that it ultimate broke, that the nsStream.bytestotal even added to itself etc etc. If I then clicked a new FLV Video Name it would break even further, trying to download two FLVs and play them both at once.

How can I fix this? I tried using the Netstream.close(); but that doesn’t seem to have helped.

Cheers,  
Ryan
