开发者

Flex 4.5: Using Move transition on Style?

In Flex 3 it was possible to use a Move transition effect on a style like "left", "right", "top" or "bottom". For example I had a HBox with 100% width and height on the Application and in this HBox I had three VBoxes. Let's say the left VBox had a width of 300px then I could set the "left" style of the HBox to -300 so that that left VBox was off-stage. On another state I then simply 开发者_开发问答set the "left" on the HBox to 0 so that the left VBox becomes visible on that state. With this I could use a transition like the following to tween in the left panel when the state switches ...

    <mx:transitions>
    <mx:Transition id="trans1" fromState="" toState="leftPanelState">
        <mx:Sequence>
            <mx:SetPropertyAction target="{leftPanel}" name="visible" value="true"/>
            <mx:Parallel target="{panelHBox}">
                <mx:Move duration="200"/>
                <mx:Resize duration="200"/>
            </mx:Parallel>
        </mx:Sequence>
    </mx:Transition>
</mx:transitions>

I haven't worked much with Flex 4.x yet. Can this still be achieved with Flex 4.5? I've tried several things with the spark transitions but couldn't get the tween working.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜