7 Replies Latest reply on Sep 1, 2007 10:21 AM by Robert Reinhardt

    Variable name as object name

      Hi. I'd like to be able to create some variables dynamically in AS3 and then use them as object names. For example, to create the variables circle1, circle2 etc I write:

      for(var i:Number = 0; i < 10; i++)
      this["circle" + i];

      I would then like to create movie clips with the names of these variables so that I can add them to the stage and access their properties individually. Is this possible?