package skins { import mx.controls.scrollClasses.ScrollBar; import mx.skins.Border; import mx.utils.ColorUtil; public class VScrollTrack extends Border { override public function get measuredWidth():Number { return ScrollBar.THICKNESS; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); var borderColor: uint = getStyle('borderColor'); var backgroundColor: uint = getStyle('fillColors')[0]; drawRoundRect(0, 0, unscaledWidth, unscaledHeight, 0, backgroundColor, 1); var cols: Array = [0xFFFFFF, borderColor, ColorUtil.adjustBrightness(borderColor, -20)]; var lw1: int, lw2: int, lw3: int; with (graphics) { //left border, ---> lw1 = 1; lineStyle(lw1, cols[0], 0.7); moveTo(lw1/2, lw1/2); lineTo(lw1/2, unscaledHeight-lw1/2); lw2 = 3; lineStyle(lw2, cols[1], 1); moveTo(lw1+lw2/2, lw2/2); lineTo(lw1+lw2/2, unscaledHeight-lw2/2); lw3 = 1; lineStyle(lw3, cols[2], 1); moveTo(lw1+lw2+lw3/2, lw3/2); lineTo(lw1+lw2+lw3/2, unscaledHeight-lw3/2); } } } }