MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 105

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Accordion class (Flash Professional only)
Inheritance
MovieClip >
ActionScript Class Name
An Accordion component contains children that are displayed one at a time. Each child has a
corresponding header button that is created when the child is created. A child must be an instance
of UIObject.
A movie clip symbol automatically becomes an instance of the UIObject class when it becomes a
child of an accordion. However, to maintain tabbing order in an accordion's children, the children
must also be instances of the View class. If you use a movie clip symbol as a child, set its AS 2.0
Class field to mx.core.View so that it inherits from the View class.
Setting a property of the Accordion class with ActionScript overrides the parameter of the same
name set in the Property inspector or Component inspector.
Each component class has a
available only on the class itself. The
of the component. To access this property, use the following code:
trace(mx.containers.Accordion.version);
Note: The code
trace(myAccordionInstance.version);
Method summary for the Accordion class
The following table lists methods of the Accordion class.
Method
Accordion.createChild()
Accordion.createSegment()
Accordion.destroyChildAt()
Accordion.getChildAt()
Methods inherited from the UIObject class
The following table lists the methods the Accordion class inherits from the UIObject class. When
calling these methods from the Accordion object, use the form
accordionInstance.methodName
Method
UIObject.createClassObject()
UIObject.createObject()
UIObject.destroyObject()
UIObject.doLater()
UIObject class
>
UIComponent class
mx.containers.Accordion
property that is a class property. Class properties are
version
property returns a string that indicates the version
version
Description
Creates a child for an Accordion instance.
Creates a child for an Accordion instance. The parameters for this
method are different from those of the
Destroys a child at a specified index position.
Gets a reference to a child at a specified index position.
.
Description
Creates an object on the specified class.
Creates a subobject on an object.
Destroys a component instance.
Calls a function when parameters have been set in the Property and
Component inspectors.
Accordion component (Flash Professional only)
> View > Accordion
returns
.
undefined
createChild()
method.
105

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents