Accordion.getchildat() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
The following code destroys the first child of
import mx.core.View;
// Create child panels with instances of the View class.
my_acc.createSegment(View, "myMainItem1", "Menu Item 1");
my_acc.createSegment(View, "myMainItem2", "Menu Item 2");
my_acc.createSegment(View, "myMainItem3", "Menu Item 3");
// Create new Listener object.
my_accListener = new Object();
my_accListener.change = function() {
if ("myMainItem3"){
my_acc.destroyChildAt(0);
}
};
my_acc.addEventListener("change", my_accListener);
See also
Accordion.createChild()

Accordion.getChildAt()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
accordionInstance.getChildAt(index)
Parameters
The index number of an accordion child. Each child of an accordion is assigned a
index
zero-based index in the order in which it was created.
Returns
A reference to the instance of the UIObject at the specified index.
58
Accordion component (Flash Professional only)
when the third child is selected:
my_acc

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents