Flex, Changing the text color of Accordian Tabs.

<?xml version=”1.0″?>
<!– containers\navigators\AccordionStyling.mxml –>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”
    width=”600″
    height=”600″
    creationComplete=”setButtonStyles();”>

    <mx:Script>
        <![CDATA[
            public function setButtonStyles():void {
                comp.getHeaderAt(0).setStyle('color', 0xAA0000);
                comp.getHeaderAt(1).setStyle('color', 0x00AA00);
            }
        ]]>
    </mx:Script>

    <mx:Accordion id=”comp”>
        <mx:VBox label=”First VBox”>
            <mx:TextInput/>
            <mx:Button label=”Button 1″/>
        </mx:VBox>
        <mx:VBox label=”Second VBox”>
            <mx:TextInput/>
            <mx:Button label=”Button 2″/>
        </mx:VBox>
    </mx:Accordion>
</mx:Application>

http://livedocs.adobe.com/flex/3/html/help.html?content=navigators_5.html

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.