Flex and Flash Developer - Jesse Warden dot Kizz-ohm

A blog on software development, technology, games & movies.

About

This is the blog of Jesse Warden, a Rich Internet Application Architect. He specializes in using Flex and Flash to create Rich Internet Applications.

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



3 Responses to “Dynamic Accordion Contents”

  1. Post to the cookbook too! http://www.adobe.com/go/flex_cookbook.

    Matt Chotin

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

    Phillip Kerman

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

    bob keleher

Leave a Reply