I am making a quiz application for mobile.The questions are comming from xml.
How can i make multiline Radiobuttons? I tried to do a skinclass but it didn’t worked.
In this code i make the RadioButtons.
enterfor (j=0; j<arrAnswers[index].length; j++) {
arrChoices[j] = new RadioButton()
arrChoices[j].label = arrAnswers[index][j];
arrChoices[j].value = j;
arrChoices[j].width = qField.width;
arrChoices[j].x = qField.x + 10;
arrChoices[j].y = qField.y + qHeight + (aHeight+5)*j;
arrChoices[j].group = rbg
container.addElement(arrChoices[j]);
} code here
Refer following links:
http://blog.flexexamples.com/2010/04/10/creating-a-multiline-spark-radiobutton-control-in-flex-4/
http://blogs.adobe.com/aharui/2007/04/multiline_buttons.html
Download the code from
blogs.adobe.comand use your custom radiobutton