# Gradient Masks with AS2

**URL:** <https://forum.kirupa.com/t/gradient-masks-with-as2/633706>\
**Category:** flash\
**Created:** [September 2, 2015, 6:58am UTC](https://forum.kirupa.com/t/gradient-masks-with-as2/633706 "2015-09-02T06:58:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zamboolah\_Wigi\_Wigi](https://avatars.discourse-cdn.com/v4/letter/z/8dc957/32.png) [@Zamboolah\_Wigi\_Wigi](https://forum.kirupa.com/u/Zamboolah_Wigi_Wigi)\
**Post date:** [September 2, 2015, 6:58am UTC](https://forum.kirupa.com/t/gradient-masks-with-as2/633706/1 "2015-09-02T06:58:19Z")

</div>

Hi, I just learned MASKING today. I wanted to ask if it’s possible to GRADIENT MASK a text using AS2?

I wanted to tween a sentence and mask it but timeline masking reveals a sharp edge. I wanted the edges to be soft/feathered-like so that when the sentence appears in the frame, it looks gradual.

I found a youtube video that does it for Bitmaps using “cacheAsBitmaps”, so I thought is there “cacheAsText” ?  
Here is the youtube video I’m talking about: [https://www.youtube.com/watch?v=U5RtkhmkilM](https://www.youtube.com/watch?v=U5RtkhmkilM)

thanks

---

<div class="post-metadata">

**Author:** ![Zamboolah\_Wigi\_Wigi](https://avatars.discourse-cdn.com/v4/letter/z/8dc957/32.png) [@Zamboolah\_Wigi\_Wigi](https://forum.kirupa.com/u/Zamboolah_Wigi_Wigi)\
**Post date:** [September 2, 2015, 1:15pm UTC](https://forum.kirupa.com/t/gradient-masks-with-as2/633706/2 "2015-09-02T13:15:45Z")

</div>

Oooops! I found the answer to my question…

for AS2, it’s

```
mymovie_mc.cacheAsBitmap = true;
mymask_mc.cacheAsBitmap = true;

mymovie_mc.setMask("mymask_mc");

```

Cool
