This is the code in Flex SDK3 CartesianChart that fails my custom series.
Have no idea where they take the series variable.This part is new
in commitProperties() comparing to Flex2. I wonder how can I get
around this Series part, my custom series is not of Series type but
ChartElement.
Extend the CartesianChart and comment out this part ? :)
// now if the series is using the same axis as charts, its
datatransform needs to have
// these new axes
for (var i:int = 0; i < series.length; i++)
{
var g:Series;
----> g = series[i];
if (!g)
continue;
g.invalidateProperties();
}
--- In [email protected], "alex" <[EMAIL PROTECTED]> wrote:
>
> The custom series fail with :
>
> TypeError: Error #1034: Type Coercion failed: cannot convert
> as3.customSeries::[EMAIL PROTECTED] to mx.charts.chartClasses.Series.
>
>
> It was working fine in Flex2.
> Could be a problem that MySeries extends ChartElement and not Series ?
>