05-01-2013 02:16 AM
Hai currently am working on dynamically created textinputs. On a buttonclick textinputs are created and each one is assigned an id as shown below
var tiput:TextInput = new TextInput(); tiput.id = "TP"+text_ID; text_ID = text_ID + 1;
each time I click the button a new textinput is being created and id is being set to each one. Also I have another button to delete the particular textinput. Lets say I created 3 text inputs of with ID "TP1", "TP2", "TP3" if I deleted the second textinput with id 'TP2' then is there any way to change the id of third textinput 'TP3' to TP2.
Any help/advise is appreciated
Thanks in advance
05-01-2013 08:27 AM