This content has been marked as final. Show 5 replies
Did you declare the default local namespace in the component root tag?
Thanks for the response. I have not declared the namespace, but since they are in the same location, do I need to? I have tried several variations of declaring the namespace, but am not getting a change in the error. Some examples of what I have tried:
The main app is called index.mxml and supporting components are in the folder "views". In the index, I have declared a namespace for views xmlns:v="views.*", hence my using "v". It seems I am missing a very large and blatant point? Oh guru flex gods! take pity on newbies and may all your future projects be bug free, fun and profitable!
Use the whole package name. E.g itemRenderer="com.package.views.CustomItemRenderer"
Hah! Kosmikko, you nailed it right.
So adding the full path to the class in the itemRenderer solved my problem.
In the component root tag, add something like this:
(if your custom component is in a folder named "views")
Notice that "myRenderer" can be whatever name you want; I chose a name different from your examples to avoid confusion with the folder named "views".
This does the same thing as Kosmikko's answer.