This content has been marked as final. Show 7 replies
If that is the exact code you've used then chances are the error is a result of your incorrect syntax in creating the series. It should be:
var series:LineSeries = new LineSeries();
You missed out the empty parenthesis and therefore are not actually instantiating an object.
Hi Oddsy, thanks for the input. Unfortunately I tried both with and without the (), and it made no difference - I get the same compiler error either way :(
Any other ideas?
Is it just the form property you get that compilation error or is it with any property?
Well actually it seems to be just the syles that are a problem. Most of the properties seem to work, but none of the styles do, except "radius".
So, the following styles produce the same compiler error: bottom, errorColor, fill, focusBlendMode, focusSkin, focusThickness, form, horizontalCenter, itemRenderer, left, legendMarkerRenderer, lineSegmentRenderer, lineStroke, right, stroke, themeColor, top, and verticalCenter.
I'm not sure if all of those worked under Flex 2.0.0, but "form" definately did. Are we not allowed to set styles that way under Flex 2.0.1? I didn't see anything to that effect in the changelog.
Also, curiously, the style "radius" does work... but it's the only one.
If it's a style, I think you'll have to use setStyle().
This has driven me to screaming on a number of occasions. :-)
Thanks dave, that worked! :)
I'd still like to know why the difference in 2.0.1, but at least it's working again now ;)
How strange. They must have decided to shuffle around some of the properties and style for whatever reason. Useful to know though.