FLV // need to finish some code

Hi!, this is my first post, i hope i can from here be part of this community, ok here is my question:

im using a FLV as intro for a webpage, so, i want to preload or do the buffering and then start to run, im using this code
[COLOR=Purple]buffer_txt.html = true;

var connection_nc:NetConnection = new NetConnection();
var stream_ns:NetStream = new NetStream(connection_nc);

var buffer_interval:Number = setInterval(checkBufferTime,100, stream_ns);
function checkBufferTime(my_ns:NetStream):Void {
var bufferPct:Number = Math.min(Math.round(my_ns.bufferLength/my_ns.bufferTime*100), 100);
var output_str:String = “<textformat tabStops=’[100,200]’>”;
output_str += “Buffering “+bufferPct+”%”;
output_str += “</textformat>”;
buffer_txt.htmlText = output_str;
and it works well, but what i want is to do some action when the movie ends. somebody have the code to do that?

thanx for your help!, and excuse my english im from argentina we speak spanish here