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;
}
}