what's the namespace that the custom component is in?  You may need to
specify the full namespace location:
 *itemRenderer="com.path1.path2.ImageRenderer"*

On 9/6/07, Tracy Spratt <[EMAIL PROTECTED]> wrote:
>
>    Have you declared the default namespace in the root tag of the app?
>
> xmlns="*"
>
>
>
> Tracy
>
>
>  ------------------------------
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Matthew Ganz
> *Sent:* Thursday, September 06, 2007 4:51 PM
> *To:* [email protected]
> *Subject:* Re: [flexcoders] custom component as item renderer
>
>
>
> thank you but i'm still getting the same error even when i import my
> custom component.
>
>  ----- Original Message -----
>
> *From:* Tracy Spratt <[EMAIL PROTECTED]>
>
> *To:* [email protected]
>
> *Sent:* Thursday, September 06, 2007 4:53 PM
>
> *Subject:* RE: [flexcoders] custom component as item renderer
>
>
>
> import ImageRenderer;
>
> Tracy
>   ------------------------------
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Matthew Ganz
> *Sent:* Thursday, September 06, 2007 4:38 PM
> *To:* [email protected]
> *Subject:* [flexcoders] custom component as item renderer
>
> 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.
>
>
>
>   
>

Reply via email to