             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; 


    private var previousUnscaledHeight:Number;
    
    //----------------------------------
    //  fillMode
    //----------------------------------

    /**
     *  @private
     */
    protected var _fillMode:String = BitmapFillMode.SCALE;
    
    [Inspectable(category="General", enumeration="clip,repeat,scale", defaultValue="scale")]
    
    /**
     *  The fillMode determines how the bitmap fills in the dimensions. If you set the value
     *  of this property in a tag, use the string (such as "repeat"). If you set the value of 
     *  this property in ActionScript, use the constant (such as <code>BitmapFillMode.CLIP</code>).
     * 
     *  When set to <code>BitmapFillMode.clip</code> ("clip"), the bitmap
     *  ends at the edge of the region.
     * 
     *  When set to <code>BitmapFillMode.REPEAT</code> ("repeat"), the bitmap 
     *  repeats to fill the region.
     *
     *  When set to <code>BitmapFillMode.SCALE</code> ("scale"), the bitmap
     *  stretches to fill the region.
     * 
     *  @default <code>BitmapFillMode.SCALE</code>
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
    public function get fillMode():String 
    {
        return _fillMode; 
    }
    
    /**
     *  @private
     */
    public function set fillMode(value:String):void
    {
        if (value != _fillMode)
        {
            _fillMode = value;
            invalidateDisplayList();
        }
    }
