I'm using a repeater to grab a component that makes a radiobutton
each time.
When the app is displayed, there are 7 radiobuttons. The problem
is, they are not in the same group. They are all individually
checkable. I went into the component and gave the radiobutton a
groupName="group1". All of the radiobuttons then had the same
groupName. The problem was still there.
I also tried putting the component call within a RadioButtonGroup
component and had no luck.
Anyone have any solutions to this?
*----------------------------------------* App:
<mx:Script>
<![CDATA[
var compData3:Object;
var compData4:Object;
function repeaterfunc(){
if(repradio.currentItem.nodeName == "response_lid"){
compData3 = cont.createChild
(Components.RadioButtons.labelbuttoncomp);
compData3.compData4 = repradio.currentItem;
}
}
]]>
</mx:Script>
<mx:Repeater id="repradio" dataProvider="{compData2.childNodes
[1].firstChild.childNodes}" repeat="repeaterfunc()"/>
<mx:VBox id="cont"></mx:VBox>
*----------------------------------------* Component:
<mx:Script>
<![CDATA[
var compData4;
]]>
</mx:Script>
<mx:RadioButton
label="{compData4.firstChild.firstChild.firstChild.firstChild.firstCh
ild.firstChild}" groupName="group1" labelPlacement="right"/>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/