--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I am not speaking of the tree, but of the xml. It has a root or it is
> not xml. I guess you just have showRoot="false" on the tree?
>
>
>
> When accessing tree nodes, you almost always use the use the
underlying
> dataProvider, which will be the e4x api.
>
>
>
> What do you want to do with the first-level child nodes?
>
>
>
> Tracy
>
Tracy,
first let me say thanks for your help so far - its really appreciated.
Now I'm still trying to get my head around data-binding, especially
with a recursive tree. The raw data comes in as a flash XMLNode (thats
the api - interface) and here's some sample XML and a code snippet I
use to populate the tree:
ROWS:XMLNode =
<Rows>
<Row id="1" name="New South Wales">
<Row id="2" name="Sydney">
</Row>
<Row id="3" name="Queensland"/>
</Rows>
var myData:XMLListCollection;
...
var treeData:XML = new XML(ROWS.toString());
myData = new XMLListCollection(treeData.Row);
this.dataProvider=myData;
The ROWS var is actually a parameter to this method. If there is a
better or more elegant way to populate the tree, I would love to use it.
As for what I want with the first-level nodes, well nothing now that
the validateNow() method has made everythign work - I was just curious
how to get them, and I am still in the dark. How would I call
getChildren() using the above scenario?
Cheers,
Radek