# Reset score for a game

**URL:** <https://forum.kirupa.com/t/reset-score-for-a-game/18061>\
**Category:** flash\
**Created:** [April 12, 2003, 8:30pm UTC](https://forum.kirupa.com/t/reset-score-for-a-game/18061 "2003-04-12T20:30:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sawy](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sawy](https://forum.kirupa.com/u/sawy)\
**Post date:** [April 12, 2003, 8:30pm UTC](https://forum.kirupa.com/t/reset-score-for-a-game/18061/1 "2003-04-12T20:30:46Z")

</div>

Hello everyone,

I have used the script for adding score to a game from the advanced tutorials section and it works fine. The only problems I still have with it are:

1- it discounts 100 points every time the users click on the same wrong button. I would like the button to work only once since this is for an educational game.

2- when I go back to the first frame, the latest score is already there. How can I erase the score or set it to “0” when the scene is reloaded?

Appreciate your help.

Sawy

---

<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:** [April 12, 2003, 8:36pm UTC](https://forum.kirupa.com/t/reset-score-for-a-game/18061/2 "2003-04-12T20:36:21Z")

</div>

1- for the button code, after everything you want done is done, type in \_root.whateveryourbuttoniscalled.enabled = false;  
if the button is located in a movie clip, type:  
\_root.movieclip.button.enabled =false;  
2- whatever your score variable is(for example score), type in score = 0;

---

<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:** [April 13, 2003, 12:01am UTC](https://forum.kirupa.com/t/reset-score-for-a-game/18061/3 "2003-04-13T00:01:31Z")

</div>

sorry man didn’t work

---

<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:** [April 13, 2003, 2:59am UTC](https://forum.kirupa.com/t/reset-score-for-a-game/18061/4 "2003-04-13T02:59:26Z")

</div>

post your fla if you can…i’ll see what i can do

---

<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:** [April 13, 2003, 4:15pm UTC](https://forum.kirupa.com/t/reset-score-for-a-game/18061/5 "2003-04-13T16:15:08Z")

</div>

I tried but the file size is too large. can’t attach it.

Thanks for offering though
