package skins { import mx.skins.Border; public class VScroll extends Border { override public function get measuredWidth():Number { return 15; } override public function get measuredHeight():Number { return 11; } private var borderColor: uint; private var backgroundColor: uint; override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); graphics.clear(); borderColor = getStyle('borderColor'); var cols: Array = [0xFFFFFF, borderColor]; switch (name) { case "thumbDownSkin": backgroundColor = getStyle('fillColors')[1]; cols = [borderColor, 0xFFFFFF]; break; default: backgroundColor = getStyle('fillColors')[0]; break; } with (graphics) { lineStyle(1, cols[0], 1); beginFill(backgroundColor); moveTo(4, unscaledHeight); lineTo(4, 0); lineTo(unscaledWidth-1, 0); lineStyle(1, cols[1], 1); lineTo(unscaledWidth-1, unscaledHeight); lineTo(4, unscaledHeight); endFill(); } } } }