Divide/Multiply text fields populated from .txt file
Good Morning/Afternoon/Evening
My friends and I play a table top game and I am attempting to make a character sheet template in Flash 8 AS2 to reduce down time. I have created a character sheet template using Flash that imports all the base stats from a .txt file. I have gotten all my information to populate to the text fields desired like strength, dexterity, intelligence and so forth. What I would like is for Flash to take the value of say strength and populate the value of what strength represents (which would be a physical damage modifier) in a text field next/near it but not necessarily concatenation. To get the values of your stats is very simple math. Strength divided by 2 equals damage modifier, easy math. Constitution multiplied by 3 equals max hit points, again easy math. While this is easy math, it does take time out of the game to manage these values on paper and if I can create my vision here I can enhance the value of our game time. It is important that the stats are drawn from a text file because none of my fellow players know Flash or have Flash.
In the end I will need it to do more than just this but to begin I would like to start by understand how to take the value of strength's text field and divide it by two then put it in another text field. I would also like to be able to be able to take the value of strength and divide it by the value of dexterity and populate that to another field. I am confident that once I have this information I could crash course threw all the rest of it.
I've been searching on and off for 3 days now but I think I know so little action script that I don't even know how to find the information I am looking for because all I find is information on how to load a text file and I know that already. I've found information on how to do math in flash, played with that and made it work but I was not able to use it from my .txt dynamically loaded text fields. It just populated text fields itself, put the numbers in it from the script and then populated another text box for the sum. Unfortunately my Flash experience is little more than making personal information web sites or stuff like greeting cards and call flow scripts but I thought I knew enough to make this happen or learn along the way.
In short I am looking to:
get value of strength text field and divide by two then populate sum to damage text field
and
get value of strength text field divide it by the value of dexterity text field then populate the sum to str/dex text field.
A source file which should make it obvious what I accomplished thus far and looking to do from there.
character_sheet.zip
character_sheet.zip only includes the char.fla and the char.txt
I appreciate any/all attention you have to offer me :)