 import flash.geom.Matrix;
 
 import mx.core.DeviceDensity;
+import mx.core.mx_internal;
 import mx.utils.ColorUtil;
 
+import spark.skins.mobile.ActionBarSkin;
 import spark.skins.mobile.ButtonSkin;
+
+use namespace mx_internal;
 
 /**
  *  Base skin class for ActionBar buttons. Adds flat-look button border and

        measuredHeight =  Math.max(layoutMeasuredHeight, measuredHeight);
    }
    
    override protected function layoutBorder(bgImg:DisplayObject, unscaledWidth:Number, unscaledHeight:Number):void
    {
        // extend 1px outside measured width to overlap highlight borders
        setElementSize(bgImg, unscaledWidth + layoutBorderSize, unscaledHeight);
        setElementPosition(bgImg, 0, 0);
    }
    
    override protected function drawChromeColor(chromeColorGraphics:Graphics, unscaledWidth:Number, unscaledHeight:Number):void
    {
        drawBackgroundOffset(chromeColorGraphics, 0, unscaledWidth, unscaledHeight);
    }
    
    protected function drawBackgroundOffset(chromeColorGraphics:Graphics, xOffset:Number, backgroundWidth:Number, backgroundHeight:Number):void
    {
        var colors:Array = [];
        
        // Draw the gradient background
        matrix.createGradientBox(backgroundWidth, backgroundHeight, Math.PI / 2, 0, 0);
        var chromeColor:uint = getChromeColor();
        colors[0] = ColorUtil.adjustBrightness2(chromeColor, 20);
        colors[1] = chromeColor;
        colors[2] = ColorUtil.adjustBrightness2(chromeColor, -20);
        
        chromeColorGraphics.beginGradientFill(GradientType.LINEAR, colors, alphas, ratios, matrix);
        
        // adjust for separator
        chromeColorGraphics.drawRect(xOffset, 0, backgroundWidth, backgroundHeight);
        chromeColorGraphics.endFill();
    }
}
}
        
        switch (authorDensity)
        {
            case DeviceDensity.PPI_320:
            {
                layoutBorderSize = 1;
                layoutPaddingTop = 12;
                layoutPaddingBottom = 10;
                layoutPaddingLeft = 20;
                layoutPaddingRight = 20;
                layoutMeasuredWidth = 106;
                layoutMeasuredHeight = 86;
                
                break;
            }
            case DeviceDensity.PPI_240:
            {
                layoutBorderSize = 1;
                layoutPaddingTop = 9;
                layoutPaddingBottom = 8;
                layoutPaddingLeft = 16;
                layoutPaddingRight = 16;
