# Variable communication

**URL:** <https://forum.kirupa.com/t/variable-communication/93781>\
**Category:** Uncategorized\
**Created:** [November 4, 2003, 8:35pm UTC](https://forum.kirupa.com/t/variable-communication/93781 "2003-11-04T20:35:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bricar77](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@bricar77](https://forum.kirupa.com/u/bricar77)\
**Post date:** [November 4, 2003, 8:35pm UTC](https://forum.kirupa.com/t/variable-communication/93781/1 "2003-11-04T20:35:07Z")

</div>

I am playing around trying to teach myself actionscript and I’m getting frustrated with a simple dynamic textbox. I have a main movie with just one frame and in the frame actionscript I have :

```
newitemwidth;
totallength = 10 + newitemwidth;

```

I have a button on this main movie that on release, among other things, has:

```
newitemwidth = 115;

```

I have a dynamic textbox on the movie as well with the variable set to:

```
totallength

```

When I test the movie, the textbox shows 10, but when I click the button it doesn’t change to 125 with the added newitemwidth. Am I missing some rule about global variables here? Thanks for your help.

BriCar77  
[brian\_carey77@ou.edu](mailto:brian_carey77@ou.edu)
