hi.
i'm following aral balkan's tutorial on using item renderers:
http://www.adobe.com/devnet/flex/quickstart/using_item_renderers/
i'm trying to implement a custom component as my item renderer and i'm going
thru the tute and i'm still getting the following error:
Definition ImageRenderer could not be found.
I thought that assigning the name of the component (it resides in the same
directory) to the 'itemRenderer' property of my List component would be fine.
Here's my List:
<!-- scrollable list of materials -->
<mx:List
id="materialsList"
width="120"
height="300"
dataProvider="{test.availableMaterials}"
itemRenderer="ImageRenderer" // this is line throwing the error.
rowHeight="100"
verticalAlign="middle">
</mx:List>
and here's my custom component that i'm trying to use as an item renderer
(ImageRenderer.mxml):
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="200" height="200">
<mx:Component>
<mx:Image source="{data.browseLinkURL}"/>
</mx:Component>
</mx:Canvas>
What might I be missing? any tips are appreciated. thank you. -- matt.