Lienne
09-06-2005, 04:30 PM
How would I use the contents of a variable as a variable name? Somehow, I've made it quite a ways into AS without knowing how to do this!
For instance, I have the word "melon" stored in the variable "fruit"
I would then like to turn "melon" into it's own object and add an array of it's parts dynamically.
Help! I know it's got to be so simple, I'll kick myself.
For instance, I have the word "melon" stored in the variable "fruit"
I would then like to turn "melon" into it's own object and add an array of it's parts dynamically.
Help! I know it's got to be so simple, I'll kick myself.