Can I disable a Spark Button Bar Button via an index value or do I have to do it through the buttons skin as shown here using the label.
and example of what I would like to do:
public function disableButton(index:uint):void
{
var button:ButtonBarButton = this.getChildAt(index) as ButtonBarButton;
button.enabled = false;
}
This does not work as the button object comes back null.
The code you want is:
Here is a complete working example.