In our code we are dynamically adding checkbox into a vgroup. code follows something like this
FLEX 3:::
var tempVBox:VBox = new VBox;
var tempCheckbox:Checkbox = new Checkbox;
tempCheckbox.id="someid";
tempCheckbox.label="somelabel";
tempCheckbox.event="someevent";
tempVgroup.addChild(tempCheckbox);
and in same actionscript we have another function to getcheckbox element to perform some operation like select all. Code follows like
var tempVBox:VBox = new VBox;
for(i=0;i<tempVBox.numChildren;i++){
tempVBox.getChildAt(i)
}
Alert.show(tempVBox.getChildAt(i)) will be some thing like VBox660.Checkbox998 But in flex4 the code changed like this
FLEX4 ::::
var tempVgroup:VGroup = new Vgroup;
var tempCheckbox:Checkbox = new Checkbox;
tempCheckbox.id="someid";
tempCheckbox.label="somelabel";
tempCheckbox.event="someevent";
tempVgroup.addElement(tempCheckbox);
and in same actionscript we have another function to getcheckbox element to perform some operation like select all. Code follows like
var tempVgroup:VGroup = new Vgroup;
for(i=0;i<tempVgroup.numElements;i++){
tempVgroup.getElementAt(i)
}
Alert.show(tempVgroup.getElementAt(i)) will give VGroup889.House-OWner
House-OWner is id set for checkbox...
Can anyone help me in this i need to get element like this VGroup660.Checkbox998
sorry if code makes no logic as i wrote completely in browser
Thanks