3 Replies Latest reply on Mar 7, 2009 3:59 PM by Ned Murphy

    Accessing dynamic field names?

      I want to be able to create text fields with unique names and set values in them within a For-loop without having to reference the field names in the code.

      Consider the following code snippet:

      this.createTextField("field" + i, this.getNextHighestDepth(), x1, y1, 250, 20);

      It places a text field into a movie clip with name that is a composite of a literal value and a variable value resulting in names like field1, field2, etc. My question: Is there anyway to use a composite field name to access the field properties? For example: Can I set the text for the field using the same composite name without having to express it as a literal field name? If I can't then what is the point of having the composite name capability?