In my FLA I have a MC called imageController. Into the imageController MC I load some variables from a .txt file - one such variable is numEventsImages=3. There's another variable called sectionName = Events;
I have a function called count in the first frame of the main timeline, and it uses both variables.
QUESTION: When I invoke the count function within the imageController MC, how can I *dynamically* get the value of numEventsImages.
I know that I can get it by referring directly to the loaded variable: trace("numEventsImages: " + imageController.numEventsImages);
But I want to do it dynamically, but when I try:
trace("numEventsImages (derived): " + "num" + imageController.sectionName + "Images");
all I get is the *string* numEventsImages.
and when I try:
trace("numEventsImages (derived): " + this["num" + imageController.sectionName + "Images"]);
I get nothing from the trace. I've also tried it with eval.
Thanks for your help.