代码如下,参数可自行修改:
<s:Label text=”文字” width=”100%” height=”40″ styleName=”yahei f18 yellowWord textCenter”>
<s:filters>
<s:GlowFilter color=”#000000″ strength=”5″ blurX=”5″ blurY=”5″ />
</s:filters>
</s:Label>
另一种方法:
<fx:Declarations>
<s:DropShadowFilter id=”DropShadow” alpha=”0.3″ blurX=”5″ blurY=”5″ distance=”0″ strength=”10″/>
</fx:Declarations>
<s:Label text=”文字” width=”100%” height=”100%” styleName=”yahei f18 whiteWord” filters=”{DropShadow}” />