Using arrays to store instance names

can u use arrays to store instance names?

in more depth, heres the question:

I am using Flash to dynamically create containers with the createEmtpyMovieClip function. Within this function, I name the containers. The idea is that the user can hit buttons and create as many different containers as they want on the screen, position them, size them, and overlap them as needed.

I want to be able to create a group of standard controls that I can apply to any of these containers when they are selected. These controls change the scale, x and y position, and z level of the selected movie clip.

I’m approaching this by storing the information for each movie clip as it is created in an array. The problem with this is trying to get the information out of the array to use with each new function. Example:

If I write,

info_array[x].changeScale();

It doesn’t apply the change to the name in the array at x. Instead, it applies the change to a non-existent movie clip named “info_array[x]”

Also, if I write,

mc_for_change = info_array[x];
mc_for_change.changeScale();

it has the same problem.

What am I doing wrong? How can I get the information out of the array to use as the name of the movie clip instead of as a variable representing the name?

any help will help.

Thanks!
:skull: