      *  this object represents the rich text to be displayed.
      *  It is created by using TLF's HTML importer to import the htmlText.
      */
-    public var textFlow:TextFlow;
+    private var textFlow:TextFlow;
     
     /**
      *  @private

     */
    private function get htmlImporter():ITextImporter
    {
        // Note that which importer we return depends on the value
        // of condenseWhite was at the time that htmlText was set,
        // not on the current value of condenseWhite,
        // since it could change between htmlText being set
        // and the TextLines being composed.
        return _field.testFlag(FTETextField.FLAG_EFFECTIVE_CONDENSE_WHITE) ?
            collapsingHTMLImporter :
            preservingHTMLImporter;
    }   
    
    /**

     */
    public function getHtmlText(fieldText:String):String
    {       
        if (htmlText == null)
        {
            // We can optimize the default case
            // that there is no text or hmtlText.
            if (fieldText == "")
            {
                htmlText = "";
            }
            else
            {
                // Import the plain text into a TextFlow,
                // and then export the TextFlow into HTML.
                if (!textFlow)
                {
                    if (!plainTextImporter)
                        plainTextImporter = TextConverter.getImporter(TextConverter.PLAIN_TEXT_FORMAT);
                    textFlow = plainTextImporter.importToFlow(fieldText);
                }
                
                if (!htmlExporter)
                    htmlExporter = TextConverter.getExporter(TextConverter.TEXT_FIELD_HTML_FORMAT);

                htmlText = String(htmlExporter.export(textFlow, ConversionType.STRING_TYPE));
            }
        }   
        
        return htmlText;
    }
    
    /**
     *  @private
     */
    public function setStyleSheet(value:StyleSheet):void
    {   
        styleSheet = value;
        
        if (textFlow && textFlow.formatResolver)
            textFlow.formatResolver = null;
    }
