Hi,

> var origArray:Array = new Array();
> var newArray:Array = new Array();
> 
> origArray = compArrayCollection.source;
> for each(var o:Object in origArray) {
>       o.newProperty = true;
>       newArray.push(o);
> }

No need for the push. All that does is duplicate the original object at the end 
of the array. All of the the objects in the array will have the new property 
without the push.

A for each is likely to be slower that traditional for i =0; i <length; i++ etc 
etc style loop for a large number of items, but try it in the profiler to see.

Thanks,
Justin

Reply via email to