Redirect to html after flv plays

So I have an flv playing as a short intro to a site, when it is done playing I would like it automatically go to the main page. Any help? This is the code I’m using the play the FLV.

var nc:NetConnection = new NetConnection();
nc.connect(null);
var nStream:NetStream = new NetStream(nc);
theVideo.attachVideo(nStream);
nStream.setBufferTime(5);
nStream.play(“flv/logo_intro.flv”);
playbtn_mc.onRelease = function() {
if (this.icon_mc._currentframe == 1) {
this.icon_mc.gotoAndStop(2);
nStream.pause();
} else {
this.icon_mc.gotoAndStop(1);
nStream.pause();
}
};