                 case "alert":
                 case "default":
                 {
-                    if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
-                    {
-                        // For Panel/Alert, "borderAlpha" is the alpha for the
-                        // title/control/gutter area and "backgroundAlpha"
-                        // is the alpha for the content area.
-                        // We flip-flop the variables here so the "borderAlpha"
-                        // is applied by the background drawing code at the bottom.
-                        var contentAlpha:Number = getStyle("backgroundAlpha");
-                        backgroundAlpha = getStyle("borderAlpha");
-                        backgroundAlphaName = "borderAlpha";
-                        
-                        radius = getStyle("cornerRadius");
-                        bRoundedCorners =
-                            getStyle("roundedBottomCorners").toString().toLowerCase() == "true";
-                        var br:Number = bRoundedCorners ? radius : 0;
-        
-                        drawDropShadow(0, 0, w, h, radius, radius, br, br);
-                        
-                        // If we don't have rounded corners we need to initialize
-                        // the complex radius object so the background fill code
-                        // below works correctly.
-                        if (!bRoundedCorners)
-                            radiusObj = {};
-                        
-                        var parentContainer:IContainer = parent as IContainer;
-        
-                        if (parentContainer)
-                        {
-                            var vm:EdgeMetrics = parentContainer.viewMetrics;
-        
-                            // The backgroundHole is the content area
-                            backgroundHole = {x:vm.left, y:vm.top, 
-                                              w: Math.max(0, w - vm.left - vm.right), 
-                                              h: Math.max(0, h - vm.top - vm.bottom),
-                                              r:0};
-        
-                            if (backgroundHole.w > 0 && backgroundHole.h > 0)
-                            {
-                                // Draw a shadow around the content
-                                // if the content and panel alpha are different.
-                                // This could be a style property if needed
-                                if (contentAlpha != backgroundAlpha)
-                                {
-                                    drawDropShadow(backgroundHole.x, backgroundHole.y,
-                                            backgroundHole.w, backgroundHole.h,
-                                            0, 0, 0, 0);
-                                }
-        
-                                // Fill in the content area
-                                g.beginFill(Number(backgroundColor), contentAlpha);
-                                g.drawRect(backgroundHole.x, backgroundHole.y, 
-                                        backgroundHole.w, backgroundHole.h);
-                                g.endFill();
-                            }
-                        }
-        
-                        // When the content and panel alpha are different, the border
-                        // of the panel is drawn using borderColor. We've already
-                        // drawn the content background so we set backgroundColor to
-                        // borderColor here so the drawing code below is done with the
-                        // border color.                    
-                        backgroundColor = getStyle("borderColor");
-                    }
-                                        
-                    break;
+                   break;
                 }
 
                 case "dropdown": // never used

import flash.display.Graphics;
import mx.core.IContainer;
import mx.core.EdgeMetrics;
import mx.core.FlexVersion;
import mx.core.IUIComponent;
import mx.core.mx_internal;
import mx.graphics.RectangularDropShadow;

                g.endFill();
            }
        }
    }

    /**
