0 Replies Latest reply on Jul 8, 2009 7:53 PM by Benoitcn

    control the transition

    Benoitcn Level 1

      There is a button to control the title to show/hide. If the button clicked frequently the effects will go to crazy.

      I add the code " anyToHide.effect.stop(); " but it doesn't work. How can I control the effects ?

      <mx:Transition id="anyToHide" fromState="*" toState="titleHide">
            <mx:Sequence target="{this}">
                <mx:Resize duration="250"/>
                <mx:Parallel>
                     <mx:Move duration="300"/>
                     <mx:Rotate angleTo="{currentTitlePropertieClone.newRotation}" originX="0" originY="0" duration="350"/>
                </mx:Parallel>
            </mx:Sequence>
      </mx:Transition>
      
      
      <mx:Transition id="anyToShow" fromState="*" toState="titleShow">
          <mx:Parallel target="{this}">
             <mx:Sequence>
                 <mx:Rotate angleTo="{currentTitlePropertieClone.originalRotation}" angleFrom="{currentTitlePropertieClone.newRotation}" duration="350"/>
                 <mx:Move duration="300"/>
             </mx:Sequence>
             <mx:Resize duration="250"/>
             </mx:Parallel>
      </mx:Transition>