Centering a movie clip

How to center a movie clip ? I have a movie clip that moves, and I want to center it in the center of the flash animation window when I press a buttn.
Thanks,

set its _x and _y properties? to half the stages width and height? or am i missing the point?

No that’s it thanks matthewjumps !

photo1_mc._x=Stage.width/2;
photo1_mc._y=Stage.height/2;

I didn’t succed to center the picture with that.
Any help ?

wheres the registration point of your movie clip? if its top left then use

photo1_mc._x = (Stage.width/2)-(photo1_mc._width/2);
photo1_mc._y = (Stage.height/2)-(photo1_mc._height/2);

why is everyone asking the same questions on these forums, why not search for the topic you need

there is an option search you know (;