# Building a card game

**URL:** <https://forum.kirupa.com/t/building-a-card-game/182297>\
**Category:** Uncategorized\
**Created:** [March 16, 2006, 11:52pm UTC](https://forum.kirupa.com/t/building-a-card-game/182297 "2006-03-16T23:52:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lemmy](https://avatars.discourse-cdn.com/v4/letter/l/f19dbf/32.png) [@Lemmy](https://forum.kirupa.com/u/Lemmy)\
**Post date:** [March 16, 2006, 11:52pm UTC](https://forum.kirupa.com/t/building-a-card-game/182297/1 "2006-03-16T23:52:30Z")

</div>

hi.  
I’ve been trying to move array elements from one array to another using the push method. The problem is that the element pushed should any longer be on the first array where it was taken from. That’s where i’m stuck…

Unfortunately, i cannot upload the fla cause it exceeds the limit so here’s the code. The array elements correspond to MCs in the library. Mayber it’s the wrong way to do this…hmm, you can grab the fla [here](http://geocities.com/lemmyz1/array_deck.zip)

---

<div class="post-metadata">

**Author:** ![bombsledder](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bombsledder](https://forum.kirupa.com/u/bombsledder)\
**Post date:** [March 18, 2006, 11:41pm UTC](https://forum.kirupa.com/t/building-a-card-game/182297/2 "2006-03-18T23:41:07Z")

</div>

or better yet you could say like this

myarray1  
myarray2

myarray2.push(myarray1.slice(3))

---

<div class="post-metadata">

**Author:** ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)\
**Post date:** [March 19, 2006, 1:33am UTC](https://forum.kirupa.com/t/building-a-card-game/182297/3 "2006-03-19T01:33:03Z")

</div>

Already answered this here:  
[http://www.kirupa.com/forum/showthread.php?t=212515](http://www.kirupa.com/forum/showthread.php?t=212515)

:p:

---

<div class="post-metadata">

**Author:** ![Joppe](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Joppe](https://forum.kirupa.com/u/Joppe)\
**Post date:** [March 19, 2006, 10:16am UTC](https://forum.kirupa.com/t/building-a-card-game/182297/4 "2006-03-19T10:16:52Z")

</div>

Your footer is too big.
