ListCollectionVIew has a disableAutoUpdate() method. You can probably also trap and block CollectionChangeEvents.
Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui From: [email protected] [mailto:[email protected]] On Behalf Of Johannes Nel Sent: Tuesday, November 10, 2009 4:09 AM To: [email protected] Subject: Re: [flexcoders] ArrayList Vs ArrayCollection retraction, disable events is private. mourn. On Tue, Nov 10, 2009 at 12:41 PM, Johannes Nel <[email protected]<mailto:[email protected]>> wrote: 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 <[email protected]<mailto:[email protected]>> 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: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of DannyT Sent: Thursday, March 06, 2008 4:08 PM To: [email protected]<mailto:[email protected]> 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 <[email protected]<mailto:[email protected]>> 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<mailto:[email protected]> To: [email protected]<mailto:[email protected]> 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 -- j:pn \\no comment

