 import spark.components.supportClasses.ViewReturnObject;
 import spark.core.ContainerDestructionPolicy;
 import spark.effects.Animate;
-import spark.effects.Fade;
-import spark.effects.Move;
-import spark.effects.Resize;
 import spark.effects.animation.MotionPath;
 import spark.effects.animation.SimpleMotionPath;
-import spark.events.IndexChangeEvent;
 import spark.layouts.supportClasses.LayoutBase;
 import spark.transitions.SlideViewTransition;
-import spark.transitions.SlideViewTransitionMode;
 import spark.transitions.ViewTransitionBase;
 import spark.transitions.ViewTransitionDirection;
 

                else
                {
                    // Wait until the view validates before activating it
                    activeView.addEventListener(FlexEvent.UPDATE_COMPLETE, completeViewCommitProcess);
                }
            }
            

            // Wait a frame before sending the complete event so that the player 
            // has the chance to render the last frame before any custom actionscript 
            // is run in response to a VIEW_ACTIVATE event.
            addEventListener(Event.ENTER_FRAME, enterFrameHandler);
        }
    }

    /**
     *  @private
     *  Called when the activeView has received its first updateComplete event
     *  after the navigator has been activated.  See setActive().
     */ 
    private function view_updateCompleteHandler(event:FlexEvent):void
    {
        event.target.removeEventListener(FlexEvent.UPDATE_COMPLETE, view_updateCompleteHandler);
        completeViewCommitProcess();
    }
    
    /**
     *  @private
     *  Called after a navigation operation is complete.  See 
     *  navigatorActionCommitted().
     */   
    private function enterFrameHandler(event:Event):void
    {
        removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
        completeViewCommitProcess();    
    }
    
    /**
     *  @private
     *  Activates the current view and completes the view change process.
     */ 
    private function completeViewCommitProcess():void
    {
        // At this point, currentViewDescriptor points to the new view.
        // The navigator needs to listen for property change events on the
        // view so that it can be notified when the template properties
