         if (!startView || !endView)
             return null;
 
-        return (mode == FlipViewTransitionMode.CARD) ? 
+        return (mode == "card") ? // avoid deprecation warning for FlipViewTransitionMode.CARD
             prepareCardViewEffect() : 
             prepareCubeViewEffect();
     }

        if (!cachedNavigator)
            return null;
        
        return mode == FlipViewTransitionMode.CARD ? 
            prepareConsolidatedCardViewEffect() : 
            prepareConsolidatedCubeViewEffect();
    }

            }
        }

        if (mode == "card") // avoid deprecation warning for FlipViewTransitionMode.CARD
        {
            var topRight:Vector3D = new Vector3D(viewWidth, 0, 0);
            var bottomLeft:Vector3D = new Vector3D(0, viewHeight, 0);
