Hi,
I am trying to restore as much as I can from a Flash project, and I am working with a moving object behind a mask. The original mask had a gradient to make the object fade away progressively, but for now I have to forget about it.
I noticed that if I activate cacheAsBitmap on the masked object I get glitches, and the masked area is different from the effective mask used.
Thanks, where are the mask object and cacheAsBitmap object in relationship to each other? Is the mask applied to the cached object, to its parent, or a child?
I have a container for the numbers (that are instances of a class that handles the single number properties): this container is cached as bitmap, and the mask is added upon (or behind, the result is the same) and applied to it.
private var inGameNumbersContainer: MovieClip = new MovieClip();
private var gradientMask: Sprite = new Sprite();
gradientMask.graphics.beginFill( ...
this.addChild(gradientMask);
inGameNumbersContainer.cacheAsBitmap = true;
inGameNumbersContainer.mask = gradientMask;
this.addChild(inGameNumbersContainer);