             var xScale:Number = Math.abs(scaleX);
             var yScale:Number = Math.abs(scaleY);
 
-            if (xScale != 1.0)
+            if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
             {
-                _measuredMinWidth /= xScale;
-                _measuredWidth /= xScale;
-            }
-
-            if (yScale != 1.0)
-            {
-                _measuredMinHeight /= yScale;
-                _measuredHeight /= yScale;
+                if (xScale != 1.0)
+                {
+                    _measuredMinWidth /= xScale;
+                    _measuredWidth /= xScale;
+                }
+    
+                if (yScale != 1.0)
+                {
+                    _measuredMinHeight /= yScale;
+                    _measuredHeight /= yScale;
+                }
             }
 
             measure();

            if (!isNaN(explicitMaxHeight) && measuredHeight > explicitMaxHeight)
                measuredHeight = explicitMaxHeight;

            if (xScale != 1.0)
            {
                _measuredMinWidth *= xScale;
                _measuredWidth *= xScale;
            }

            if (yScale != 1.0)
            {
                _measuredMinHeight *= yScale;
                _measuredHeight *= yScale;
            }
        }



        if (xScale != oldScaleX)
        {
            if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
            {
                scalingFactor = Math.abs(xScale / oldScaleX);
    
                if (explicitMinWidth)
                    explicitMinWidth *= scalingFactor;
    
                if (!isNaN(explicitWidth))
                    explicitWidth *= scalingFactor;
    
                if (explicitMaxWidth)
                    explicitMaxWidth *= scalingFactor;
            }

            oldScaleX = xScale;
        }

        if (yScale != oldScaleY)
        {
            if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
            {
                scalingFactor = Math.abs(yScale / oldScaleY);
    
                if (explicitMinHeight)
                    explicitMinHeight *= scalingFactor;
    
                if (explicitHeight)
                    explicitHeight *= scalingFactor;
    
                if (explicitMaxHeight)
                    explicitMaxHeight *= scalingFactor;
            }

            oldScaleY = yScale;
        }
