# Cannot Mask Over MovieClip with AS3

**URL:** <https://forum.kirupa.com/t/cannot-mask-over-movieclip-with-as3/295270>\
**Category:** flash\
**Created:** [August 27, 2009, 1:51pm UTC](https://forum.kirupa.com/t/cannot-mask-over-movieclip-with-as3/295270 "2009-08-27T13:51:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ex5316](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@ex5316](https://forum.kirupa.com/u/ex5316)\
**Post date:** [August 27, 2009, 1:51pm UTC](https://forum.kirupa.com/t/cannot-mask-over-movieclip-with-as3/295270/1 "2009-08-27T13:51:09Z")

</div>

Hello,

I have problem in masking over a movie clip by using ActionScript 3. The masking do not work. Here’s the codes:

> 

effect\_mc.cacheAsBitmap = true;  
mask\_mc.cacheAsBitmap = true;

// Apply Mask  
effect\_mc.mask = mask\_mc;

I upload the flash file to:  
[http://www.sendspace.com/file/7g35eb](http://www.sendspace.com/file/7g35eb)

Could somebody help to check why the masking do not work.

Thanks

Alan
