# Mask doesn't move on stage resize

**URL:** <https://forum.kirupa.com/t/mask-doesnt-move-on-stage-resize/312722>\
**Category:** flash\
**Created:** [August 11, 2010, 11:03am UTC](https://forum.kirupa.com/t/mask-doesnt-move-on-stage-resize/312722 "2010-08-11T11:03:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dst1](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@dst1](https://forum.kirupa.com/u/dst1)\
**Post date:** [August 11, 2010, 11:03am UTC](https://forum.kirupa.com/t/mask-doesnt-move-on-stage-resize/312722/1 "2010-08-11T11:03:02Z")

</div>

Hi all, I have tried everything I can think of but I just can’t get my mask to move with my content when my stage is resized.

I am using flex and I embed symbols/assets in an assets class then instantiate them in my main class and call addChild on them.

I have a Sprite (maskSprite) that is the same size as the content, and I use this as a mask, calling

```auto
this.mask = maskSprite

```

in my main.

This works fine but when I resize the swf it stays at the top left of the window when my content moves (I am using stage.scaleMode = StageScaleMode.NO\_SCALE). I have used maskSprite as a non-mask and it moves with the content fine, but when it is a mask it doesn’t.

Any help would be greatly appreciated 🙂
