简体   繁体   English

柔性 :: <mx:transitions> 在我的flex项目中不能正常工作?

[英]Flex :: <mx:transitions> not working Properly in my flex project ?

I used: 我用了:

    <mx:Transition fromState="*" toState="">
                                         //universal_title name for TitleWindow id another stage .loginform is panel id another winidow        
             <mx:Sequence targets="{[Universal_title,loginform]}">

            <mx:Sequence id="sequence1" filter="show" >
                <mx:WipeUp/>
                  <mx:Resize duration="500" easingFunction="Bounce.easeOut"/>
                <mx:SetPropertyAction name="visible" value="true"/>

            </mx:Sequence>


            <mx:Move filter="move"/>
            <mx:Sequence id="sequence2" filter="show" >
                <mx:SetPropertyAction name="visible" value="true"/>
                <mx:WipeUp/>
            </mx:Sequence>
        </mx:Sequence>
    </mx:Transition>
        </mx:transitions>

But not show animation . 但不显示动画。 What I did wrong in code? 我在代码中做错了什么?

It looks like there's quite a few things that could be going wrong. 似乎有很多事情可能出错了。 First off, is your toState definitely an empty string, or do you mean to have toState="*"? 首先,您的toState绝对是一个空字符串,还是要拥有toState =“ *”? for your targets, I'd make sure Universal_title is the correct name - your mx:Move tag isn't going to do anything, it needs some sort of to / from values ( http://livedocs.adobe.com/flex/2/langref/mx/effects/Move.html ) and there's probably a few other bugs, but that's just from a quick glance. 对于您的目标,我将确保Universal_title是正确的名称-您的mx:Move标记将不会执行任何操作,它需要某种与值之间的/值( http://livedocs.adobe.com/flex/ 2 / langref / mx / effects / Move.html ),可能还存在其他一些错误,但这只是一眼就能看出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM