Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 mx:RadioButtonGroup在flex中的mx:GridItem下不工作_Actionscript 3_Apache Flex_Flex4 - Fatal编程技术网

Actionscript 3 mx:RadioButtonGroup在flex中的mx:GridItem下不工作

Actionscript 3 mx:RadioButtonGroup在flex中的mx:GridItem下不工作,actionscript-3,apache-flex,flex4,Actionscript 3,Apache Flex,Flex4,我曾尝试在flex4中的GridItem下使用radioButtonGroup。但它不起作用 守则: <mx:GridItem > <mx:RadioButtonGroup id="scheduleSelectionGroup" click="showScheduleSetting(event);"/> <mx:HBox> <eov:HPRadioButton value="{CreateVO.DAILY}"

我曾尝试在flex4中的GridItem下使用radioButtonGroup。但它不起作用

守则:

<mx:GridItem >  

<mx:RadioButtonGroup id="scheduleSelectionGroup" click="showScheduleSetting(event);"/>

<mx:HBox>       

<eov:HPRadioButton value="{CreateVO.DAILY}" 
                                           label="Daily"
                                               id="dailyRB" 
                                           selected="true"  
                                           groupName="{SelectionGroup}" 
                                           change="showSetting(event)"/>

<eov:HPRadioButton id="weeklyRB"
                                               value="{CreateVO.WEEKLY}"
                                               label="Weekly"   
                                           groupName="{SelectionGroup}" 
                                           change="showSetting(event)"/>

<eov:HPRadioButton  label="Monthly"
                                               value="{CreateVO.MONTHLY}"   
                                           id="monthlyRB"   
                                           groupName="{SelectionGroup}"
                                               change="showSetting(event)"/>

</mx:HBox>

</mx:GridItem>

它不起作用。如果有人知道如何为radioButtonGroup赋值以调用
showSetting()
函数。

radioButtonGroup是一个非图形组件。它只是一个对象,您可以使用它对许多单选按钮进行分组

因此,它将出现在
声明
标记中

<fx:Declarations>
    <mx:RadioButtonGroup id="scheduleSelectionGroup" click="showScheduleSetting(event);"/>
</fx:Declarations>

请记住:StackOverflow允许您格式化您的问题,以便潜在的回答者可以轻松阅读。
<fx:Declarations>
    <mx:RadioButtonGroup id="scheduleSelectionGroup" click="showScheduleSetting(event);"/>
</fx:Declarations>
<mx:RadioButton groupName="scheduleSelectionGroup" value="value0" label="RadioButton0" />
<eov:HPRadioButton value="{CreateVO.DAILY}" 
                                           label="Daily"
                                           id="dailyRB" 
                                           selected="true"  
                                           groupName="scheduleSelectionGroup" 
                                           change="showSetting(event)"/>

<eov:HPRadioButton id="weeklyRB"
                                               value="{CreateVO.WEEKLY}"
                                               label="Weekly"   
                                           groupName="scheduleSelectionGroup" 
                                           change="showSetting(event)"/>

<eov:HPRadioButton  label="Monthly"
                                               value="{CreateVO.MONTHLY}"   
                                           id="monthlyRB"   
                                           groupName="scheduleSelectionGroup"
                                               change="showSetting(event)"/>