title: as3 - How to stop video and detach NetStream
body: <p>I have video streaming from the server, and later on I want to add another one just side by side. thats all good, I done that. Now my problem comes when i want to remove video. I manage to remove it from display, but I can hear that video is still playing in the background. So how do I can stop streaming that video?
  Here is my code for setting up the video:</p>
  
  <pre><code>ns = new NetStream(connection);
  ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
  ns.play(item[1].toString() + ".flv");
  video = new Video();
  video.attachNetStream( ns );
  video.width = 160;
  video.height = 120;
  videoWrapper = new UIComponent();
  videoWrapper.addChild( video );
  videos.addElement( videoWrapper );
  </code></pre>
  
  <p>and here is for removing</p>
  
  <pre><code>videos.removeElement(myVideos[p][1]); // myVideos[p][1] is a reference of videoWrapper
  </code></pre>