# Need Help with making a score board!

**URL:** <https://forum.kirupa.com/t/need-help-with-making-a-score-board/59701>\
**Category:** flash\
**Created:** [August 3, 2004, 4:11am UTC](https://forum.kirupa.com/t/need-help-with-making-a-score-board/59701 "2004-08-03T04:11:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shadowskater](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@Shadowskater](https://forum.kirupa.com/u/Shadowskater)\
**Post date:** [August 3, 2004, 4:11am UTC](https://forum.kirupa.com/t/need-help-with-making-a-score-board/59701/1 "2004-08-03T04:11:57Z")

</div>

Ok, in my preloader i made a game, the game plays then has AS that if SPACE is pressed then if will play a winning scene, and if it is not then it will continue on to play the lossing scene, so my AS is like the clip is running then AS\<

on (press, keyPress “\<Space\>”) {  
gotoAndPlay(30);  
}

so if u press space it will run the good clip if u dont then it will continue running and hit my AS that Gotoandplays (105) which is the lossing squence then it replays this… So i want to make a counter for this game, a kind of Score board so i made a Dynamic Text Box and i made the var “total” so my new AS is…

on (press, keyPress “\<Space\>”) {  
gotoAndPlay(30);  
\_root.total = \_root.total+100;  
}

So it will add 100 to the score when u succsefully press space in adition to makeing the sucess clip play! But it dosnt work…  
i dont know why it doesnt, ive tried so many things to make it work…

I tested my scrpit with buttons like

On (release) {  
\_root.total = \_root.total+100;  
}

And the buttons work but not this! why not! plz help!!!

---

<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:** [August 3, 2004, 4:44am UTC](https://forum.kirupa.com/t/need-help-with-making-a-score-board/59701/2 "2004-08-03T04:44:47Z")

</div>

post your .fla please.

---

<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:** [August 3, 2004, 8:53am UTC](https://forum.kirupa.com/t/need-help-with-making-a-score-board/59701/3 "2004-08-03T08:53:25Z")

</div>

try:

on (press, keyPress “\<Space\>”) {  
\_root.total = \_root.total+100;  
gotoAndPlay(30);  
}
