Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 4.1 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows XP
Browser: Firefox 3.x
Language Found: English
Description
Steps to reproduce:
Add this code into your creationComplete event for an application:
/** RadioGroup to control selection of Overwrite || Create new Playlist */
private var radioGroup : RadioButtonGroup;
private var buttonOne : RadioButton;
private var buttonTwo : RadioButton;
public function onComplete() : void {
radioGroup = new RadioButtonGroup(this);
buttonOne = new RadioButton();
buttonOne.group = radioGroup;
buttonTwo = new RadioButton();
buttonTwo.group = radioGroup;
vGroup.addElement(buttonOne);
vGroup.addElement(buttonTwo);
radioGroup.selection = buttonOne;
Actual Results:
buttonOne does not appear to be selected
Expected Results:
buttonOne should show as selected to the user
Workaround (if any):
I guess set selection at a later point in time.
See the comments in the documentation here: