User Guide
Accordion.destroyChildAt() 57
Accordion.destroyChildAt()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
accordionInstance.destroyChildAt(index)
Parameters
index The index number of the accordion child to destroy. Each child of an accordion is
assigned a zero-based index number in the order in which it was created.
Returns
Nothing.
Description
Method (inherited from View); destroys one of the accordion’s children. The child to be
destroyed is specified by its index, which is passed to the method in the
index parameter.
Calling this method destroys the corresponding header as well.
If the destroyed child is selected, a new selected child is chosen. If there is a next child, it is
selected. If there is no next child, the previous child is selected. If there is no previous child,
the selection is undefined.
NOTE
Calling destroyChildAt() decreases the numChildren property by 1.