     {
         if (stage && textInput)
         {            
-            stage.focus = textInput.textDisplay;            
+            stage.focus = textInput.textDisplay as InteractiveObject;            
         }
     }
     

            textInput.restrict = restrict;
            textInput.focusEnabled = false;
            
            textInput.textDisplay.batchTextInput = false;
        }
    }
    

import adobe.utils.CustomActions;

import flash.display.DisplayObject;
import flash.display.InteractiveObject;
import flash.events.Event;
import flash.events.FocusEvent;
import flash.events.KeyboardEvent;
