package skins.AV { import flash.display.GradientType; import flash.geom.Matrix; import mx.skins.Border; import mx.utils.ColorUtil; public class Big 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, 150), colMain, ColorUtil.adjustBrightness(colMain, 90), colMain, ColorUtil.adjustBrightness(colMain, 120), ]; var ratios: Array = [ 0, 60/380*0xFF, 140/380*0xFF, 280/380*0xFF, 340/380*0xFF, 0xFF ]; var alphas: Array = [1, 1, 1, 1, 1, 1]; var matrix: Matrix = new Matrix; matrix.createGradientBox(unscaledWidth, unscaledHeight, Math.PI/2); graphics.lineStyle(2, colMain, 0.3); drawRoundRect(0, 0, unscaledWidth, unscaledHeight, 5, cols, alphas, matrix, GradientType.LINEAR, ratios); } } }