Hi All!
I am having an issue creating duplicatemovieclips with dynamic names
Here is my code:
[AS]
function subMenuWork(menu_items, menu_labels, y_value, x_value){
attachMovie(“subMenuMC”, “subInstance”, 40);
subInstance._y = 400;
subInstance._x = x_value;
subInstance._alpha = 0;
n = 1;
while (n <= menu_items){
nn = eval("sub"+n);
trace("nn is " + eval(nn));
duplicateMovieClip(subInstance, nn, 40);
if (n == 0){
sub0._y = y_value + 24;
}
n++;
}
}
[/AS]
Trace say that the variable nn is undefined…
Please help.