Amy, as always, you rock, that url was a good read. My problem is I am not sure how many children I will have or what the structure will look like. I am doing a tree so I can have n number of nodes or children, and I am not sure how to build the return object/array.
Thanks for the read. timgerr --- In [email protected], "Amy" <[EMAIL PROTECTED]> wrote: > > --- In [email protected], "timgerr" <tgallagher@> wrote: > > > > Hello all, > > I am working with nested arrayobjects and I cannot construct the > > needed data from my php/mysql backend. > > > > I am using nested sets > > (http://dev.mysql.com/tech-resources/articles/hierarchical-data.html), > > with left and right keys. I need to construct the data (in php) and > > pass it to flex (using a remote call). I need/want to get the data to > > flex and put it into an arraycollection. Has any one done this? If > > so, can you post some code? I have been banging my head on this for a > > long time and cannot get the data into the right format for an array > > collection. > > My client felt it wasn't appropriate to send all the data at once, so > the way I work it is to have a manager class that tells each child node > to load all of its children one at a time, using an event model that > allows for interruptions when the user selects something so that then > it concentrates on the children of the selected node. > > But you might find this article a good start to the way you want to do > it: > http://www.insideria.com/2008/04/amf3-php-server-objects-to-fle.html >

