 	 *  Masks for bits inside the 'flags' var
 	 *  which control what work validateNow() needs to do.
 	 */
-	private static const FLAG_TEXT_CHANGED:uint = 1 << 6;
-	private static const FLAG_HTML_TEXT_CHANGED:uint = 1 << 7;
+	private static const FLAG_TEXT_SET:uint = 1 << 6;
+	private static const FLAG_HTML_TEXT_SET:uint = 1 << 7;
 	private static const FLAG_TEXT_LINES_INVALID:uint = 1 << 8;
 	private static const FLAG_GRAPHICS_INVALID:uint = 1 << 9;
 	

		if (innerWidth < 0 || innerHeight < 0)
			return paragraphY;
		
		var maxLineWidth:Number =
			wordWrap ? innerWidth : TextLine.MAX_LINE_WIDTH;
		
		var n:int = 0;
		var nextTextLine:TextLine;
		var nextY:int = paragraphY;

        if (beginIndex == -1 && endIndex == -1)
        {
            defaultTextFormat = format;
            
            // The format changed.  Some of the attributes such as indent
            // and blockIndent require the text to be regenerated.
            setFlag(FLAG_TEXT_LINES_INVALID | FLAG_GRAPHICS_INVALID);

            validateNow();
        }
	}
