# Adding points on click

**URL:** https://forum.kirupa.com/t/adding-points-on-click/285386
**Category:** flash
**Created:** [March 31, 2009, 8:13am UTC](https://forum.kirupa.com/t/adding-points-on-click/285386 "2009-03-31T08:13:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RebeccaLessay](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@RebeccaLessay](https://forum.kirupa.com/u/RebeccaLessay)
#### Post date: [March 31, 2009, 8:13am UTC](https://forum.kirupa.com/t/adding-points-on-click/285386/1 "2009-03-31T08:13:36Z")

</div>

Another beginner on AS3,

Recently started with a school project where I volunteered to do the scripting of (supposed to be) a simple game.  
The game: Animals make noises, by clicking on the right animal (associated with the noise such as a bark)you can make them stop. You need to get 8 animals right in 10 seconds (for sample). If you get that right a “win” animation starts, if you don’t a “lose” animation starts.

My problems:

-Randomizing sounds within a set time limit.  
-Click the right object a that time to get a point.

I searched the internet but in most cases I need to combine several scripts which has ended up wrong.
