I thought I logged it but I can't find it now, so maybe I didn't. The workaround is to use setStyle() in actionscript instead of using CSS.
Peter On Thu, May 8, 2008 at 10:25 PM, twgonzalez <[EMAIL PROTECTED]> wrote: > > > > > > > Peter, > > Did you ever submit a bug on this in JIRA, or determine a work-around. I am > struggling > with the same issue, and looking at the source code for the charts, it does > not seem like > they are creating a factory if none exists. > > - Tom > > > > --- In [email protected], "Peter Hall" <[EMAIL PROTECTED]> wrote: > > > > I have custom item renderer for a ColumnChart in Flex 3 b3. > > > > I can make it work in MXML or ActionScript, but I get errors when I do > > it with CSS. > > > > works: > > columnSeries.setStyle("itemRenderer", new ClassFactory(MyRenderer)); > > > > works: > > <ColumnSeries itemRenderer="package.MyRenderer" /> > > > > Doesn't work: > > .mySeries { > > itemRenderer:ClassReference('package.MyRenderer'); > > } > > > > > > The error is that it can't convert MyRenderer$ to IFactory. I have > > tried using a class that implements IFactory too, but it still falls > > over because it's not creating an instance, to even be able to call > > the newInstance() method. > > > > It looks like a bug in the charts, because other components can handle > > this ok, but t's hard to know without the chart source... > > > > > > Peter > > > >

