# Centering a movie clip

**URL:** <https://forum.kirupa.com/t/centering-a-movie-clip/185435>\
**Category:** flash\
**Created:** [April 13, 2006, 11:22am UTC](https://forum.kirupa.com/t/centering-a-movie-clip/185435 "2006-04-13T11:22:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![leraptor](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/leraptor/32/2353_2.png) [@leraptor](https://forum.kirupa.com/u/leraptor)\
**Post date:** [April 13, 2006, 11:22am UTC](https://forum.kirupa.com/t/centering-a-movie-clip/185435/1 "2006-04-13T11:22:22Z")

</div>

How to center a movie clip ? I have a movie clip that moves, and I want to center it in the center of the flash animation window when I press a buttn.  
Thanks,

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [April 13, 2006, 11:40am UTC](https://forum.kirupa.com/t/centering-a-movie-clip/185435/2 "2006-04-13T11:40:33Z")

</div>

set its \_x and \_y properties? to half the stages width and height? or am i missing the point?

---

<div class="post-metadata">

**Author:** ![leraptor](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/leraptor/32/2353_2.png) [@leraptor](https://forum.kirupa.com/u/leraptor)\
**Post date:** [April 13, 2006, 11:49am UTC](https://forum.kirupa.com/t/centering-a-movie-clip/185435/3 "2006-04-13T11:49:55Z")

</div>

No that’s it thanks matthewjumps !

photo1\_mc.\_x=Stage.width/2;  
photo1\_mc.\_y=Stage.height/2;

I didn’t succed to center the picture with that.  
Any help ?

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [April 13, 2006, 12:30pm UTC](https://forum.kirupa.com/t/centering-a-movie-clip/185435/4 "2006-04-13T12:30:45Z")

</div>

wheres the registration point of your movie clip? if its top left then use

photo1\_mc.\_x = (Stage.width/2)-(photo1\_mc.\_width/2);  
photo1\_mc.\_y = (Stage.height/2)-(photo1\_mc.\_height/2);

---

<div class="post-metadata">

**Author:** ![Greggeh](https://avatars.discourse-cdn.com/v4/letter/g/8baadc/32.png) [@Greggeh](https://forum.kirupa.com/u/Greggeh)\
**Post date:** [April 13, 2006, 1:26pm UTC](https://forum.kirupa.com/t/centering-a-movie-clip/185435/5 "2006-04-13T13:26:09Z")

</div>

why is everyone asking the same questions on these forums, why not search for the topic you need

there is an option search you know (;
