5 Replies Latest reply on Oct 24, 2006 9:02 AM by Newsgroup_User

    Having Trouble Referencing MCs on the Stage

    WebXperience Level 1
      I've got 10 duplicate MovieClips on the stage with each instance named sequentially from temp_0 through temp_9..
      I would like to reference these dynnamically using actionscript as in:

      for (i=0; i<10; i++) {
      var name:String = "temp_" + i;
      this[name].textField.text = "Any text";
      }

      But this method does not seem to be working for me. Can anyone help?