# Yet another question

**URL:** <https://forum.kirupa.com/t/yet-another-question/3475>\
**Category:** Uncategorized\
**Created:** [February 3, 2002, 12:00am UTC](https://forum.kirupa.com/t/yet-another-question/3475 "2002-02-03T00:00:34Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [February 3, 2002, 12:00am UTC](https://forum.kirupa.com/t/yet-another-question/3475/1 "2002-02-03T00:00:34Z")

</div>

is there a way to make a score box for a game that goes up by more than 1

---

<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:** [February 3, 2002, 5:58am UTC](https://forum.kirupa.com/t/yet-another-question/3475/2 "2002-02-03T05:58:31Z")

</div>

yes there is…

oh you want to know how?? 😉

A text field will just display what ever variable is assigned to it… if you update the variable, then the text box will update.

probebly the best way is to have a function defined in frame 1 of the main movie Something like

function score (){  
scoreTotal++;  
}

now, anytime you put  
\_root.score();  
in anything from a frame, to a button, it will call that function, and make the variable called “scoreTotal” go up by 1 every time it is called.

A text field anywhere with a variable name of “\_root.scoreTotal” will update anytime that function is called.

---

<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:** [February 3, 2002, 11:02am UTC](https://forum.kirupa.com/t/yet-another-question/3475/3 "2002-02-03T11:02:09Z")

</div>

My understanding of the question is : can I make so that when I do something, the score goes up by 5 for instance.  
Just replace ;

function score (){  
scoreTotal++;  
}

by

function score (){  
scoreTotal += 5;  
}

in the last thread.

0] pom

---

<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:** [February 3, 2002, 8:28pm UTC](https://forum.kirupa.com/t/yet-another-question/3475/4 "2002-02-03T20:28:11Z")

</div>

didn’t I say that? 😉

---

<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:** [February 3, 2002, 9:04pm UTC](https://forum.kirupa.com/t/yet-another-question/3475/5 "2002-02-03T21:04:34Z")

</div>

Hey, stop drinking beer, Upu. Try Mountain Dew instead. I heard i t’s good :cool:  
pom 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:** [February 3, 2002, 11:27pm UTC](https://forum.kirupa.com/t/yet-another-question/3475/6 "2002-02-03T23:27:11Z")

</div>

I only drink Merlot… 🙂

---

<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:** [February 3, 2002, 11:32pm UTC](https://forum.kirupa.com/t/yet-another-question/3475/7 "2002-02-03T23:32:49Z")

</div>

Me and Pom left you a gift in Random. You should check it out. Doh!

pj :evil:  
:rollin:
