Buffer not working properly

Hi, I’m trying to buffer an .flv so that it waits 10 seconds before playing to avoid a stuttering video. I can get the buffer to wait the 10 secs but when it reaches that time, the scrubber I have fast forwards along to the end of the buffered video. This seems to only be happening when I test it live on a server.

Does anyone know why this is happening? Here is my code below.

Any help would be really appreciated.

Many thanks,

Lee

var flvName:String = "http://mysite.com/my.flv";

var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var netStr:NetStream = new NetStream(connection_nc);
container.myVideo.attachVideo(netStr);
netStr.setBufferTime(10);

netStr.play(flvName);

var videoInterval = setInterval(videoStatus, 100);
var amountLoaded:Number;
var duration:Number;

netStr["onMetaData"] = function (obj) {
    duration = obj.duration;
};

function videoStatus() {
    amountLoaded = netStr.bytesLoaded/netStr.bytesTotal;
    loader.loadbar._width = amountLoaded*732;
    loader.scrub._x = netStr.time/duration*732;
}