Just an update, I know I can pass both into a function that does the
following:
checkForEquality( a:AC, b:AC ):Boolean {
if( a.length != b.length ) return false;
loop through each item
if an item differs, return false;
return true;
}
however, I was hoping for a solution with less overhead.
]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 17, 2008 1:13:48 PM
Subject: [flexcoders] Re: Comparing two array collections
Just an update, I know I can pass both into a function that does the
following:
checkForEquality( a:AC, b:AC ):Boolean {
if( a.length != b.length ) return false;
loop
Subject: Re: [flexcoders] Re: Comparing two array collections
Maybe somebody else will have one, but I am not seeing a simple way to
do this in a more sophisticated manner. This leads me to the following
question: Are you experiencing performance problems? If not, I would
suggest coding what works
I'd create a util class listens to CollectionChangeEvents from your
collection and keeps a list of what's added, a list of what's dirty, and a
list of what's removed. It'd probably take 2 hours to write and be a pretty
useful util class.
-Josh
On Fri, Jul 18, 2008 at 10:26 AM, Gordon Smith
4 matches
Mail list logo