 {
     
 import flash.display.DisplayObject;
+import flash.display.GradientType;
 import flash.display.Graphics;
 
 import mx.core.DeviceDensity;
 import mx.core.mx_internal;
+import mx.utils.ColorUtil;
 
 import spark.skins.mobile.supportClasses.ButtonSkinBase;
 import spark.skins.mobile160.assets.Button_down;
 import spark.skins.mobile160.assets.Button_up;
 import spark.skins.mobile240.assets.Button_down;
 import spark.skins.mobile240.assets.Button_up;
+import spark.skins.mobile320.assets.Button_down;
+import spark.skins.mobile320.assets.Button_up;
 
 
 use namespace mx_internal;

                upBorderSkin = spark.skins.mobile160.assets.Button_up;
                downBorderSkin = spark.skins.mobile160.assets.Button_down;
                
                // FIXME (jasonsj) subract gutter for measurement
                layoutGap = 9;
                layoutCornerEllipseSize = 12;
                layoutPaddingLeft = 15;
                layoutPaddingRight = 15;
                layoutPaddingTop = 15;
                layoutPaddingBottom = 15;
                layoutBottomBorderShadow = 1;
                layoutBorderSize = 1;
                layoutMeasuredWidth = 32;
                
                break;
            }

        setElementPosition(bgImg, 0, 0);
    }
    
	override protected function beginChromeColorFill(chromeColorGraphics:Graphics):void
	{
		// In the down state, the fill shadow is defined in the FXG asset
		if (currentState == "down")
			chromeColorGraphics.beginFill(getChromeColor());
		else
			super.beginChromeColorFill(chromeColorGraphics);
	}
	
    override protected function drawChromeColor(chromeColorGraphics:Graphics, unscaledWidth:Number, unscaledHeight:Number):void
    {
        // inset chrome color by BORDER_SIZE
        // bottom line is a shadow
        chromeColorGraphics.drawRoundRect(layoutBorderSize, layoutBorderSize, 
            unscaledWidth - (layoutBorderSize * 2), 
            unscaledHeight - (layoutBorderSize * 2), 
            layoutCornerEllipseSize, layoutCornerEllipseSize);
    }
    
