开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜