1 Reply Latest reply on Mar 13, 2009 1:27 PM by jeanmib

    ns.play

    jeanmib
      Hi
      while entering the ns.play command with an external flv path, the movie loads and automatically starts playing.
      I want the user to click on play when he/she wants to starts viewing and not to have the movie start automatically...

      How would I achieve that?
      I also would like that the moment the movie is accessed and loaded into the player it starts buffering of course.

      Thanx
      jm.~
        • 1. Re: ns.play
          jeanmib Level 1
          My actionscript starts like that...

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

          var ns:NetStream = new NetStream(nc) ;

          ns.setBufferTime(1);


          ns.onStatus = function(info) {
          if(info.code == "NetStream.Buffer.Full") {
          bufferClip._visible = false;
          }
          if(info.code == "NetStream.Buffer.Empty") {
          bufferClip._visible = true;
          }

          if(info.code == "NetStream.Play.Stop") {
          ns.seek(0);
          }
          }