tags:

views:

515

answers:

2

Hello

Is it possible to put dinamically gradient mask on text on flex?

Is possible - can you give the samples please.

Thanks

Vladimir

A: 

What do you mean a gradient mask? You want the text color to be a gradient? You could turn the text into a bitmap and colorize that. Be more specific so I can help you out more.

CookieOfFortune
Hellothanks for the answer. I want make the text alpha changing from 1 to 0 under mask. Is this possible?ThanksVladimir
Vladimir
http://www.insideria.com/2008/01/flex-graphics-tricks-part-1-ma.html has what you're looking for.
CookieOfFortune
Thanks for th sample. But in that sample the mask is putting over image. Then I put mask over test - I have problems. Do you have any sample with text masking?
Vladimir
Well, the point was for you to turn your text into a bitmap, allowing you to mask it like in the sample.
CookieOfFortune
Oh - thanks I understand. The thing was to set text_txt.cacheAsBitmap = true;
Vladimir
A: 

The following link is one of the best examples I've seen with source code that demonstraights masking. http://www.cynergysystems.com/blogs/page/andrewtrice?entry=fun_with_masks

Doesn't quite answer your question, but its fairly good stepping stone to getting there unless someone has a specific soloution.

kenneth