i have got as far as i can with the following code. I'm playing multiple flv's, (which are loaded from an xml file) with success. All i want to do is to keep them looping, i cant work this out as i'm an AS3 newbie!

PHP Code:
var nc:NetConnection;
var 
ns:NetStream;
var 
listener:Object;
//
//


var xml:XML = new XML();
var 
loader:URLLoader = new URLLoader();
loader.load(new URLRequest("tubePanelsVID.xml"));

loader.addEventListener(
    
Event.COMPLETE,
    function(
evt:Event):void {
        
xml XML(evt.target.data);
        
            
populatePics ();

            }
);
        



function 
populatePics ():void {
    
//This will be used to represent a menu item
    
var picItem:PicItem;
    
//Counter
    
var i:uint 0;
    

              
    
//Loop through the links found in the XML file
    
for each (var link:XML in xml.links.link) {

        
picItem = new PicItem();
        
//picItem.id = i;

        //trace(link.@panel);
        
        
        //Insert position
        
picItem.73 i255;
        
picItem.667 i* -127;


        
picItem.filters = [shadows];

        
addChildAt(picItem,1);
        
        
loadVid(link.@panelpicItem.myVideo);


        
i++;

    }
setChildIndex(goingUp,numChildren 1);

}

function 
loadVid(s:Stringmc:Object):void {
    
trace(s)

    
nc = new NetConnection();
    
nc.connect(null);
    
ns = new NetStream(nc);
    
mc.attachNetStream(ns);
    
listener = new Object();
    
listener.onMetaData onMeta;
    
ns.client listener;

    
ns.play(s);
}

function 
onMeta(data:Object):void {
    
    var 
totalLength:Number data.duration;
trace(totalLength);


I would love a few tips on this to help me along my AS3 journey!

cheers
rat