# movieClips stored in Arrays

**URL:** <https://forum.kirupa.com/t/movieclips-stored-in-arrays/227108>\
**Category:** flash\
**Created:** [May 27, 2007, 4:10am UTC](https://forum.kirupa.com/t/movieclips-stored-in-arrays/227108 "2007-05-27T04:10:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [May 27, 2007, 4:10am UTC](https://forum.kirupa.com/t/movieclips-stored-in-arrays/227108/1 "2007-05-27T04:10:46Z")

</div>

i have 2 arrays - displayArray and shoppingCartArray. into the displayArray i push movieClips created using duplicateMovieClip in a for loop. so far so good. so from then on i can reference the mcs using an index of the displayArray, which is great.

ok now if the user adds one of the movie clips to their shopping cart, i splice the displayArray and push the result into the shoppingCartArray.

still good - but heres the problem - the movie clips are all created within the display movie clip, and once theyre added to the cart, i need them to be ‘moved’ into the shoppingCart movie clip. at first i tried removeMovieClip but that meant that the shoppingCartArray contained a broken movie clip…

so how can i keep the movie clip in question, but transfer it into another parent movie clip?
