i have created a group in run time and then added in it two buttons and one label
addElement (myGroup )
myGroup.addElement ( button 1 )
myGroup.addElement ( label )
myGroup.addElement ( button 2 )
now when i click on one button 2 i can get event.currentTarget.
How can i change the text of label using this event.currentTarget. How can i target the label
I believe this may solve your problem.
When you create the label Object provide it with an
id. so that you can access the label through out the application using this ‘id’. You can change the text by using thisid.textOr you can use the group objectId. like this one
groupObjectID.getElementAt(index).text