# Avoid masked 'content's original size in total \_width

**URL:** <https://forum.kirupa.com/t/avoid-masked-contents-original-size-in-total--width/234774>\
**Category:** Uncategorized\
**Created:** [August 6, 2007, 2:41am UTC](https://forum.kirupa.com/t/avoid-masked-contents-original-size-in-total--width/234774 "2007-08-06T02:41:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrickjv](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@patrickjv](https://forum.kirupa.com/u/patrickjv)\
**Post date:** [August 6, 2007, 2:41am UTC](https://forum.kirupa.com/t/avoid-masked-contents-original-size-in-total--width/234774/1 "2007-08-06T02:41:46Z")

</div>

Following example;  
An MC1

- containing e.g. a square of 100x100 px at x-y 0-0
- containing a MC2 at x-y 0-0

MC2 contains a square of 200x200 px, masked with a 50x50 px square at x-y 0-0

When I retrieve the \_width of MC1 with actionscript, it should return 100 (the masked MC2 is only 50 px width/visible so largest content is the 100x100 square).

However, it returns 200, the original size of the square in MC2 which is masked.

Both script masking and layer-masking have this phenomena.

Anybody knows a way to fix this “bug”?  
P
