Re: [flexcoders] Copying complex objects in ActionScript

2010-06-24 Thread Oleg Sivokon
I would rather implement a clone() function in the objects I want to clone (just like Event.clone() or XML.copy() or BitmapData.clone()). This gives you most control of what / how they are cloned with less side effects.

RE: [flexcoders] Copying complex objects in ActionScript

2010-06-24 Thread Gregor Kiddie
IIRC, all the objects in the graph that you are trying to clone need to have remote aliases if you want them to be created properly...

[flexcoders] Copying complex objects in ActionScript

2010-06-23 Thread atari_...@rogers.com
Hello, I'm trying to copy a custom object instead of simply copying a reference to the old one. I've tried ObjectUtil.copy() which works w/ plain objects, however I am dealing w/ complex objects that contain other custom objects, as well as ArrayCollections of custom objects (that contain objec