NerdUprising
[ Method ]
- Joined
- 23 May 2003
- Messages
- 736
was wondering if anyone could help me with this interesting problem:
in this script: (not taken out of context...rewrote to be simplified)
countCurrent = 1;
Info2 = new Array(I, need, help);
FinalVar = ["Info" + countCurrent][0];
trying to dynamically access the array from which the info will be pulled, but when this script runs... the first set of square brackets is all that is returned (FinalVar = "Info1") rather than returning "I" (the data in place 0 in the array)... It would be simple enough to simply name the array to be accessed... but this is running inside of a function that is written to repeat itself for every array (countCurrent is the number) rather than listing them all out, this allows for more arrays to be added or removed from the movie, all accessed within one function (save some time and filesize)
anyone know how (or if) I could perhaps circumlocute this, or just get it to work at all? (my apologies if you couldnt understand the crap I just wrote...lol... can give more info if needed) Much thanks
in this script: (not taken out of context...rewrote to be simplified)
countCurrent = 1;
Info2 = new Array(I, need, help);
FinalVar = ["Info" + countCurrent][0];
trying to dynamically access the array from which the info will be pulled, but when this script runs... the first set of square brackets is all that is returned (FinalVar = "Info1") rather than returning "I" (the data in place 0 in the array)... It would be simple enough to simply name the array to be accessed... but this is running inside of a function that is written to repeat itself for every array (countCurrent is the number) rather than listing them all out, this allows for more arrays to be added or removed from the movie, all accessed within one function (save some time and filesize)
anyone know how (or if) I could perhaps circumlocute this, or just get it to work at all? (my apologies if you couldnt understand the crap I just wrote...lol... can give more info if needed) Much thanks