# Dynamic Text display Number Variable

**URL:** <https://forum.kirupa.com/t/dynamic-text-display-number-variable/290506>\
**Category:** Uncategorized\
**Created:** [June 15, 2009, 10:30pm UTC](https://forum.kirupa.com/t/dynamic-text-display-number-variable/290506 "2009-06-15T22:30:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SonOfChaos](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@SonOfChaos](https://forum.kirupa.com/u/SonOfChaos)\
**Post date:** [June 15, 2009, 10:30pm UTC](https://forum.kirupa.com/t/dynamic-text-display-number-variable/290506/1 "2009-06-15T22:30:06Z")

</div>

What I got. (I’m a noob so please tolerate how stupid my questions probably are.

```auto

public var score:Number = 0;

var scoreNumber:TextField = new TextField();
scoreNumber.type = TextFieldType.DYNAMIC;
scoreNumber.text = ????;

```

Okay, I apparently can’t pass the score to the textBox.

1. How do I convert the variable to a string?

2. How do I update the textBox? I thought I saw some special method somewhere but I’m not sure where.

3. What is the best way of updating the ‘score’ variable.
