 import spark.components.supportClasses.ViewReturnObject;
 import spark.core.ContainerDestructionPolicy;
 import spark.effects.Animate;
+import spark.effects.animation.Animation;
 import spark.effects.animation.MotionPath;
 import spark.effects.animation.SimpleMotionPath;
 import spark.layouts.supportClasses.LayoutBase;

            activeTransition.captureEndValues();
            activeTransition.prepareForPlay();
            
            // Run transition a frame later so that the overhead of creating the view
            // and the time the player takes to render isn't included in the duration.
            // See SDK-27793.
            addEventListener(Event.ENTER_FRAME, startViewTransition);
        }
        else

    private function startViewTransition(event:Event):void
    {
        removeEventListener(Event.ENTER_FRAME, startViewTransition);
        
        // Force the master clock of the animation engine to update its
        // current time so that the overhead of creating the view and preparing
        // the transition is not included in our animation interpolation.
        // See SDK-27793
        Animation.pulse();
        activeTransition.play();
        
        if (hasEventListener(FlexEvent.TRANSITION_START))
