我有一个使用一些可绑定变量作为参数定义的 dropfilter。
<mx:filters>
<mx:DropShadowFilter id="torinofilter" distance="0" color="{dropShadowColor}"
blurX="{dropBlur}" blurY="{dropBlur}" strength="8" quality="2"
alpha="{dropAlpha}"/>
</mx:filters>
我想在这样的方法调用中更新过滤器:
this.dropShadowColor = <new color>
this.dropBlur = 15.0;
this.dropAlpha = 0.8;
跟踪this.dropShadowColor
和后torinofilter.color
,我看到它们已更新为新颜色,但 dropfilter 的颜色没有改变。
我不想创建一个新的过滤器,因为那样我会遇到 swapChildren 的问题。