Align XML external image in movie clip

have a simple Flash/XML photo gallery in which image location and information is being pulled from the XML file. The actual external images are being displayed via a movie clip, “picture”.

My trouble is that my external images are all different sizes, and I would like to align them to the horizontal center of my Flash area. While I can align the movie clip to horizontal center, it is actually aligning the top left corner of the picture (0, 0) to horizontal center.

Is there some sort of setting I can do with the movie clip itself? Or do I need to do something in my action script, which is as follows. Any assistance is very much appreciated… thanks


picture._x = (Stage.width/2)-(picture._width/2); //centres horizontally
picture._y = (Stage.height/2)-(picture._height/2); //centres vertically

this will centre the picture movie clip in the middle of the stage.

if you need to centre it on something else (like the centre of another movie clip) let me know its pretty similar