I have the following code:
<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>
I know that you cannot use currentItem or currentIndex on a click ... and this problem has been fixed with the getRepeaterItem () function, but I'm not sure exactly how to use it. DP is a bunch of numbers representing user IDs, if that matters. If someone can help me with my piece of click text, this will be very helpful.
source share