6 Replies Latest reply on May 16, 2007 3:42 PM by in480

    How to Add Child in Transition with Effect

    in480 Level 1
      I am trying to use a transition that adds a child object (a panel) and I want the panel to use the zoom effect when it comes in. The problem is that the panel flashes up at full size and then does the zoom animation.

      The code I am using is:
      <mx:Transition id="toLoggedIn" fromState="*" toState="LoggedIn">
      <mx:Sequence targets="{user_panel}">
      <mx:Zoom target="{user_panel}" duration="1000" zoomHeightFrom="0.0" zoomHeightTo="1.0" zoomWidthFrom="0.0" zoomWidthTo="1.0"/>
      <mx:AddChildAction/>
      </mx:Sequence>
      </mx:Transition>

      Is there a better way to make the panel use the effect when it is being added?