Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-25248

RadioButtonGroup.selection property does not work correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.1 (Release)
    • None
    • Spark: RadioButton
    • 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:

      http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/RadioButtonGroup.html

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: