 import flash.display.Graphics;
 import flash.display.Sprite;
 import flash.events.Event;
-import flash.geom.Matrix;
 import flash.geom.Rectangle;
 import flash.text.engine.TextLine;
 
 import flashx.textLayout.compose.TextLineRecycler;
 
-import mx.core.IVisualElementContainer;
 import mx.core.UIComponent;
 import mx.core.mx_internal;
 import mx.events.FlexEvent;

        if (clipText)
        {
            alwaysCreateDisplayObject = true;
            if (sharedIndex > 0)
                return;
        }
        

        // position of the lines has remained the same.
        if (compose)
            composeTextLines(unscaledWidth, unscaledHeight);
        else if (displayObjectSharingMode != DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
            adjustTextLines();
            
        // If the text is overset it always has to be clipped (as well as if 
