 import flash.text.engine.TextElement;
 import flash.text.engine.TextLine;
 
-import flashx.textLayout.compose.ITextLineCreator;
+import flashx.textLayout.compose.ISWFContext;
 import flashx.textLayout.compose.TextLineRecycler;
 
 import mx.core.IEmbeddedFontRegistry;

		var nextY:Number = 0;
		var textLine:TextLine;
        
        var textLineCreator:ITextLineCreator =
        	ITextLineCreator(embeddedFontContext);
        			
		// For truncation, need to know if all lines have been composed.
        var createdAllLines:Boolean = false;

            var recycleLine:TextLine = TextLineRecycler.getLineForReuse();
            if (recycleLine)
            {
                if (swfContext)
                {
                    nextTextLine = swfContext.callInContext(
						textBlock["recreateTextLine"], textBlock,
						[ recycleLine, textLine, maxLineWidth ]);		
                }        
                else
                {
