1 Reply Latest reply on Jan 3, 2010 9:49 PM by Ashudeep Sidana

    Dynamic Radio buttons!

    Ashudeep Sidana

      Hi I am dynamically populating the radiobuttons in a groupd.... But these are not behaving like radio buttons they all are being selected .

      What coul be the problem.Could someone help?


        • 1. Re: Dynamic Radio buttons!
          chris.huston.t10 Level 3

          Here is one way to add dynamic radio buttons to a group. If this doesn't work for you, try posting your code so we can help better.


          private function createRadioButtons():void {

          var vb:VBox = new VBox();

          var rgb:RadioButtonGroup = new RadioButtonGroup();

          var rb:RadioButton = new RadioButton();

          rb.group = rbg;

          rb.label = "some label here";


          rb = new RadioButton();

          rb.group = rbg;

          rb.label = "some other label";


          //enter code to add vb to some container in your app