On 5/3/07, kasey.mccurdy <[EMAIL PROTECTED]> wrote: > does anyone out there know how to change the text style for a selected > accordion panel vs. a non selected one?
I think there are some "selected" styles, but you can also do it with a custom header renderer. See this example below. <?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"> <mx:Accordion> <mx:headerRenderer> <mx:Component> <mx:Button color="{selected ? 0xFF0000 : 0}" /> </mx:Component> </mx:headerRenderer> <mx:Panel title="1" label="1" width="200" height="200" /> <mx:Panel title="2" label="2" width="200" height="200" /> </mx:Accordion> </mx:Application> The button colour changes based on whether or not it's selected.

