1 Reply Latest reply on Oct 11, 2006 1:16 PM by VisionaryStudios

    using a variable to call an asset

    mschietinger
      this is a simlified example of what i need to do.

      lets say i have 40 dynamic text boxes. named _root.txtBox0 thru _root.txtBox39

      i have an array with string data in 40 slots named myArray.

      what i want to do is something like:

      for( var i:Number = 0; i <= 39; i++){
      _root.("txtBox" + i).text = myArray ;
      }

      the above syntax is incorrect but it shows what im trying to do.

      alternate example i need to pass an object name into a function so i can modify that object by name inside.

      is this posible in flash? if not please let me know so i can figue something else out.