# Masking in flash CS4

**URL:** <https://forum.kirupa.com/t/masking-in-flash-cs4/309283>\
**Category:** Uncategorized\
**Created:** [May 11, 2010, 2:06pm UTC](https://forum.kirupa.com/t/masking-in-flash-cs4/309283 "2010-05-11T14:06:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sircharles](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@Sircharles](https://forum.kirupa.com/u/Sircharles)\
**Post date:** [May 11, 2010, 2:06pm UTC](https://forum.kirupa.com/t/masking-in-flash-cs4/309283/1 "2010-05-11T14:06:11Z")

</div>

hi id like to be able to use gradient masks in cs4.  
Something like boxes to reveal a layer.

Im currently using:  
maskee.cacheAsBitmap = true;  
maskMC.cacheAsBitmap = true;  
maskee.setMask(“maskMC”);

which works, but when I place that swf in a container it stops working.
