             break;
         }
 
-        // If no scaleGrid is defined or if resizeMode != SCALE, just draw the entire rect
-        if (_resizeMode != BitmapResizeMode.SCALE ||
+        // If no scaleGrid is defined or if fillMode != SCALE, just draw the entire rect
+        if (_fillMode != BitmapFillMode.SCALE ||
             isNaN(_scaleGridTop) ||
             isNaN(_scaleGridBottom) ||
             isNaN(_scaleGridLeft) ||

import flash.net.URLRequest;
import flash.system.LoaderContext;

import mx.graphics.BitmapResizeMode;

import spark.primitives.supportClasses.GraphicElement; 


        var fillWidth:Number = unscaledWidth;
        var fillHeight:Number = unscaledHeight;
    
        switch(_fillMode)
        {
            case BitmapFillMode.REPEAT: 
                if (_bitmapData)
                {
                    repeatBitmap = true;
                }    
            break;

            case BitmapFillMode.SCALE:
                if (_bitmapData)
                {
                    fillScaleX = unscaledWidth / _bitmapData.width;
