How do i convert a string to an veriable name?

function OnGUI ()
{
for(var i : int = 0; i < texturePlus.length; i++)
{
if(GUI.Button(Rect(10, 10 + 50 * i, 50, 50), texturePlus*))*
this.GetComponent(scriptName_).scriptVar*++;
}
}*
I want to use the string scriptVar as a variable name. But it dosent work, is it some way to solve this?
Thanks!,I wont to use the the string scriptVar as my variable name. But it dosent work, can i solve this in some other way?
Thanks!
code:
var texturePlus : Texture[];_

var scriptName : String[];
var scriptVar : String[];

function OnGUI ()

{

for(var i : int = 0; i < texturePlus.length; i++)

{

if(GUI.Button(Rect(10, 10 + 50 * i, 50, 50), texturePlus*))*

this.GetComponent(scriptName).scriptVar_++;_

}
}

if your vars are in diferent scripts, and they’re not static vars, you can give them the same name.

MyScript = this.GetComponent(scriptName*);*

MyScript.VarName++;