Hi!
Here is my code:
var x : int = 50;
var group : RadioButtonGroup = new RadioButtonGroup();
for (var i : int = 0; i < 5; i++) {
var rb : RadioButton = new RadioButton();
rb.id = i.toString();
rb.group = group;
rb.label = i.toString();
rb.x = x;
x += 40;
cnv_subContent.addElement(rb);//a BorderContainer
}
Alert.show(group.numRadioButtons.toString());
when i run the application, it shows me "0". Why this?