Appendix: Collection Properties - MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual

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

Advertisement

This appendix explains how to create a collection property in a component.
The Collection class is a helper class used to manage a group of zero or more related objects,
called collection items. If you define a property of your component as a collection and make it
available to users through the Component inspector, they can add, delete, and modify collection
items in the Values dialog box while authoring.
You define collections and collection items as follows:
Define a collection property using the Collection metadata tag in a component's ActionScript
file. For more information, see
Define a collection item as a class in a separate ActionScript file that contains its own
inspectable properties.
Collections make it easier for you to manage groups of related items programmatically. (In
previous versions of Flash, component authors managed groups of related items through multiple
programmatically synchronized arrays).
In addition to the Values dialog box, Flash provides the Collection and Iterator interfaces to
manage Collection instances and values programmatically. See
Professional only)" on page 169
"About the Collection tag" on page
and
"Iterator interface (Flash Professional only)" on page
APPENDIX
Collection Properties
942.
"Collection interface (Flash
441.
959

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?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents