Code help please!

I am loading an array from a text file to create a set of thumbnail images a la scotty’s excellent post on the topic, using this code:

function select(q) {
thumb_array = new Array();
loadArray = new LoadVars();
loadArray.load(“array.txt”);
loadArray.onLoad = function(success) {
if (success) {
ab = this[“array_”+q];
thumb_array = ab.split(",");
_root.image_array = thumb_array;
posthumbs();
}
};
}

with the following in the .txt file

array_1=001,002,003,005&array_2=004,005,091,092,093,094,095,096,

As far as I understand the top function makes array_1 and array_2 selectable, and they are then referenced by this button action

contents.onRelease = function() {
_root.dragwindow.scrll.select(1);
};

What I need help with is trying to have the same functionality but using XML, I understand how to load arrays from an xml file, but can’t get it to tie in with everything else even after many long attempts.

I also don’t understand what is going on later in the code with ab, can anyone explain it?

COMPLETE CODE FOLLOWS:

(attached as zipped text file - post.zip)

any help or explanations truly appreciated.

SH