# Problem centering a MC since the use of Z axe

**URL:** <https://forum.kirupa.com/t/problem-centering-a-mc-since-the-use-of-z-axe/294096>\
**Category:** flash\
**Created:** [August 8, 2009, 8:37am UTC](https://forum.kirupa.com/t/problem-centering-a-mc-since-the-use-of-z-axe/294096 "2009-08-08T08:37:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![humbucker](https://avatars.discourse-cdn.com/v4/letter/h/278dde/32.png) [@humbucker](https://forum.kirupa.com/u/humbucker)\
**Post date:** [August 8, 2009, 8:37am UTC](https://forum.kirupa.com/t/problem-centering-a-mc-since-the-use-of-z-axe/294096/1 "2009-08-08T08:37:43Z")

</div>

Hi everyone!

I’m playing around with the Z axe for a project of thumbnails gallery and here’s my problem:

Let’s say I’m centering a square (register point centered) in the middle of my screen, and I want it to keep being in the center of my screen when the stage gets resized. No prob.

But since I added a depth axe with something like mySquare.z=600, when i’m resizing, my movieclip doenst realign correcly and seems to stay in the 1/3 of the X / Y axes.  
I dont understand why this is happening as I’m not chaning anything else.

Can you help me ?

Thanks a lot!!
