to dig up an old horse, the main advantage I can see is that arrayList supports disableEvents and enableEvents, which in theory should be availible via the fact that ArrayCollection extends ListCollectionView which has a getter called get list():ArrayList on which in theory i would want to say disable events, but somehow the compiler and me disagree on this, since I cannot get to that ArrayList via my arrayCollection.
Why? On Fri, Mar 7, 2008 at 2:14 AM, Alex Harui <aha...@adobe.com> wrote: > ArrayList exists and is written in AS. ArrayList is the underlying > IList implementation that wraps Arrays and is used internally by > ArrayCollection. There are relatively few advantages to going straight to > an ArrayList. If you pass one into a list class it will just wrap it in an > ArrayCollection anyway. > > > ------------------------------ > > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On > Behalf Of *DannyT > *Sent:* Thursday, March 06, 2008 4:08 PM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] ArrayList Vs ArrayCollection > > > > var myList:ArrayList = new ArrayList(); // doesn't throw any error > > var myList:ArrayList = new ArrayCollection(); > gives the following error: > Implicit coercion of a value of type mx.collections:ArrayCollection to an > unrelated type mx.collections:ArrayList. > > It was my confusion with c# that caused me to write that int eh first place > when I noticed the error. I've googled and seen it mentioned in code > snippets but coudln't find much. > > > > On 06/03/2008, *Paul Andrews* <p...@ipauland.com> wrote: > > If you search in help, it's only mentioned as a C# class and does not > appear to exist in the mx.collections package. > > > > Where have you seen it? > > > > Paul > > ----- Original Message ----- > > *From:* DannyT <danmo...@googlemail.com> > > *To:* flexcoders@yahoogroups.com > > *Sent:* Thursday, March 06, 2008 11:29 PM > > *Subject:* [flexcoders] ArrayList Vs ArrayCollection > > > > Can anyone point out the difference between ArrayList and ArrayCollection? > > ArrayList seems to be in the mx.collections package but I can't find any > documentation on it. > > Dan > > -- > http://danny-t.co.uk > > > > > -- > http://danny-t.co.uk > > -- j:pn \\no comment