recuperar radioButton dinamico

18 views
Skip to first unread message

JulioCezarR

unread,
May 29, 2011, 5:42:55 PM5/29/11
to FlexPB
Boa tarde.

Tenho uma lista de muitas questoes com as respectivas respostar
montadas dinamicamente na tela atraves de um repeater, mas não estou
conseguindo recuperar o preenchimento de cada questão. alguem tem uma
sugestão de como recuperar ?? segue o codigo ..
<mx:Repeater id="myRepeaterResp"
dataProvider="{array_perg_perg}"
count="5" startingIndex="{_indexDoRepeaterResp}"
repeatStart="{trace('teste')}"
repeat="myRepeaterResp_repeatHandler(event)">
<mx:HBox>

<mx:VBox>


<s:Label text="{myRepeaterResp.currentItem.DESCPERG}" width="600"/
>
<mx:RadioButton
label="{myRepeaterResp.currentItem.listaAlternativas[0].label}"

value="{myRepeaterResp.currentItem.listaAlternativas[0].value}"
groupName="{myRepeaterResp.currentItem.CODIPERG}" width="700"/
>
<mx:RadioButton
label="{myRepeaterResp.currentItem.listaAlternativas[1].label}"

value="{myRepeaterResp.currentItem.listaAlternativas[1].value}"
groupName="{myRepeaterResp.currentItem.CODIPERG}" width="700"/
>
<mx:RadioButton
label="{myRepeaterResp.currentItem.listaAlternativas[2].label}"

value="{myRepeaterResp.currentItem.listaAlternativas[2].value}"
groupName="{myRepeaterResp.currentItem.CODIPERG}" width="700"/
>
<mx:RadioButton
label="{myRepeaterResp.currentItem.listaAlternativas[3].label}"

value="{myRepeaterResp.currentItem.listaAlternativas[3].value}"
groupName="{myRepeaterResp.currentItem.CODIPERG}" width="700"/
>
<mx:RadioButton
label="{myRepeaterResp.currentItem.listaAlternativas[4].label}"

value="{myRepeaterResp.currentItem.listaAlternativas[4].value}"
groupName="{myRepeaterResp.currentItem.CODIPERG}" width="700"/
>


</mx:VBox>


<mx:Image id="imageC"
source="{'img/'+myRepeaterResp.currentItem.IMAGPERG}"
doubleClickEnabled="true"
doubleClick="imageC_doubleClickHandler(event)"
visible="{myRepeaterResp.currentItem.IMAGPERG != '' ? true :
false}" name="{myRepeaterResp.currentItem.IMAGPERG}" width="600"
height="480"/>

</mx:HBox>
<mx:HRule />


</mx:Repeater>
Reply all
Reply to author
Forward
0 new messages