Fairly simple requirement: I have a TabBar and I want each tab to have a different color.
Seems like there should be a simple way to do this?
I thought I found an answer here, but I can't find it. Had something to do with retrieving each Tab instance from the TabBar and setting styles on it.
... woohoo!! got it by playing around (per usual)
var tab:Tab = tabBar.getChildAt(); tab.setStyle("backgroundColor", ); // sets the color when the tab is selected. tab.setStyle("fillColors", [, ]); // sets the unselected fill tab.setStyle("fillAlphas",[, ]); // optional