# Centering nested scaled movieclip (because i'm mathematically illiterate :D)

**URL:** <https://forum.kirupa.com/t/centering-nested-scaled-movieclip-because-im-mathematically-illiterate-d/286612>\
**Category:** Uncategorized\
**Created:** [April 17, 2009, 6:03pm UTC](https://forum.kirupa.com/t/centering-nested-scaled-movieclip-because-im-mathematically-illiterate-d/286612 "2009-04-17T18:03:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jibble](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jibble/32/2265_2.png) [@jibble](https://forum.kirupa.com/u/jibble)\
**Post date:** [April 17, 2009, 6:03pm UTC](https://forum.kirupa.com/t/centering-nested-scaled-movieclip-because-im-mathematically-illiterate-d/286612/1 "2009-04-17T18:03:10Z")

</div>

So i have a movieclip(content\_mc) that contains 4 movieclips(img1, img2, img3, img4) of different widths within it. The content\_mc has been scaled to the browser using \_xscale and \_yscale.

so if i want to center img1 on the screen the math WITHOUT content\_mc being scaled would look like this

```auto
Stage.width/2-(content_mc._width - content_mc.img4._width - content_mc.img3._width - content_mc.img2._width - content_mc.img1._width/2)

```

but being the fact that it’s scaled…it returns the original \_width values of the nested movieclips.

How do i get the values of the new, scaled widths?
