     {
         super.commitProperties();
         
+        // add or remove the contentBackgroundGraphic
+        var contentBackgroundAppearance:String = getStyle("contentBackgroundAppearance");
+        
+        if (contentBackgroundAppearance == ContentBackgroundAppearance.INSET)
+        {
+            // create the contentBackgroundGraphic
+            if (contentBackgroundInsetClass && !contentBackgroundGraphic)
+                contentBackgroundGraphic = new contentBackgroundInsetClass() as SpriteVisualElement;
+            
+            if (contentBackgroundGraphic)
+                addChildAt(contentBackgroundGraphic, getChildIndex(contentGroup));
+        }
+        else if (contentBackgroundGraphic)
+        {
+            // if already created, remove the graphic for "flat" and "none"
+            removeChild(contentBackgroundGraphic);
+            contentBackgroundGraphic = null;
+        }
+        
         // always invalidate to accomodate arrow direction changes
         invalidateSize();
         invalidateDisplayList();

                contentEllipseSize, contentEllipseSize);
            maskGraphics.endFill();
            
            // add or remove the contentBackgroundGraphic
            if (contentBackgroundAppearance == CalloutContentBackgroundAppearance.INSET)
            {
                // create the contentBackgroundGraphic
                if (contentBackgroundInsetClass && !contentBackgroundGraphic)
                    contentBackgroundGraphic = new contentBackgroundInsetClass() as SpriteVisualElement;
                
                if (contentBackgroundGraphic)
                {
                    addChild(contentBackgroundGraphic);
                    contentBackgroundGraphic.alpha = contentBackgroundAlpha;
                }
            }
            
            // reset line style to none
            if (showBorder)
                bgFill.lineStyle(NaN);


import spark.components.ArrowDirection;
import spark.components.Callout;
import spark.components.ContentBackgroundAppearance;
import spark.components.Group;
import spark.core.SpriteVisualElement;
import spark.effects.Fade;
