3 Replies Latest reply on Jun 8, 2006 9:16 AM by blemmo

    loadMovieClip - createEmptyMovieClip

    cwick34
      I have a list of text fields (21 of them) each with a button that loads a movie clip based on the text in it's correspondingtext field. I have also created 21 emptyMovieClips (I need each swf to load and be moved around once loaded, otherwise I could just use one empty clip). However, I get an undefined error unless I have only 1 dynamically created clip.

      Here is the creating code:
      this.createEmptyMovieClip ("task1holder_mc", this.getNextHighestDepth);
      task1holder_mc._x = 13;
      task1holder_mc._y = 45;

      this.createEmptyMovieClip ("task2holder_mc", this.getNextHighestDepth);
      task2holder_mc._x = 14;
      task2holder_mc._y = 46;
      ...this goes until all are created.

      I think it has something to do with the "this.getNextHighestDepth" but I can't figure it out, if I only use one clip it works...
      Anyone know why and can offer a work around?