ObjectCopy class
ObjectCopy class is a static class that includes a static method copy, I found http://livedocs.macromedia.com its interpretation: Static class with methods for performing copies of in memory objects including nested property arrays This class is. FOR INTERNAL USE. Its function is to copy objects in memory, recreate an object instance in memory, not just references. Here you can see an example: var obj = new object (); obj.date = new date (); obj.data = [42, "foo", {nested: "leefj"}]; // Depth copy var Objcopy : Object = mx.UTILS.ObjectCopy.copy; trace (obj == Objcopy); Trace ("Test:" Objcopy.Data [2] .NESTED);
Output: false test: Leefj Analysis: False Description Obj and Objcopy do not reference the same object instance.
Then, you can also have interest to pay attention to the implementation of the following ObjectCopy class, I have received code with STD 2005, but the results of the test in Flash don't seem to be much more ideal, in all, it is necessary to use the decree