Display Gradient Text
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:s="library://ns.adobe.com/flex/spark"> <s:Graphic x="10" y="10" maskType="alpha"> <s:Rect width="{textMask.width}" height="{textMask.height}"> <s:fill> <s:LinearGradient rotation="90"> <s:entries> <s:GradientEntry color="#000000" /> <s:GradientEntry color="#DDDDDD" /> </s:entries> </s:LinearGradient> </s:fill> </s:Rect> <s:mask> <s:RichText id="textMask" fontFamily="Arial" fontSize="20"> <s:content>Hello World!</s:content> </s:RichText> </s:mask> </s:Graphic> </mx:Application>