Gradient Mask / Feathered Mask

hi Guys.

I need help on making a gradient mask for a widget im making

I used this Script but it seems that i cant make it to work on my flash

mask.cacheAsBitmap = true;
container.cacheAsBitmap = true;

I have set the mask into a movie clip and inserted it to the stage but when i test my movie is doesnt mask the part of the stage i want to mask

I hope somebody can help me :slight_smile:

You need to assign the mask too (and probably best not to use an assigned property as a movieclip name):
container.mask = mask_mc;

Hi Eatcoast,

thanks for the reply, I still cant make it to work

here’s the complete code im using

container.loadMovie(“follow-us-dock_jp.swf”);
mask_mc.cacheAsBitmap = true;
container.cacheAsBitmap = true;
container.setMask(“mask_mc”);

what am i doing wrong here? i have a the movie clip assigned to the name mask_mc which is a square with feathered sides or gradient black to alpha 0 and is at the center of the stage