8 Replies Latest reply on Jun 7, 2012 12:10 PM by Leo8o8

    Importing movieclips from library with arrayable instance names how???

    Leo8o8

      The title says everything...

       

      Here is the example:

       

       

      centerx = 275;
      centery = 200;
      plussx = 26;
      plussy = 15;
      layern = 1;
      terrainn = 1;
      placer = 0;
      
      GRASS = new Array();
      
      while (layern != 2){
          _root.attachMovie("terrainG", "GRASS[terrainn]", layern); //<<<<< How can I do something like that?
          GRASS[terrainn]._x = centerx+plussx*placer;
          GRASS[terrainn]._y = centery+plussy*placer;
          terrainn++;
          layern++;
          placer++;
      }