Hi, is it possible to assign an Instance Name to a string variable, and use the string variable to access the particular instance’s functions? I’m not sure if that was very clear, so here’s an example:
var instanceNameString = “test_mc”;
instanceNameString.gotoAndPlay(1);
How do I code it such that it will work?
And a second question: I’m also trying to use a string variable as a frame label parameter for a gotoAndPlay command. Again, I’m not sure how to explain it clearly, so here’s another example:
var frameLabelString = “contact me”; //“contact me” being a frame label on my timeline
gotoAndPlay(frameLabelString);
I know that the frame label parameter is supposed to be within " "s, but how do I type it if the frame label is being referenced to a String variable?
Please do help! Thanks!
oh, I don’t know if it matters, but I’m using Flash MX.