Re: [flexcoders] How to create copy of a object

2005-06-26 Thread Pradeep Chaudhary
Thanks for the support. The solution works great. But i would like to know meaning of statement new source.__constructor__(); Also if you guys can give some links to documents which provide information about the inner details of Flex or Actionscript, like keywords and logic used in given solution.

RE: [flexcoders] How to create copy of a object

2005-06-22 Thread Abdul Qabiz
http://manish.revise.org/2005/04/deepcopying-actionscript-objects.html http://www.darronschall.com/weblog/archives/000148.cfm -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pradeep Chaudhary Sent: Wednesday, June 22, 2005 7:33 PM

Re: [flexcoders] How to create copy of a object

2005-06-22 Thread Joe Berkovitz
A couple of big caveats here. 1. mx.utils.ObjectCopy is broken. (At least, in the Flex 1.5 distribution.) It does not correctly preserve the class of an object when that class is a subclass of some superclass. Instead, the copied object will appear to have the type of the superclass. I

Re: [flexcoders] How to create copy of a object

2005-06-22 Thread James Ward
Joe, Your timing on this was impeccable! I just spent the past hour wrestling with ObjectCopy (both Manish's and the mx.utils one that doesn't work). So here is Manish's ObjectCopy with Joe's hack to preserve type: public static function copy(source):Object { var cl:Number =