flex - Simple way to call a function inside itemRenderer in a Spark List, from the main application -
I have a main application that contains a list, using a custom item renderer to display the data. I While driving the app, we have a list with three people, and have a button, which wants to be able to call function inside the item renderer from the main app is. From the main app, I want to call the myItemRendererFunction () function, in the item's reader, in the list of selected items . & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; S: WindowedApplication xmlns: fx = "http://ns.adobe.com/mxml/2009" xmlns: s = "Library: //ns.adobe.com/flex/spark" xmlns: mx = "Library: // Ns.adobe.com/flex/mx"> & Lt; Fx: script & gt; & Lt ;! [CDATA [Import mx.collections.ArrayCollection; Import mx.events.FlexEvent; [First name: "Piererson"}, {first name: "Peter", last name: "Piererson"}, {first name: "Smith"}, "Bell"}]); Protected Function Check all ...