Accordion.createChild()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
accordionInstance.createChild(classOrSymbolName, instanceName[,
initialProperties])
Parameters
classOrSymbolName
instantiated, or the linkage name (a reference to the symbol to be instantiated). The class must
be UIObject or a subclass of UIObject, but most often it is View object or a subclass of View.
The instance name of the new instance.
instanceName
initialProperties
instance. You can use the following properties:
A string that specifies the text label that the new child instance uses on its header.
label
A string that specifies the linkage identifier of the library symbol that the child
icon
uses for the icon on its header.
Returns
A reference to an instance of the UIObject that is the newly created child.
Description
Method (inherited from View); creates a child for the accordion. The newly created child is
added to the end of the list of children owned by the accordion. Use this method to place
views inside the accordion. The created child is an instance of the class or movie clip symbol
specified in the
classOrSymbolName
to specify a text label and an icon for the associated accordion header for each child in the
initialProperties
When each child is created, it is assigned an index number in the order of creation and the
property is increased by 1.
numChildren
Either the constructor function for the class of the UIObject to be
An optional parameter that specifies initial properties for the new
parameter. You can use the
parameter.
and
properties
label
icon
Accordion.createChild()
53
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers