Flex 4 Group showEffect/hideEffect

时间秒杀一切 提交于 2019-12-02 17:18:05

问题


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.


回答1:


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?



来源:https://stackoverflow.com/questions/4567172/flex-4-group-showeffect-hideeffect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!