I'm trying to mask a movieclip using a mask created with AS3 but it changes the color of the movieclip being masked. I would like the mask to not change the color of the masked movieclip. Here is my code:
mask_mc.mask=masked_mc;
drawMask();
function drawMask():void {
mask_mc.graphics.clear();
mask_mc.graphics.beginFill(0x000000,1);
mask_mc.graphics.drawRect(0,0,750,250);
mask_mc.graphics.endFill();
}
The masked movieclip becomes the same color as the color defined in beginFill. In the example above, masked_mc turns black (as defined in beginFill). Removing beginFill masked everything and revealed nothing. I've not found anyone else having this problem. Perhaps I going about this all wrong. Thanks in advance for any help on masking with AS3 without changing the color of the movieclips being masked.