# Load & Play external flvs continuously?

**URL:** https://forum.kirupa.com/t/load-play-external-flvs-continuously/287646
**Category:** flash
**Created:** [May 4, 2009, 6:00pm UTC](https://forum.kirupa.com/t/load-play-external-flvs-continuously/287646 "2009-05-04T18:00:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![split67](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/split67/32/2089_2.png) [@split67](https://forum.kirupa.com/u/split67)
#### Post date: [May 4, 2009, 6:00pm UTC](https://forum.kirupa.com/t/load-play-external-flvs-continuously/287646/1 "2009-05-04T18:00:31Z")

</div>

Does anyone have a resource or code that will load and play a folder of flv’s continuously? I have a folder of short clips i converted to flv. When one clip finishes, i want the next clip to play and to endlessly loop through the flvs, never stopping. If there’s a way to include a transition, that’d be cool too, but not important. I’ve got the first clip loading, but can’t get the next to play. Ideas? Thanks for any help!!

```auto

var video:Video = new Video();
addChild(video);
 
var nc:NetConnection = new NetConnection();
nc.connect(null);
 
var ns:NetStream = new NetStream(nc);
ns.client = {onMetaData:ns_onMetaData};
 
video.attachNetStream(ns);
ns.play("videos/cycling.flv");
 
function ns_onMetaData(item:Object):void {
 // Resize video instance.
 video.width = item.width;
 video.height = item.height;
 // Center video instance on Stage.
 video.x = (stage.stageWidth - video.width) / 2;
 video.y = (stage.stageHeight - video.height) / 2;
}

ns.addEventListener(NetStatusEvent.NET_STATUS, statusHandler); 
function statusHandler(event:NetStatusEvent):void 
{ 
    trace(event.info.code) 
}

```
