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]