 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;

    private function startViewTransition(event:Event):void
    {
        removeEventListener(Event.ENTER_FRAME, startViewTransition);

        activeTransition.play();
        
        if (hasEventListener(FlexEvent.TRANSITION_START))

            activeTransition.captureEndValues();
            activeTransition.prepareForPlay();
            
            // Wait a frame so that any queued work can be completed by the framework
            // and runtime before the transition starts.
            addEventListener(Event.ENTER_FRAME, startViewTransition);
        }
        else
