PDA

View Full Version : determining bufferLength


aalkemist
11-09-2003, 10:32 PM
I've set my buffertime and now want to check for it to be full, then go to the next frame letting the user know they can now control the video via the control buttons. The buffer is working, but I can't figure out how to go to the next frame. Can anyone fill in my blank?

the following script has no errors, bur still doesn't work:

var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
stream_ns.setBufferTime(10);
video1_video.attachVideo(stream_ns);
//stream_ns.play("testvid.flv");
if(stream_ns.bufferLength == "10"){
nextFrame();

}

kimgar
03-23-2004, 02:44 AM
try putting myControls._visible = true in your IF statement instead, and myControls._visible = false when your movie loads.