# Looping external FLV

**URL:** https://forum.kirupa.com/t/looping-external-flv/257336
**Category:** Uncategorized
**Created:** [April 12, 2008, 9:59pm UTC](https://forum.kirupa.com/t/looping-external-flv/257336 "2008-04-12T21:59:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![TyPo](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@TyPo](https://forum.kirupa.com/u/TyPo)
#### Post date: [April 12, 2008, 9:59pm UTC](https://forum.kirupa.com/t/looping-external-flv/257336/1 "2008-04-12T21:59:17Z")

</div>

(I know this might be lame, but Im doing it for a client and really need this as well as my other post so thank you for ANY information! please…need code soon)

hello and how do you loop an Xternal FLV?..

I made a perfectly loopable FLV in After Effects and I have called the FLV externally using netStream.

heres what I have on my main timeline as far as loading and playing the movie is concerned…

at the top instead of stop(); I have play(); so that the looping background will do just that, play and loop.

O, yes…This is on a video object as well…I know that makes a difference…

play();

//load Movie

var nc:NetConnection = new NetConnection();  
nc.connect(null);

var ns:NetStream = new NetStream(nc);  
vid1.attachNetStream(ns);

var listener:Object = new Object();  
listener.onMetaData = function(md:Object):void{};

ns.client = listener;

const moviename:String = “EndDipTip.flv”;

var movietoplay:String = “EndDipTip.flv”;  
ns.play(movietoplay);

function initializeVideo():void {  
ns.close();  
nc = new NetConnection();  
nc.connect(null);  
ns = new NetStream(nc);  
vid1.attachNetStream(ns);  
listener = new Object();  
listener.onMetaData = function(md:Object):void{};  
ns.client = listener;  
ns.play(movietoplay);  
}  
//End of Load Movie

all i need (so far) is to simply loop the entire video from beginning to end. I dont want to count it or anything since it is a small video and would require a huge counting number…Wat im trying to say is hopefully there is easy code for this rather than telling it to count fourteen hundred times, lol!
