 import flash.geom.Rectangle;
 import flash.net.URLRequest;
 import flash.system.LoaderContext;
-import flash.utils.getDefinitionByName;
 
 import spark.primitives.supportClasses.GraphicElement;
 

        var repeatBitmap:Boolean = false;
        var fillScaleX:Number = 1;
        var fillScaleY:Number = 1;
    
        switch(_resizeMode)
        {

            isNaN(_scaleGridLeft) ||
            isNaN(_scaleGridRight))
        {
             
            
            matrix.identity();
            matrix.scale(fillScaleX, fillScaleY);
            matrix.translate(roundedDrawX, roundedDrawY);
            g.beginBitmapFill(_bitmapData, matrix, repeatBitmap, smooth);
            g.drawRect(roundedDrawX, roundedDrawY, unscaledWidth, unscaledHeight);
            g.endFill();
        }
        else
