[flexcoders] Re: How to deep copy an ArrayCollection?

2008-02-04 Thread Stephen Allison
In my application I am using ArrayCollections to store data for series on a line chart. I need to be able to make a deep copy of these ArrayCollections so that I can make changes to the data in the copies without affecting the original data. IIRC you can write the whole lot into a ByteArray,

[flexcoders] Re: How to deep copy an ArrayCollection?

2008-02-04 Thread Stephen Allison
this will work for just one level of depth. i mean, if your item has a reference to another object in the model, you will just clone the item not the object so you will have two items referencing the same object. Are you sure? The following works for me: --- // set up a data structure

Re: [flexcoders] Re: How to deep copy an ArrayCollection?

2008-02-04 Thread yigit
this will work for just one level of depth. i mean, if your item has a reference to another object in the model, you will just clone the item not the object so you will have two items referencing the same object. i had this issue and developed a system for this. All my object can be serialized

Re: [flexcoders] Re: How to deep copy an ArrayCollection?

2008-02-04 Thread Sherif Abdou
use the ObjectUtil Class instead - Original Message From: yigit [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, February 4, 2008 6:03:21 AM Subject: Re: [flexcoders] Re: How to deep copy an ArrayCollection? this will work for just one level of depth. i mean, if your item