User Guide

42 Accordion component (Flash Professional only)
So, for example, the following code sets the style appearance of the font within an accordion
instance named my_acc to italic:
my_acc.setStyle("fontStyle", "italic");
If the name of a style property ends in “Color”, it is a color style property and behaves
differently than noncolor style properties. For more information, see “Using styles to
customize component color and text” in Using Components.
Using skins with the Accordion component
The Accordion component uses skins to represent the visual states of its header buttons. To
skin the buttons and title bar while authoring, modify skin symbols in the Flash UI
Components 2/Themes/MMDefault/Accordion Assets skins states folder in the library of one
of the themes’ FLA files. For more information, see “About skinning components” in Using
Components.
An Accordion component is composed of its border, background, header buttons, and
children. The border and background are provided by the RectBorder class by default. For
information on skinning the RectBorder class, see “RectBorder class” on page 1063. You can
skin the headers with the skins listed below.
textDecoration
Both The text decoration; either "none" or "underline".
openDuration
Both The duration, in milliseconds, of the transition animation.
openEasing
Both A reference to a tweening function that controls the
animation. Defaults to sine in/out. For more information, see
“Customizing component animations” in Using Components.
Property Description Default value
falseUpSkin
The up (normal) state of the header above all
collapsed children.
accordionHeaderSkin
falseDownSkin
The pressed state of the header above all
collapsed children.
accordionHeaderSkin
falseOverSkin
The rolled-over state of the header above all
collapsed children.
accordionHeaderSkin
falseDisabled
The disabled state of the header above all
collapsed children.
accordionHeaderSkin
trueUpSkin
The up (normal) state of the header above the
expanded child.
accordionHeaderSkin
Style Theme Description