Hello everyone!

I have a problem with videos stuttering when viewing my website for the first time. My site hosts many videos so I cannot preload them all at once.

I am thinking I need a code that assures that each video buffers for a few seconds as it plays.

I am open to all suggestions.

thanks in advance,
Dennis

PS

Here is the code I use to upload the video:

var vid:Video = new Video();
var nc:NetConnection = new NetConnection();
nc.connect(null);
var netStream:NetStream = new NetStream(nc);
netStream.addEventListener(NetStatusEvent.NET_STAT US, ns_onPlayStatus);
addChild(vid);
vid.attachNetStream(netStream);
netStream.play("main.flv");