 	public function begin(target:Graphics, bounds:Rectangle):void
 	{		
 		if (!source)
-			return;
-		
+			return;        
+        
+        var bd:BitmapData;
+        var sourceAsBitmapData:BitmapData = source as BitmapData;
+        
         if (compoundTransform)
         {
             transformMatrix = compoundTransform.matrix;

			var tmpSprite:DisplayObject;
			var oldValue:Object = _source;
			
			var bitmapData:BitmapData;
			
			if (value is Class)
			{
				var cls:Class = Class(value);

		var oldValue:Boolean = _repeat;
		if (value != oldValue)
		{
			_repeat = value;        
			dispatchFillChangedEvent("repeat", oldValue, value);
		}
	}
