Someone else may have good info to offer, but what I came to do over the years when dealing with dynamic textfields of any type is to ignore using the var aspect of the textfield and just using the text property to assign text to it. I went this way primarily because I ran into problems more often when I mixed between using the var and the instance.text approaches.
So if you have a _global variable to keep track of the total, then anytime you need to adjust the total, you can just target the instance after doing so and change its text to the new _global value.
1 person found this helpful
if you want to use a global variable, when initializing and everytime you assign a new value, prefix the variable with _global:
whenever you want to retrieve its value, use myMoney.
you should not be using _root.myMoney.
and as ned mentioned, you should stop using the variable associated with textfields and use the text property of your textfield to assign its text.
Thanks Ned and Klad! I removed the variable names from the input text fields. I think I went that way initially since I was using numbers and having problems with the numbers being cast as strings. Your suggestions worked, I just needed to make a slight adjustment to the code that was assigning a new value to myMoney.
Thanks for your help!