var chartSeries: Array = new Array(); var mySeries: LineSeries = new LineSeries(); mySeries.xFIeld = "blah"; mySeries.yField = "blah-blah" //set the other styles and properties on the series. ...
chartSeries.push(mySeries); // set the series property on the chart. myChart.series = chartSeries. HTH. --- In [email protected], "Brad Bueche" <[EMAIL PROTECTED]> wrote: > > I have the following setup and I need to make it a little bit more > dynamic: > > <mx:series> > <mx:Array id="chart_series"> > <mx:LineSeries yfield="category1_value" displayName = "Other > CIX" /> > </mx:Array> > </mx:series> > > Actually I'd like to start with it blank > > <mx:series> > <mx:Array> > > </mx:Array > </mx:series> > > So I can build the whole series from sratch. > > > I got as far as: > > chart_series.push(" > > But that "LineSeries" is messing me up. Is "LineSeries" a string in the > array or what? > > What is the syntax for building this whole mx:Array-><mx:LineSeries> > out in as3? > > brad >

