Flex 4组showEffect / hideEffect [英] Flex 4 Group showEffect/hideEffect

查看:188
本文介绍了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.

推荐答案

当前版本的火花中没有正式支持效果触发器。看到这个线程的更多细节:星火效果:为什么程序代码优先于触发器?

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆