Hello again!
I've got a bunch of arrays (12 and growing, i.e. "aMajor") that each need to be compared with one user-generated array (kFarray). Each value from all my arrays need to be compared to each value of kFarray. I have a series of loops set up, and a function to return an OBJECT of the name of the current array. Problem is, I can't use the returned OBJECT (I also tried it with String) to access the value in the array.
The variable vari gets a value like "aMajor[0]", from the getScaleArray(o,m) function. which should be compared to the value of kFarray. Problem is, it sees vari as a string, and never actually accesses the aMajor array.
I tried the eval() function, but it returns the string value or undefined.
Here is my code (the problem is bolded):
for(o = 0; o < 12; o++) {
for(n = 0; (n < 7); n++) {
for(m = 0; m < 7; m++) {
vari = retScaleArray(o,m);
if (vari == kFarray[n]) {
KFConf = 1;
break; }
else
KFConf = 0;
}}}
Again, vari has a value like aMinor[1], returned from retScaleArray(o,m). So my question is, is there a way to convert the value of a variable to code that actionscript can understand? Again, the eval() fuction is not working for this situation. Thanks for anyone who can lend a hand!
