I'm trying to create a custom button renderer for my list and it keeps saying unidentified property "data." Here is my code.
Renderer:
<?xml version="1.0" encoding="utf-8"?>
<s:Button xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" label="{data.label}">
</s:Button>
Object calling the renderer:
<s:List x="80" y="88" width="142" height="384" dataProvider="{navigation}" itemRenderer="com.renderers.NavigationRenderer" borderVisible="false"/>
And the array collection holding the data for the list:
[Bindable]
private var navigation:ArrayCollection = new ArrayCollection([
{label:"Home",state:"Home"},{label:"Tools",state:"Tools"}
]);
What could I be doing wrong?