# How Do I Make Lotto Scratch Game?

**URL:** <https://forum.kirupa.com/t/how-do-i-make-lotto-scratch-game/7830>\
**Category:** Uncategorized\
**Created:** [November 8, 2002, 4:17pm UTC](https://forum.kirupa.com/t/how-do-i-make-lotto-scratch-game/7830 "2002-11-08T16:17:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeromey73](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jeromey73](https://forum.kirupa.com/u/jeromey73)\
**Post date:** [November 8, 2002, 4:17pm UTC](https://forum.kirupa.com/t/how-do-i-make-lotto-scratch-game/7830/1 "2002-11-08T16:17:37Z")

</div>

actionscripting is difficult with this!

---

<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:** [November 8, 2002, 6:27pm UTC](https://forum.kirupa.com/t/how-do-i-make-lotto-scratch-game/7830/2 "2002-11-08T18:27:17Z")

</div>

i guess you make a card with say 9 boxes and have an array of objects, get the 9 boxes to randomly pick an object from the array.

Then you need to mask the nine boxes with a mask layer, then some actionscript so when mouse press some of the mask disappears under the mouse???

Something like that i guess

---

<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:** [November 8, 2002, 8:11pm UTC](https://forum.kirupa.com/t/how-do-i-make-lotto-scratch-game/7830/3 "2002-11-08T20:11:20Z")

</div>

well… say if you have 3 object which are the same ( that means you’ve won) how do i scrip that? en how do I add/embed a trigger event?? Say like ‘go to next frame if…’

---

<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:** [November 8, 2002, 11:48pm UTC](https://forum.kirupa.com/t/how-do-i-make-lotto-scratch-game/7830/4 "2002-11-08T23:48:34Z")

</div>

9 boxes can have values assigned through a seperate array

ie

objects are[apple,pear,banana,donut,cup]  
scratchcard array[apple,apple,pear,pear,banana,banana,donut,donut,donut]

you just add up the occurrences of each one in the box array so donut=3 in this case and youve won

and u use

if(donut==3)  
{  
myMovieClip.nextFrame();  
}

or myMovieClip.gotoAndPlay(framenumber);  
or myMovieClip.gotoAndStop(framenumber);

---

<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:** [November 9, 2002, 2:59am UTC](https://forum.kirupa.com/t/how-do-i-make-lotto-scratch-game/7830/5 "2002-11-09T02:59:09Z")

</div>

not entirely clear on your code there, Dravos.

---

<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:** [November 9, 2002, 3:23am UTC](https://forum.kirupa.com/t/how-do-i-make-lotto-scratch-game/7830/6 "2002-11-09T03:23:20Z")

</div>

well its not code more pseudo code, i was just explaining briefly
