Using XML to call Gallery Images from Thumbnails

Complete Flash/AS newbie here… I’ve designed and built a photography website in Flash that uses thumbnails (buttons) I’ve placed on the stage to call larger images into a loader on the stage. None of the hodgepodge of tutorials I used to learn Flash CS3 and AS 3.0 told me the swf would be WAY to big to actually function online unless you kept the large images external to the swf and loaded them via XML. I’ve got approx. 75 images in various galleries.

So my question is, is there a way to use my jpeg thumbnails/buttons (placed in movie clips) and apply XML to them to load the main images into my loader component? A sample of my code is below. Right now I’m using an array, and the loader is called placeLdr, the buttons are perfBtn*…

Thanks a lot! And sorry if I didn’t include all necessary information – let me know and I’ll put up more code or describe my .fla file better.

//photo links
var perfArray:Array = [“wildman.jpg”, “ghost dancers.jpg”, “trumpet drinks.jpg”, “pianist bass.jpg”]

perfBtn1.addEventListener (MouseEvent.CLICK, peldr1)
function peldr1 (e:Event) {
placeLdr.source = perfArray[0];
}

perfBtn2.addEventListener (MouseEvent.CLICK, peldr2)
function peldr2 (e:Event) {
placeLdr.source = perfArray[1];
}

perfBtn3.addEventListener (MouseEvent.CLICK, peldr3)
function peldr3 (e:Event) {
placeLdr.source = perfArray[2];
}