Hi Joshua,

try this:

var dp:XML = tree.dataProvider[0];
tree.openItems = dp..node;

Note that this code works for a dataprovider with a root node and with 
"node" as the nodenames.

regards,
Christophe

joshua gatcke schreef:
>
> Does anyone know how to expand a tree on initialize? I have tried the 
> following with no avail: 
>
>
> private function setPageListTree():void{
> pageListTree.openItems(pageListTree.dataProvider.getItemAt(1));
> pageListTree.expandItem(pageListTree.dataProvider.children(), true);
> pageListTree.expandChildrenOf(pageListTree, true);
> }
>
> Thanks in advance, 
>
>
>
> Joshua Gatcke -  Director
> *Visua Design Group Inc.*
> Cell:(403) 815-3265
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
>
>
>  

Reply via email to