# Redirect at end of swf

**URL:** <https://forum.kirupa.com/t/redirect-at-end-of-swf/226795>\
**Category:** Uncategorized\
**Created:** [May 24, 2007, 3:14am UTC](https://forum.kirupa.com/t/redirect-at-end-of-swf/226795 "2007-05-24T03:14:16Z")\
**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, 3:14am UTC](https://forum.kirupa.com/t/redirect-at-end-of-swf/226795/1 "2007-05-24T03:14:16Z")

</div>

okay so I have an flv playing in a swf on my index page, index.html. It is just a short intro and I would like to be able to go directly to home.html at the end of that short flv video. This is the actionscript I’m using to play the video, I assume it would go in here. Thanks.

[SIZE=1]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();  
}  
};[/SIZE]
