1 Reply Latest reply: Jan 18, 2012 5:26 AM by Morph89 RSS

    Flash Builder 4.6 - new RadioButton() is not multiline, how to do that?

    Morph89

      Hello, everyone!

       

      I'm making a quiz app in Flash Builder 4.6 surfed over the whole internet to make multiline radiobutton dynamically in flash builder 4.6 Mobile project in Spark components.

      Anyone met with this problem?

       

      Here i am making the Radiobutton.

       

      for (j=0; j<arrAnswers[index].length; j++) {

       

       

                                              arrChoices[j] = new RadioButton()

                                              arrChoices[j].label = arrAnswers[index][j];

                                              arrChoices[j].label.autoSize=true

                                              arrChoices[j].value = j;

                                              arrChoices[j].width = container.width

                                              arrChoices[j].x = qField.x + 10;

                                              arrChoices[j].y = qField.y + qHeight + (aHeight+5)*j;

                                              arrChoices[j].group = rbg

       

                                              container.addElement(arrChoices[j]);

       

                                    }

       

      I found this link but didnt worked for 4.6:

      http://blogs.adobe.com/aharui/2007/04/multiline_buttons.html#comment-3434

      http://blog.flexexamples.com/2010/04/10/creating-a-multiline-spark-radiobutton-control-in- flex-4/