6 Replies Latest reply on Jul 25, 2009 1:54 PM by grover970

    Dynamic InstanceName


      First, I apologize if this is a repost(it most certainly is) but I find it damn near impossible to search these forums now.


      Basically what I want to do is target a movieClip with a dynamic instance name and move it.

      I need to pass a variable "a" to target the specific instance of "new_".


      var a = 4;


      for (i:Number = 0; i < 6; i++){
      var menuClip = movie_mc.duplicateMovieClip("new_"+i, i);
      menuClip._x = menuClip._width * i;
      bnt.onPress = function(a){
          new_[a]._y = 300; //--- THIS DOESN"T DO IT