bufferTime problem when streaming

I searched the forums rapidly… couldn’t find the answers I was looking for (actually, bufferTime returns 2 threads - one of them having NO replies, and the second one deals with ShoutCast so it’s quite old…)

Anyhoo.

I’m having a buffering problem with MX2004. I’m streaming a 2h movie from an ondemand server. I split the video in .flv format in “n-number” parts. Lets say 25 so as to have 25 files: video01.flv, video02.flv, etc.
When the first video is done streaming, it starts streaming the second video and so on until the end.
Everything works fine, except for ONE thing.
I use a 2-second bufferTime. And it eats the last 2 seconds of my .flvs and jumps to the next file… Any work around for that?

Below, part of the code that deals with the buffering and video_change.


function changement_video($id) {
	id = $id;
	ns.close();
	if ($id<10) {
		$id = "0"+$id;
	}
	ns.play("******/"+dossier+"/"+nom_fichier+$id);
}
var nc:NetConnection = new NetConnection();
nc.connect("rtmp://**********/ondemand");
var ns:NetStream = new NetStream(nc);
video.myVideo.attachVideo(ns);
**ns.setBufferTime(2);**
ns.play("*******/"+dossier+"/"+nom_fichier+"01");
this.chapitre1.fond.gotoAndStop(2);
ns.onStatus = function(infoObject) {
	if (infoObject.code == "NetStream.Pause.Notify") {
		pause = true;
	} else if (infoObject.code == "NetStream.Play.Start") {
		auto = true;
		pause = false;
	} else if (infoObject.code == "NetStream.Play.Stop") {
		if (id<nombre_de_video & auto == true) {
			id++;
			changement_video(id);
		}
	}
	status.text += "Code: "+infoObject.code+newline;
	status.text += "id : "+id+newline;
	status.text += "auto : "+auto+newline;
	for (i=1; i<=nombre_de_video; i++) {
		eval("this.chapitre"+i+".fond").gotoAndStop(1);
	}
	eval("this.chapitre"+id+".fond").gotoAndStop(2);
};

Cannot post the whole .fla, unfortunately. Company made this real clear. Any help would be real nice…