I need to build a large table with variables in it (ie xNum0,xNum1,xNum2, etc.). I would rather use a loop to do this than hand code the variables. Is it possible to convert a string, such as " xNum" + i to a variable?
Your help is much appreciated.
I need to build a large table with variables in it (ie xNum0,xNum1,xNum2, etc.). I would rather use a loop to do this than hand code the variables. Is it possible to convert a string, such as " xNum" + i to a variable?
Your help is much appreciated.
i = 1
this[“xNum” + i] = 5;
trace(xNum1); // traces 5
also see http://www.kirupaforum.com/showthread.php?s=&threadid=12082
Thank you.
:: Copyright KIRUPA 2024 //--