数组和ArrayCollection的(Flex的)之间的区别数组、区别、ArrayCollection、Flex

2023-09-08 11:30:36 作者:淡淡的优雅

什么是数组和ArrayCollection的区别呢?

What's the difference between array and arraycollection?

推荐答案

首先,ArrayCollection的是专为Flex框架。它就像一个代理对于给定的阵列实例。这意味着它可以监听到源阵列进行修改和更新自我,当这种情况发生。它也包含了框架特别需要其他方法的一个子集(看看在的IList 实现实例)。

First, the ArrayCollection is designed for the Flex framework. It acts like a Proxy for a given Array instance. This means it can listen for modifications made to the source Array and update it self when this happens. It also contains a subset of additional methods required specifically by the framework (have a look at the IList implementation for instance).