我如何使用的ArrayCollection像在ActionScript 3.0的Flash IDE的功能? [英] How can I use ArrayCollection like feature in ActionScript 3.0 Flash IDE?

查看:226
本文介绍了我如何使用的ArrayCollection像在ActionScript 3.0的Flash IDE的功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听说的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.

这篇关于我如何使用的ArrayCollection像在ActionScript 3.0的Flash IDE的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆