Can you use a variable as the name of a variable like you can in Perl?
So say there are 10 movieclips on the stage, each named mc1 mc2 mc3 etc. In a public class I have a function that sends the name of a movieclip and I need to be able to change the frame of that movieclip based on the string that is sent. So say my class function declaration is:
moveFrame(theMovieClip);
where theMovieClip is the returned object from another function.
Is there any way to use that variable somehow?
The concept of what I'm trying to do:
function moveFrame(s) {
s.gotoAndStop("the right frame");
}
Does that make sense? Is it possible or do I need to find another workaround?