how can I convert String to Array(Instance Name)?
The code below works fine.
var gridArray:Array = new Array(sq1_btn,sq2_btn);
gridArray[0].visible=false;
gridArray[1].visible=false;
but how can I pass a String to multiple buttons to this Array? (The String is too big and comes from outside of Flash)
//myData String comes from outside Flash
var myData:String = "sq1_btn,sq2_btn";
// Have to store myData String in gridArray
var gridArray:Array = new Array(myData);
gridArray[0].visible=false;
gridArray[1].visible=false;
can anybody help me to correct code above?
Thanks in Advance