这是几道选择题,每题有相应的1,2,3,4,5分,
<mx:GridRow width="100%"
height="28"
id="oldInfo2">
<mx:GridItem paddingLeft="5"
colSpan="5"
borderStyle="solid"
verticalAlign="middle"
horizontalAlign="left">
<s:Label text="one"/>
</mx:GridItem>
<mx:GridItem id="Q1"
borderStyle="solid"
paddingLeft="2"
verticalAlign="middle">
<s:HGroup width="100%" horizontalAlign="center" verticalAlign="middle">
<s:RadioButton groupName="first" value="1" />
<s:Label text="1分" ></s:Label>
</s:HGroup>
</mx:GridItem>
<mx:GridItem id="Q2"
borderStyle="solid"
paddingLeft="2"
verticalAlign="middle">
<s:HGroup width="100%" horizontalAlign="center" verticalAlign="middle">
<s:RadioButton groupName="first" value="2"/>
<s:Label text="2分" ></s:Label>
</s:HGroup>
</mx:GridItem>
<mx:GridItem id="Q3"
borderStyle="solid"
paddingLeft="2"
verticalAlign="middle">
<s:HGroup width="100%" horizontalAlign="center" verticalAlign="middle">
<s:RadioButton groupName="first" value="3"/>
<s:Label text="3分" ></s:Label>
</s:HGroup>
</mx:GridItem>
<mx:GridItem id="Q4"
borderStyle="solid"
paddingLeft="2"
verticalAlign="middle">
<s:HGroup width="100%" horizontalAlign="center" verticalAlign="middle">
<s:RadioButton groupName="first" value="4"/>
<s:Label text="4分" ></s:Label>
</s:HGroup>
</mx:GridItem>
<mx:GridItem id="Q5"
borderStyle="solid"
paddingLeft="2"
verticalAlign="middle">
<s:HGroup width="100%" horizontalAlign="center" verticalAlign="middle" >
<s:RadioButton groupName="first" value="5"/>
<s:Label text="5分" ></s:Label>
</s:HGroup>
</mx:GridItem>
</mx:GridRow>
if(!ProcessDataUtil.validateRadioButton(first))
{
Alert.show("信息不能为空");
return false;
}
三国纷争
相关分类