# Netstream playlist

**URL:** <https://forum.kirupa.com/t/netstream-playlist/321909>\
**Category:** flash\
**Created:** [May 4, 2011, 3:46pm UTC](https://forum.kirupa.com/t/netstream-playlist/321909 "2011-05-04T15:46:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimjiminyjimjim](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jimjiminyjimjim](https://forum.kirupa.com/u/jimjiminyjimjim)\
**Post date:** [May 4, 2011, 3:46pm UTC](https://forum.kirupa.com/t/netstream-playlist/321909/1 "2011-05-04T15:46:46Z")

</div>

Hi

I’ve never used netstream objects before. I would like to play a series of videos one after the other. This eventually will need to change dynamically.

This was as far as my attempt got:

[as]  
var fl\_NC:NetConnection = new NetConnection();  
fl\_NC.connect(null); // starts a connection; null is used unless using Flash Media Server

var fl\_NS:NetStream = new NetStream(fl\_NC);  
fl\_NS.client = {};

var fl\_Vid:Video = new Video();  
fl\_Vid.attachNetStream(fl\_NS);  
addChild(fl\_Vid);

fl\_NS.play(“[http://www](http://www).**/009-001.flv",0,-1,true);  
fl\_NS.play("[http://www](http://www).**/010-001.flv”,-1,5,false);  
[/as]

It only plays the second video - no matter what parameters I change. I think its because I’m using a URL and not an instance name?

What’s the correct way to do this? Much appreciated.
