Align xml jpg

hi ppl

i have a problem with aligning my pictures in my movie clip box
im using xml file with .swf pictures
my pictures are diffrent size and i need to align each picture to the center after every button release
how the hell can i do that?
thanks in advance…