1 Reply Latest reply on Apr 29, 2008 8:03 PM by ntsiii

    GetChildByName through many layers

      I am trying to find a way to accomplish what this code can't:

      for (var i:Number = 1; i>20; i++) { TextInput(canvas.getChildByName('page'+i).getChildByName('form'+i).getChildByName('formfe ild_'+i).getChildByName('textfeild'+i)).text = "hello"; }

      Basically I need to dynamically change 20 different text fields that are deep in the mxml page at the same time. :-)