# Shuffle card game

**URL:** <https://forum.kirupa.com/t/shuffle-card-game/65695>\
**Category:** Uncategorized\
**Created:** [September 28, 2004, 8:47pm UTC](https://forum.kirupa.com/t/shuffle-card-game/65695 "2004-09-28T20:47:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evelyne1976](https://avatars.discourse-cdn.com/v4/letter/e/51bf81/32.png) [@Evelyne1976](https://forum.kirupa.com/u/Evelyne1976)\
**Post date:** [September 28, 2004, 8:47pm UTC](https://forum.kirupa.com/t/shuffle-card-game/65695/1 "2004-09-28T20:47:41Z")

</div>

Hi all! I am posting an .fla of what I am trying to do, perhaps someone can help me figure it out.

I am creating a card game, and at the end of the game if the player wants to replay the game, I want my

cards to shuffle. What I have managed so far in this demo file, is when the game starts the movie clips

are placed in certain positions on the stage, and when you press the button instead of shuffeling…all

movie clips are placed behind the other and they all move along. What I want instead is on each mouse

press, the cards to swap places and only one movie clip per place! Appreciate anyone’s wisdom!

P.s. I HAVE flash Mx…NOT…flash MX 2004.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 28, 2004, 8:53pm UTC](https://forum.kirupa.com/t/shuffle-card-game/65695/2 "2004-09-28T20:53:52Z")

</div>

Sounds like a job for arrays to me.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 28, 2004, 8:55pm UTC](https://forum.kirupa.com/t/shuffle-card-game/65695/3 "2004-09-28T20:55:57Z")

</div>

> [@Evelyne1976](#):
>
> Hi all! I am posting an .fla of what I am trying to do, perhaps someone can help me figure it out.
> 
> I am creating a card game, and at the end of the game if the player wants to replay the game, I want my
> 
> cards to shuffle. What I have managed so far in this demo file, is when the game starts the movie clips
> 
> are placed in certain positions on the stage, and when you press the button instead of shuffeling…all
> 
> movie clips are placed behind the other and they all move along. What I want instead is on each mouse
> 
> press, the cards to swap places and only one movie clip per place! Appreciate anyone’s wisdom!
> 
> P.s. I HAVE flash Mx…NOT…flash MX 2004.

I made this for something else but i think it basically does what you are looking for.  
Puts all the \_x,\_y values into an array, shuffles the array and then tweens to the new array values.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 28, 2004, 8:57pm UTC](https://forum.kirupa.com/t/shuffle-card-game/65695/4 "2004-09-28T20:57:38Z")

</div>

bingo
