      */
     private function softKeyboardActivateHandler(event:SoftKeyboardEvent=null):void
     {
+        var isFirstActivate:Boolean = false;
+        
         // Save the original y-position and height if this is the first 
         // ACTIVATE event and an existing deactivate effect is not already in
         // progress.

            
            // reset cached keyboard height
            cachedKeyboardHeight = 0;
        }
        
        var smStage:Stage = systemManager.stage;

    /**
     *  @private
     */
    private function prepareEffect(yTo:Number, heightTo:Number, snapPosition:Boolean=false):void
    {
        // stop the current effect
        if (effect && effect.isPlaying)
