9-slice scaling a mask
If you ever tried to apply 9-slice scaling to a mask, you probably noticed it doesn’t work.
The solution is this:
1. Use a movieclip and apply 9-slice scaling to it. (let’s say mcShape)
2. Add this movieclip into the mask. (so you would have mcMask.mcShape)
3. Apply cacheAsBitmap to mcMask and mcObject, where mcObject is the object you want to mask.
4. Apply the mask with ActionScript: mcObject.mask = mcMask; (do not apply 9-slice scaling to mcMask)
Hope this helps! :-)
This post has 3 comments | Post your comment
mask_mc.cacheAsBitmap = true;
mc.cacheAsBitmap = true;
mask_mc.width = 800;
mc.mask = mask_mc;
9-Slice scalling not working.
blog entries 

Products RSS Feed
Follow us on twitter
jackson
October 1, 2010 at 9:23 am
THANK YOU!