 import flash.events.TextEvent;
 
 import flash.geom.Point;
+import flash.geom.Rectangle;
 
 import flash.text.TextField;
 import flash.text.TextFieldAutoSize;

    protected function contentDimensionsUpdated () :void
    {
        // update the mask
        var maxW :int = getMaxContentWidth();
        var maxH :int = getMaxContentHeight();
        if ((maxW < int.MAX_VALUE) && (maxH < int.MAX_VALUE)) {
            // if we should do masking, then mask to the lesser of maximum and actual size
            configureMask(Math.min(maxW, _w), Math.min(maxH, _h));
        }
    }

    /**

    /**
     * Configure the mask for this object.
     */
    protected function configureMask (rect :Rectangle) :void
    {
        var mask :Shape;
        if (_media.mask != null) {
