I need to use the components so I can test what type of node is in 
the XML.  I'm calling different components based on nodeName.  


--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> 
wrote:
> Why not just use straight mxml.  The following works for me.
> 
> <mx:VBox id="vboxRG" x="3" y="3" >            
>    <mx:Repeater id="repeaterRB" 
dataProvider="{leParameter.valuesarray}"
> >
>       <mx:RadioButton id="RBParameter" groupName="RGBParameter"
>             data="{repeaterRB.currentItem[0]}"
>             label="{repeaterRB.currentItem[labelColumn]}"
>             click="setParameterValue(event)"
>             width="{this.width-6}"/>
>    </mx:Repeater>     
> </mx:VBox>
> 
> Tracy
> 
> -----Original Message-----
> From: jwaknitz [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 13, 2005 1:16 PM
> To: [email protected]
> Subject: [flexcoders] Radio Button Custom Component
> 
> 
> 
> 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





 
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/
 



Reply via email to