I have made a Actions Script 3 code that fetches an image, does an addchild do it and adding a mask to it aswell.
Everything works fine, except the mask I’ve made is an animated MovieClip, and this MovieClip hides some spots where 2 or more objects inside that MovieClip overlaps each others.
I haven’t found how to remove this effect, so the mask is valid on overlaping aswell.
So basicly I need to know how to disable overlaping exclude effect in AS3. Is there a setting of some sort to solve this problem?
Code here:
// area is a MovieClip
// images_loaded[current_int] is a loaded image
// slider is a MovieClip, which I use to mask with
next_image = area.addChild(images_loaded[current_int]);
next_image.x = 0;
next_image.y = 0;
var masky:MovieClip = new slider;
masky.x = 0;
masky.y = 0;
area.addChild(masky);
next_image.mask = masky;
Thanks!
EDIT:
Here’s the problem:

The slider-MovieClip got 7 layers. 1st layer is the letter M and 7th layer is a big box. Basicly I first want to fill up the Mask with the letter first, then cover it whole with the bix box. However when these 2 overlays you can the gray result (which is the background).
I’d like it to show the entire picture, not having this overlap effect.
Masking sure can be a mystery in Flash.
I solved this problem earlier by Breaking all into one layer instead. Then there were no layers which could overlap each other.
This article and some of the comments contains very good solutions for weird mask behaviors. Hopefully they will help you aswell!
One soluton which is always worth to try is
cacheAsBitmap = true