[flexcoders] Re: Copy an Array collection in AS

2008-01-24 Thread jovialrandor
does the ac1.source.concat represent object property of 'source'? --- In flexcoders@yahoogroups.com, "ezderman" <[EMAIL PROTECTED]> wrote: > > almost. this works for a simple ArrayCollection. It didnt work for > more complex ones > > > > # var ac1:ArrayCollection = new ArrayCollection( [1, 2,

[flexcoders] Re: Copy an Array collection in AS

2008-01-14 Thread ezderman
almost. this works for a simple ArrayCollection. It didnt work for more complex ones > > # var ac1:ArrayCollection = new ArrayCollection( [1, 2, 3, 4] ); > # var ac2:ArrayCollection = new ArrayCollection( ac1.source.concat () ); --- In flexcoders@yahoogroups.com, "Aaron Miller" <[EMAIL PRO

[flexcoders] Re: Copy an Array collection in AS

2008-01-14 Thread jovialrandor
Aaron, I do not want to just copy one arraycollection to another. I want to copy a certain object property of the arraycollection to a new arraycollection. eg. arraycoll1: [0] = [1] = arraycoll2 (copy only 'source'): [0] = [1] = --- In flexcoders@yahoogroups.com, "Aaron Miller" <[EMAI

Re: [flexcoders] Re: Copy an Array collection in AS

2008-01-14 Thread Aaron Miller
That method you linked to in your blog seems a little bulky. Duplicated here: # private function copyArrayCollection(src1:ArrayCollection, # src2:ArrayCollection):ArrayCollection{ # var dest:ArrayCollection = new ArrayCollection(); # if(src1 != null && src1.length > 0){ # for(var i:int = 0; i wro

[flexcoders] Re: Copy an Array collection in AS

2008-01-14 Thread ezderman
http://flexed.wordpress.com/2006/12/21/copy-2-arraycollections/ --- In flexcoders@yahoogroups.com, "jovialrandor" <[EMAIL PROTECTED]> wrote: > > I want to copy a certain property (companyInfo2.RELATED_ASSET_ID) of > one arraycollection to another arraycollection (asset_id). > > how do I go ab