Accordion component

The Accordion component is a navigator that contains a sequence of children that it displays one at a time. The children must be objects that inherit from the UIObject class (which includes all components); most often, children are a subclass of the View class. This includes movie clips assigned to the class mx.core.View. To maintain tabbing order in an accordion's children, the children must also be instances of the View class.

NOTE

 

The Accordion component is supported only if you are working in a document that specifies ActionScript 2.0 in its Publish Settings.

An accordion creates and manages header buttons that a user can click to navigate between the accordion's children. An accordion has a vertical layout with header buttons that span the width of the component. One header is associated with each child, and each header belongs to the accordion--not to the child. When a user clicks a header, the associated child is displayed below that header. The transition to the new child uses a transition animation.

An accordion with children accepts focus, and changes the appearance of its headers to display focus. When a user tabs into an accordion, the selected header displays the focus indicator. An accordion with no children does not accept focus. Clicking components that can take focus within the selected child gives them focus. When an Accordion instance has focus, you can use the following keys to control it:

Key

Description

Down Arrow, Right Arrow

Moves focus to the next child header. Focus cycles from last to first without changing the selected child.

Up Arrow, Left Arrow

Moves focus to the previous child header. Focus cycles from first to last without changing the selected child.

End

Selects the last child.

Enter/Space

Selects the child associated with the header that has focus.

Home

Selects the first child.

Page Down

Selects the next child. Selection cycles from the last child to the first child.

Page Up

Selects the previous child. Selection cycles from the first child to the last child.

Shift+

Moves focus to the previous component. This component may be inside the selected child, or outside the accordion; it is never another header in the same accordion.

 

Moves focus to the next component. This component may be inside the selected child, or outside the accordion; it is never another header in the same accordion.

The Accordion component cannot be made accessible to screen readers.


Flash CS3