Creating variables on the fly

I can’t get flash to recognize variable names that I create on the fly.

For instance, I have dynamic text boxes named slideText1, slideText2, and slideText3, etc, which I want to fill with data from an XML file. In this code, the trace spits out the proper variable name, but Flash won’t recognise it as a variable, and so does not update the dynamic text accordingly.

(i=1; i<(totalSlides+1); i++) {
variable_holder=“slideText”+i;
variable_holder= currentSlideNode.firstChild.nodeValue;
trace(variable_holder);
currentSlideNode=currentSlideNode.nextSibling;
}

I’ve tried eval and arrays, but can’t create variable names on the fly. Help?