# Center on stage?

**URL:** <https://forum.kirupa.com/t/center-on-stage/232731>\
**Category:** flash\
**Created:** [July 17, 2007, 11:45am UTC](https://forum.kirupa.com/t/center-on-stage/232731 "2007-07-17T11:45:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![masskontroll](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@masskontroll](https://forum.kirupa.com/u/masskontroll)\
**Post date:** [July 17, 2007, 11:45am UTC](https://forum.kirupa.com/t/center-on-stage/232731/1 "2007-07-17T11:45:34Z")

</div>

Shame on me for not knowing this, but how do I center an mc on the stage by using action script? I tried this:

holder\_mc.\_x = Stage.widt/2 - holder\_mc.\_widt/2;  
holder\_mc.\_y = Stage.height/2 - holder\_mc.\_height/2;

…but it didn’t work : ( Any help would be most welcome!
