         if (isFocused)
         {
             // For some composite components, the focused object may not
-            // be "this". If so, we don't want to draw the focus.
-            if (focusManager.getFocus() != this)
+            // be "this". If so, we don't want to draw the focus.  This
+            // replaces the parentDrawsFocus variable used in halo.
+            var fm:IFocusManager = focusManager;
+            if (fm && fm.getFocus() != this)
                 return;
         }
         

     *  @private
     *  RichEditableTextContainerManager overrides focusInHandler and calls
     *  this before executing its own focusInHandler.
     * 
     *  NOTE: In some cases TCM calls the focusInHandler twice during one
     *  focusIn event.  Ensure that this code works correctly if it is
     *  called twice.
     */
    mx_internal function focusInHandler(event:FocusEvent):void
    {
        //trace("focusIn handler");
            
        if (editingMode == EditingMode.READ_WRITE)
        {  
            // If the focusIn was because of a mouseDown event, let TLF
            // handle the selection.  Otherwise it was because we tabbed in
            // or we programatically set the focus.

import mx.core.UIComponent;
import mx.core.mx_internal;
import mx.events.FlexEvent;
import mx.managers.IFocusManager;
import mx.managers.IFocusManagerComponent;
import mx.managers.ISystemManager;
import mx.resources.ResourceManager;
