             {
                 // If capture fails, substitute with a Rect
                 var fillRect:Rectangle
+				var skin:DisplayObject = target.skin;
+				
                 if (skin)
                     fillRect = new Rectangle(skin.x, skin.y, skin.width, skin.height);
                 else

    
    import spark.components.supportClasses.Skin;
    import spark.components.supportClasses.SkinnableComponent;
    
    use namespace mx_internal;
    

    
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    import flash.display.DisplayObject;
    import flash.display.IBitmapDrawable;
    import flash.events.Event;
    import flash.geom.ColorTransform;
