         // duration of the effect as this degrades overall transition performance, we
         // simply fade near the point of first appearance or disappearance.
         var fadeEffect:Fade = new Fade();
-        fadeEffect.duration = (mode == ZoomViewTransitionMode.IN) ?  
+        fadeEffect.duration = (mode == "in") ? // avoid deprecation warning for ZoomViewTransitionMode.IN
             duration * .4 : duration * .6;
-        if (mode == ZoomViewTransitionMode.OUT)
+        if (mode == "out") // avoid deprecation warning for ZoomViewTransitionMode.OUT
             fadeEffect.startDelay = duration * .4;
-        fadeEffect.alphaTo = (mode == ZoomViewTransitionMode.OUT) ? 0 : 1;
-        fadeEffect.alphaFrom = (mode == ZoomViewTransitionMode.OUT) ? 1 : 0;
+        fadeEffect.alphaTo = (mode == "out") ? // avoid deprecation warning for ZoomViewTransitionMode.OUT
+            0 : 1;
+        fadeEffect.alphaFrom = (mode == "out") ? // avoid deprecation warning forZoomViewTransitionMode.OUT 
+            1 : 0;
         
         // Create scale effect to zoom in/our our target from or to our 
         // specified minimum scale.

    // mode
    //---------------------------------
    
    private var _mode:String = ZoomViewTransitionMode.OUT;
    
    [Inspectable(category="General", enumeration="in,out", defaultValue="out")]
    /**


        // On zoom out, place the cachedNavigator above the targetNavigator 
        var index:int = getComponentChildIndex(targetNavigator, targetNavigator.parent as UIComponent);
        if (mode == "out") // avoid deprecation warning for ZoomViewTransitionMode.OUT
            index++;
        addComponentToContainerAt(cachedNavigatorGroup, DisplayObjectContainer(targetNavigator).parent as UIComponent, index);

