My setup is pretty basic. I have an s:List with a custom itemRenderer and a dataprovider. What I would like to do is access the generated instances of the item renderer but I have no idea how.
Here is the code for the list:
<s:List id="layersList"
borderVisible="false"
allowMultipleSelection="true"
contentBackgroundAlpha="0"
itemRenderer="renderers.LayerRenderer"
dataProvider="{AssetsCollection}">
<s:layout>
<s:VerticalLayout gap="1" />
</s:layout>
<s:list>
What I would like is to access the generated renderers like:
layersList.renderers[selectedIndex] or layersList.selectedItems[0].renderer
. In order to access some of its internal objects. Like in the event I would want to listen events dispatched in the renderer instance from the List's parent.
Can anyone help?