User Guide

Creating the ActionScript class file 157
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 attribute. A collection property contains a series of collection items that you
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 attribute.
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;