Get XML and view results after onClick

All,
So I have an XML file to show my albums. The XML file looks like this:

<?xml version="1.0" encoding="utf-8"?>
<ALBUMS TOTAL_ALBUMS="2">
<ALBUM_INFO album_name="This is Album 1" album_num="1"/>
<ALBUM_INFO album_name="This is Album 2" album_num="2"/>
</ALBUMS>

What I would like to happen is basically load these as movies or text boxes, whatever is easier is fine with me. Originally the album_name is displayed to the user. Then the user has the option to click album name and I want to display the thumb nails that have the album_num in it. So here is the thumbs XML:

<?xml version="1.0" encoding="utf-8"?>
<GALLERY COLUMNS_S="5" XPOSITION="0" YPOSITION="0" WIDTH="100" HEIGHT="100" thumb_width="80" thumb_height="80" full_width="300" full_height="300">
<IMAGE full_url="full_images/image1.jpg" thumb_url="thumbs/thumb1.jpg" albumnum="1"/>
<IMAGE full_url="full_images/image2.jpg" thumb_url="thumbs/thumb2.jpg" albumnum="1"/>
<IMAGE full_url="full_images/image3.jpg" thumb_url="thumbs/thumb3.jpg" albumnum="1"/>
<IMAGE full_url="full_images/image4.jpg" thumb_url="thumbs/thumb4.jpg" albumnum="1"/>
<IMAGE full_url="full_images/image5.jpg" thumb_url="thumbs/thumb5.jpg" albumnum="1"/>
<IMAGE full_url="full_images/image6.jpg" thumb_url="thumbs/thumb6.jpg" albumnum="1"/>
<IMAGE full_url="full_images/image7.jpg" thumb_url="thumbs/thumb7.jpg" albumnum="1"/>
<IMAGE full_url="full_images/image8.jpg" thumb_url="thumbs/thumb8.jpg" albumnum="2"/>
<IMAGE full_url="full_images/image9.jpg" thumb_url="thumbs/thumb9.jpg" albumnum="2"/>
<IMAGE full_url="full_images/image10.jpg" thumb_url="thumbs/thumb10.jpg" albumnum="2"/>
<IMAGE full_url="full_images/image11.jpg" thumb_url="thumbs/thumb11.jpg" albumnum="2"/>
<IMAGE full_url="full_images/image12.jpg" thumb_url="thumbs/thumb12.jpg" albumnum="2"/>
<IMAGE full_url="full_images/image13.jpg" thumb_url="thumbs/thumb13.jpg" albumnum="2"/>
</GALLERY>

So I want to pass the album_num to the second XML file and only display the thumbs with the albumnum that is selected. I tried to write some code for this and this is what I have to try and display the album name to the user:

function showAlbums(){
album = createTextField("album",1,100,100,300,100);

album.multiline = true;
album.wordWrap = true;
album.border = false;

myformat = new TextFormat();
myformat.color = 0xff0000;
myformat.bullet = false;
myformat.underline = false;

var album_y=0
for (i=0; i<total_albums; i++) {
album_name = albums_info*.attributes.album_name;
trace(album_name);
}
album.text = album_name;
album.setTextFormat(myformat);
}

This works but it doesn’t add a line break between the album 1 and album 2 names. It just displays the album 2. I was debating trying to do this with a movie clip because I can do X and Y coordinates with that but wasn’t 100% sure on the approach with that.

I also currently have the following code to display ALL the thumbnails. Here is that code:

function callThumbs() {
var x_position;
var y_position;
x_position = 0;
y_position = 0;

photo = createEmptyMovieClip("photo",_root.getNextHighestDepth());

var clipLoader = new MovieClipLoader();
var preloader = new Object();
clipLoader.addListener(preloader);

for (i=0; i<myImagesTotal; i++) {
thumbURL = myImages*.attributes.thumb_url;
myThumb_mc = photo.createEmptyMovieClip(i, photo.getNextHighestDepth());

myThumb_mc._x = (thumb_width*x_position)+10;
myThumb_mc._y = (thumb_height*y_position)+10;

if (x_position+2 < total_columns){
x_position++;
} else {
x_position = 0;
y_position++;
}
clipLoader.loadClip(thumbURL,myThumb_mc);

preloader.onLoadStart = function(target) {
target.createTextField("my_txt",target.getNextHighestDepth());
target.my_txt.selectable = false;
};
preloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100);
};

preloader.onLoadComplete=function(target){
target.my_txt.removeTextField();
target.onRelease=function(){
callFull(this._name);
}
}
}
}

As you can see this displays them all, I’m not sure how to alter this code to only display the ones with the albumnum that the user selected from the albums.

Just as an FYI, I did load the XML I just didn’t show that code since it doesn’t have any impact on this process. Thanks for all suggestions and advice on this!