flex: find which element is clicked in vgroup
I am dynamically creating 10 textinputs inside a vgroup . when user clicks a button, I want to fetch the text present on all textinputs. How to do this. My code looks like this
var vgroup:VGroup = new VGroup;
for(var i:number=0;开发者_StackOverflowi<10;i++){
var textinput:TextInput=new TextInput();
vgroup.addElement(textinput):
}
Save the text inputs into an Array and when you click the button, iterate through the array and get the 'text' property of the input control.
精彩评论