# Desperately need help with this project!

**URL:** <https://forum.kirupa.com/t/desperately-need-help-with-this-project/4445>\
**Category:** Uncategorized\
**Created:** [August 9, 2002, 5:56pm UTC](https://forum.kirupa.com/t/desperately-need-help-with-this-project/4445 "2002-08-09T17:56:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![starshipgirl](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@starshipgirl](https://forum.kirupa.com/u/starshipgirl)\
**Post date:** [August 9, 2002, 5:56pm UTC](https://forum.kirupa.com/t/desperately-need-help-with-this-project/4445/1 "2002-08-09T17:56:02Z")

</div>

Hi Everyone,

I’m new to this list, btw.

I have this Memory Game (Matching Pairs Game) that I created  
(actually re-created). Inside this file consists of 8 different sets  
of “card graphics” movie clips.

My main concern is trying to get the “Start New Game” button to  
choose a random set of those card movie clips. It keeps selecting the  
first set.

Here’s a link to that file in case, we’re not on the same page ^^;;.  
Just check out the link at:  
[http://home.earthlink.net/~mylenejenius/flash\_stuff/](http://home.earthlink.net/~mylenejenius/flash_stuff/)

And inside the Library under the “Card Clipart” folder, you’ll notice  
all my “Card Graphics” Movie files that should be played randomly one  
at a time. \>\_\<

HOw do I load them randomly???

Thanks,  
MJ

---

<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:** [August 9, 2002, 6:16pm UTC](https://forum.kirupa.com/t/desperately-need-help-with-this-project/4445/2 "2002-08-09T18:16:48Z")

</div>

Ok, try using this code:  
anyNum = Math.round(Math.random() \* 3)  
\_root.attachThis.attachMovie(“first” + anyNum, “second”, anyNum);  
trace(anyNum);

basically what you have to do is name your movieclips in the linkage menu and make sure that they start with “first” and are directly followed by a number like first4 or first1, etc. Then I just created a empty movieclip called attachThis and load the randomly selected movieclip into it.

Hope this helps.

Kyle  
🙂

---

<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:** [August 9, 2002, 6:28pm UTC](https://forum.kirupa.com/t/desperately-need-help-with-this-project/4445/3 "2002-08-09T18:28:28Z")

</div>

Oh, thank you ^^. I’ll give it a try.

MJ

---

<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:** [August 9, 2002, 6:54pm UTC](https://forum.kirupa.com/t/desperately-need-help-with-this-project/4445/4 "2002-08-09T18:54:55Z")

</div>

How do you display a text message every time a pair of cards are matched in the game? The text should be applied to each pair that’s matched but again I’m baffled.

Thanks,  
MJ
