Brd*_*rds 4 apache-flex repeater flex3
我有以下代码:
<mx:Repeater id="showNames" dataProvider="{parentApplication.bfa1aStudents}">
<mx:Text text="{parentApplication.getStudentName(showNames.currentItem)}" color="#8ab534" click="nameSelected(Number(showNames.getRepeaterItem(showNames.currentIndex)));" selectable="false" mouseOver="parentApplication.switchCursor(true);" mouseOut="parentApplication.switchCursor(false);" />
</mx:Repeater>
Run Code Online (Sandbox Code Playgroud)
我知道你不能在点击上使用currentItem或currentIndex ...并且这个问题是通过getRepeaterItem()函数修复的,但我不确定如何使用它.DP是一堆数字,如果重要,则表示用户ID.如果有人可以帮我解决文本的"点击"部分,我们将不胜感激.