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'); switch (name) { case "thumbDownSkin": backgroundColor = getStyle('fillColors')[1]; break; default: backgroundColor = getStyle('fillColors')[0]; break; } graphics.lineStyle(1, borderColor, 1); drawRoundRect(0, 0, unscaledWidth-2, unscaledHeight, 0, backgroundColor, 1); } } }