# Redirect to html after flv plays

**URL:** <https://forum.kirupa.com/t/redirect-to-html-after-flv-plays/226800>\
**Category:** Uncategorized\
**Created:** [May 24, 2007, 4:08am UTC](https://forum.kirupa.com/t/redirect-to-html-after-flv-plays/226800 "2007-05-24T04:08:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![graphismco](https://avatars.discourse-cdn.com/v4/letter/g/50afbb/32.png) [@graphismco](https://forum.kirupa.com/u/graphismco)\
**Post date:** [May 24, 2007, 4:08am UTC](https://forum.kirupa.com/t/redirect-to-html-after-flv-plays/226800/1 "2007-05-24T04:08:36Z")

</div>

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();  
}  
};
