6 Replies Latest reply on Jan 23, 2007 11:52 AM by kglad

    Using variables as variable names

    mac_monkey Level 1
      Hello (me again)

      I know I can use this[variable] to evaluate a variable name so it can be used for such things as referring to a movie clip

      e.g

      this[variable]._x=100;

      However... I'm trying to create movieClips with:

      var MovieClipName:MovieClip = new MovieClip()

      which doesn't work if I use this[variable] instead of MovieClipName.