0 Replies Latest reply on Sep 20, 2007 11:03 AM by absolutejw

    replaying flv

    absolutejw
      Hello,

      If i use the following code to stream and play/pause an flv with the following code...how could I replay the video when it finishes completely? I can pause and play the video while it's playing...but I can't get it to play again when it finishes.

      actionscript 2.0 / flash player 9:

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

      var ns:NetStream = new NetStream(nc);

      vidTV.attachVideo(ns);

      ns.play("video.flv");



      //

      myPlayPauseButton.onRelease = function (){
      if(ns.paused){
      ns.play();
      }else{
      ns.pause();
      }
      }

      Anyone could suggest please,

      Thanks,