I have an annoying problem in flash. I have an array that lists movieclips. When I add a movieclip to the stage, I want to add it to the list (not as a string.) I use a string variable and add _root. to the beginning of it to do this. Unfortunately it lookes for the variable itself instead of what string it stands for when I run it. :sen:
movieList = new Array();
if (duplicate) {
_root.enemy.duplicateMovieClip(“enemy”+i, i);
new_MC = “enemy”+i
movieList[movieList.length] = _root.new_MC;
i++;
}
thanks in advance :bounce: