 import flash.display.Graphics;
 import flash.geom.ColorTransform;
 import flash.geom.Matrix;
-
+import flash.system.Capabilities;
+
+import mx.core.DeviceDensity;
 import mx.core.FlexGlobals;
 import mx.core.IFlexDisplayObject;
 import mx.core.ILayoutElement;
 import mx.core.UIComponent;
-import mx.core.UITextField;
 import mx.core.mx_internal;
 import mx.utils.ColorUtil;
-import mx.utils.object_proxy;
+import mx.utils.DensityUtil;
 
 import spark.components.supportClasses.SkinnableComponent;
 import spark.components.supportClasses.StyleableTextField;

    //
    //--------------------------------------------------------------------------
    
    // FIXME (jasonsj): define enums for PPI
    public static const PPI160:uint = 160;
    
    public static const PPI240:uint = 240;
    
    public static const PPI320:uint = 320;
    
    // Used for gradient background
    protected static var matrix:Matrix = new Matrix();
    

    private var _focus:Boolean = false;
    
    //----------------------------------
    //  authorDensity
    //----------------------------------
    
    /**
     *  Returns the authorDensity of the application. If authorDensity is not
     *  specified, it is determined from the current screenDPI.
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 2.5
     *  @productversion Flex 4.5
     */
    public function get authorDensity():String
    {
        if ("authorDensity" in FlexGlobals.topLevelApplication)
        {
            var value:String = FlexGlobals.topLevelApplication.authorDensity;
            
            if (!value)
                return value;
        }
        
        return DensityUtil.screenDPIToDeviceDensity(Capabilities.screenDPI);
    }
    
    //----------------------------------
