# Animated Masks & Resizing Movieclips in AS3

**URL:** <https://forum.kirupa.com/t/animated-masks-resizing-movieclips-in-as3/313175>\
**Category:** flash\
**Created:** [August 23, 2010, 2:58am UTC](https://forum.kirupa.com/t/animated-masks-resizing-movieclips-in-as3/313175 "2010-08-23T02:58:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eonactive](https://avatars.discourse-cdn.com/v4/letter/e/ecb155/32.png) [@eonactive](https://forum.kirupa.com/u/eonactive)\
**Post date:** [August 23, 2010, 2:58am UTC](https://forum.kirupa.com/t/animated-masks-resizing-movieclips-in-as3/313175/1 "2010-08-23T02:58:43Z")

</div>

Hey everyone!

Ive been visiting the Kirupa forum for many years, and just signed up!

I am an intermediate/moderately experienced AS3 programmer - however, I am having a few issues with resizing my background mc (mcBG), that contains a mask with bounds which go beyond the dimensions of the stage, to display correctly.

I know my script works (well, at least this much) so that if a static image of 1000px \* 800px is placed inside the mcBG movieclip, the background fills the screen as intended.

However, if I change that static image (inside mcBG) to be either:  
[LIST]  
[_]a movieclip (mcAnimMask) which contains an animated mask (which has elements larger than the 1000px \* 800px bounds, eg: 4500px \* 3000px) or,  
[_]2 layers (mask, and animated layer (dimensions: eg 4500px \* 3000px) - framed tweening)…  
[/LIST]  
the resize script resizes mcBG to be the greatest dimensions of the files contained within it - ie: it does not fit the screen correctly, in fact it appears to be about 60% smaller than the original (which should be 1000px \* 800px).

Its pretty difficult to explain, but if you can understand ^ that, and have a solution that you are willing to share, I would really appreciate it. (If there even is a solution…). I will post a copy of the fla file if needed.

Thanks for reading. 🙂  
James.
