I created an XMLList from an xml string called XMLDoc. I set the dataProvider of the tree with the XMLList then did this:
tree.expandItem(XMLDoc.children().parent(), true);
That essentially did what you're trying to do. it's using the root node of the XMLList object
JG
On 6/4/06,
Carlos Rovira <[EMAIL PROTECTED]> wrote:
Hi I'm using the following function to expand all nodes in a tree:
private function expandTree():void {
expandChildrenOf(firstVisibleItem, true);
}
But this function fails if one intermediate node has: isBranch="true"
<node label="somelabel" isBranch="true"/>
In this way the function stop working and don't open the following nodes
--
::| Carlos Rovira
::| http://www.carlosrovira.com
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service .
--
John Grden - Blitz
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

