# Help: trying to modify this dynamic mask

**URL:** <https://forum.kirupa.com/t/help-trying-to-modify-this-dynamic-mask/176983>\
**Category:** Uncategorized\
**Created:** [January 28, 2006, 8:09pm UTC](https://forum.kirupa.com/t/help-trying-to-modify-this-dynamic-mask/176983 "2006-01-28T20:09:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![admsh](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@admsh](https://forum.kirupa.com/u/admsh)\
**Post date:** [January 28, 2006, 8:09pm UTC](https://forum.kirupa.com/t/help-trying-to-modify-this-dynamic-mask/176983/1 "2006-01-28T20:09:13Z")

</div>

i’m using this dynamic mask, originally coded by the canadian in an old thread, and i’m trying to get it to work in reverse (start with a full image and end with blank)…

if anyone can help me modify this code i’d be very grateful

:hugegrin:

[AS]  
\_root.maskclip.createEmptyMovieClip(“holder”, \_root.maskclip.getNextHighestDepth());  
xPos = 0;  
yPos = 0;  
onEnterFrame = function () {  
for (var i = 0; i \< 50; i++) {  
mySq = holder.attachMovie(“square”, “square” + holder.getNextHighestDepth(), holder.getNextHighestDepth());  
mySq.\_x = xPos;  
mySq.\_y = yPos;  
mySq.\_xscale = mySq.\_yscale = 30;  
mySq.onEnterFrame = function() {  
if (this.\_xscale \<= 100) {  
this.\_xscale += 10;  
this.\_yscale = this.\_xscale;  
} else {  
delete this.onEnterFrame;  
}  
};  
xPos += 30;  
if (xPos \> Stage.width) {  
xPos = 0;  
yPos += 30;  
}  
}  
};  
\_root.maskclip.mask.setMask(holder);  
[/AS]
