# Counters for buttons

**URL:** https://forum.kirupa.com/t/counters-for-buttons/65012
**Category:** flash
**Created:** [September 22, 2004, 7:22am UTC](https://forum.kirupa.com/t/counters-for-buttons/65012 "2004-09-22T07:22:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cruizectrl](https://avatars.discourse-cdn.com/v4/letter/c/2bfe46/32.png) [@cruizectrl](https://forum.kirupa.com/u/cruizectrl)
#### Post date: [September 22, 2004, 7:22am UTC](https://forum.kirupa.com/t/counters-for-buttons/65012/1 "2004-09-22T07:22:44Z")

</div>

Hey guys… is there a way that I can keep track of clicks in certain areas/links for a full flash site?

---

<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 22, 2004, 8:48am UTC](https://forum.kirupa.com/t/counters-for-buttons/65012/2 "2004-09-22T08:48:31Z")

</div>

You will need a server side “Counter Script” for this if you need the persistance. otherwise you can put  
//in the first frame of the \_root time line  
var counterValue:Number;

```auto

//buttons on Press event
on(press){
counterValue+=1;
}

```
