Adding descriptions to thumbnails in xml gallery

Hi,
I used this code, from “Creating Websites for Dummies” to create a video playlist. The only problem is that it (the book) doesnt show how to load descriptions for the video thumbnails (saying the title etc…of the video). I cant work out how to attach a dynamic text field to each thumbnail that reads its description from an xml file, can anyone give me some pointers or explain how this is done? I’ve been stuck on this for a few days now and i cant work it out…

in the code below ‘main’ refers to an attribute in teh xml file.

Thanks



ar nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
video.attachVideo(ns);

myGallery = new XML();
myGallery.ignoreWhite = true;
myGallery.onLoad = function(success) {
    numimages = this.firstChild.childNodes.length;
    spacing = 85;
    for (i=0; i<numimages; i++) {
        this.picHolder = this.firstChild.childNodes*;
        this.thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+i, i);
        this.thumbHolder._y = i*spacing;
        this.thumbLoader = this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0);
        this.thumbLoader.loadMovie(this.picHolder.attributes.thumb);
        this.thumbLoader.attachMovie("extra_mc", "extra_mc", 999999);
        this.thumbHolder.title = this.picHolder.attributes.title;
        this.thumbHolder.main = this.picHolder.attributes.main;
        if (i>3) {
            this.thumbHolder._x = this.thumbHolder._x+320;
            this.thumbHolder._y = this.thumbHolder._y-340;
        }
        this.thumbHolder.onRelease = function() {
            //this.main refers to the xml file
            ns.play(this.main);
            this.thumb_txt.text = this.title;
            title.text = this.title;
        };
    }
};