# Ignore Mask Content on Resizing and Centering

**URL:** <https://forum.kirupa.com/t/ignore-mask-content-on-resizing-and-centering/306936>\
**Category:** flash\
**Created:** [March 24, 2010, 9:13pm UTC](https://forum.kirupa.com/t/ignore-mask-content-on-resizing-and-centering/306936 "2010-03-24T21:13:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stickaforkinit](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@stickaforkinit](https://forum.kirupa.com/u/stickaforkinit)\
**Post date:** [March 24, 2010, 9:13pm UTC](https://forum.kirupa.com/t/ignore-mask-content-on-resizing-and-centering/306936/1 "2010-03-24T21:13:39Z")

</div>

So, I have a main flash container move that loads in multiple swf files. I created a movieclip container in the main flash container that resizes and positions according to the stage height and width as follows:

```auto

swf_width=stage.stageWidth;
swf_height=stage.stageHeight;
new_container_height=swf_height;

mc_container.height=new_container_height;
mc_container.scaleX=mc_container.scaleY;

mc_container.x=stage.stageWidth / 2 - mc_container.width / 2;

```

This works fine if no graphics are off the stage in the loaded swfs. Otherwise if I have a scrolling menu and the buttons out width the containing mc it takes into account the masked content width and centers the movieclip accordingly throwing alignment off.

Is there a way to ignore masked content when getting stage width and height?
