package skins { import mx.skins.Border; public class TabBar extends Border { private var colBackground: uint = 0xFFFFFF; private var colBorder: uint = 0; private var borderThickness: uint = 1; private var borderAlpha: Number = 1; private var backgroundAlpha: Number = 1; override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { graphics.clear(); colBorder= getStyle('borderColor'); colBackground = getStyle('downFillColors')[0]; graphics.clear(); drawRoundRect(0, 0, unscaledWidth, unscaledHeight, 0, colBackground, 1); switch (name) { case 'selectedOverSkin': case 'selectedDownSkin': case 'selectedUpSkin': colBackground = getStyle('fillColors')[0]; drawRoundRect(2, 2, unscaledWidth-4, unscaledHeight-2, 0, colBackground, 1); break; case 'overSkin': case 'downSkin': break; default : break; } } } }