ActionScript.org Flash, Flex and ActionScript Resources - http://www.actionscript.org/resources
AccordionComponent for ActionScript 3.0
http://www.actionscript.org/resources/articles/988/1/AccordionComponent-for-ActionScript-30/Page1.html
Alan Gruskoff
Alan Gruskoff is the lead software designer at Digital Showcase LLC.
Developer of databased applications in Adobe Flex and Flash.
Pasadena, CA
626-768-2648

See the AccordianComponent for ActionScript 3.0 at  http://digitalshowcase.biz/wordpress/?p=200  
By Alan Gruskoff
Published on March 16, 2010
 

Dismayed that Flash CS4 does not include the lovely Accordion control that I like in Flex, I went searching for an equivalent.  I ran across a working demo by Ady Levy at http://adylevy.com.  Seeing that demo was close to what I wanted, I grabbed it, broke it down and rebuilt it for my own purposes.


Dismayed that Flash CS4 does not include the lovely Accordion control that I like in Flex, I went searching for an equivalent.  I ran across a working demo by Ady Levy at http://adylevy.com.  Seeing that demo was close to what I wanted, I grabbed it, broke it down and rebuilt it for my own purposes.

Mostly those purposes were to be able to build my own custom Sprite panels outside of the AccordionComponent.as Class, to add to an Accordion object. So that what the resulting AccordionExample Flash file now does.  Try the Example here: Accordion Component Example

This version is all ActionScript 3.0, with nothing in the AccordionExample.fla file, except a pointer to the AccordionExample.as file where the code is for building the panels. It uses Sprites in a Horizontal Accordion mode with a Gradient header for each Panel.

A source bundle AccordionComponent.zip contains all the files needed to demo and develop this in Flash.

Download  AccordionComponent.zip