I need a function to hide a group of text boxes, I wrote the following to do so -
var allTxtBoxes:Array = ["title_txt","l1_txt","l2_txt","l3_txt","l4_txt","l5_txt"];
for(var i:Number = allTxtBoxes.length - 1; i >= 0; i--) {
var hiddenT:String = "newOverlibTxt."+allTxtBoxes[i]
hiddenT.visible=false;;
}
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.
Any ideas please?
Cheers Paul