Re: [flexcoders] Deep Object Copy?

2010-02-17 Thread Nick Middleweek
Alex, I think that's exactly what I'm after... Great stuff! Cheers... I've found this link to back up your claim as well :) http://www.flexer.info/2007/10/25/deep-object-copy/ I'll give it a go and see what happens. Cheers, Nick On 16 February 2010 22:09, Alex Harui aha...@adobe.com wrote:

Re: [flexcoders] Deep Object Copy?

2010-02-16 Thread Nick Middleweek
Hi, I understand the problem with ByteArray is that the destination Object looses all knowledge of it's Value Object Classes... I need to keep all this information intact. Thanks, Nick On 15 February 2010 22:20, Guy Morton g...@alchemy.com.au wrote: You can use ByteArray to deep copy an

Re: [flexcoders] Deep Object Copy?

2010-02-16 Thread claudiu ursica
Write your own utility. Do something recursive it takes some time but it will fit your needs. C From: Nick Middleweek n...@middleweek.co.uk To: flexcoders@yahoogroups.com Sent: Tue, February 16, 2010 11:03:38 AM Subject: Re: [flexcoders] Deep Object Copy

Re: [flexcoders] Deep Object Copy?

2010-02-16 Thread Nick Middleweek
ok, cool... I guess that was the answer I didn't want :) Shame there's no generic solution. Thanks for your help. On 16 February 2010 10:16, claudiu ursica the_bran...@yahoo.com wrote: Write your own utility. Do something recursive it takes some time but it will fit your needs. C

Re: [flexcoders] Deep Object Copy?

2010-02-16 Thread Alex Harui
If you’ve registered your VO’s with [RemoteClass] or by calling registerClassAlias, then ByteArray or ObjectUtil.copy will do a deep copy. On 2/16/10 1:24 AM, Nick Middleweek n...@middleweek.co.uk wrote: ok, cool... I guess that was the answer I didn't want :) Shame there's no generic

[flexcoders] Deep Object Copy?

2010-02-15 Thread Nick Middleweek
Hi, Are there any working utilities/code out there that can help me with a deep object copy? I have an Object that is about 4-5 levels deep and some of the elements are ArrayCollections of CustomObjects that have nested Objects. Basically it's quite complex! :-) My understanding is that

Re: [flexcoders] Deep Object Copy?

2010-02-15 Thread Guy Morton
You can use ByteArray to deep copy an object. Can't recall off the top of my head the code but I'm sure you could find it via the Google. :-) On 16/02/2010, at 8:00 AM, Nick Middleweek wrote: Hi, Are there any working utilities/code out there that can help me with a deep object copy? I