cardType_label.text = "Card Type";
cardNumber_label.text = "Card Number";
Accordion.createSegment()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
accordionInstance.createSegment(classOrSymbolName, instanceName[, label[,
icon]])
Parameters
Either a reference to the constructor function for the class of the
classOrSymbolName
UIObject to be instantiated, or the linkage name of the symbol to be instantiated. The class
must be UIObject or a subclass of UIObject, but most often it is View or a subclass of View.
The instance name of the new instance.
instanceName
A string that specifies the text label that the new child instance uses on its header.
label
This parameter is optional.
A string reference to the linkage identifier of the library symbol that the child uses for
icon
the icon on its header. This parameter is optional.
Returns
A reference to the newly created UIObject instance.
Description
Method; 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
parameter. You can use the
and
parameters to specify a text
classOrSymbolName
label
icon
label and an icon for the associated accordion header for each child.
The
method differs from the
method in that
and
createSegment()
createChild()
label
are passed directly as parameters, not as properties of an
parameter.
icon
initalProperties
When each child is created, it is assigned an index number in the order of creation, and the
property is increased by 1.
numChildren
Accordion.createSegment()
55
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers