<s:transitions>
<s:Transition fromState="loginState" toState="portalState">
<s:Sequence>
<s:Parallel target="{employeeOfTheMonth}">
<s:Fade target="{login}"/>
<s:Resize target="{employeeOfTheMonth}" widthFrom="278" widthTo="178"/>
<s:Move target="{employeeOfTheMonth}" xFrom="336" xTo="24"/>
</s:Parallel>
<s:RemoveAction target="{login}"/>
<s:Parallel targets="{[search,cafeteria,monthly]}">
<s:AddAction/>
<s:Fade/>
<s:Move target="{employeeOfTheMonth}"/>
<s:Move target="{search}" xFrom="-166"/>
<s:Move target="{cafeteria}" yFrom="-329"/>
<s:Move target="{monthly}" xFrom="833"/>
</s:Parallel>
</s:Sequence>
</s:Transition>
<s:Transition fromState="portalState" toState="loginState">
<s:Sequence>
<s:Parallel>
<s:Fade targets="{[search,cafeteria,monthly]}"/>
<s:Resize target="{employeeOfTheMonth}"
widthFrom="178" widthTo="278"/>
<s:Move target="{employeeOfTheMonth}"
xFrom="24" xTo="336"/>
</s:Parallel>
<s:AddAction target="{login}"/>
<s:Fade target="{login}"/>
</s:Sequence>
</s:Transition>
</s:transitions>
这个是登录进去后Panel从不同的方向移动进来。
<fx:Declarations>
转载于:https://blog.51cto.com/xpmozong/486785