 
         // Set the scrollRect used for clipping appropriately.              
         clip(clipText, unscaledWidth, unscaledHeight);
-    }
-            
+ 
+     	// If backgroundColor is defined, fill the bounds of the component
+    	// with backgroundColor drawn with alpha level backgroundAlpha.
+    	var backgroundColor:* = getStyle("backgroundColor");
+    	if (backgroundColor !== undefined)
+    	{
+	    	var g:Graphics = Sprite(drawnDisplayObject).graphics;
+	        g.lineStyle();
+	        g.beginFill(uint(backgroundColor), getStyle("backgroundAlpha"));
+	       	g.drawRect(drawX, drawY, unscaledWidth, unscaledHeight);
+	        g.endFill();
+	    }
+    }
+    
     /**
      *  @private
      */

import spark.core.IGraphicElement;

use namespace mx_internal;

/**
 *  The base class for GraphicElements such as TextBox and TextGraphic


import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;
import flash.display.Graphics;
import flash.display.Sprite;
import flash.events.Event;
import flash.geom.Matrix;
import flash.geom.Rectangle;
