RE: [Flashcoders] Duplicating an object without pointing to original one

2006-01-10 Thread zwetan
Hi, How do you duplicate an object {bool:true, val:5} in another variable without pointing to the original one, and without having to create a constructor. In Director, there's a duplicate() method in Lingo. Is there an equivalent way to do this in Flash? Something like this, but which

Re: [Flashcoders] Duplicating an object without pointing to original one

2006-01-10 Thread Rajat Paharia
I use this function (think I got it from Darron Schall's blog) to do a deep copy. I had the same experience as Jesse with mx.utils.ObjectCopy not working correctly... // -- // copy an object function copyObject(obj) { // create a new object or

[Flashcoders] Duplicating an object without pointing to original one

2006-01-09 Thread Mendelsohn, Michael
Hi list... How do you duplicate an object {bool:true, val:5} in another variable without pointing to the original one, and without having to create a constructor. In Director, there's a duplicate() method in Lingo. Is there an equivalent way to do this in Flash? Something like this, but which

Re: [Flashcoders] Duplicating an object without pointing to original one

2006-01-09 Thread JesterXL
(); o.label = label; o.data = data; return o; } } - Original Message - From: Mendelsohn, Michael [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, January 09, 2006 12:05 PM Subject: [Flashcoders] Duplicating an object without

Re: [Flashcoders] Duplicating an object without pointing to original one

2006-01-09 Thread Mark Walters
PM Subject: [Flashcoders] Duplicating an object without pointing to original one Hi list... How do you duplicate an object {bool:true, val:5} in another variable without pointing to the original one, and without having to create a constructor. In Director, there's a duplicate() method