Actionscript 3 mx:RadioButtonGroup在flex中的mx:GridItem下不工作
我曾尝试在flex4中的GridItem下使用radioButtonGroup。但它不起作用 守则: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}"
<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)"/>