Did a little research, and Flash script actually supports this kinda of dereferencing. Kinda unique, actually.
There's two ways to do what you're talking about. You can either use the array indexing brackets [] or the eval() command.
Their documentation gives:
eval("piece" + x);
If you did
Code:
variable2 = eval("UVR_txt" + variable1).text
it would dynamically create the variable name.
Similarly, you can use the bracket notation to do it:
Code:
variable2 = UVR_txt[variable1].text;
Where variable1 is the UVR_txt that you want the main text box to get