0 Replies Latest reply on Feb 28, 2008 12:54 PM by swashbuck1r

    Style syntax for creating a ClassFactory

    swashbuck1r Level 1
      I'm trying to convert my Flex component over to using the mx:Style tag instead of component.setStyle(). I'm trying to figure out the style syntax that is eqiuivalen to the following line of code for setting an ItemRenderer :

      series.setStyle("itemRenderer", new ClassFactory(DiamondItemRenderer));

      I tried the following, but got a coercion error because it doesn't result in an itemRenderer that is an IFactory.
      .series { itemRenderer: "mx.charts.renderers.DiamondItemRenderer"; }

      Can anyone help me with the correct style syntax for this?

      Thanks!
      Spike