I'd like to set the style for the currently selected header in an Accordion. Currently, I'm using the following code:
PHP Code:
stack.getHeaderAt(_currentCard).setStyle("color", 0xFFFFFF);
This is working except for one problem: the new style is being applied to ALL of the headers, and not just the targeted header.
I know that I'm targeting the correct header, because I can change the labels for individual headers with now problem, but styles are causing all sorts of problems.
Any ideas as to what I'm doing wrong here?