Anyone who's interested, this is what I was missing from my ButtonBarButton skin
<fx:Script> <![CDATA[ override protected function updateDisplayList(w:Number, h:Number) : void { super.updateDisplayList(w, h); // Remove the first separator if(hostComponent.itemIndex == 0) { separator.visible = false; } } ]]> </fx:Script> <s:Group> <s:Line id="separator" x="8" y="0" xFrom="0" xTo="0" yFrom="0" yTo="12"> <s:stroke> <s:SolidColorStroke color="0x000000" weight="1" joints="miter"/> </s:stroke> </s:Line> <s:Label id="labelDisplay" x="20" y="0" ..other attributes /> </s:Group> --- In flexcoders@yahoogroups.com, "bhaq1972" <mbha...@...> wrote: > > Hi > I'm trying to create a ButtonBar skin which looks like a halo LinkBar skin. > However, i'm having a few issues with trying to create the separator graphic. > So far my ButtonBarButton skin has a Label. > 1) Do I create the separator graphic in updateDisplayList()? If so can > someone help with a small example how to do it (so far I have failed to make > it display) > or > 2) Do I declare it in mxml like > > <!-- separator graphic here ... not sure of code../> > > <s:Label id="labelDisplay"/> > > or > 3) am i going about this the wrong way and theres a better way > > any suggestion would be very helpful > > thanks >