A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: ns.status Buffer message lags, starts vid before hiding mc

  1. #1

    ns.status Buffer message lags, starts vid before hiding mc

    Hi. I'm having a heck of a time trying to get my "buffering" movies to hide before the video plays. When a new video is selected, "blacky" and "bufferText" are set to visible=true. But then the video starts and there is a lag of 10-20 frames before they get triggered to visible=false.

    I've played with NetStream.Buffer.Start but that causes other issues.. Any help? Thanks.

    Code:
    ns.onStatus = function(info) { 
    trace(info.code);
       if(info.code == "NetStream.Buffer.Full") { 
        	_root.bufferText_mc._visible = false;
     		_root.blacky._visible = false;
       } 
       if(info.code == "NetStream.Buffer.Empty") { 
      		 _root.bufferText_mc._visible = true;
     		_root.blacky._visible = true;
       } 
       if(info.code == "NetStream.Play.Stop") { 
          ns.seek(0); 
          ns.pause();  
    	  blacky._visible = true;
       } 
    }
    Last edited by clarpark; 06-26-2007 at 08:59 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center