# Finding centre of stage

**URL:** <https://forum.kirupa.com/t/finding-centre-of-stage/85293>\
**Category:** flash\
**Created:** [April 3, 2005, 5:10pm UTC](https://forum.kirupa.com/t/finding-centre-of-stage/85293 "2005-04-03T17:10:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ordinathorreur](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ordinathorreur/32/536_2.png) [@Ordinathorreur](https://forum.kirupa.com/u/Ordinathorreur)\
**Post date:** [April 3, 2005, 5:10pm UTC](https://forum.kirupa.com/t/finding-centre-of-stage/85293/1 "2005-04-03T17:10:03Z")

</div>

My code:

\_root.centerXPoint = Stage.width/2;  
trace(“center of stage x” + \_root.centerXPoint);

My problem:

When I test my movie using ctrl + return, I first get the right value, but when I hit ctrl + enter again, I get a different one. Can someone tell me why?
