2 Replies Latest reply on Jul 5, 2006 11:00 AM by Newsgroup_User

    Accordion Style?

    Level 7
      Hi --

      I'm trying to make the color of my according tabs change but when I change
      the background color in the Style manager in the IDE I changes the
      background of the canvas but not of the tab with the label on it.

      Rich


        • 1. Re: Accordion Style?
          Level 7
          Richard Morey wrote:
          > I'm trying to make the color of my according tabs change but when I change
          > the background color in the Style manager in the IDE I changes the
          > background of the canvas but not of the tab with the label on it.

          With Accordions, the header tabs are Buttons that are separate objects
          from the content panes.

          From ActionScript, you can access the headers of an Accordion using the
          getHeaderAt() function, which will return a Button. You can then set the
          backgroundColor style of that Button.

          If you want to change the style of all the header tabs, and not just a
          specific one, you can set the headerStyleName style of the Accordion to
          the name of a CSS declaration. That CSS will then be applied to every
          tab button in the Accordion.

          -- Greg
          -- Adobe Flex Builder Team
          • 2. Re: Accordion Style?
            Flex harUI Adobe Employee
            The accordion tabs are known as AccordionHeaders and styled via the headerStyleName property. AccordionHeaders are Buttons and sytled/skinned like buttons