Flex 4 组 showEffect/hideEffect [英] Flex 4 Group showEffect/hideEffect
本文介绍了Flex 4 组 showEffect/hideEffect的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个组,我想在显示和隐藏时执行擦除效果.
I have a Group that I want to do a wipe effect when it shows and hides.
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<s:Wipe id="wipeUp" direction="up" duration="2000"/>
<s:Wipe id="wipeDown" direction="down" duration="2000" startDelay="2000"/>
</fx:Declarations>
<s:Group
id="zoomPopup"
top="-290"
right="15"
width="30"
height="300"
visible="false"
showEffect="{wipeUp}" hideEffect="{wipeDown}">
该组在更改组可见性时被隐藏和显示,但效果没有任何作用.当我将可见性设置为 false 时,它需要 4 秒才能隐藏(延迟 + 持续时间),但同样没有效果.
The group is being hidden and shown on change of the group's visibility, but the effect doesn't do anything. When I set the visibility to false, it takes 4 secs for it to hide (delay+duration), but again, no effect.
推荐答案
在当前版本的 spark 中,效果触发器未得到官方支持.有关更多详细信息,请参阅此线程:Spark 效果:为什么程序代码优于触发器?
Effect triggers are not officially supported in spark in the current release. See this thread for more details: Spark effects: why is procedural code preferred over triggers?
这篇关于Flex 4 组 showEffect/hideEffect的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文