2011-08-26 56 views
0

我是Flex的新手,並將純Flash/AS3應用程序移植到Flex 4.5。移植Flash - > Flex:DropShadowFilter - > RectangularDropShadow,GlowFilter - >?

在我的Flex應用程序中,我已成功使用DropShadowFilter and GlowFilter爲我在鼠標事件上的自定義組件添加了一些交互性。

現在閱讀更多的Flex文檔後,我注意到我應該更好地使用spark.primitives.RectangularDropShadow作爲陰影。

但是用什麼來代替GlowFilter呢?

,並濾波器還涉及顯示陰影和Flex中煥發還是我剛剛創建

<s:RectangularDropShadow id="myShadow" 
distance="20" 
alpha=".25" 
blurX="7" 
blurY="7" 
height="{myRect.height}" 
width="{myRect.width}"/> 

陰影,然後就打電話myShadow.visible =真/假取決於鼠標事件?

回答

0

您可以使用兩個180度偏移陰影。我不知道兩個陰影對象是否比一個陰影更高效。

要確定是否包含過濾器,請單擊RectangularDropShadow標記並按F3。然後看看。

相關問題