8 Replies Latest reply on Feb 4, 2009 7:10 PM by kglad

    ns.onStatus question

    brian914 Level 1
      I have the following and the first half works, the second half does not. What am I missing? When I forward the playhead and reach less than 30, it seems like it is stopping and buffering, but the trace("Empty"); never gets called.

      What am I doing wrong?

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


      Thanks a lot for any help with this!