How can I use ArrayCollection like feature in ActionScript 3.0 Flash IDE?

旧城冷巷雨未停 提交于 2019-11-30 20:13:39

问题


I heard that ArrayCollection on Flex, so how can I use ArrayCollection like feature in ActionScript 3.0 and Flash IDE.


回答1:


The equivalent Flash IDE class is fl.data.DataProvider.

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/data/DataProvider.html

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.

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.




回答2:


Unless I didnt get this question, try:

HTTPService and ArrayCollection in Flash CS4



来源:https://stackoverflow.com/questions/4215528/how-can-i-use-arraycollection-like-feature-in-actionscript-3-0-flash-ide

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!