oh and almost forgot...when dealing with lists coming from java i had more
success with ArrayCollection than array...
p
On Wed, Mar 5, 2008 at 7:57 AM, netdeep <[EMAIL PROTECTED]> wrote:
> Does anyone know the best practice for transferring data from a database
> to generate a
> flex chart?
>
> I have a Java class Axis with these variables:
>
> String ID;
> Date start;
> Date end;
> int min;
> int max;
> int incr;
> String title;
> String signal;
> String type;
> List data;
>
> And the List is an array of points defined in a class called DataPoint:
>
> public Date point1;
> public long point2;
>
> I pass an array of Axis objects to the Flex app and try to convert it to
> an actionscript
> object:
>
> package factory.data {
> [Bindable]
> [RemoteClass(alias="factory.data.Axis")]
> public class AxisObject {
>
> public var ID:String;
> public var start:Date;
> public var end:Date;
> public var min:int;
> public var max:int;
> public var incr:int;
> public var title:String;
> public var signal:String;
> public var type:String;
> public var data:Array;
> }
>
> and I can access the title for example, but cannot get the DataPoint array
> into the chart.
> Furthermore, when I debug it gives me the following errors:
>
> ReferenceError: Error #1056: Cannot create property endDate on
> factory.data.AxisObject.
> ReferenceError: Error #1056: Cannot create property dataList on
> factory.data.AxisObject.
>
> Thanks for any help you can offer.
>
>
>