Random Video Play List

I am working on my xml video play list. But I want to auto play songs after one another. How can i do that. Here is my code. If anyone could help me:hangover:

stop();
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);

var vlist:XML =new XML();
vlist.ignoreWhite = true;
vlist.onLoad = function() {
var videos:Array = this.firstChild.childNodes;
for (i=0;i<videos.length;i++){
videoList.addItem(videos*.attributes.desc,videos*.attributes.url);
}

i = 0;
if (i<0){
i++
}

ns.play(videoList.getItemAt(i).data);
ns.seek(2);

videoList.selectedIndex = i;
}
var vidList:Object = new Object();
vidList.change = function() {
ns.play(videoList.getItemAt(videoList.selectedIndex).data);
}
videoList.addEventListener(“change”,vidList);

vlist.load(“videos.xml”);