     private function computeLastAllowedLineIndex(height:Number,
                                                  lineCountLimit:int):int
     {           
-        var textLines:Vector.<DisplayObject> = mx_internal::textLines;
         var truncationLineIndex:int = textLines.length - 1;
         
         if (!isNaN(height))

import mx.managers.ISystemManager;

import spark.primitives.supportClasses.TextGraphicElement;

[DefaultProperty("text")]


                	                              bounds:Rectangle):Boolean
	{
		// Start with 0 text lines.
		releaseTextLines(textLines);
	       
		// Get CSS styles for formats that we have to apply ourselves.
		var direction:String = getStyle("direction");
