         var fillWidth:Number = unscaledWidth;
         var fillHeight:Number = unscaledHeight;
     
-        switch(_resizeMode)
-        {
-            case BitmapResizeMode.REPEAT: 
+        switch(_fillMode)
+        {
+            case BitmapFillMode.REPEAT: 
                 if (_bitmapData)
                 {
                     repeatBitmap = true;
                 }    
             break;
 
-            case BitmapResizeMode.SCALE:
+            case BitmapFillMode.SCALE:
                 if (_bitmapData)
                 {
                     fillScaleX = unscaledWidth / _bitmapData.width;

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

import mx.graphics.BitmapResizeMode;

import spark.primitives.supportClasses.GraphicElement; 


            break;
        }

        // If no scaleGrid is defined or if fillMode != SCALE, just draw the entire rect
        if (_fillMode != BitmapFillMode.SCALE ||
            isNaN(_scaleGridTop) ||
            isNaN(_scaleGridBottom) ||
            isNaN(_scaleGridLeft) ||
