 package spark.primitives
 {
 
+import flash.display.DisplayObject;
 import flash.display.DisplayObjectContainer;
 import flash.display.Graphics;
 import flash.display.Shape;

    private function getNextTruncationPosition(truncationLineIndex:int,
                                               truncateAtCharPosition:int):int
    {
        var textLines:Array = mx_internal::textLines;

        // 1. Get the position of the last character of the preceding atom
        // truncateAtCharPosition-1, because truncateAtCharPosition is an 

     *  Returns true if all the text was composed into textLines.
	 */
	private function createTextLinesFromTextBlock(textBlock:TextBlock,
                	                              textLines:Vector.<DisplayObject>,
                	                              bounds:Rectangle):Boolean
	{
		// Start with 0 text lines.
		mx_internal::releaseTextLines(textLines);
	       
		// Get CSS styles for formats that we have to apply ourselves.
		var direction:String = getStyle("direction");
