# NetStream flv looping problems

**URL:** <https://forum.kirupa.com/t/netstream-flv-looping-problems/252007>\
**Category:** flash\
**Created:** [February 14, 2008, 8:18pm UTC](https://forum.kirupa.com/t/netstream-flv-looping-problems/252007 "2008-02-14T20:18:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcprovideo](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@jcprovideo](https://forum.kirupa.com/u/jcprovideo)\
**Post date:** [February 14, 2008, 8:18pm UTC](https://forum.kirupa.com/t/netstream-flv-looping-problems/252007/1 "2008-02-14T20:18:11Z")

</div>

I am using NetStream to load an FLV into a SWF. I got the FLV video to repeat just fine. The problem is I don’t want it to loop to the beginning. I tried changing ns.seek(0); to ns.seek(15); but obviously that doesn’t work. Basically I want it to repeat to frame 15 of the FLV instead of the beginning. Below is my code.

var nc:NetConnection = new NetConnection();  
nc.connect(null);  
var ns:NetStream = new NetStream(nc);  
ns.setBufferTime(3);  
ns.onStatus = function(info) {  
if (info.code == “NetStream.Play.Stop”) {  
ns.seek(0);

}  
};  
video1\_video.attachVideo(ns);  
ns.play(“Katie\_11\_288x165.flv”);

If anyone can point me in the right direction or help me out it would be greatly appreciated.
