# On button press increase number

**URL:** https://forum.kirupa.com/t/on-button-press-increase-number/294246
**Category:** Uncategorized
**Created:** [August 11, 2009, 12:14pm UTC](https://forum.kirupa.com/t/on-button-press-increase-number/294246 "2009-08-11T12:14:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Luks](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@Luks](https://forum.kirupa.com/u/Luks)
#### Post date: [August 11, 2009, 12:14pm UTC](https://forum.kirupa.com/t/on-button-press-increase-number/294246/1 "2009-08-11T12:14:39Z")

</div>

Hi,  
im fresh in action script and in new member on this forum. Please, if somebody can help me out with some basic as things. I work in AS2.

So i have 10 buttons. I need script which will increase the number for 1, (0/10) when pressed. When the same button is pressed twice, then i want not to raise the number.  
When all the buttons are pressed, (when the number reaches 10/10) i wish that animation play.

Pleeeease help
