Loading images through XML and center them

[COLOR=black][FONT=Arial]Hello,[/FONT][/COLOR]
[COLOR=black][FONT=Arial]I’m struggling for a couple of weeks now on this subject and i would appreciate any help or direction i can get.[/FONT][/COLOR]
[COLOR=black][FONT=Arial]i have been looking on tremendous amount of code from several xml based image galleries but couldn’t find out the right trick for the job.[/FONT][/COLOR]
[COLOR=black][FONT=Arial]my knowledge at xml and actionscript is basic which might be the trouble understanding how to do it correctly.[/FONT][/COLOR]
[COLOR=black][FONT=Arial]Anyway, i’m trying to load photos from an xml file to an array. Then attach the code to the thumbnails i created directly (couldn’t figure out how to make them dynamic) so they load the big picture to the center of the stage. i was able to do this but the images loaded to the left corner of the mc all the time. I also need a next and previous button to loop through the images.[/FONT][/COLOR]
[COLOR=black][FONT=Arial]I saw different approaches to this problem, but got confused on what’s the right way to do this.[/FONT][/COLOR]
[COLOR=black][FONT=Arial]I would attach the fla if it’s necessary.[/FONT][/COLOR]
[COLOR=black][FONT=Arial]Again any help would be really appreciated,[/FONT][/COLOR]
[COLOR=black][FONT=Arial]Thanks in advanced,[/FONT][/COLOR]
[COLOR=black][FONT=Arial]XeyefeX. [/FONT][/COLOR]
[FONT=Arial] [/FONT]