Cloning objects

In ActionScript we cannot pass objects by value. It always passes objects by reference. If you need to create a perfect copy of an object you can make use of the following code. I have modified Flash Guru’s clone with support for Array Objects [UPDATE] included...