I have a couple of chart series with dataFunctions that get updated
dynamically. Some of these are shared between more than one chart.
I wish to avoid large Script blocks with duplicate code. Here are some
possibilities I've considered

1)  A "SeriesHelper" class with a reference to the series and any other
objects needed. Has some creation order issues, as the chart definition
can't refer to "helper.dataFunction1" if I only create the helper at
creationComplete time. I suppose I could use binding or reverse the order
and set the series reference at creationComplete time.

2) Script tag that includes an .as file.

3) Duplicate one line functions in the MXML file, that called shared static
utility functions

Thoughts?

Reply via email to