# Dynamic text box and variable

**URL:** https://forum.kirupa.com/t/dynamic-text-box-and-variable/273726
**Category:** flash
**Created:** [October 19, 2008, 9:57pm UTC](https://forum.kirupa.com/t/dynamic-text-box-and-variable/273726 "2008-10-19T21:57:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Creon5](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@Creon5](https://forum.kirupa.com/u/Creon5)
#### Post date: [October 19, 2008, 9:57pm UTC](https://forum.kirupa.com/t/dynamic-text-box-and-variable/273726/1 "2008-10-19T21:57:37Z")

</div>

Hi, got a question about a dynamic text box and variable.

Im making a defence flash game and im using a variable and dynamic text box to change the amount of money that a player has.

I had this as my variable:

```auto
var money:Number=100;

```

This was on my first frame, and i then created a dynamic text box and gave it an instance name of: money  
When i run it nothing appears… because isnt the text box suposed to display 100? And i also have a button with:

```auto
on (release) {   
           {money +=10; }
}

```

to add 10 to the money. but this dosent work neither… im confused.  
any help would be apriciated.  
Thanks
