On 5/4/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:
> I have a componet I want to pass a dynamic renderer into:
> <coreView:MonthCalendar date="{ thisMonth }" dataProvider="{foo}"
> dayRenderer="com.halliwells.flex.bma.view.HearingDay"/>
>
> It's a TileList type control, so at some stage in the component I do:
> var c:ClassFactory=new ClassFactory( Class (
> flash.utils.getDefinitionByName(dayRenderer) ) );
> tileListName.itemRenderer=c;
Your dayRenderer property would be of type IFactory, right? In that
case you just assign the value to tileListName.itemRenderer as it is.
See the code for itemRenderer in ListBase.as