Dynamic Accordion Contents

Posted this simple example on JAM ( onflex.org/code ), and re-posting here. Containers in Flex wrap the DisplayList API methods so they can display their children in unique ways. The Accordion, for example, will show them with the clickable button tabs that have a label, and the child below that. You can show each child by clicking the corresponding tab.

Static MXML will make your Accordion, but if you want it to be dynamic, just throw a container in the addChild method, and away you go.

Dynamic Accordion – HTML | View Source | ZIP

Comments

3 responses to “Dynamic Accordion Contents”

  1. Phillip Kerman Avatar
    Phillip Kerman

    Why don’t I see it on JAM? I only see stuff from last year. Thanks.

  2. bob keleher Avatar
    bob keleher

    is there some way to include mx layout and control components to each child?