# Center movie clip in window

**URL:** <https://forum.kirupa.com/t/center-movie-clip-in-window/216774>\
**Category:** flash\
**Created:** [February 20, 2007, 1:55pm UTC](https://forum.kirupa.com/t/center-movie-clip-in-window/216774 "2007-02-20T13:55:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChadS](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chads/32/3330_2.png) [@ChadS](https://forum.kirupa.com/u/ChadS)\
**Post date:** [February 20, 2007, 1:55pm UTC](https://forum.kirupa.com/t/center-movie-clip-in-window/216774/1 "2007-02-20T13:55:44Z")

</div>

Hi there- I realize this is an incredibly stupid question, but I haven’t found any information on how to do it so far. I want to center an object in the window. Of, of course I can set \_x and \_y to a certain pixel value, but I want it to automatically adjust no matter what the size of the window is. This is easy enough; I should just need to take the window’s height and width and divide each by two. But what object and property would that be? Thanks!
