1 Reply Latest reply on Mar 29, 2010 2:17 PM by Shongrunden

    Flex 4: Array to RadioButtons

    jsd99 Level 3

      I've got an array.  I want to make a bunch of radiobuttons, one for each element of the array.  In Flex 3 I used a mx:Repeater to do this.  Repeater no longer exists in 4.  How do I do it in Flex 4?  I think I have to use s:DataGroup but I can't figure it out.

        • 1. Re: Flex 4: Array to RadioButtons
          Shongrunden Adobe Employee

          Here is an example:


          <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                  <s:RadioButtonGroup id="rbGroup" />
                      <s:VerticalLayout />
                          <s:ItemRenderer autoDrawBackground="false">
                              <s:RadioButton label="{data}" group="{outerDocument.rbGroup}" />


          You might also be interested in this bug: