3 Replies Latest reply on Sep 19, 2006 10:38 AM by Snodre

    Referencing instances dynamically

      Is there any other way of referencing existing instances on the stage besides using the "static" syntax:

      this.myObject.aProperty = X ;

      I need to iterate through a lot of instances on the stage and would like to use a variable to pass the name of the instance I am referencing. I've been searching my books and online documents for an hour wihout finding an answer.

      An example in c-syntax showing how I want to reference these instances:

      for( count = 0; count < 10; count++)
      instance[ "instance_" + count ] = "#ffccaa" ;

      Any help to the newbee is very much appreciated - the frustration is growing fast!