Changing point of origin using actionscript 3.0

Hello
I have a photo gallery that i created using actionscript 3.0. All of the thumbnails and the enlarged photos have an origin point in the upper left hand corner of the image, i want to be able to change that to the center of the image using actionscript.

Thank You