Hmmm, why exactly are you sending nested arrays from amfphp? Why can't 
you just send a flat array?

Patrick

carkraus a écrit :
>
> Hi there,
>
> I guess this is a typical newbie question,  maybe someone could kindly 
> direct me to a tutorial or sample:
>
> I try to bind e.g. using a charts control to a nested array I receive 
> from an AMFPHP service.
> On the php side I have as an example:
>
>     $outputArr[] = array('day' => 'Mon', array('start' => '100', 'end'
>     => '300'));
>     $outputArr[] = array('day' => 'Tue', array('start' => '250', 'end'
>     => '600'));
>     $outputArr[] = array('day' => 'Wed', array('start' => '500', 'end'
>     => '600'));
>     return $outputArr;
>
> ..which will deliver the data correctly as I can see from the flex 
> debugger.
>
> In flex I have eg.:
>
>     <mx:series>
>         <mx:ColumnSeries xField="day" yField="???" />
>     </mx:series>
>
> Now, how do I access e.g. the value 'start' to use it for databinding? 
> Well, 'day.start' does not do the trick : )
>
> I had similar probs using XML for binding, where I wouldnt be able to 
> access sub-children?
> Do I have to somehow wrap the server response into an actionscript 
> object which I'd have to manually add properties to?
>
> Any hint greatly appreciated! !
> carsten
>
>
>  

Reply via email to