# Score in clicks

**URL:** <https://forum.kirupa.com/t/score-in-clicks/23011>\
**Category:** Uncategorized\
**Created:** [June 11, 2003, 7:40pm UTC](https://forum.kirupa.com/t/score-in-clicks/23011 "2003-06-11T19:40:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nocturno](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@nocturno](https://forum.kirupa.com/u/nocturno)\
**Post date:** [June 11, 2003, 7:40pm UTC](https://forum.kirupa.com/t/score-in-clicks/23011/1 "2003-06-11T19:40:05Z")

</div>

i need statistics about clicking buttons…

thats is easy with the script:

on (release) {  
\_root.total = \_root.total+1;  
}

but i need save this score and when the proyect is active again use the last number saved…

i dont need email it only the data… saved maybe in a text file or something…?

how

---

<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:** [June 11, 2003, 7:43pm UTC](https://forum.kirupa.com/t/score-in-clicks/23011/2 "2003-06-11T19:43:56Z")

</div>

my first post on this page:

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=24666&perpage=15&pagenumber=2](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=24666&perpage=15&pagenumber=2)

use PHP to save the value to a text file…

---

<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:** [June 11, 2003, 8:20pm UTC](https://forum.kirupa.com/t/score-in-clicks/23011/3 "2003-06-11T20:20:08Z")

</div>

(i deleted the duplicate post, here’s my previous answer again, and check the above for the server-side “how to”… no need to post twice…)  
depends if you want it “per user”, so each user keeps a count of his clicks =\> shared Object  
or for you to total clicks of all users and a particular button =\> server-side, PHP, ASP, Perl etc incrementing counter var in textfile or database (really easy)…

---

<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:** [June 12, 2003, 3:01pm UTC](https://forum.kirupa.com/t/score-in-clicks/23011/4 "2003-06-12T15:01:11Z")

</div>

php? its a software, were can i find it… or what?

i´m in a laboratory with a few computers… 30 and the students come here and access to diferent urls…

cause the area doesn´t have a server yet, i design a movie clip and save it into the HD in all machines so there es were in need to save the data…  
and obviously shows up diferent number in any computer…
