Re: Re: [Flashcoders] ObjectCopy wackiness

2006-10-13 Thread nelson ramirez
It's really of odd. look at the weird thing that happens with the trace: check this out: var A:Object = new Object({banner:0, templateType:sub, dated:false, cHome:true}); //A.test = TEST A; var B:Object = new Object(); B.test = mx.utils.ObjectCopy.copy(A); //B.test = TESTB; trace( A object :+A);

Re: Re: [Flashcoders] ObjectCopy wackiness

2006-10-13 Thread Jim Kremens
Hey, Darron Schall solved this a while back. If you replace the first line in ObjectCopy.copy() with this: var result:Object = new (Function(refObj.__proto__.constructor))(); it should work. Jim Kremens On 10/13/06, nelson ramirez [EMAIL PROTECTED] wrote: It's really of odd. look at the