3 Replies Latest reply on Apr 4, 2007 1:56 AM by iane

    closing a video stream

    iane
      I've got a function that streams a video into a video object on my stage.

      var nc:NetConnection = new NetConnection();
      nc.connect(null);
      var ns:NetStream = new NetStream(nc);

      function cueVideo(){
      myVideo.attachVideo(ns);
      ns.play("videoname.flv");
      }

      All fine so far. However, I also have a function intended to stop/remove the video:

      function closeVideo(){
      ns.close();
      }

      All this does though is stop/pause the video, but leaves the paused video on screen. I can't find any script that will remove the closed stream altogether. Can anyone help?

      Thanks