# Increasing variable for dynamic text field

**URL:** <https://forum.kirupa.com/t/increasing-variable-for-dynamic-text-field/259830>\
**Category:** Uncategorized\
**Created:** [May 9, 2008, 4:49am UTC](https://forum.kirupa.com/t/increasing-variable-for-dynamic-text-field/259830 "2008-05-09T04:49:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tge1986](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@tge1986](https://forum.kirupa.com/u/tge1986)\
**Post date:** [May 9, 2008, 4:49am UTC](https://forum.kirupa.com/t/increasing-variable-for-dynamic-text-field/259830/1 "2008-05-09T04:49:14Z")

</div>

I’m trying to create a temperature control box for a flash movie and i have it so that two arrows would control the temp, i can’t seem to get them to increase the dynamic text field titled target\_temp it sets it fine on the first load but then once I try to click the increase arrow the text field doesn’t increase, do i need to reload the movie? here is the code I have so far.

```auto
on(release){
    target=target-1;
    target_temp.text=target;
}

```

---

<div class="post-metadata">

**Author:** ![amod](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@amod](https://forum.kirupa.com/u/amod)\
**Post date:** [May 9, 2008, 1:06pm UTC](https://forum.kirupa.com/t/increasing-variable-for-dynamic-text-field/259830/2 "2008-05-09T13:06:38Z")

</div>

Are you sure you are in the right level. Maybe you could try a \_parent. (or \_root.) before?

on(release){  
target-=1;  
\_parent.target\_temp.text=target;  
}
