【发布时间】:2015-09-07 13:45:27
【问题描述】:
<s:DataGroup id="group" dataProvider="{data}" >
<s:itemRenderer>
<s:RadioButton value="{group.currentItem}"/>
</s:itemRenderer>
</s:DataGroup>
我想使用DataGroup 渲染多个RadioButton。
问题一:FlashBuilder 显示错误:In initializer for 'itemRenderer', type spark.components.RadioButton is not assignable to target type 'mx.core.IFactory'.
问题 2:group.currentItem 未定义。如何获取ArrayCollection数据的实际项?
【问题讨论】:
标签: actionscript-3 apache-flex actionscript