 {
     
 import flash.events.Event;
-
-import spark.components.supportClasses.TextBase;
+import flashx.textLayout.elements.TextFlow;
+import flashx.textLayout.formats.TextLayoutFormat;
+
+import mx.core.mx_internal;
 import mx.core.ScrollPolicy;
 import mx.events.FlexEvent;
+
+import spark.components.supportClasses.SkinnableTextBase;
 import spark.events.TextOperationEvent;
+
+use namespace mx_internal;
 
 //--------------------------------------
 //  Styles

    [RichTextContent]
        
    /**
     *  Documentation is not currently available.
     * 
     *  A TextFlow object is not shareable.  To clone a TextFlow use
     *  TextFlow.deepCopy().
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
    public function get content():Object
    {
        return textView && useTextFlowForContent ? textView.textFlow : 
                                                   getContent();
    }

    /**
     *  @private
     */
    public function set content(value:Object):void
    {
        if (value == getContent())
            return;

        // Setting 'content' temporarily causes 'text' to become null.
        // Later, after the 'content' has been committed into the TextFlow,
        // getting 'text' will extract the text from the TextFlow.
        super.text = null;
        setContent(value);

        useTextFlowForContent = false;
    }
    
    //----------------------------------
    //  heightInLines
    //----------------------------------

    /**

     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
    public function getFormatOfRange(requestedFormats:Vector.<String>=null,
                                     anchorPosition:int=-1,
                                     activePosition:int=-1):TextLayoutFormat
    {
        if (!textDisplay)
            return null;

        return textDisplay.getFormatOfRange(requestedFormats, anchorPosition, 
                                            activePosition);
    }

    /**
