7 Replies Latest reply on Jan 30, 2007 1:05 AM by Oddsy

    Flex 2.0.1 broke LineSeries.form in AS?

    pcolby78
      Hi guys, I think this is a bug, but maybe I'm doing something wrong...

      When programatically adding a new LineSeries to a chart via AS, the compiler fails to find the LineSeries object's "form" property. This worked fine in Flex 2.0.0.

      Here's a really simple example:
      quote:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:Script>
      <![CDATA[
      import mx.charts.series.LineSeries;

      private function test():void {
      var series:LineSeries = new LineSeries;
      series.form = "curve";
      }

      ]]>
      </mx:Script>
      </mx:Application>

      The resulting compiler error is:
      quote:

      1119: Access of possibly undefined property form through a reference with static type mx.charts.series:LineSeries.


      Note, using the form '<mx:LineSeries form="curve"/>' works fine.

      Anyone else having this problem?

      Paul.