 		if (!sourceAsBitmapData)
 			return;        
         
-        var repeatFill:Boolean = (resizeMode == BitmapResizeMode.REPEAT); 
+        var repeatFill:Boolean = (fillMode == BitmapFillMode.REPEAT); 
         
         // If we need to apply the alpha, we need to make another clone. So dispose of the old one.
         if (nonRepeatAlphaSource && applyAlphaMultiplier)

            
            nonRepeatSourceCreated = false;
        }
        else if (resizeMode == BitmapResizeMode.NOSCALE)
        {
            // Regenerate the nonRepeatSource if it wasn't previously created or if the bounds 
            // dimensions have changed.

        // will modify the source and we have no way to restore the source back its original alpha value. 
        if (applyAlphaMultiplier)
        {
            // Clone the bitmapData if we didn't already make a copy for CLIP mode
            if (!nonRepeatAlphaSource)
                nonRepeatAlphaSource = sourceAsBitmapData.clone();
            
