# Centering in browser window using Stage class?

**URL:** <https://forum.kirupa.com/t/centering-in-browser-window-using-stage-class/209644>\
**Category:** Uncategorized\
**Created:** [December 11, 2006, 4:43am UTC](https://forum.kirupa.com/t/centering-in-browser-window-using-stage-class/209644 "2006-12-11T04:43:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)\
**Post date:** [December 11, 2006, 4:43am UTC](https://forum.kirupa.com/t/centering-in-browser-window-using-stage-class/209644/1 "2006-12-11T04:43:00Z")

</div>

hey all,

having some problems with having my mc’s always center in t5he middle of the browser window even when it resizes??

Cheers all,  
basically the code i’m using is this:  
\_root.abc.Stage.width/2;  
or \_root.abc.Stage.width/.5;  
and \_root.abc.Stage.height/2; etc naturally.
