我听说的ArrayCollection
Flex的,所以我怎么能在ActionScript 3.0和Flash IDE使用的ArrayCollection
类似的功能
I heard that ArrayCollection
on Flex, so how can I use ArrayCollection
like feature in ActionScript 3.0 and Flash IDE.
等效的Flash IDE类是 fl.data.DataProvider
。
The equivalent Flash IDE class is fl.data.DataProvider
.
的http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/data/DataProvider.html
DataProvider类提供一些方法和属性允许您查询和修改数据在任何基于列表的组件 - 例如,在一个List,DataGrid中,TileList或ComboBox组件
The DataProvider class provides methods and properties that allow you to query and modify the data in any list-based component--for example, in a List, DataGrid, TileList, or ComboBox component.
一个数据提供者是用作数据源的项目的线性集合 - 例如,一个数组。在数据提供者中的每一项是包含数据的一个或多个字段的对象或XML对象。您可以通过使用DataProvider.getItemAt()方法访问包含在由索引数据提供者的项目。
A data provider is a linear collection of items that serve as a data source--for example, an array. Each item in a data provider is an object or XML object that contains one or more fields of data. You can access the items that are contained in a data provider by index, by using the DataProvider.getItemAt() method.