Flex 4 组显示效果/隐藏效果
我有一个组,我想在显示和隐藏时执行擦除效果。
<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 秒才能隐藏(延迟+持续时间),但同样没有效果。
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}">
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当前版本的 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?