 import flash.display.IBitmapDrawable;
 import flash.events.Event;
 import flash.filters.GlowFilter;
-import flash.geom.ColorTransform;
 import flash.geom.Matrix;
 import flash.geom.Matrix3D;
 import flash.geom.Point;
 import flash.geom.Rectangle;
 
-import spark.components.supportClasses.SkinnableComponent;
-import mx.core.UIComponent;
 import mx.core.mx_internal;
-import mx.events.FlexEvent;
 
 use namespace mx_internal;
 

    //
    //--------------------------------------------------------------------------
    
    /**
     *  Bitmap capture of the focused component. This bitmap includes a glow
     *  filter that shows the focus glow.
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
    private var bitmap:Bitmap;

    /**
     * @private
     */
    private var _errorObject:SkinnableComponent;
    
    /**
     *  The Spark component to draw the error skin around.  
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
    public function get errorObject():SkinnableComponent
    {
        return _errorObject;
    }
    
    public function set errorObject(value:SkinnableComponent):void
    {
        _errorObject = value;
        
        // Add an "updateComplete" listener to the skin so we can redraw
        // whenever the skin is drawn.
        if (_errorObject.skin)
            _errorObject.skin.addEventListener(FlexEvent.UPDATE_COMPLETE, 
                    skin_updateCompleteHandler, false, 0, true);
    }
    
    //--------------------------------------------------------------------------
    //
    //  Overridden methods

 *  @playerversion AIR 1.5
 *  @productversion Flex 4
 */
public class ErrorSkin extends HighlightBitmapCaptureSkin
{
    include "../../core/Version.as";
    
