Flash CS4 Professional ActionScript 2.0

Accessing collection information programmatically

Flash provides programmatic access to collection data through the Collection and Iterator interfaces. The Collection interface lets you add, modify, and remove items in a collection. The Iterator interface allows you to loop through the items in a collection.

There are two scenarios in which to use the Collection and Iterator interfaces:

Advanced developers can also create, populate, access, and delete collections programmatically; for more information, see Collection interface in ActionScript 2.0 Components Language Reference.