package skins.WB { import flash.display.GradientType; import flash.geom.Matrix; import mx.skins.Border; import mx.utils.ColorUtil; public class WBControlBar extends Border { override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { graphics.clear(); var colMain: uint = getStyle('backgroundColor'); var cols: Array = [ colMain, ColorUtil.adjustBrightness(colMain, 90), colMain ]; var ratios: Array = [ 0, 0xFF/2, 0xFF ]; var alphas: Array = [getStyle('backgroundAlpha'), getStyle('backgroundAlpha'), getStyle('backgroundAlpha')]; var matrix: Matrix = new Matrix; matrix.createGradientBox(unscaledWidth, unscaledHeight, Math.PI/2); graphics.lineStyle(1, colMain, 0.5, true); drawRoundRect(0, 0, unscaledWidth, unscaledHeight, 5, cols, alphas, matrix, GradientType.LINEAR, ratios); } } }