# as3 mask wrong height and width

**URL:** <https://forum.kirupa.com/t/as3-mask-wrong-height-and-width/287283>\
**Category:** flash\
**Created:** [April 29, 2009, 6:08am UTC](https://forum.kirupa.com/t/as3-mask-wrong-height-and-width/287283 "2009-04-29T06:08:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nunonaos](https://avatars.discourse-cdn.com/v4/letter/n/258eb7/32.png) [@nunonaos](https://forum.kirupa.com/u/nunonaos)\
**Post date:** [April 29, 2009, 6:08am UTC](https://forum.kirupa.com/t/as3-mask-wrong-height-and-width/287283/1 "2009-04-29T06:08:02Z")

</div>

Hello, i need heal to create a mask with as3.  
I dray a rectangle in the right place.  
But when i add the code to transform that rectangle in a mask the rectangle doesn’t keep it’s size, wich means that the mask doesn’t get the size i wanted.  
Any ideias?

I found out that this problem only occurs when the masked movie\_clip in nested inside others movieclips. but in this particular scenario i really need it to be inside other movie clips.

I would really apreciate some help, i don’t know what to do.

Thanks
