# Deep copying Arrays with Class association?

**URL:** <https://forum.kirupa.com/t/deep-copying-arrays-with-class-association/255672>\
**Category:** flash\
**Created:** [March 25, 2008, 9:12pm UTC](https://forum.kirupa.com/t/deep-copying-arrays-with-class-association/255672 "2008-03-25T21:12:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stickeroo](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@Stickeroo](https://forum.kirupa.com/u/Stickeroo)\
**Post date:** [March 25, 2008, 9:12pm UTC](https://forum.kirupa.com/t/deep-copying-arrays-with-class-association/255672/1 "2008-03-25T21:12:56Z")

</div>

I have no idea what that (the thread title) means.

I’m trying to duplicate an array that contains a bunch of custom class instances. I’ve tried using the “cloning arrays” example from the Flash CS3 help (which is the same as Senocular’s [with a few variable name changes]), but I’m told that Flash can’t convert the Object@3a6ab51 to flash.display.DisplayObject.

☹

Does anyone know how to keep the recreated array Class-aware or associated or whatever? I’m pulling my hair out here! Thanks for any advice.

Fake edit: I did search for this topic earlier, and while I found a couple of functions that may or may not work, it seemed like overkill for what should be a relatively simple procedure, but I’ll give those other classes a look…
