MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 942

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

Advertisement

About the Collection tag
Use the Collection tag to describe an array of objects that can be modified as a collection of items
in the Values dialog box while authoring. The type of the objects is identified by the
collectionItem
define in a separate class. This class is either mx.utils.CollectionImpl or a subclass of it. The
individual objects are accessed through the methods of the class identified by the
collectionClass
A collection property in the Component inspector and the Values dialog box that appears when you click
the magnifying glass.
The syntax for the Collection tag is as follows:
[Collection (name="name", variable="varname",
collectionClass="mx.utils.CollectionImpl",
collectionItem="coll-item-classname", identifier="string")]
public var varname:mx.utils.Collection;
The following table describes the attributes of the Collection tag:
Attribute
name
variable
collectionClass
942
Chapter 7: Creating Components
attribute. A collection property contains a series of collection items that you
attribute.
Type
Description
String
(Required) Name that appears in the Component inspector for the
collection.
String
(Required) ActionScript variable that points to the underlying Collection
object (for example, you might name a
but the underlying
String
(Required) Specifies the class type to be instantiated for the collection
property. This is usually
class that extends
Collection
attribute might be __columns).
variable
mx.utils.CollectionImpl
mx.utils.CollectionImpl
parameter Columns,
, but it can also be a
.

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