2 Replies Latest reply on Apr 2, 2007 6:04 AM by chrisatflash

    Placing movieclips on the stage

    chrisatflash Level 1
      I am trying to place movieclips from the librari on the stage but i only get one row.
      This is wat i want to archieve. (for example M = a movieclip).
      M M M M M M
      M M M M M M
      M M M M M M
      M M M M M M

      If i also fill in the _y the result looks like this.

      .. M
      ..... M
      ........ M
      ............. M

      now it looks like this:

      M M M M M M

      This is the code i used:

      var tegelhouder:MovieClip = this.createEmptyMovieClip("tegelhouder", this.getNextHighestDepth());
      tegelhouder._x = -70;
      tegelhouder._y = 0;

      for(i=1; i<9; i++) {
      tegelhouder.attachMovie("tegelanim", "tegels"+i, i);
      tegelhouder["tegels"+i]._x = i*70;

      So the first thing i am trying to archive is to place the movieclips vertical as horizontal.

      Can someone help me with this?