Fullflash dynamic photogallery

Dear Kirupians

Im making a photogallery which should work fullflash so iimages should always be centered fullsize no matter browser resolution, I used the below tutorial to make it work

http://blog.fryewiles.com/design/07-14-2008/proportional-image-scaling-in-full-browser-flash

So far so good, but when i want to make it dynamic to load images from an xml to an empty movieclip. If If i do this doesn’t work since the registration point of an empty movieclip always is top left, so the image loads always wrong (top left corner of image) is now in the center.

As it doesn’t exist any function to make the registration point be in the middle im stuck, i tried some ways with scripts where u supposedly move the point to the middle without any result. Anyone has any idea what to do here.
What I came up with so far is below
http://www.alphamidesigns.com/fullflash/
here im not using an empty movieclip and the pictures load but if they are smaller it doesn’t load them full…
[FONT=&quot]what I want it putting the images from xml into an empty movieclip and with the fullsize functionality. Anyone got any ideas?[/FONT]