title: Flash AS3 - Loop - dynamically hide set of text boxes
body: <p>I need a function to hide a group of text boxes, I wrote the following to do so - </p>
  
  <pre><code>var allTxtBoxes:Array = ["title_txt","l1_txt","l2_txt","l3_txt","l4_txt","l5_txt"]; 
  
  
  for(var i:Number = allTxtBoxes.length - 1; i &gt;= 0; i--) {
  
  
  var hiddenT:String = "newOverlibTxt."+allTxtBoxes[i]
                hiddenT.visible=false;;
  
      }
  </code></pre>
  
  <p>I have tried the above in various ways including creating  a variable but I just get errors to say that I cant apply visible=false to a string, although I want it to act like an object.</p>
  
  <p>Any ideas please?</p>
  
  <p>Cheers
  Paul</p>