             displayObject.scrollRect = null;
             mx_internal::hasScrollRect = false;
         }
+        
+        // Listen for "damage" events in case the textFlow is 
+        // modified programatically.
+        textFlow.addEventListener(DamageEvent.DAMAGE, textFlow_damageHandler);        
     }
 
     /**

import flashx.textLayout.elements.ParagraphElement;
import flashx.textLayout.elements.SpanElement;
import flashx.textLayout.elements.TextFlow;
import flashx.textLayout.formats.CharacterFormat;
import flashx.textLayout.formats.ContainerFormat;
import flashx.textLayout.formats.ICharacterFormat;

     */
    private var textInvalid:Boolean = false;
        
    /**
     *  @private
     *  This flag is set to true if the text must be clipped.
     */
    private var isOverset:Boolean = false;

    //--------------------------------------------------------------------------
    //
    //  Overridden properties
