/* Define the skin elements that should not be colorized. For button, 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 = ["arrowFill1", "arrowFill2"]; /** * @private */ override public function get symbolItems():Array {return symbols}; /* Define the border items.*/ static private const borderItem:Array = ["borderEntry1", "borderEntry2"]; /** * @private */ override protected function get borderItems():Array {return borderItem;} /** * @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; fill.bottomRightRadiusX = cornerRadius; lowlight.topRightRadiusX = cornerRadius; lowlight.bottomRightRadiusX = cornerRadius; highlight.topRightRadiusX = cornerRadius; highlight.bottomRightRadiusX = cornerRadius; border.topRightRadiusX = cornerRadius; border.bottomRightRadiusX = cornerRadius; } if (highlightStroke) highlightStroke.bottomRightRadiusX = highlightStroke.topRightRadiusX = cornerRadius; if (hldownstroke1) hldownstroke1.bottomRightRadiusX = hldownstroke1.topRightRadiusX = cornerRadius; if (hldownstroke2) hldownstroke2.bottomRightRadiusX = hldownstroke2.topRightRadiusX = cornerRadius; super.updateDisplayList(unscaledWidth, unscaledHeight); } private var cornerRadius:Number = 2;