Advanced Transitions: Move, Rotate, Resize : Transition « Effects « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Effects » TransitionScreenshots 
Advanced Transitions: Move, Rotate, Resize
Advanced Transitions: Move, Rotate, Resize
         
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
    width="400" height="400" layout="absolute"
    verticalScrollPolicy="off" horizontalScrollPolicy="off">
    <mx:transitions>
    <mx:Transition fromState="*" toState="*">
      <mx:Sequence targets="{[panel1,panel2,panel3]}">
        <mx:Move duration="400"/>
        <mx:Rotate angleFrom="0" angleTo="360" filter="move" />
        <mx:Resize duration="400"/>
      </mx:Sequence>
    </mx:Transition>
  </mx:transitions>
  <mx:states>
    <mx:State name="s1">
      <mx:SetProperty target="{panel1}" name="x" value="5"/>
      <mx:SetProperty target="{panel1}" name="y" value="60"/>
      <mx:SetProperty target="{panel1}" name="height" value="300"/>
      <mx:SetProperty target="{panel1}" name="width" value="390"/>
      <mx:SetProperty target="{panel2}" name="x" value="135"/>
      <mx:SetProperty target="{panel2}" name="y" value="10"/>
      <mx:SetProperty target="{panel2}" name="height" value="30"/>
      <mx:SetProperty target="{panel2}" name="width" value="125"/>
      <mx:SetProperty target="{panel3}" name="x" value="270"/>
      <mx:SetProperty target="{panel3}" name="y" value="10"/>
      <mx:SetProperty target="{panel3}" name="height" value="30"/>
      <mx:SetProperty target="{panel3}" name="width" value="125"/>
    </mx:State>
  </mx:states>
  <mx:Panel x="5" y="10" width="125" height="30" layout="absolute" title="Panel 1" id="panel1" click="this.currentState='s1'"/>
  <mx:Panel x="135" y="10" width="125" height="30" layout="absolute" title="Panel 2" id="panel2" click="this.currentState=''"/>
  <mx:Panel x="270" y="10" width="125" height="30" layout="absolute" id="panel3" title="Panel 3" click="this.currentState=''"/>
</mx:Application>

   
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Wrap Parallel, fade and move with TransitionWrap Parallel, fade and move with Transition
2.Use Transition to add and remove controls dynamicallyUse Transition to add and remove controls dynamically
3.Define transitions for this example in MXML using the tagDefine transitions for this example in MXML using the <mx:transitions> tag
4.Set control to invisible during transitionSet control to invisible during transition
5.Using a filter in TransitionUsing a filter in Transition
6.Transitions with tagTransitions with <s:transitions> tag
7.Transition With BlursTransition With Blurs
8.Action TransitionsAction Transitions
9.Custom AnimateTransitionShader TransformCustom AnimateTransitionShader Transform
10.Using a filterUsing a filter
11.Defining a custom filterDefining a custom filter
12.Change button position and fade buttonChange button position and fade button
ww__w_.__j_ava_2___s.c__o_m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.