NetStream with XML & listbox component

Thanks to the video tutes over at gotoAndLearn.com, I’ve built a pretty handy video player that’s running off an xml populated listbox menu. I’ve modified it further by adding a listener that loads an external .swf on top of the player when it detects that the movie has finished (ala youtube).

What I’m trying to figure out now is how to manipulate the xml array from the external .swf to load different movies from the array. I’m able to switch the selected item in the listbox, but am having no luck loading the corresponding movie.

Can someone take a look at my code and tell me what I’m missing? :puzzle:

Main Video Code


var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.setBufferTime(10);
myVideo.attachVideo(ns);
/////////XML/////////////
var vlist:XML = new XML();
vlist.load("video.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);
    }
    ns.play(videoList.getItemAt(0).data);
    videoList.selectedIndex = 0;
};
var vidList:Object = new Object();
vidList.change = function() {
    ns.play(videoList.getItemAt(videoList.selectedIndex).data);
    unloadMovieNum(1);
};
//Listener to load external .swf////
path = "logos/";
videoList.addEventListener("change", vidList);
ns.onStatus = function(object) {
    if (object.code == "NetStream.Play.Start") {
    } else if (object.code == "NetStream.Play.Stop") {
        loadMovieNum(path+"logo.swf", 1);
    }
};

External .swf code


lstop();
logo_mc.onPress = function() {
    i = 1;
    _level0.videoList.selectedIndex = i;
    _level0.ns.play(videos*.attributes.desc, videos*.attributes.url);
};


XML code

<?xml version="1.0" encoding="ISO-8859-1"?>
    <videos>
    <video url="flvs/Heartattacktest_Gerad.flv" desc="Heart Attack" />
        <video url="flvs/part1.flv" desc="Part One" />
    <video url="flvs/Part_2_Final10906.flv" desc="Part Two" />           
    </videos>