Looping a series of FLV videos

Hello, I am working on a project for a company where I need to have a series of videos, between 3-4, loop at the end of their play, I am really new to ActionScript 3 and I have been learning it for about 2 days, so though I am able to read what is going on, I cannot quite write code from scratch yet.

Here is my current code that plays an flv file, and loops the file continuously.

var vid:Video = new Video(550, 120);
addChild(vid);

var nc:NetConnection = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
nc.connect(null);

var ns:NetStream = new NetStream(nc);
ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler)
vid.attachNetStream(ns);

var listener:Object = new Object();
listener.onMetaData = function(evt:Object):void {};
ns.client = listener;

ns.play(“MyMovie1.flv”);

function netStatusHandler( event:NetStatusEvent ) :void
{
if(event.info.code == “NetStream.Play.Stop”)
ns.seek(0);
}

So basically I need to be able to have ‘MyMovie1.flv’ play, then ‘MyMovie2.flv’ play, then ‘MyMovie3.flv’ play and so forth till after they have all played, it loops back to MyMovie1.flv automatically.

There will be no way to know the total length of all movies, as movies in the future will be switched in and out changing the overall length of the ‘playlist’, but it is acceptable to have a predetermined number of movies such as 3 or 4 to work with. They will all be .flv files, and the same resolution.

Any help with this would be absolutely wonderful, as I am struggling with finding resources to help answer this question.