# Nested mc height and width value of a scaled "parent" MC

**URL:** <https://forum.kirupa.com/t/nested-mc-height-and-width-value-of-a-scaled-parent-mc/332325>\
**Category:** flash\
**Created:** [April 22, 2014, 7:58pm UTC](https://forum.kirupa.com/t/nested-mc-height-and-width-value-of-a-scaled-parent-mc/332325 "2014-04-22T19:58:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nightkarnation](https://avatars.discourse-cdn.com/v4/letter/n/a5b964/32.png) [@nightkarnation](https://forum.kirupa.com/u/nightkarnation)\
**Post date:** [April 22, 2014, 7:58pm UTC](https://forum.kirupa.com/t/nested-mc-height-and-width-value-of-a-scaled-parent-mc/332325/1 "2014-04-22T19:58:32Z")

</div>

Hi everyone, I am a bit stuck with the following code:  
Simplified example:

```auto

//scaling occurs on mcCenter
mcCenter.height = stage.fullScreenHeight;
mcCenter.scaleX = mcCenter.scaleY;
mcCenter.x = (stage.fullScreenWidth - mcCenter.width)/2;
mcCenter.y = 0;

//now I need to center the variable vid (video object) into mcCenter.mcPlayerBackground middle <-- on the widths middle of this nested mc.
vid.x = (mcCenter.mcPlayerBackground.width - vid.width) / 2;

```

For some reason the code is using the previous mcCenter.mcPlayerBackground.width value = before mcCenter was scaled.  
How would I go and use the new mcCenter.mcPlayerBackground.width value?

Thanks a lot in advance!  
Cheers!
