1 person found this helpful
maskImage should overlap targetImage that is the problem otherwise end result will be what you are seeing,Try removing vbox tag and then run and you will see mask applied.
I did that, but its still not as expected.
I wanted a mask in the shape of a circle.
The mask I have now is a rectangle (the size of the shape holding the circle).
Use yourMas.cacheAsBitmap = true; on the shape that you want to use as a mask and it should work ( not sure if you have to cache the object that it will be masking too but you can give it a shot with both options ). http://livedocs.adobe.com/flex/2/langref/flash/display/DisplayObject.html#cacheAsBitmap Hope it helps.
Barna is right, and I think you need to set both image and mask cacheAsBitmap