/* Define the skin elements that should not be colorized.
For spinner buttons, the graphics are colorized but the arrow is not. */
static private const exclusions:Array = ["arrow"];
/**
* @private
*/
override public function get colorizeExclusions():Array {return exclusions;}
/* Define the symbol fill items that should be colored by the "symbolColor" style. */
static private const symbols:Array = ["arrowFill"];
/**
* @private
*/
override public function get symbolItems():Array {return symbols};
/* Define the border items.*/
static private const borderItem:Array = ["borderStroke"];
/**
* @private
*/
override protected function get borderItems():Array {return borderItem;}
/**
* @private
*/
override protected function get defaultBorderItemColor():uint {return 0x686868;}
/**
* @private
*/
override protected function initializationComplete():void
{
useChromeColor = true;
super.initializationComplete();
}
/**
* @private
*/
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void
{
var cr:Number = getStyle("cornerRadius");
if (cornerRadius != cr)
{
cornerRadius = cr;
fill.topRightRadiusX = cornerRadius;
highlight.topRightRadiusX = cornerRadius;
}
super.updateDisplayList(unscaledWidth, unscaledHeight);
}
private var cornerRadius:Number = 2;