# Text Field Variable Issues

**URL:** https://forum.kirupa.com/t/text-field-variable-issues/317819
**Category:** flash
**Created:** [January 4, 2011, 2:45am UTC](https://forum.kirupa.com/t/text-field-variable-issues/317819 "2011-01-04T02:45:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jfx1026](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jfx1026/32/2943_2.png) [@jfx1026](https://forum.kirupa.com/u/jfx1026)
#### Post date: [January 4, 2011, 2:45am UTC](https://forum.kirupa.com/t/text-field-variable-issues/317819/1 "2011-01-04T02:45:16Z")

</div>

I’m keeping score in a game. I have a text field with an instance name “finalScore”. The score is a Number.

```auto

trace ("score = "+score);
finalScore.text = String(score);
trace ("finalScore = "+finalScore);

```

The output looks like this  
score = 10  
finalScore = [object TextField]

The text field comes up with “1” not 10.  
Why is this?
