Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Won't Fix
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
We all know that using static constant Strings in events isn't the tightest approach, but at least we have something to type against.
Looking inside RadiobuttonGroup I can see you are just dispatching a String and there is no specific event of constant.
line 479
dispatchEvent(new Event("numRadioButtonsChanged"));
I didn't find this from just routing around in the code, but I actually need to know when these buttons are added.
If i set a group property on a RadioButton that is newly created it isn't immediately availble in the RadioButtonGroup. If I add it to the group using addInstance() instead then when the user interacts with the buttons that have no effects on the rest of the buttons. If i use both the RadioButtonGroup believes it has double the number of RadioButtons assigned to it.
I therefore have to use group, but then wait until the correct index is added before I can selected it.