Imagine I have an object called “image”, now I want to create multiply copies of this image to display it multiple times and with different properties. When I do image2 = image;, only the reference is copied and I thus still change the properties of the first object.
So, how to return a copy of an object instead of a reference in actionscript 3?
For a more generic solution, take a look at this:
http://www.kirupa.com/forum/showpost.php?p=1897368&postcount;=77